From d68f54fff3a25d6bc0f39de8756db0f38cb1dcbd Mon Sep 17 00:00:00 2001 From: Pekka Riikonen Date: Sun, 15 Feb 2004 20:29:37 +0000 Subject: [PATCH] Added application specific contexts to client, channel and server entires. --- lib/silcclient/silcclient.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/lib/silcclient/silcclient.h b/lib/silcclient/silcclient.h index f94ffdce..076cbdc6 100644 --- a/lib/silcclient/silcclient.h +++ b/lib/silcclient/silcclient.h @@ -229,6 +229,9 @@ struct SilcClientEntryStruct { SilcUInt16 resolve_cmd_ident; /* Command identifier when resolving */ bool generated; /* TRUE if library generated `key' */ bool valid; /* FALSE if this entry is not valid */ + + /* Application specific data. Application may set here whatever it wants. */ + void *context; }; /***/ @@ -273,6 +276,9 @@ struct SilcChannelEntryStruct { SilcDList old_hmacs; SilcUInt16 resolve_cmd_ident; /* Command identifier when resolving this entry */ + + /* Application specific data. Application may set here whatever it wants. */ + void *context; }; /***/ @@ -294,6 +300,9 @@ struct SilcChannelUserStruct { SilcClientEntry client; /* Client joined on channel */ SilcUInt32 mode; /* mode, ChannelUserModes */ SilcChannelEntry channel; /* The channel user has joined */ + + /* Application specific data. Application may set here whatever it wants. */ + void *context; }; /***/ @@ -318,6 +327,9 @@ struct SilcServerEntryStruct { SilcServerID *server_id; /* Server ID */ SilcUInt16 resolve_cmd_ident; /* Command identifier when resolving this entry */ + + /* Application specific data. Application may set here whatever it wants. */ + void *context; }; /***/ -- 2.24.0