Created SILC Client Libary by moving stuff from silc/ directory.
[silc.git] / lib / silcclient / idlist.h
similarity index 82%
rename from apps/silc/idlist.h
rename to lib/silcclient/idlist.h
index 9c769e9839578215407f626e2222903e590dcf30..8a7b82815fc8528284bd0beda6e9bd8e582f92bc 100644 (file)
@@ -27,6 +27,8 @@
    they are used. */
 typedef struct SilcClientEntryStruct {
   char *nickname;
+  char *server;
+  unsigned int num;
   SilcClientID *id;
 
   /* Keys, these are defined if private message key has been defined 
@@ -44,6 +46,7 @@ typedef SilcClientEntryObject *SilcClientEntry;
 typedef struct SilcChannelEntryStruct {
   char *channel_name;
   SilcChannelID *id;
+  unsigned int mode;
   int on_channel;
 
   /* Channel keys */
@@ -55,4 +58,15 @@ typedef struct SilcChannelEntryStruct {
 
 typedef SilcChannelEntryObject *SilcChannelEntry;
 
+/* Prototypes */
+
+SilcClientEntry silc_idlist_get_client(SilcClient client,
+                                      SilcClientConnection conn,
+                                      char *nickname,
+                                      char *server,
+                                      unsigned int num);
+SilcChannelEntry silc_idlist_get_channel(SilcClient client,
+                                        SilcClientConnection conn,
+                                        char *channel);
+
 #endif