projects
/
silc.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
updates
[silc.git]
/
lib
/
silcclient
/
command_reply.h
diff --git
a/lib/silcclient/command_reply.h
b/lib/silcclient/command_reply.h
index 8c3951a495f9af5d37e07eab0fc4732f09ca8022..6fd03ff9f025ca092252c93092ab5e37f3a3618e 100644
(file)
--- a/
lib/silcclient/command_reply.h
+++ b/
lib/silcclient/command_reply.h
@@
-1,16
+1,15
@@
/*
/*
- command_reply.h
+ command_reply.h
- Author: Pekka Riikonen <priikone@
poseidon.pspt.fi
>
+ Author: Pekka Riikonen <priikone@
silcnet.org
>
Copyright (C) 1997 - 2001 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
Copyright (C) 1997 - 2001 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
- the Free Software Foundation; either version 2 of the License, or
- (at your option) any later version.
-
+ the Free Software Foundation; version 2 of the License.
+
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
@@
-27,9
+26,6
@@
typedef struct {
SilcCommand cmd;
} SilcClientCommandReply;
SilcCommand cmd;
} SilcClientCommandReply;
-/* All client command replys */
-extern SilcClientCommandReply silc_command_reply_list[];
-
/* Context sent as argument to all command reply functions */
typedef struct {
SilcClient client;
/* Context sent as argument to all command reply functions */
typedef struct {
SilcClient client;
@@
-39,7
+35,6
@@
typedef struct {
SilcPacketContext *packet;
/* If defined this executes the pending command. */
SilcPacketContext *packet;
/* If defined this executes the pending command. */
- SilcClientPendingDestructor destructor;
SilcCommandCb callback;
void *context;
uint16 ident;
SilcCommandCb callback;
void *context;
uint16 ident;
@@
-47,13
+42,9
@@
typedef struct {
/* Macros */
/* Macros */
-/* Macro used for command declaration in command reply list structure */
-#define SILC_CLIENT_CMD_REPLY(func, cmd ) \
-{ silc_client_command_reply_##func, SILC_COMMAND_##cmd }
-
/* Macro used to declare command reply functions */
/* Macro used to declare command reply functions */
-#define SILC_CLIENT_CMD_REPLY_FUNC(func) \
-void silc_client_command_reply_##func(void *context)
+#define SILC_CLIENT_CMD_REPLY_FUNC(func)
\
+void silc_client_command_reply_##func(void *context
, void *context2
)
/* Status message structure. Messages are defined below. */
typedef struct {
/* Status message structure. Messages are defined below. */
typedef struct {
@@
-63,9
+54,10
@@
typedef struct {
/* Status messages returned by the server */
#define STAT(x) SILC_STATUS_ERR_##x
/* Status messages returned by the server */
#define STAT(x) SILC_STATUS_ERR_##x
-extern const SilcCommandStatusMessage silc_command_status_messages[];
+
DLLAPI
extern const SilcCommandStatusMessage silc_command_status_messages[];
/* Prototypes */
/* Prototypes */
+
void silc_client_command_reply_process(SilcClient client,
SilcSocketConnection sock,
SilcPacketContext *packet);
void silc_client_command_reply_process(SilcClient client,
SilcSocketConnection sock,
SilcPacketContext *packet);
@@
-99,5
+91,11
@@
SILC_CLIENT_CMD_REPLY_FUNC(silcoper);
SILC_CLIENT_CMD_REPLY_FUNC(leave);
SILC_CLIENT_CMD_REPLY_FUNC(users);
SILC_CLIENT_CMD_REPLY_FUNC(getkey);
SILC_CLIENT_CMD_REPLY_FUNC(leave);
SILC_CLIENT_CMD_REPLY_FUNC(users);
SILC_CLIENT_CMD_REPLY_FUNC(getkey);
+SILC_CLIENT_CMD_REPLY_FUNC(quit);
+
+/* Internal command reply functions */
+SILC_CLIENT_CMD_REPLY_FUNC(whois_i);
+SILC_CLIENT_CMD_REPLY_FUNC(identify_i);
+SILC_CLIENT_CMD_REPLY_FUNC(info_i);
#endif
#endif