updates.
[silc.git] / apps / silcd / command_reply.h
index 75be5094ea0232dbf6c5c132821a6835ddb06c03..eb5b53d48553b81a5a6718387e3469aa0c9941bb 100644 (file)
@@ -32,6 +32,13 @@ typedef struct {
 /* All server command replys */
 extern SilcServerCommandReply silc_command_reply_list[];
 
+/* Context holding pending command callbacks. */
+typedef struct {
+  SilcServerPendingDestructor destructor;
+  SilcCommandCb callback;
+  void *context;
+} *SilcServerCommandPendingCallbacks;
+
 /* Context sent as argument to all command reply functions */
 typedef struct {
   SilcServer server;
@@ -40,9 +47,8 @@ typedef struct {
   SilcArgumentPayload args;
 
   /* If defined this executes the pending command. */
-  SilcServerPendingDestructor destructor;
-  SilcCommandCb callback;
-  void *context;
+  SilcServerCommandPendingCallbacks callbacks;
+  uint32 callbacks_count;
   uint16 ident;
 } *SilcServerCommandReplyContext;