summaryrefslogtreecommitdiff
path: root/src/irc/core/irc-queries.h
blob: e95602c1d7ac1170d6c99eb8650730943d1cc7b0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#ifndef __IRC_QUERIES_H
#define __IRC_QUERIES_H

#include "chat-protocols.h"
#include "queries.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(const char *server_tag,
			    const char *nick, int automatic);

#endif