/soc/2013/ankitkv/gobjectification: 09d5842255a2: Added missing ...
Ankit Vani
a at nevitus.org
Mon Aug 26 18:38:32 EDT 2013
Changeset: 09d5842255a22db775f85a9c7deee9e02d935b4f
Author: Ankit Vani <a at nevitus.org>
Date: 2013-08-27 04:04 +0530
Branch: soc.2013.gobjectification.plugins
URL: https://hg.pidgin.im/soc/2013/ankitkv/gobjectification/rev/09d5842255a2
Description:
Added missing includes and functions to headers
diffstat:
libpurple/protocol.h | 65 +++++++++++++++++++++++++++++++++++++++++++++++++++
libpurple/protocols.h | 4 +-
libpurple/util.h | 2 +-
3 files changed, 68 insertions(+), 3 deletions(-)
diffs (119 lines):
diff --git a/libpurple/protocol.h b/libpurple/protocol.h
--- a/libpurple/protocol.h
+++ b/libpurple/protocol.h
@@ -44,10 +44,12 @@ typedef struct _PurpleProtocolClass Purp
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 @@ G_BEGIN_DECLS
*/
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.
*
diff --git a/libpurple/protocols.h b/libpurple/protocols.h
--- a/libpurple/protocols.h
+++ b/libpurple/protocols.h
@@ -168,8 +168,6 @@ typedef enum
} 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 @@ struct _PurpleBuddyIconSpec {
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 */
diff --git a/libpurple/util.h b/libpurple/util.h
--- a/libpurple/util.h
+++ b/libpurple/util.h
@@ -50,7 +50,7 @@ typedef struct _PurpleKeyValuePair Purpl
#include "signals.h"
#include "xmlnode.h"
#include "notify.h"
-#include "protocol.h"
+#include "protocols.h"
typedef char *(*PurpleInfoFieldFormatCallback)(const char *field, size_t len);
More information about the Commits
mailing list