mirror of
https://github.com/irssi/irssi.git
synced 2024-11-03 04:27:19 -05:00
28a7908e73
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@640 dbcabf3a-b0e7-0310-adc4-f8d773084564
25 lines
580 B
C
25 lines
580 B
C
#ifndef __IRC_QUERIES_H
|
|
#define __IRC_QUERIES_H
|
|
|
|
#include "chat-protocols.h"
|
|
#include "queries.h"
|
|
#include "irc-servers.h"
|
|
|
|
/* Returns IRC_QUERY_REC if it's IRC query, NULL if it isn't. */
|
|
#define IRC_QUERY(query) \
|
|
PROTO_CHECK_CAST(QUERY(query), QUERY_REC, chat_type, "IRC")
|
|
|
|
#define IS_IRC_QUERY(query) \
|
|
(IRC_QUERY(query) ? TRUE : FALSE)
|
|
|
|
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
|