6 /* Returns CHATNET_REC if it's chatnet, NULL if it isn't. */
7 #define CHATNET(chatnet) \
8 MODULE_CHECK_CAST(chatnet, CHATNET_REC, type, "CHATNET")
10 #define IS_CHATNET(chatnet) \
11 (CHATNET(chatnet) ? TRUE : FALSE)
14 #include "chatnet-rec.h"
17 extern GSList *chatnets; /* list of available chat networks */
19 /* add the chatnet to chat networks list */
20 void chatnet_create(CHATNET_REC *chatnet);
21 /* remove the chatnet from chat networks list */
22 void chatnet_remove(CHATNET_REC *chatnet);
23 /* destroy the chatnet structure. doesn't remove from config file */
24 void chatnet_destroy(CHATNET_REC *chatnet);
26 /* Find the chat network by name */
27 CHATNET_REC *chatnet_find(const char *name);
29 void chatnets_init(void);
30 void chatnets_deinit(void);