quote-bot/events.h

56 lines
2.0 KiB
C
Raw Normal View History

2021-03-08 23:16:14 -05:00
#ifndef EVENTS_H
#define EVENTS_H
2021-03-12 12:41:17 -05:00
#define EVENT_DCC_CHAT_SIGNATURE(event_name) \
void event_name \
(irc_session_t * session, \
const char * nick, \
const char * addr, \
irc_dcc_t dccid)
#define EVENT_DCC_SEND_SIGNATURE(event_name) \
void event_name \
(irc_session_t * session, \
const char * nick, \
const char * addr, \
const char * filename, \
unsigned long size, \
irc_dcc_t dccid)
#define EVENT_GENERIC_SIGNATURE(event_name) \
void event_name \
(irc_session_t * session, \
const char *event, \
const char *origin, \
const char **params, \
2021-03-08 23:16:14 -05:00
unsigned int count)
2021-03-12 12:41:17 -05:00
#define EVENT_NUMERIC_SIGNATURE(event_name) \
void event_name \
(irc_session_t * session, \
unsigned int event, \
const char *origin, \
const char **params, \
2021-03-08 23:16:14 -05:00
unsigned int count)
2021-03-12 12:41:17 -05:00
#define DCC_RECV_SIGNATURE(event_name) \
void event_name \
(irc_session_t * session, \
irc_dcc_t id, \
int status, \
void * ctx, \
const char * data, \
unsigned int length)
2021-03-08 23:16:14 -05:00
2021-03-12 12:41:17 -05:00
EVENT_DCC_CHAT_SIGNATURE(irc_event_dcc_chat);
EVENT_DCC_SEND_SIGNATURE(irc_event_dcc_send);
EVENT_GENERIC_SIGNATURE(dump_event);
EVENT_GENERIC_SIGNATURE(irc_event_channel);
EVENT_GENERIC_SIGNATURE(irc_event_connect);
EVENT_GENERIC_SIGNATURE(irc_event_join);
EVENT_GENERIC_SIGNATURE(irc_event_nick);
EVENT_GENERIC_SIGNATURE(irc_event_privmsg);
EVENT_NUMERIC_SIGNATURE(irc_event_numeric);
2021-03-08 23:16:14 -05:00
#endif /* EVENTS_H */