silcd: Fixed IDENTIFY command reply handling for channels
[silc.git] / apps / silcd / command_reply.h
index 371cce46d4ecb572012d01c6612225aae98ef227..bee08124d893cdb14cbbed7491e057094a11654e 100644 (file)
@@ -41,7 +41,7 @@ typedef struct {
 /* Context sent as argument to all command reply functions */
 typedef struct {
   SilcServer server;
-  SilcSocketConnection sock;
+  SilcPacketStream sock;
   SilcCommandPayload payload;
   SilcArgumentPayload args;
 
@@ -49,6 +49,7 @@ typedef struct {
   SilcServerCommandPendingCallbacks callbacks;
   SilcUInt32 callbacks_count;
   SilcUInt16 ident;
+  unsigned int pending : 1;
 } *SilcServerCommandReplyContext;
 
 /* Macros */
@@ -64,7 +65,7 @@ void silc_server_command_reply_##func(void *context, void *context2)
 /* Prototypes */
 void silc_server_command_reply_free(SilcServerCommandReplyContext cmd);
 void silc_server_command_reply_process(SilcServer server,
-                                      SilcSocketConnection sock,
+                                      SilcPacketStream sock,
                                       SilcBuffer buffer);
 SILC_SERVER_CMD_REPLY_FUNC(whois);
 SILC_SERVER_CMD_REPLY_FUNC(whowas);