X-Git-Url: http://git.silcnet.org/gitweb/?p=silc.git;a=blobdiff_plain;f=lib%2Fsilcclient%2Fcommand.h;fp=apps%2Fsilc%2Fcommand.h;h=edb714505f12fec5e244134fa14487939455a3c7;hp=19db809b936484e47199e6a98002ca3dbce81cfb;hb=318d79b391bf6288e3e28c840217a7097f3d0392;hpb=0f9738ce962b8498bbed0a75d5fb6fa127e3577f diff --git a/apps/silc/command.h b/lib/silcclient/command.h similarity index 95% rename from apps/silc/command.h rename to lib/silcclient/command.h index 19db809b..edb71450 100644 --- a/apps/silc/command.h +++ b/lib/silcclient/command.h @@ -66,7 +66,8 @@ typedef void (*SilcClientCommandCallback)(void *context); /* Context sent as argument to all commands */ typedef struct { SilcClient client; - SilcSocketConnection sock; + SilcClientConnection conn; + SilcClientCommand *command; unsigned int argc; unsigned char **argv; unsigned int *argv_lens; @@ -126,6 +127,8 @@ do { \ } while(0) /* Prototypes */ +void silc_client_command_free(SilcClientCommandContext cmd); +SilcClientCommand *silc_client_command_find(const char *name); void silc_client_command_pending(SilcCommand reply_cmd, SilcClientCommandCallback callback, void *context); @@ -134,7 +137,6 @@ SILC_CLIENT_CMD_FUNC(whois); SILC_CLIENT_CMD_FUNC(whowas); SILC_CLIENT_CMD_FUNC(identify); SILC_CLIENT_CMD_FUNC(nick); -SILC_CLIENT_CMD_FUNC(server); SILC_CLIENT_CMD_FUNC(list); SILC_CLIENT_CMD_FUNC(topic); SILC_CLIENT_CMD_FUNC(invite); @@ -155,10 +157,5 @@ SILC_CLIENT_CMD_FUNC(die); SILC_CLIENT_CMD_FUNC(silcoper); SILC_CLIENT_CMD_FUNC(leave); SILC_CLIENT_CMD_FUNC(names); -SILC_CLIENT_CMD_FUNC(help); -SILC_CLIENT_CMD_FUNC(clear); -SILC_CLIENT_CMD_FUNC(version); -SILC_CLIENT_CMD_FUNC(msg); -SILC_CLIENT_CMD_FUNC(away); #endif