X-Git-Url: http://git.silcnet.org/gitweb/?a=blobdiff_plain;f=apps%2Fsilcd%2Fcommand.h;h=9cd04d79171152ca71cd5b48637173f51a0dc41a;hb=f88b3f268a6f1e8f4adb1c2bd742a6ee41612241;hp=2e3273d6142c9bc029539f3ccd0f0e94689241c6;hpb=4a0081751a282b29d525b5f9a3312628aed24a2f;p=silc.git diff --git a/apps/silcd/command.h b/apps/silcd/command.h index 2e3273d6..9cd04d79 100644 --- a/apps/silcd/command.h +++ b/apps/silcd/command.h @@ -61,12 +61,12 @@ typedef struct { /* Structure holding pending commands. If command is pending it will be executed after command reply has been received and executed. */ typedef struct SilcServerCommandPendingStruct { - SilcServer server; SilcCommand reply_cmd; SilcUInt16 ident; unsigned int reply_check : 8; SilcCommandCb callback; void *context; + SilcTask timeout; struct SilcServerCommandPendingStruct *next; } SilcServerCommandPending; @@ -111,12 +111,17 @@ bool silc_server_command_pending(SilcServer server, SilcUInt16 ident, SilcCommandCb callback, void *context); +bool silc_server_command_pending_timed(SilcServer server, + SilcCommand reply_cmd, + SilcUInt16 ident, + SilcCommandCb callback, + void *context, + SilcUInt16 timeout); void silc_server_command_pending_del(SilcServer server, SilcCommand reply_cmd, SilcUInt16 ident); SilcServerCommandPendingCallbacks silc_server_command_pending_check(SilcServer server, - SilcServerCommandReplyContext ctx, SilcCommand command, SilcUInt16 ident, SilcUInt32 *callbacks_count);