27 lines
742 B
C
27 lines
742 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_SIGNATURE(event_connect);
|
||
|
EVENT_SIGNATURE(event_join);
|
||
|
EVENT_SIGNATURE(event_nick);
|
||
|
EVENT_NUMERIC_SIGNATURE(event_numeric);
|
||
|
|
||
|
#endif /* EVENTS_H */
|