Tue, 27 Aug 2013 04:04:42 +0530
Added missing includes and functions to headers
| libpurple/protocol.h | file | annotate | diff | comparison | revisions | |
| libpurple/protocols.h | file | annotate | diff | comparison | revisions | |
| libpurple/util.h | file | annotate | diff | comparison | revisions |
--- a/libpurple/protocol.h Tue Aug 27 02:41:04 2013 +0530 +++ b/libpurple/protocol.h Tue Aug 27 04:04:42 2013 +0530 @@ -44,10 +44,12 @@ typedef struct _PurpleProtocolInterface PurpleProtocolInterface; #include "account.h" +#include "accountopt.h" #include "buddylist.h" #include "connection.h" #include "conversations.h" #include "ft.h" +#include "imgstore.h" #include "roomlist.h" #include "whiteboard.h" @@ -549,6 +551,69 @@ */ GType purple_protocol_get_type(void); +/** TODO + * Returns the ID of a protocol. + * + * @param protocol The protocol. + * + * @return The ID of the protocol. + */ +const char *purple_protocol_get_id(const PurpleProtocol *protocol); + +/** TODO + * Returns the translated name of a protocol. + * + * @param protocol The protocol. + * + * @return The translated name of the protocol. + */ +const char *purple_protocol_get_name(const PurpleProtocol *protocol); + +/** TODO + * Returns the options of a protocol. + * + * @param protocol The protocol. + * + * @return The options of the protocol. + */ +PurpleProtocolOptions purple_protocol_get_options(const PurpleProtocol *protocol); + +/** TODO + * Returns the user splits of a protocol. + * + * @param protocol The protocol. + * + * @return The user splits of the protocol. + */ +GList *purple_protocol_get_user_splits(const PurpleProtocol *protocol); + +/** TODO + * Returns the protocol options of a protocol. + * + * @param protocol The protocol. + * + * @return The protocol options of the protocol. + */ +GList *purple_protocol_get_protocol_options(const PurpleProtocol *protocol); + +/** TODO + * Returns the icon spec of a protocol. + * + * @param protocol The protocol. + * + * @return The icon spec of the protocol. + */ +PurpleBuddyIconSpec purple_protocol_get_icon_spec(const PurpleProtocol *protocol); + +/** TODO + * Returns the whiteboard ops of a protocol. + * + * @param protocol The protocol. + * + * @return The whiteboard ops of the protocol. + */ +PurpleWhiteboardPrplOps *purple_protocol_get_whiteboard_ops(const PurpleProtocol *protocol); + /** * Notifies Purple that our account's idle state and time have changed. *
--- a/libpurple/protocols.h Tue Aug 27 02:41:04 2013 +0530 +++ b/libpurple/protocols.h Tue Aug 27 04:04:42 2013 +0530 @@ -168,8 +168,6 @@ } PurpleProtocolOptions; -#include "protocol.h" - /** @copydoc PurpleBuddyIconSpec */ struct _PurpleBuddyIconSpec { /** This is a comma-delimited list of image formats or @c NULL if icons @@ -187,6 +185,8 @@ PurpleIconScaleRules scale_rules; /**< How to stretch this icon */ }; +#include "protocol.h" + #define PURPLE_TYPE_PROTOCOL_CHAT_ENTRY (purple_protocol_chat_entry_get_type()) /** @copydoc PurpleProtocolChatEntry */
--- a/libpurple/util.h Tue Aug 27 02:41:04 2013 +0530 +++ b/libpurple/util.h Tue Aug 27 04:04:42 2013 +0530 @@ -50,7 +50,7 @@ #include "signals.h" #include "xmlnode.h" #include "notify.h" -#include "protocol.h" +#include "protocols.h" typedef char *(*PurpleInfoFieldFormatCallback)(const char *field, size_t len);