X-Git-Url: http://git.silcnet.org/gitweb/?a=blobdiff_plain;f=lib%2Fsilcclient%2Ftests%2Ftest_silcclient.c;h=f93a36f135ad93c79f5c6a0107c5e7c42daf798a;hb=dba72cd444469151d0def91ec67361c68ee78022;hp=68d5f90cb6e5feb2778a2825dd3cd4d7425b912b;hpb=6caeb1c499fe1ab80aaa24b1a35c89b91c57b7cf;p=silc.git diff --git a/lib/silcclient/tests/test_silcclient.c b/lib/silcclient/tests/test_silcclient.c index 68d5f90c..f93a36f1 100644 --- a/lib/silcclient/tests/test_silcclient.c +++ b/lib/silcclient/tests/test_silcclient.c @@ -6,25 +6,11 @@ SilcBool success; SilcClientOperations ops; -/* XXX */ -SilcChannelUser silc_client_on_channel(SilcChannelEntry channel, - SilcClientEntry client_entry) -{ - return NULL; -} - SilcBuffer silc_client_attributes_request(SilcAttribute attribute, ...) { return NULL; } -SilcBool silc_client_del_channel_private_keys(SilcClient client, - SilcClientConnection conn, - SilcChannelEntry channel) -{ - return FALSE; -} - /******* MyBot code **********************************************************/ @@ -40,12 +26,13 @@ typedef struct { static void silc_connected(SilcClient client, SilcClientConnection conn, - SilcClientConnectionStatus status, void *context) + SilcClientConnectionStatus status, const char *message, + void *context) { MyBot mybot = client->application; if (status == SILC_CLIENT_CONN_DISCONNECTED) { - SILC_LOG_DEBUG(("Disconnected")); + SILC_LOG_DEBUG(("Disconnected %s", message ? message : "")); silc_client_stop(client); return; } @@ -189,7 +176,7 @@ silc_channel_message(SilcClient client, SilcClientConnection conn, /* 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). */