updates.
[silc.git] / apps / silcd / command_reply.h
index 62a696e81b5ec341d1b62ae15659f033fa292147..213ed97932efdaaa684d0de3de033eb790203d56 100644 (file)
@@ -21,6 +21,8 @@
 #ifndef COMMAND_REPLY_H
 #define COMMAND_REPLY_H
 
+#include "command.h"
+
 /* Structure holding one command reply and pointer to its function. */
 typedef struct {
   SilcCommandCb cb;
@@ -38,9 +40,10 @@ typedef struct {
   SilcArgumentPayload args;
 
   /* If defined this executes the pending command. */
-  void *context;
+  SilcServerPendingDestructor destructor;
   SilcCommandCb callback;
-  unsigned short ident;
+  void *context;
+  uint16 ident;
 } *SilcServerCommandReplyContext;
 
 /* Macros */
@@ -54,12 +57,17 @@ typedef struct {
 void silc_server_command_reply_##func(void *context)
 
 /* Prototypes */
+void silc_server_command_reply_free(SilcServerCommandReplyContext cmd);
 void silc_server_command_reply_process(SilcServer server,
                                       SilcSocketConnection sock,
                                       SilcBuffer buffer);
-SILC_SERVER_CMD_REPLY_FUNC(join);
 SILC_SERVER_CMD_REPLY_FUNC(whois);
+SILC_SERVER_CMD_REPLY_FUNC(whowas);
 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(users);
+SILC_SERVER_CMD_REPLY_FUNC(getkey);
 
 #endif