At the end of this file SilcClientOperation structure is defined, and
it is the one the you will give as an argument to the silc_client_alloc
- function. See also lib/silcclient/README file, and silcclient.h. */
+ function. See also lib/silcclient/README file, and silcclient.h.
+
+ You may freely use this file in your application. */
/* Message sent to the application by library. `conn' associates the
static void
silc_channel_message(SilcClient client, SilcClientConnection conn,
SilcClientEntry sender, SilcChannelEntry channel,
+ SilcMessagePayload payload, SilcChannelPrivateKey key,
SilcMessageFlags flags, const unsigned char *message,
SilcUInt32 message_len)
{
/* Private message to the client. The `sender' is the sender of the
- message. The message is `message'and maybe NULL. The `flags'
+ message. The message is `message'and maybe NULL. The `flags'
indicates message flags and it is used to determine how the message
can be interpreted (like it may tell the message is multimedia
message). */
static void
silc_private_message(SilcClient client, SilcClientConnection conn,
- SilcClientEntry sender, SilcMessageFlags flags,
- const unsigned char *message,
+ SilcClientEntry sender, SilcMessagePayload payload,
+ SilcMessageFlags flags, const unsigned char *message,
SilcUInt32 message_len)
{
static void
silc_command(SilcClient client, SilcClientConnection conn,
- SilcClientCommandContext cmd_context, bool success,
+ SilcClientCommandContext cmd_context, SilcBool success,
SilcCommand command, SilcStatus status)
{
static void
silc_command_reply(SilcClient client, SilcClientConnection conn,
- SilcCommandPayload cmd_payload, bool success,
+ SilcCommandPayload cmd_payload, SilcBool success,
SilcCommand command, SilcStatus status, ...)
{
silc_client_close_connection. */
static void
-silc_connect(SilcClient client, SilcClientConnection conn,
- SilcClientConnectionStatus status)
+silc_connected(SilcClient client, SilcClientConnection conn,
+ SilcClientConnectionStatus status)
{
}
received from server. */
static void
-silc_disconnect(SilcClient client, SilcClientConnection conn,
- SilcStatus status, const char *message)
+silc_disconnected(SilcClient client, SilcClientConnection conn,
+ SilcStatus status, const char *message)
{
}
silc_client_perform_key_agreement). If TRUE is returned also the
`completion' and `context' arguments must be set by the application. */
-static bool
+static SilcBool
silc_key_agreement(SilcClient client, SilcClientConnection conn,
SilcClientEntry client_entry, const char *hostname,
SilcUInt16 port, SilcKeyAgreementCallback *completion,
silc_notify,
silc_command,
silc_command_reply,
- silc_connect,
- silc_disconnect,
+ silc_connected,
+ silc_disconnected,
silc_get_auth_method,
silc_verify_public_key,
silc_ask_passphrase,