aboutsummaryrefslogtreecommitdiff
path: root/lib/pbdrv/pb-route.h
blob: 967c4a92fb10b52c9faffea6f25ea46398e7d382 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#pragma once

#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_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
}
#endif