GNUnet 0.22.2
006.c File Reference

Go to the source code of this file.

Functions

static void handle_fix (void *cls, const struct MyMessage *msg)
 
static int check_var (void *cls, const struct MyVarMessage *msg)
 
static void handle_var (void *cls, const struct MyVarMessage *msg)
 

Variables

struct GNUNET_MQ_MessageHandler handlers []
 

Function Documentation

◆ handle_fix()

static void handle_fix ( void *  cls,
const struct MyMessage *  msg 
)
static

Definition at line 2 of file 006.c.

3{
4 // process 'msg'
5}

◆ check_var()

static int check_var ( void *  cls,
const struct MyVarMessage *  msg 
)
static

Definition at line 8 of file 006.c.

9{
10 // check 'msg' is well-formed
11 return GNUNET_OK;
12}
@ GNUNET_OK

References GNUNET_OK.

◆ handle_var()

static void handle_var ( void *  cls,
const struct MyVarMessage *  msg 
)
static

Definition at line 15 of file 006.c.

16{
17 // process 'msg'
18}

Variable Documentation

◆ handlers

struct GNUNET_MQ_MessageHandler handlers[]
Initial value:
= {
GNUNET_MESSAGE_TYPE_MY_FIX,
struct MyMessage,
NULL),
GNUNET_MESSAGE_TYPE_MY_VAR,
struct MyVarMessage,
NULL),
}
#define GNUNET_MQ_handler_end()
End-marker for the handlers array.
#define GNUNET_MQ_hd_fixed_size(name, code, str, ctx)

Definition at line 20 of file 006.c.