X-Git-Url: http://git.silcnet.org/gitweb/?a=blobdiff_plain;f=lib%2Fsilcclient%2Fcommand_reply.c;h=37384977c1e04cf8245669a25f5630a38baff8ba;hb=40f8443d8d3a6577336ee66d18e04d9ac4d956bb;hp=3c041113b70157cc139bea90bbf6ef96dd56e9ca;hpb=c257b555225193e54d85daf541d29578b3c93882;p=silc.git diff --git a/lib/silcclient/command_reply.c b/lib/silcclient/command_reply.c index 3c041113..37384977 100644 --- a/lib/silcclient/command_reply.c +++ b/lib/silcclient/command_reply.c @@ -32,7 +32,7 @@ * received but ID entry does not exist, NULL is sent. */ -#include "silcincludes.h" +#include "silc.h" #include "silcclient.h" #include "client_internal.h" @@ -163,7 +163,7 @@ void silc_client_command_reply_free(SilcClientCommandReplyContext cmd) void silc_client_command_reply_whois_save(SilcClientCommandReplyContext cmd, SilcStatus status, - bool notify) + SilcBool notify) { SilcClientConnection conn = (SilcClientConnection)cmd->sock->user_data; SilcClientID *client_id; @@ -174,7 +174,7 @@ silc_client_command_reply_whois_save(SilcClientCommandReplyContext cmd, char *realname = NULL; SilcUInt32 idle = 0, mode = 0; SilcBufferStruct channels, ch_user_modes; - bool has_channels = FALSE, has_user_modes = FALSE; + SilcBool has_channels = FALSE, has_user_modes = FALSE; unsigned char *fingerprint; SilcUInt32 fingerprint_len; @@ -371,7 +371,7 @@ SILC_CLIENT_CMD_REPLY_FUNC(whowas) static void silc_client_command_reply_identify_save(SilcClientCommandReplyContext cmd, SilcStatus status, - bool notify) + SilcBool notify) { SilcClientConnection conn = (SilcClientConnection)cmd->sock->user_data; SilcClient client = cmd->client; @@ -1737,8 +1737,8 @@ static void silc_client_command_reply_users_cb(SilcClient client, static int silc_client_command_reply_users_save(SilcClientCommandReplyContext cmd, SilcStatus status, - bool notify, - bool resolve, + SilcBool notify, + SilcBool resolve, SilcGetChannelCallback get_channel, SilcCommandCb get_clients) { @@ -1753,7 +1753,7 @@ silc_client_command_reply_users_save(SilcClientCommandReplyContext cmd, int i; unsigned char **res_argv = NULL; SilcUInt32 *res_argv_lens = NULL, *res_argv_types = NULL, res_argc = 0; - bool wait_res = FALSE; + SilcBool wait_res = FALSE; SILC_LOG_DEBUG(("Start")); @@ -2046,6 +2046,32 @@ SILC_CLIENT_CMD_REPLY_FUNC(getkey) silc_client_command_reply_free(cmd); } +/* Reply to SERVICE command. */ +/* XXX incomplete */ + +SILC_CLIENT_CMD_REPLY_FUNC(service) +{ + SilcClientCommandReplyContext cmd = (SilcClientCommandReplyContext)context; + SilcUInt32 tmp_len; + unsigned char *service_list, *name; + + COMMAND_CHECK_STATUS; + + /* Get service list */ + service_list = silc_argument_get_arg_type(cmd->args, 2, &tmp_len); + + /* Get requested service name */ + name = silc_argument_get_arg_type(cmd->args, 3, &tmp_len); + + /* Notify application */ + COMMAND_REPLY((SILC_ARGS, service_list, name)); + + out: + SILC_CLIENT_PENDING_EXEC(cmd, SILC_COMMAND_SERVICE); + err: + silc_client_command_reply_free(cmd); +} + SILC_CLIENT_CMD_REPLY_FUNC(quit) { silc_client_command_reply_free(context);