updates.
[silc.git] / lib / silcclient / command_reply.h
index 782b0aa244c2f106087641f8deed76ac454b979b..f950447d35f8944fd3c28eeff6e71e47e339c300 100644 (file)
@@ -26,6 +26,12 @@ typedef struct {
   SilcCommand cmd;
 } SilcClientCommandReply;
 
+/* Context holding pending command callbacks. */
+typedef struct {
+  SilcCommandCb callback;
+  void *context;
+} *SilcClientCommandPendingCallbacks;
+
 /* Context sent as argument to all command reply functions */
 struct SilcClientCommandReplyContextStruct {
   SilcClient client;
@@ -37,8 +43,8 @@ struct SilcClientCommandReplyContextStruct {
   SilcPacketContext *packet;
 
   /* If defined this executes the pending command. */
-  SilcCommandCb callback;
-  void *context;
+  SilcClientCommandPendingCallbacks callbacks;
+  SilcUInt32 callbacks_count;
   SilcUInt16 ident;
 };