Created SILC Client Libary by moving stuff from silc/ directory.
[silc.git] / apps / silc / client_ops.h
1 /*
2
3   client_ops.h
4
5   Author: Pekka Riikonen <priikone@poseidon.pspt.fi>
6
7   Copyright (C) 2000 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; either version 2 of the License, or
12   (at your option) any later version.
13   
14   This program is distributed in the hope that it will be useful,
15   but WITHOUT ANY WARRANTY; without even the implied warranty of
16   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17   GNU General Public License for more details.
18
19 */
20
21 #ifndef CLIENT_OPS_H
22 #define CLIENT_OPS_H
23
24 void silc_say(SilcClient client, SilcClientConnection conn, char *msg, ...);
25 void silc_channel_message(SilcClient client, SilcClientConnection conn,
26                           char *sender, char *channel_name, char *msg);
27 void silc_private_message(SilcClient client, SilcClientConnection conn,
28                           char *sender, char *msg);
29 void silc_command(SilcClient client, SilcClientConnection conn, 
30                   SilcClientCommandContext cmd_context, int success,
31                   SilcCommand command);
32 void silc_command_reply(SilcClient client, SilcClientConnection conn,
33                         SilcCommandPayload cmd_payload, int success,
34                         SilcCommand command, ...);
35 void silc_connect(SilcClient client, SilcClientConnection conn, int success);
36 void silc_disconnect(SilcClient client, SilcClientConnection conn);
37 unsigned char *silc_ask_passphrase(SilcClient client, 
38                                    SilcClientConnection conn);
39 int silc_verify_server_key(SilcClient client, SilcClientConnection conn, 
40                            unsigned char *pk, unsigned int pk_len,
41                            SilcSKEPKType pk_type);
42 int silc_get_auth_method(SilcClient client, SilcClientConnection conn,
43                          char *hostname, unsigned short port,
44                          SilcProtocolAuthMeth *auth_meth,
45                          unsigned char **auth_data,
46                          unsigned int *auth_data_len);
47
48 #endif