aboutsummaryrefslogtreecommitdiff
path: root/lib/pbdrv/pb-route.h
diff options
context:
space:
mode:
authorLoek Le Blansch <loek@pipeframe.xyz>2024-06-14 19:31:20 +0200
committerLoek Le Blansch <loek@pipeframe.xyz>2024-06-14 19:31:20 +0200
commitdbe08a8cd3d29cee7ba1adae4841c0a831784f31 (patch)
tree88a080b298ec60669fe4a0eecf28b4c96675d267 /lib/pbdrv/pb-route.h
parent33ff43ccd7c619f885b3dd4e9a2e0ffe7ed0875c (diff)
puzzle bus message routing functions
Diffstat (limited to 'lib/pbdrv/pb-route.h')
-rw-r--r--lib/pbdrv/pb-route.h39
1 files changed, 39 insertions, 0 deletions
diff --git a/lib/pbdrv/pb-route.h b/lib/pbdrv/pb-route.h
new file mode 100644
index 0000000..aa65057
--- /dev/null
+++ b/lib/pbdrv/pb-route.h
@@ -0,0 +1,39 @@
+#pragma once
+
+#include <stdbool.h>
+
+#include "pb-types.h"
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+void pb_route_msg(pb_msg_t * msg);
+
+bool pb_hook_route_msg(pb_msg_t * msg);
+
+void pb_route_cmd_prop(pb_msg_t * msg);
+void pb_route_cmd_state(pb_msg_t * msg);
+void pb_route_cmd_magic(pb_msg_t * msg);
+
+bool pb_hook_route_cmd_prop(pb_msg_t * msg);
+bool pb_hook_route_cmd_state(pb_msg_t * msg);
+bool pb_hook_route_cmd_magic(pb_msg_t * msg);
+
+void pb_route_cmd_prop_req(pb_msg_t * msg);
+void pb_route_cmd_prop_res(pb_msg_t * msg);
+void pb_route_cmd_prop_set(pb_msg_t * msg);
+
+void pb_route_cmd_state_req(pb_msg_t * msg);
+void pb_route_cmd_state_res(pb_msg_t * msg);
+void pb_route_cmd_state_set(pb_msg_t * msg);
+
+void pb_hook_main_state_update(pb_global_state_t state);
+
+void pb_route_cmd_magic_req(pb_msg_t * msg);
+void pb_route_cmd_magic_res(pb_msg_t * msg);
+
+#ifdef __cplusplus
+}
+#endif
+