00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #ifndef __CTCP_H__
00021 #define __CTCP_H__
00022
00027 struct ctcp_handle;
00028
00032 struct ctcp_handler {
00033 char *name;
00034 void (*fn) (struct ctcp_handle *, char **args);
00035 };
00036
00037 gboolean ctcp_network_redirect_response(struct irc_network *, const struct irc_line *);
00038 gboolean ctcp_client_request_record(struct irc_client *, struct irc_line *);
00039 gboolean ctcp_process_request(struct irc_network *, const struct irc_line *);
00040 G_MODULE_EXPORT void ctcp_register_handler(const struct ctcp_handler *);
00041 G_MODULE_EXPORT G_GNUC_NULL_TERMINATED void ctcp_send(struct irc_network *, const char *, ...);
00042 G_MODULE_EXPORT G_GNUC_NULL_TERMINATED void ctcp_reply(struct ctcp_handle *, ...);
00043
00044 #endif