Data Structures | Macros | Typedefs
defs.h File Reference
#include <assert.h>
#include <stdarg.h>

Go to the source code of this file.

Data Structures

struct  message
 

Macros

#define EVENT_HANDLER_MAX_ARGC   10
 
#define VA_EVENT_INIT(event, h, a)
 

Typedefs

typedef void(* argv_callback) (void **argv)
 
typedef struct message Event
 
typedef void(* event_scheduler) (Event event, void *data)
 

Macro Definition Documentation

#define EVENT_HANDLER_MAX_ARGC   10
#define VA_EVENT_INIT (   event,
  h,
 
)
Value:
do { \
(event)->handler = h; \
if (a) { \
va_list args; \
va_start(args, a); \
for (int i = 0; i < a; i++) { \
(event)->argv[i] = va_arg(args, void *); \
} \
va_end(args); \
} \
} while (0)
if(len)
Definition: encode.c:222
void event(char *name, Array args, bool *args_consumed) FUNC_API_NOEXPORT
va_start(args1, format)
for(size_t i=1;i< ARRAY_SIZE(argv);i++)
Definition: typval.c:1215
assert(len >=0)
va_list args
Definition: log.c:127
va_end(args1)
int i
Definition: typval.c:868
#define EVENT_HANDLER_MAX_ARGC
Definition: defs.h:7

Typedef Documentation

typedef void(* argv_callback) (void **argv)
typedef struct message Event
typedef void(* event_scheduler) (Event event, void *data)