aboutsummaryrefslogtreecommitdiff
path: root/lib/pbdrv/pb-route.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/pbdrv/pb-route.h')
-rw-r--r--lib/pbdrv/pb-route.h27
1 files changed, 19 insertions, 8 deletions
diff --git a/lib/pbdrv/pb-route.h b/lib/pbdrv/pb-route.h
index 967c4a9..233a087 100644
--- a/lib/pbdrv/pb-route.h
+++ b/lib/pbdrv/pb-route.h
@@ -8,16 +8,10 @@ extern "C" {
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);
@@ -26,11 +20,28 @@ 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_route_cmd_magic_req(pb_msg_t * msg);
+void pb_route_cmd_magic_res(pb_msg_t * msg);
+
+/// \ingroup hook
+/// \{
+
+/// \defgroup hook_route Routing
+/// \brief Use a custom message handler
+/// \{
+
+bool pb_hook_route_msg(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_hook_main_state_update(pb_global_state_t state);
void pb_hook_module_init();
-void pb_route_cmd_magic_req(pb_msg_t * msg);
-void pb_route_cmd_magic_res(pb_msg_t * msg);
+/// \}
#ifdef __cplusplus
}