X-Git-Url: http://git.silcnet.org/gitweb/?p=silc.git;a=blobdiff_plain;f=lib%2Fsilcclient%2Fidlist.h;fp=apps%2Fsilc%2Fidlist.h;h=8a7b82815fc8528284bd0beda6e9bd8e582f92bc;hp=9c769e9839578215407f626e2222903e590dcf30;hb=318d79b391bf6288e3e28c840217a7097f3d0392;hpb=0f9738ce962b8498bbed0a75d5fb6fa127e3577f diff --git a/apps/silc/idlist.h b/lib/silcclient/idlist.h similarity index 82% rename from apps/silc/idlist.h rename to lib/silcclient/idlist.h index 9c769e98..8a7b8281 100644 --- a/apps/silc/idlist.h +++ b/lib/silcclient/idlist.h @@ -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