1 #ifndef __SILC_QUERIES_H
2 #define __SILC_QUERIES_H
4 #include "chat-protocols.h"
6 #include "silc-servers.h"
8 /* Returns SILC_QUERY_REC if it's SILC query, NULL if it isn't. */
9 #define SILC_QUERY(query) \
10 PROTO_CHECK_CAST(QUERY(query), QUERY_REC, chat_type, "SILC")
12 #define IS_SILC_QUERY(query) \
13 (SILC_QUERY(query) ? TRUE : FALSE)
15 void silc_queries_init(void);
16 void silc_queries_deinit(void);
18 #define silc_query_find(server, name) \
19 query_find(SERVER(server), name)
21 QUERY_REC *silc_query_create(SILC_SERVER_REC *server,
22 const char *nick, int automatic);