GNUnet 0.22.2
006.c
Go to the documentation of this file.
1static void
2handle_fix (void *cls, const struct MyMessage *msg)
3{
4 // process 'msg'
5}
6
7static int
8check_var (void *cls, const struct MyVarMessage *msg)
9{
10 // check 'msg' is well-formed
11 return GNUNET_OK;
12}
13
14static void
15handle_var (void *cls, const struct MyVarMessage *msg)
16{
17 // process 'msg'
18}
19
22 GNUNET_MESSAGE_TYPE_MY_FIX,
23 struct MyMessage,
24 NULL),
26 GNUNET_MESSAGE_TYPE_MY_VAR,
27 struct MyVarMessage,
28 NULL),
29
31};
struct GNUNET_MessageHeader * msg
Definition: 005.c:2
static int check_var(void *cls, const struct MyVarMessage *msg)
Definition: 006.c:8
struct GNUNET_MQ_MessageHandler handlers[]
Definition: 006.c:20
static void handle_var(void *cls, const struct MyVarMessage *msg)
Definition: 006.c:15
static void handle_fix(void *cls, const struct MyMessage *msg)
Definition: 006.c:2
@ GNUNET_OK
#define GNUNET_MQ_handler_end()
End-marker for the handlers array.
#define GNUNET_MQ_hd_fixed_size(name, code, str, ctx)
Message handler for a specific message type.