imported.
[silc.git] / apps / irssi / src / silc / core / silc-queries.c
1 /*
2  silc-queries.c : irssi
3
4     Copyright (C) 2000 Timo Sirainen
5
6     This program is free software; you can redistribute it and/or modify
7     it under the terms of the GNU General Public License as published by
8     the Free Software Foundation; either version 2 of the License, or
9     (at your option) any later version.
10
11     This program is distributed in the hope that it will be useful,
12     but WITHOUT ANY WARRANTY; without even the implied warranty of
13     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14     GNU General Public License for more details.
15
16     You should have received a copy of the GNU General Public License
17     along with this program; if not, write to the Free Software
18     Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
19 */
20
21 #include "module.h"
22 #include "signals.h"
23 #include "misc.h"
24
25 #include "silc-queries.h"
26
27 QUERY_REC *silc_query_create(SILC_SERVER_REC *server,
28                             const char *nick, int automatic)
29 {
30         QUERY_REC *rec;
31
32         g_return_val_if_fail(server == NULL || IS_SILC_SERVER(server), NULL);
33         g_return_val_if_fail(nick != NULL, NULL);
34
35         rec = g_new0(QUERY_REC, 1);
36         rec->chat_type = SILC_PROTOCOL;
37         rec->name = g_strdup(nick);
38         rec->server = (SERVER_REC *) server;
39         query_init(rec, automatic);
40         return rec;
41 }
42
43 void silc_queries_init(void)
44 {
45 }
46
47 void silc_queries_deinit(void)
48 {
49 }