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")
11 #define IS_SILC_QUERY(query) \
12 (SILC_QUERY(query) ? TRUE : FALSE)
13 #define silc_query_find(server, name) \
14 query_find(SERVER(server), name)
16 QUERY_REC *silc_query_create(const char *server_tag,
17 const char *nick, int automatic);
18 void silc_queries_init(void);
19 void silc_queries_deinit(void);