4 Copyright (C) 2000 Timo Sirainen
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.
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.
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
25 #include "silc-queries.h"
27 QUERY_REC *silc_query_create(SILC_SERVER_REC *server,
28 const char *nick, int automatic)
32 g_return_val_if_fail(server == NULL || IS_SILC_SERVER(server), NULL);
33 g_return_val_if_fail(nick != NULL, NULL);
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);
43 void silc_queries_init(void)
47 void silc_queries_deinit(void)