--- a/libpurple/roomlist.h Sat Aug 14 04:15:36 2021 -0500 +++ b/libpurple/roomlist.h Sat Aug 14 04:18:06 2021 -0500 @@ -284,108 +284,6 @@ GList *purple_roomlist_get_fields(PurpleRoomlist *roomlist); /**************************************************************************/ -/* Protocol Roomlist Interface API */ -/**************************************************************************/ - -#define PURPLE_TYPE_PROTOCOL_ROOMLIST \ - (purple_protocol_roomlist_iface_get_type()) - -typedef struct _PurpleProtocolRoomlistInterface PurpleProtocolRoomlistInterface; - -/** - * PurpleProtocolRoomlistInterface: - * - * The protocol roomlist interface. - * - * This interface provides callbacks for room listing. - */ -struct _PurpleProtocolRoomlistInterface -{ - /*< private >*/ - GTypeInterface parent_iface; - - /*< public >*/ - PurpleRoomlist *(*get_list)(PurpleConnection *gc); - - void (*cancel)(PurpleRoomlist *list); - - void (*expand_category)(PurpleRoomlist *list, - PurpleRoomlistRoom *category); - - /* room list serialize */ - char *(*room_serialize)(PurpleRoomlistRoom *room); -}; - -#define PURPLE_IS_PROTOCOL_ROOMLIST(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), PURPLE_TYPE_PROTOCOL_ROOMLIST)) -#define PURPLE_PROTOCOL_ROOMLIST_GET_IFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE((obj), PURPLE_TYPE_PROTOCOL_ROOMLIST, \ - PurpleProtocolRoomlistInterface)) - -/** - * purple_protocol_roomlist_iface_get_type: - * - * The standard _get_type function for #PurpleProtocolRoomlistInterface. - * - * Returns: The #GType for the protocol roomlist interface. - * - * Since: 3.0.0 - */ -GType purple_protocol_roomlist_iface_get_type(void); - -/** - * purple_protocol_roomlist_iface_get_list: - * @protocol: The #PurpleProtocol instance. - * @gc: The #PurpleAccount to get the roomlist for. - * - * Gets the list of rooms for @gc. - * - * Returns: (transfer full): The roomlist for @gc. - * - * Since: 3.0.0 - */ -PurpleRoomlist *purple_protocol_roomlist_iface_get_list(PurpleProtocol *protocol, - PurpleConnection *gc); - -/** - * purple_protocol_roomlist_iface_cancel: - * @protocol: The #PurpleProtocol instance. - * @list: The #PurpleRoomlist instance. - * - * Requesting a roomlist can take a long time. This function cancels a request - * that's already in progress. - * - * Since: 3.0.0 - */ -void purple_protocol_roomlist_iface_cancel(PurpleProtocol *protocol, - PurpleRoomlist *list); - -/** - * purple_protocol_roomlist_iface_expand_category: - * @protocol: The #PurpleProtocol instance. - * @list: The #PurpleRoomlist instance. - * @category: The category to expand. - * - * Expands the given @category for @list. - * - * Since: 3.0.0 - */ -void purple_protocol_roomlist_iface_expand_category(PurpleProtocol *protocol, - PurpleRoomlist *list, PurpleRoomlistRoom *category); - -/** - * purple_protocol_roomlist_iface_room_serialize: - * @protocol: The #PurpleProtocol instance. - * @room: The #PurpleRoomlistRoom instance. - * - * Serializes @room into a string that will be displayed in a user interface. - * - * Returns: (transfer full): The serialized form of @room. - * - * Since: 3.0.0 - */ -char *purple_protocol_roomlist_iface_room_serialize(PurpleProtocol *protocol, - PurpleRoomlistRoom *room); - -/**************************************************************************/ /* Room API */ /**************************************************************************/