updates.
[silc.git] / apps / irssi / src / silc / core / client_ops.h
1 /*
2
3   client_ops.h
4
5   Author: Pekka Riikonen <priikone@poseidon.pspt.fi>
6
7   Copyright (C) 2001 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, 
25               SilcClientMessageType type, char *msg, ...);
26 void silc_say_error(char *msg, ...);
27 void silc_channel_message(SilcClient client, SilcClientConnection conn,
28                           SilcClientEntry sender, 
29                           SilcChannelEntry channel, 
30                           SilcMessageFlags flags, 
31                           const unsigned char *message,
32                           SilcUInt32 message_len);
33 void silc_private_message(SilcClient client, SilcClientConnection conn,
34                           SilcClientEntry sender, 
35                           SilcMessageFlags flags, 
36                           const unsigned char *message,
37                           SilcUInt32 message_len);
38 void silc_notify(SilcClient client, SilcClientConnection conn, 
39                  SilcNotifyType type, ...);
40 void silc_command(SilcClient client, SilcClientConnection conn, 
41                   SilcClientCommandContext cmd_context, int success,
42                   SilcCommand command);
43 void silc_command_reply(SilcClient client, SilcClientConnection conn,
44                         SilcCommandPayload cmd_payload, int success,
45                         SilcCommand command, SilcStatus status, ...);
46 void silc_connect(SilcClient client, SilcClientConnection conn,
47                   SilcClientConnectionStatus status);
48 void silc_disconnect(SilcClient client, SilcClientConnection conn);
49 void silc_ask_passphrase(SilcClient client, SilcClientConnection conn,
50                          SilcAskPassphrase completion, void *context);
51 void silc_verify_public_key(SilcClient client, SilcClientConnection conn,
52                             SilcSocketType conn_type, unsigned char *pk, 
53                             SilcUInt32 pk_len, SilcSKEPKType pk_type,
54                             SilcVerifyPublicKey completion, void *context);
55 void silc_get_auth_method(SilcClient client, SilcClientConnection conn,
56                           char *hostname, SilcUInt16 port,
57                           SilcGetAuthMeth completion, void *context);
58 void silc_failure(SilcClient client, SilcClientConnection conn, 
59                   SilcProtocol protocol, void *failure);
60 int silc_key_agreement(SilcClient client, SilcClientConnection conn,
61                        SilcClientEntry client_entry, const char *hostname,
62                        SilcUInt16 port, SilcKeyAgreementCallback *completion,
63                        void **context);
64 void silc_ftp(SilcClient client, SilcClientConnection conn,
65               SilcClientEntry client_entry, SilcUInt32 session_id,
66               const char *hostname, SilcUInt16 port);
67 void
68 silc_detach(SilcClient client, SilcClientConnection conn,
69             const unsigned char *detach_data, SilcUInt32 detach_data_len);
70
71 #endif