823330dde9
Most of the basic db functionality is in place now. Changing print_col out for a user-supplied callback function might be a cool idea.
28 lines
774 B
C
28 lines
774 B
C
#ifndef EVENTS_H
|
|
#define EVENTS_H
|
|
|
|
#define EVENT_SIGNATURE(event_name) \
|
|
void event_name \
|
|
(irc_session_t * session, \
|
|
const char *event, \
|
|
const char *origin, \
|
|
const char **params, \
|
|
unsigned int count)
|
|
|
|
#define EVENT_NUMERIC_SIGNATURE(event_name) \
|
|
void event_name \
|
|
(irc_session_t * session, \
|
|
unsigned int event, \
|
|
const char *origin, \
|
|
const char **params, \
|
|
unsigned int count)
|
|
|
|
|
|
EVENT_NUMERIC_SIGNATURE(event_numeric);
|
|
EVENT_SIGNATURE(event_channel);
|
|
EVENT_SIGNATURE(event_connect);
|
|
EVENT_SIGNATURE(event_join);
|
|
EVENT_SIGNATURE(event_nick);
|
|
|
|
#endif /* EVENTS_H */
|