e82ece6b41eb5fd5cb64796c2c660d28e83b07d7
[silc.git] / lib / silcclient / client_entry.h
1 /*
2
3   client_entry.h
4
5   Author: Pekka Riikonen <priikone@silcnet.org>
6
7   Copyright (C) 2006 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 CLIENT_ENTRY_H
21 #define CLIENT_ENTRY_H
22
23 SilcClientEntry silc_client_add_client(SilcClient client,
24                                        SilcClientConnection conn,
25                                        char *nickname, char *username,
26                                        char *userinfo, SilcClientID *id,
27                                        SilcUInt32 mode);
28 void silc_client_update_client(SilcClient client,
29                                SilcClientConnection conn,
30                                SilcClientEntry client_entry,
31                                const char *nickname,
32                                const char *username,
33                                const char *userinfo,
34                                SilcUInt32 mode);
35 void silc_client_del_client_entry(SilcClient client,
36                                   SilcClientConnection conn,
37                                   SilcClientEntry client_entry);
38 SilcClientEntry silc_idlist_get_client(SilcClient client,
39                                        SilcClientConnection conn,
40                                        const char *nickname,
41                                        const char *format,
42                                        bool query);
43 SilcChannelEntry silc_client_add_channel(SilcClient client,
44                                          SilcClientConnection conn,
45                                          const char *channel_name,
46                                          SilcUInt32 mode,
47                                          SilcChannelID *channel_id);
48 SilcServerEntry silc_client_add_server(SilcClient client,
49                                        SilcClientConnection conn,
50                                        const char *server_name,
51                                        const char *server_info,
52                                        SilcServerID *server_id);
53 void silc_client_update_server(SilcClient client,
54                                SilcClientConnection conn,
55                                SilcServerEntry server_entry,
56                                const char *server_name,
57                                const char *server_info);
58 bool silc_client_replace_channel_id(SilcClient client,
59                                     SilcClientConnection conn,
60                                     SilcChannelEntry channel,
61                                     SilcChannelID *new_id);
62 void silc_client_nickname_format(SilcClient client,
63                                  SilcClientConnection conn,
64                                  SilcClientEntry client_entry);
65
66 #endif /* CLIENT_ENTRY_H */