X-Git-Url: http://git.silcnet.org/gitweb/?a=blobdiff_plain;f=apps%2Fsilcd%2Fcommand.h;h=b9b7e2fef61d6c38cc6834cda95eb4d426020eea;hb=f9f6dfe319b9ee24fd24963003a230fa0ab11d47;hp=ba7fd2ce2d9383105a580b9de52890fac712f866;hpb=f8a032e363dfa0e26a07c88e224ca3f759acf4dd;p=silc.git diff --git a/apps/silcd/command.h b/apps/silcd/command.h index ba7fd2ce..b9b7e2fe 100644 --- a/apps/silcd/command.h +++ b/apps/silcd/command.h @@ -1,10 +1,11 @@ + /* servercommand.h Author: Pekka Riikonen - Copyright (C) 1997 - 2005 Pekka Riikonen + Copyright (C) 1997 - 2005, 2007 Pekka Riikonen This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -49,10 +50,10 @@ extern SilcServerCommand silc_command_list[]; /* Context sent as argument to all commands */ typedef struct { SilcServer server; - SilcSocketConnection sock; + SilcPacketStream sock; SilcCommandPayload payload; SilcArgumentPayload args; - SilcPacketContext *packet; + SilcPacket packet; int pending; /* Command is being re-processed when TRUE */ int users; /* Reference counter */ } *SilcServerCommandContext; @@ -99,18 +100,18 @@ do { \ /* Prototypes */ void silc_server_command_process(SilcServer server, - SilcSocketConnection sock, - SilcPacketContext *packet); + SilcPacketStream sock, + SilcPacket packet); SilcServerCommandContext silc_server_command_alloc(); void silc_server_command_free(SilcServerCommandContext ctx); SilcServerCommandContext silc_server_command_dup(SilcServerCommandContext ctx); -bool silc_server_command_pending(SilcServer server, +SilcBool silc_server_command_pending(SilcServer server, SilcCommand reply_cmd, SilcUInt16 ident, SilcCommandCb callback, void *context); -bool silc_server_command_pending_timed(SilcServer server, +SilcBool silc_server_command_pending_timed(SilcServer server, SilcCommand reply_cmd, SilcUInt16 ident, SilcCommandCb callback,