X-Git-Url: http://git.silcnet.org/gitweb/?p=silc.git;a=blobdiff_plain;f=apps%2Fsilcd%2Fcommand_reply.h;h=371cce46d4ecb572012d01c6612225aae98ef227;hp=75be5094ea0232dbf6c5c132821a6835ddb06c03;hb=413da0f8686910f5e627393157566ae729ca99c4;hpb=6617b351fc8655b8772cae80117faf5b35cc0378 diff --git a/apps/silcd/command_reply.h b/apps/silcd/command_reply.h index 75be5094..371cce46 100644 --- a/apps/silcd/command_reply.h +++ b/apps/silcd/command_reply.h @@ -2,15 +2,15 @@ command_reply.h - Author: Pekka Riikonen + Author: Pekka Riikonen - Copyright (C) 1997 - 2001 Pekka Riikonen + Copyright (C) 1997 - 2003 Pekka Riikonen This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. - + This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the @@ -32,6 +32,12 @@ typedef struct { /* All server command replys */ extern SilcServerCommandReply silc_command_reply_list[]; +/* Context holding pending command callbacks. */ +typedef struct { + SilcCommandCb callback; + void *context; +} *SilcServerCommandPendingCallbacks; + /* Context sent as argument to all command reply functions */ typedef struct { SilcServer server; @@ -40,10 +46,9 @@ typedef struct { SilcArgumentPayload args; /* If defined this executes the pending command. */ - SilcServerPendingDestructor destructor; - SilcCommandCb callback; - void *context; - uint16 ident; + SilcServerCommandPendingCallbacks callbacks; + SilcUInt32 callbacks_count; + SilcUInt16 ident; } *SilcServerCommandReplyContext; /* Macros */ @@ -67,7 +72,11 @@ SILC_SERVER_CMD_REPLY_FUNC(identify); SILC_SERVER_CMD_REPLY_FUNC(info); SILC_SERVER_CMD_REPLY_FUNC(motd); SILC_SERVER_CMD_REPLY_FUNC(join); +SILC_SERVER_CMD_REPLY_FUNC(stats); SILC_SERVER_CMD_REPLY_FUNC(users); SILC_SERVER_CMD_REPLY_FUNC(getkey); +SILC_SERVER_CMD_REPLY_FUNC(list); +SILC_SERVER_CMD_REPLY_FUNC(watch); +SILC_SERVER_CMD_REPLY_FUNC(ping); #endif