Added application specific contexts to client, channel and server
authorPekka Riikonen <priikone@silcnet.org>
Sun, 15 Feb 2004 20:29:37 +0000 (20:29 +0000)
committerPekka Riikonen <priikone@silcnet.org>
Sun, 15 Feb 2004 20:29:37 +0000 (20:29 +0000)
entires.

lib/silcclient/silcclient.h

index f94ffdce72cff5d2489e4bd329ceea9241ad39c5..076cbdc664ab91515a726efe317ae4538a614485 100644 (file)
@@ -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;
 };
 /***/