X-Git-Url: http://git.silcnet.org/gitweb/?a=blobdiff_plain;f=lib%2Fsilcclient%2Fcommand.h;h=0b8949e15132da54cb230e7e20face8ce73f0354;hb=a818c5b5411bbc4436d1c5f011236985c96bb787;hp=3be53cc1f70d098ab2106e441a2c120f468ec516;hpb=09bae6acdf9a519c6d9b4e7535e7f7e56b6c24c1;p=silc.git diff --git a/lib/silcclient/command.h b/lib/silcclient/command.h index 3be53cc1..0b8949e1 100644 --- a/lib/silcclient/command.h +++ b/lib/silcclient/command.h @@ -35,8 +35,8 @@ struct SilcClientCommandStruct { SilcCommandCb command; /* Command function */ SilcCommandCb reply; /* Command reply callback */ char *name; /* Name of the command (optional) */ - uint8 max_args; /* Maximum arguments (optional) */ - uint16 ident; /* Identifier for command (optional) */ + SilcUInt8 max_args; /* Maximum arguments (optional) */ + SilcUInt16 ident; /* Identifier for command (optional) */ struct SilcClientCommandStruct *next; }; @@ -48,10 +48,10 @@ struct SilcClientCommandContextStruct { SilcClient client; SilcClientConnection conn; SilcClientCommand command; - uint32 argc; + SilcUInt32 argc; unsigned char **argv; - uint32 *argv_lens; - uint32 *argv_types; + SilcUInt32 *argv_lens; + SilcUInt32 *argv_types; int pending; /* Command is being re-processed when TRUE */ int users; /* Reference counter */ }; @@ -62,7 +62,7 @@ typedef struct SilcClientCommandPendingStruct { SilcCommand reply_cmd; SilcCommandCb callback; void *context; - uint16 ident; + SilcUInt16 ident; struct SilcClientCommandPendingStruct *next; } SilcClientCommandPending; @@ -100,22 +100,22 @@ bool silc_client_command_register(SilcClient client, const char *name, SilcCommandCb command_function, SilcCommandCb command_reply_function, - uint8 max_args, - uint16 ident); + SilcUInt8 max_args, + SilcUInt16 ident); bool silc_client_command_unregister(SilcClient client, SilcCommand command, SilcCommandCb command_function, SilcCommandCb command_reply_function, - uint16 ident); + SilcUInt16 ident); void silc_client_commands_register(SilcClient client); void silc_client_commands_unregister(SilcClient client); void silc_client_command_pending_del(SilcClientConnection conn, SilcCommand reply_cmd, - uint16 ident); + SilcUInt16 ident); int silc_client_command_pending_check(SilcClientConnection conn, SilcClientCommandReplyContext ctx, SilcCommand command, - uint16 ident); + SilcUInt16 ident); SILC_CLIENT_CMD_FUNC(whois); SILC_CLIENT_CMD_FUNC(whowas);