diff options
author | Timo Sirainen <cras@irssi.org> | 2000-08-26 15:39:44 +0000 |
---|---|---|
committer | cras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2000-08-26 15:39:44 +0000 |
commit | e395e87dedd9aa85f05e5c74330a76f1ef700371 (patch) | |
tree | 1184487b13038499f1771e4c553222f85b8524d2 /src/irc/core/irc-queries.h | |
parent | 3d124da13b8da5c0b535abfe6265fc471d9d2ebd (diff) | |
download | irssi-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-queries.h')
-rw-r--r-- | src/irc/core/irc-queries.h | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/src/irc/core/irc-queries.h b/src/irc/core/irc-queries.h new file mode 100644 index 00000000..5c2725ac --- /dev/null +++ b/src/irc/core/irc-queries.h @@ -0,0 +1,25 @@ +#ifndef __IRC_QUERIES_H +#define __IRC_QUERIES_H + +#include "queries.h" +#include "irc-servers.h" + +#define IS_IRC_QUERY(query) \ + ((query) != NULL && \ + module_find_id("IRC QUERY", \ + ((QUERY_REC *) (query))->chat_type) != -1) + +/* Returns IRC_QUERY_REC if it's IRC query, NULL if it isn't. */ +#define IRC_QUERY(query) \ + (IS_IRC_QUERY(query) ? (QUERY_REC *) (query) : NULL) + +void irc_queries_init(void); +void irc_queries_deinit(void); + +#define irc_query_find(server, name) \ + query_find(SERVER(server), name) + +QUERY_REC *irc_query_create(IRC_SERVER_REC *server, + const char *nick, int automatic); + +#endif |