about summary refs log tree commit diff stats
path: root/src/muc.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/muc.h')
-rw-r--r--src/muc.h16
1 files changed, 14 insertions, 2 deletions
diff --git a/src/muc.h b/src/muc.h
index 01f8b44b..ad96f3d9 100644
--- a/src/muc.h
+++ b/src/muc.h
@@ -1,7 +1,7 @@
 /*
  * muc.h
  *
- * Copyright (C) 2012 - 2014 James Booth <boothj5@gmail.com>
+ * Copyright (C) 2012 - 2015 James Booth <boothj5@gmail.com>
  *
  * This file is part of Profanity.
  *
@@ -56,8 +56,15 @@ typedef enum {
     MUC_AFFILIATION_OWNER
 } muc_affiliation_t;
 
+typedef enum {
+    MUC_MEMBER_TYPE_UNKNOWN,
+    MUC_MEMBER_TYPE_PUBLIC,
+    MUC_MEMBER_TYPE_MEMBERS_ONLY
+} muc_member_type_t;
+
 typedef struct _muc_occupant_t {
     char *nick;
+    gchar *nick_collate_key;
     char *jid;
     muc_role_t role;
     muc_affiliation_t affiliation;
@@ -76,6 +83,8 @@ gboolean muc_autojoin(const char * const room);
 
 GList* muc_rooms(void);
 
+void muc_set_features(const char * const room, GSList *features);
+
 char* muc_nick(const char * const room);
 char* muc_password(const char * const room);
 
@@ -108,7 +117,7 @@ GSList * muc_occupants_by_affiliation(const char * const room, muc_affiliation_t
 void muc_occupant_nick_change_start(const char * const room, const char * const new_nick, const char * const old_nick);
 char* muc_roster_nick_change_complete(const char * const room, const char * const nick);
 
-void muc_invites_add(const char * const room);
+void muc_invites_add(const char * const room, const char * const password);
 void muc_invites_remove(const char * const room);
 gint muc_invites_count(void);
 GSList* muc_invites(void);
@@ -116,6 +125,7 @@ gboolean muc_invites_contain(const char * const room);
 void muc_invites_reset_ac(void);
 char* muc_invites_find(const char * const search_str);
 void muc_invites_clear(void);
+char* muc_invite_password(const char * const room);
 
 void muc_set_subject(const char * const room, const char * const subject);
 char* muc_subject(const char * const room);
@@ -134,4 +144,6 @@ void muc_set_affiliation(const char * const room, const char * const affiliation
 char *muc_role_str(const char * const room);
 char *muc_affiliation_str(const char * const room);
 
+muc_member_type_t muc_member_type(const char * const room);
+
 #endif