summaryrefslogtreecommitdiff
path: root/src/irc/core/irc-servers-setup.h
diff options
context:
space:
mode:
authorTimo Sirainen <cras@irssi.org>2000-08-26 15:39:44 +0000
committercras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564>2000-08-26 15:39:44 +0000
commite395e87dedd9aa85f05e5c74330a76f1ef700371 (patch)
tree1184487b13038499f1771e4c553222f85b8524d2 /src/irc/core/irc-servers-setup.h
parent3d124da13b8da5c0b535abfe6265fc471d9d2ebd (diff)
downloadirssi-e395e87dedd9aa85f05e5c74330a76f1ef700371.zip
Lots of moving stuff around - hopefully I didn't break too much :)
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@632 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src/irc/core/irc-servers-setup.h')
-rw-r--r--src/irc/core/irc-servers-setup.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/irc/core/irc-servers-setup.h b/src/irc/core/irc-servers-setup.h
new file mode 100644
index 00000000..f29f55c0
--- /dev/null
+++ b/src/irc/core/irc-servers-setup.h
@@ -0,0 +1,21 @@
+#ifndef __IRC_SERVERS_SETUP_H
+#define __IRC_SERVERS_SETUP_H
+
+#define IS_IRC_SERVER_SETUP(server) \
+ ((server) != NULL && \
+ module_find_id("IRC SERVER SETUP", (server)->chat_type) != -1)
+
+#define IRC_SERVER_SETUP(server) \
+ (IS_IRC_SERVER_SETUP(server) ? \
+ (IRC_SERVER_SETUP_REC *) (server) : NULL)
+
+typedef struct {
+#include "server-setup-rec.h"
+ int max_cmds_at_once; /* override the default if > 0 */
+ int cmd_queue_speed; /* override the default if > 0 */
+} IRC_SERVER_SETUP_REC;
+
+void irc_servers_setup_init(void);
+void irc_servers_setup_deinit(void);
+
+#endif