updates.
[silc.git] / lib / silcclient / command_reply.h
index 2b7acf7f346ee42578a4d2cceec007f2a1899350..c681ee4b80ea69a8517019276ba76d13c021d8a4 100644 (file)
@@ -40,7 +40,8 @@ typedef struct {
 
   /* If defined this executes the pending command. */
   void *context;
-  SilcClientCommandCallback callback;
+  SilcCommandCb callback;
+  unsigned short ident;
 } *SilcClientCommandReplyContext;
 
 /* Macros */
@@ -53,23 +54,6 @@ typedef struct {
 #define SILC_CLIENT_CMD_REPLY_FUNC(func) \
 void silc_client_command_reply_##func(void *context)
 
-/* Macro used to execute command replies */
-#define SILC_CLIENT_COMMAND_REPLY_EXEC(ctx)            \
-do {                                                   \
-  SilcClientCommandReply *cmd;                         \
-                                                       \
-  for (cmd = silc_command_reply_list; cmd->cb; cmd++)  \
-    if (cmd->cmd == silc_command_get(ctx->payload)) {  \
-      cmd->cb(ctx);                                    \
-      break;                                           \
-    }                                                  \
-                                                       \
-  if (cmd == NULL) {                                   \
-    silc_free(ctx);                                    \
-    return;                                            \
-  }                                                    \
-} while(0)
-
 /* Prototypes */
 void silc_client_command_reply_process(SilcClient client,
                                       SilcSocketConnection sock,