summaryrefslogtreecommitdiff
path: root/src/core/channels-setup.h
diff options
context:
space:
mode:
authorTimo Sirainen <cras@irssi.org>2001-02-17 19:44:22 +0000
committercras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564>2001-02-17 19:44:22 +0000
commitbe6ba53fa47bc546279a2575523281845fe80da9 (patch)
tree2f08f6281cfbd38a1df2abe4fe69ccfd6f208f51 /src/core/channels-setup.h
parent513e140bcebce617d6078a9532ab9976437c3ef6 (diff)
downloadirssi-be6ba53fa47bc546279a2575523281845fe80da9.zip
Config file: ircnets -> chatnets, added type = "chat protocol" to
chatnet config. Moved reading chatnets to core. Lots of other multiprotocol updates. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1237 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src/core/channels-setup.h')
-rw-r--r--src/core/channels-setup.h22
1 files changed, 10 insertions, 12 deletions
diff --git a/src/core/channels-setup.h b/src/core/channels-setup.h
index b07d9a4f..423bccb2 100644
--- a/src/core/channels-setup.h
+++ b/src/core/channels-setup.h
@@ -3,16 +3,14 @@
#include "modules.h"
-struct _CHANNEL_SETUP_REC {
- char *name;
- char *chatnet;
- char *password;
+#define CHANNEL_SETUP(server) \
+ MODULE_CHECK_CAST(server, CHANNEL_SETUP_REC, type, "CHANNEL SETUP")
- char *botmasks;
- char *autosendcmd;
+#define IS_CHANNEL_SETUP(server) \
+ (CHANNEL_SETUP(server) ? TRUE : FALSE)
- unsigned int autojoin:1;
- GHashTable *module_data;
+struct _CHANNEL_SETUP_REC {
+#include "channel-setup-rec.h"
};
extern GSList *setupchannels;
@@ -20,11 +18,11 @@ extern GSList *setupchannels;
void channels_setup_init(void);
void channels_setup_deinit(void);
-void channels_setup_create(CHANNEL_SETUP_REC *channel);
-void channels_setup_destroy(CHANNEL_SETUP_REC *channel);
+void channel_setup_create(CHANNEL_SETUP_REC *channel);
+void channel_setup_remove(CHANNEL_SETUP_REC *channel);
-CHANNEL_SETUP_REC *channels_setup_find(const char *channel,
- const char *chatnet);
+CHANNEL_SETUP_REC *channel_setup_find(const char *channel,
+ const char *chatnet);
#define channel_chatnet_match(rec, chatnet) \
((rec) == NULL || (rec)[0] == '\0' || \