Added SILC Thread Queue API
[crypto.git] / apps / irssi / src / silc / core / silc-channels.h
index de6db8ba93735c92c86c7fcab4f9bdb502fc65be..60e12dc5fb0d8b1bb30365c3da1a95350cb6573a 100644 (file)
@@ -8,19 +8,19 @@
 /* Returns SILC_CHANNEL_REC if it's SILC channel, NULL if it isn't. */
 #define SILC_CHANNEL(channel) \
        PROTO_CHECK_CAST(CHANNEL(channel), SILC_CHANNEL_REC, chat_type, "SILC")
-
 #define IS_SILC_CHANNEL(channel) \
        (SILC_CHANNEL(channel) ? TRUE : FALSE)
+#define silc_channel_find(server, name) \
+       SILC_CHANNEL(channel_find(SERVER(server), name))
 
 #define STRUCT_SERVER_REC SILC_SERVER_REC
 typedef struct {
 #include "channel-rec.h"
-
-       GSList *banlist; /* list of bans */
-       GSList *ebanlist; /* list of ban exceptions */
-       GSList *invitelist; /* invite list */
-
-        SilcChannelEntry entry;
+  GSList *banlist;             /* list of bans */
+  GSList *ebanlist;            /* list of ban exceptions */
+  GSList *invitelist;          /* invite list */
+  SilcUInt32 cur_key;
+  SilcChannelEntry entry;
 } SILC_CHANNEL_REC;
 
 void silc_channels_init(void);
@@ -28,12 +28,11 @@ void silc_channels_deinit(void);
 
 /* Create new SILC channel record */
 SILC_CHANNEL_REC *silc_channel_create(SILC_SERVER_REC *server,
-                                     const char *name, int automatic);
-
-#define silc_channel_find(server, name) \
-       SILC_CHANNEL(channel_find(SERVER(server), name))
-
+                                     const char *name,
+                                     const char *visible_name,
+                                     int automatic);
 SILC_CHANNEL_REC *silc_channel_find_entry(SILC_SERVER_REC *server,
                                          SilcChannelEntry entry);
 
+bool silc_set_away(const char *reason, SILC_SERVER_REC *server);
 #endif