updates.
[silc.git] / lib / silcclient / idlist.h
1 /*
2
3   idlist.h 
4
5   Author: Pekka Riikonen <priikone@silcnet.org>
6
7   Copyright (C) 2001 - 2002 Pekka Riikonen
8
9   This program is free software; you can redistribute it and/or modify
10   it under the terms of the GNU General Public License as published by
11   the Free Software Foundation; version 2 of the License.
12
13   This program is distributed in the hope that it will be useful,
14   but WITHOUT ANY WARRANTY; without even the implied warranty of
15   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16   GNU General Public License for more details.
17
18 */
19
20 #ifndef IDLIST_H
21 #define IDLIST_H
22
23 /* Prototypes. These are used only by the library. Application should not
24    call these directly. */
25
26 SilcClientEntry
27 silc_client_add_client(SilcClient client, SilcClientConnection conn,
28                        char *nickname, char *username, 
29                        char *userinfo, SilcClientID *id, SilcUInt32 mode);
30 void silc_client_update_client(SilcClient client,
31                                SilcClientConnection conn,
32                                SilcClientEntry client_entry,
33                                const char *nickname,
34                                const char *username,
35                                const char *userinfo,
36                                SilcUInt32 mode);
37 void silc_client_del_client_entry(SilcClient client, 
38                                   SilcClientConnection conn,
39                                   SilcClientEntry client_entry);
40 SilcClientEntry silc_idlist_get_client(SilcClient client,
41                                        SilcClientConnection conn,
42                                        const char *nickname,
43                                        const char *format,
44                                        SilcBool query);
45 SilcChannelEntry silc_client_add_channel(SilcClient client,
46                                          SilcClientConnection conn,
47                                          const char *channel_name,
48                                          SilcUInt32 mode, 
49                                          SilcChannelID *channel_id);
50 SilcServerEntry silc_client_add_server(SilcClient client,
51                                        SilcClientConnection conn,
52                                        const char *server_name,
53                                        const char *server_info,
54                                        SilcServerID *server_id);
55 void silc_client_update_server(SilcClient client,
56                                SilcClientConnection conn,
57                                SilcServerEntry server_entry,
58                                const char *server_name,
59                                const char *server_info);
60 SilcBool silc_client_replace_channel_id(SilcClient client,
61                                     SilcClientConnection conn,
62                                     SilcChannelEntry channel,
63                                     SilcChannelID *new_id);
64 void silc_client_nickname_format(SilcClient client, 
65                                  SilcClientConnection conn,
66                                  SilcClientEntry client_entry);
67
68 #endif