summaryrefslogtreecommitdiff
path: root/libpurple/roomlist.c
diff options
context:
space:
mode:
authorSadrul Habib Chowdhury <sadrul@pidgin.im>2008-01-06 18:52:15 +0000
committerSadrul Habib Chowdhury <sadrul@pidgin.im>2008-01-06 18:52:15 +0000
commit77ff312d9477a3d960634556a56df3141303ece2 (patch)
treee594ca47399ec358ff06c80876c98c2997d7b2d7 /libpurple/roomlist.c
parent0b12e273ff95479f42fc213d31d4debc78b64495 (diff)
downloadpidgin-77ff312d9477a3d960634556a56df3141303ece2.tar.gz
A list of accessor functions to the roomlist API.
Diffstat (limited to 'libpurple/roomlist.c')
-rw-r--r--libpurple/roomlist.c40
1 files changed, 40 insertions, 0 deletions
diff --git a/libpurple/roomlist.c b/libpurple/roomlist.c
index c8873069e6..83e954797c 100644
--- a/libpurple/roomlist.c
+++ b/libpurple/roomlist.c
@@ -218,6 +218,11 @@ void purple_roomlist_expand_category(PurpleRoomlist *list, PurpleRoomlistRoom *c
prpl_info->roomlist_expand_category(list, category);
}
+GList * purple_roomlist_get_fields(PurpleRoomlist *list)
+{
+ return list->fields;
+}
+
/*@}*/
/**************************************************************************/
@@ -293,6 +298,26 @@ void purple_roomlist_room_join(PurpleRoomlist *list, PurpleRoomlistRoom *room)
g_hash_table_destroy(components);
}
+PurpleRoomlistRoomType purple_roomlist_room_get_type(PurpleRoomlistRoom *room)
+{
+ return room->type;
+}
+
+const char * purple_roomlist_room_get_name(PurpleRoomlistRoom *room)
+{
+ return room->name;
+}
+
+PurpleRoomlistRoom * purple_roomlist_room_get_parent(PurpleRoomlistRoom *room)
+{
+ return room->parent;
+}
+
+GList * purple_roomlist_room_get_fields(PurpleRoomlistRoom *room)
+{
+ return room->fields;
+}
+
/*@}*/
/**************************************************************************/
@@ -319,6 +344,21 @@ PurpleRoomlistField *purple_roomlist_field_new(PurpleRoomlistFieldType type,
return f;
}
+PurpleRoomlistFieldType purple_roomlist_field_get_type(PurpleRoomlistField *field)
+{
+ return field->type;
+}
+
+const char * purple_roomlist_field_get_label(PurpleRoomlistField *field)
+{
+ return field->label;
+}
+
+gboolean purple_roomlist_field_get_hidden(PurpleRoomlistField *field)
+{
+ return field->hidden;
+}
+
/*@}*/
/**************************************************************************/