X-Git-Url: http://git.silcnet.org/gitweb/?a=blobdiff_plain;f=lib%2Fsilcclient%2Fcommand_reply.h;h=f950447d35f8944fd3c28eeff6e71e47e339c300;hb=31b9c6e9ceffe13a84659d337e35f7a5960ac6d9;hp=782b0aa244c2f106087641f8deed76ac454b979b;hpb=2d0cb701c5d5b26c424fb067a71201eafa042b34;p=silc.git diff --git a/lib/silcclient/command_reply.h b/lib/silcclient/command_reply.h index 782b0aa2..f950447d 100644 --- a/lib/silcclient/command_reply.h +++ b/lib/silcclient/command_reply.h @@ -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; };