/soc/2013/ankitkv/gobjectification: 5e59f252d777: Added G_MODULE...

Ankit Vani a at nevitus.org
Fri Sep 20 12:41:34 EDT 2013


Changeset: 5e59f252d777c0f1f4d7b34745263535b1ab8097
Author:	 Ankit Vani <a at nevitus.org>
Date:	 2013-09-20 22:08 +0530
Branch:	 soc.2013.gobjectification.plugins
URL: https://hg.pidgin.im/soc/2013/ankitkv/gobjectification/rev/5e59f252d777

Description:

Added G_MODULE_EXPORT declaration to protocol get_type() functions

diffstat:

 libpurple/protocols/bonjour/bonjour.h   |  2 +-
 libpurple/protocols/gg/gg.h             |  2 +-
 libpurple/protocols/irc/irc.h           |  2 +-
 libpurple/protocols/jabber/facebook.h   |  2 +-
 libpurple/protocols/jabber/gtalk.h      |  2 +-
 libpurple/protocols/jabber/jabber.h     |  2 +-
 libpurple/protocols/jabber/xmpp.h       |  2 +-
 libpurple/protocols/msn/msn.h           |  2 +-
 libpurple/protocols/msn/soap.c          |  2 ++
 libpurple/protocols/mxit/mxit.h         |  2 +-
 libpurple/protocols/myspace/myspace.h   |  2 +-
 libpurple/protocols/novell/novell.h     |  2 +-
 libpurple/protocols/null/nullprotocol.h |  2 +-
 libpurple/protocols/oscar/aim.h         |  2 +-
 libpurple/protocols/oscar/icq.h         |  2 +-
 libpurple/protocols/oscar/oscar.h       |  2 +-
 libpurple/protocols/sametime/sametime.h |  2 +-
 libpurple/protocols/silc/silcpurple.h   |  2 +-
 libpurple/protocols/simple/simple.h     |  2 +-
 libpurple/protocols/yahoo/yahoo.h       |  2 +-
 libpurple/protocols/yahoo/yahoojp.h     |  2 +-
 libpurple/protocols/zephyr/zephyr.h     |  2 +-
 22 files changed, 23 insertions(+), 21 deletions(-)

diffs (253 lines):

diff --git a/libpurple/protocols/bonjour/bonjour.h b/libpurple/protocols/bonjour/bonjour.h
--- a/libpurple/protocols/bonjour/bonjour.h
+++ b/libpurple/protocols/bonjour/bonjour.h
@@ -70,7 +70,7 @@ typedef struct _BonjourData
 /**
  * Returns the GType for the BonjourProtocol object.
  */
-GType bonjour_protocol_get_type(void);
+G_MODULE_EXPORT GType bonjour_protocol_get_type(void);
 
 /**
  *  This will always be username at machinename
diff --git a/libpurple/protocols/gg/gg.h b/libpurple/protocols/gg/gg.h
--- a/libpurple/protocols/gg/gg.h
+++ b/libpurple/protocols/gg/gg.h
@@ -82,7 +82,7 @@ typedef struct
 	gboolean not_a_friend;
 } ggp_buddy_data;
 
-GType ggp_protocol_get_type(void);
+G_MODULE_EXPORT GType ggp_protocol_get_type(void);
 
 ggp_buddy_data * ggp_buddy_get_data(PurpleBuddy *buddy);
 
diff --git a/libpurple/protocols/irc/irc.h b/libpurple/protocols/irc/irc.h
--- a/libpurple/protocols/irc/irc.h
+++ b/libpurple/protocols/irc/irc.h
@@ -132,7 +132,7 @@ struct irc_buddy {
 
 typedef int (*IRCCmdCallback) (struct irc_conn *irc, const char *cmd, const char *target, const char **args);
 
-GType irc_protocol_get_type(void);
+G_MODULE_EXPORT GType irc_protocol_get_type(void);
 
 int irc_send(struct irc_conn *irc, const char *buf);
 int irc_send_len(struct irc_conn *irc, const char *buf, int len);
diff --git a/libpurple/protocols/jabber/facebook.h b/libpurple/protocols/jabber/facebook.h
--- a/libpurple/protocols/jabber/facebook.h
+++ b/libpurple/protocols/jabber/facebook.h
@@ -49,6 +49,6 @@ void facebook_protocol_register_type(Pur
 /**
  * Returns the GType for the FacebookProtocol object.
  */
-GType facebook_protocol_get_type(void);
+G_MODULE_EXPORT GType facebook_protocol_get_type(void);
 
 #endif /* _FACEBOOK_H_ */
diff --git a/libpurple/protocols/jabber/gtalk.h b/libpurple/protocols/jabber/gtalk.h
--- a/libpurple/protocols/jabber/gtalk.h
+++ b/libpurple/protocols/jabber/gtalk.h
@@ -49,6 +49,6 @@ void gtalk_protocol_register_type(Purple
 /**
  * Returns the GType for the GTalkProtocol object.
  */
-GType gtalk_protocol_get_type(void);
+G_MODULE_EXPORT GType gtalk_protocol_get_type(void);
 
 #endif /* _GTALK_H_ */
diff --git a/libpurple/protocols/jabber/jabber.h b/libpurple/protocols/jabber/jabber.h
--- a/libpurple/protocols/jabber/jabber.h
+++ b/libpurple/protocols/jabber/jabber.h
@@ -330,7 +330,7 @@ extern GList *jabber_identities;
 /**
  * Returns the GType for the JabberProtocol object.
  */
-GType jabber_protocol_get_type(void);
+G_MODULE_EXPORT GType jabber_protocol_get_type(void);
 
 void jabber_stream_features_parse(JabberStream *js, PurpleXmlNode *packet);
 void jabber_process_packet(JabberStream *js, PurpleXmlNode **packet);
diff --git a/libpurple/protocols/jabber/xmpp.h b/libpurple/protocols/jabber/xmpp.h
--- a/libpurple/protocols/jabber/xmpp.h
+++ b/libpurple/protocols/jabber/xmpp.h
@@ -49,6 +49,6 @@ void xmpp_protocol_register_type(PurpleP
 /**
  * Returns the GType for the XMPPProtocol object.
  */
-GType xmpp_protocol_get_type(void);
+G_MODULE_EXPORT GType xmpp_protocol_get_type(void);
 
 #endif /* _XMPP_H_ */
diff --git a/libpurple/protocols/msn/msn.h b/libpurple/protocols/msn/msn.h
--- a/libpurple/protocols/msn/msn.h
+++ b/libpurple/protocols/msn/msn.h
@@ -167,7 +167,7 @@ typedef struct _MsnProtocolClass
 	PurpleProtocolClass parent_class;
 } MsnProtocolClass;
 
-GType msn_protocol_get_type(void);
+G_MODULE_EXPORT GType msn_protocol_get_type(void);
 
 void
 msn_set_public_alias(PurpleConnection *gc, const char *alias,
diff --git a/libpurple/protocols/msn/soap.c b/libpurple/protocols/msn/soap.c
--- a/libpurple/protocols/msn/soap.c
+++ b/libpurple/protocols/msn/soap.c
@@ -23,6 +23,8 @@
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,  USA
  */
 
+#include "internal.h"
+
 #include "soap.h"
 
 #include "debug.h"
diff --git a/libpurple/protocols/mxit/mxit.h b/libpurple/protocols/mxit/mxit.h
--- a/libpurple/protocols/mxit/mxit.h
+++ b/libpurple/protocols/mxit/mxit.h
@@ -214,7 +214,7 @@ struct MXitSession {
 	GHashTable*			iimages;					/* table which maps inline images (including emoticons) to purple's imgstore id's */
 };
 
-GType mxit_protocol_get_type(void);
+G_MODULE_EXPORT GType mxit_protocol_get_type(void);
 
 char* mxit_status_text( PurpleBuddy* buddy );
 void mxit_enable_signals( struct MXitSession* session );
diff --git a/libpurple/protocols/myspace/myspace.h b/libpurple/protocols/myspace/myspace.h
--- a/libpurple/protocols/myspace/myspace.h
+++ b/libpurple/protocols/myspace/myspace.h
@@ -207,7 +207,7 @@ typedef struct _MsimProtocolClass
 } MsimProtocolClass;
 
 /* Functions */
-GType msim_protocol_get_type(void);
+G_MODULE_EXPORT GType msim_protocol_get_type(void);
 
 gboolean msim_send_raw(MsimSession *session, const gchar *msg);
 
diff --git a/libpurple/protocols/novell/novell.h b/libpurple/protocols/novell/novell.h
--- a/libpurple/protocols/novell/novell.h
+++ b/libpurple/protocols/novell/novell.h
@@ -44,6 +44,6 @@ typedef struct _NovellProtocolClass
 /**
  * Returns the GType for the NovellProtocol object.
  */
-GType novell_protocol_get_type(void);
+G_MODULE_EXPORT GType novell_protocol_get_type(void);
 
 #endif /* _NOVELL_H_ */
diff --git a/libpurple/protocols/null/nullprotocol.h b/libpurple/protocols/null/nullprotocol.h
--- a/libpurple/protocols/null/nullprotocol.h
+++ b/libpurple/protocols/null/nullprotocol.h
@@ -44,6 +44,6 @@ typedef struct _NullProtocolClass
 /**
  * Returns the GType for the NullProtocol object.
  */
-GType null_protocol_get_type(void);
+G_MODULE_EXPORT GType null_protocol_get_type(void);
 
 #endif /* _NULL_H_ */
diff --git a/libpurple/protocols/oscar/aim.h b/libpurple/protocols/oscar/aim.h
--- a/libpurple/protocols/oscar/aim.h
+++ b/libpurple/protocols/oscar/aim.h
@@ -49,6 +49,6 @@ void aim_protocol_register_type(PurplePl
 /**
  * Returns the GType for the AIMProtocol object.
  */
-GType aim_protocol_get_type(void);
+G_MODULE_EXPORT GType aim_protocol_get_type(void);
 
 #endif /* _AIM_H_ */
diff --git a/libpurple/protocols/oscar/icq.h b/libpurple/protocols/oscar/icq.h
--- a/libpurple/protocols/oscar/icq.h
+++ b/libpurple/protocols/oscar/icq.h
@@ -49,6 +49,6 @@ void icq_protocol_register_type(PurplePl
 /**
  * Returns the GType for the ICQProtocol object.
  */
-GType icq_protocol_get_type(void);
+G_MODULE_EXPORT GType icq_protocol_get_type(void);
 
 #endif /* _ICQ_H_ */
diff --git a/libpurple/protocols/oscar/oscar.h b/libpurple/protocols/oscar/oscar.h
--- a/libpurple/protocols/oscar/oscar.h
+++ b/libpurple/protocols/oscar/oscar.h
@@ -244,7 +244,7 @@ typedef struct _OscarProtocolClass
 /**
  * Returns the GType for the OscarProtocol object.
  */
-GType oscar_protocol_get_type(void);
+G_MODULE_EXPORT GType oscar_protocol_get_type(void);
 
 /*
  * Byte Stream type. Sort of.
diff --git a/libpurple/protocols/sametime/sametime.h b/libpurple/protocols/sametime/sametime.h
--- a/libpurple/protocols/sametime/sametime.h
+++ b/libpurple/protocols/sametime/sametime.h
@@ -48,6 +48,6 @@ typedef struct _mwProtocolClass
 /**
  * Returns the GType for the mwProtocol object.
  */
-GType mw_protocol_get_type(void);
+G_MODULE_EXPORT GType mw_protocol_get_type(void);
 
 #endif /* _SAMETIME_H_ */
diff --git a/libpurple/protocols/silc/silcpurple.h b/libpurple/protocols/silc/silcpurple.h
--- a/libpurple/protocols/silc/silcpurple.h
+++ b/libpurple/protocols/silc/silcpurple.h
@@ -107,7 +107,7 @@ typedef struct SilcPurpleStruct {
 } *SilcPurple;
 
 
-GType silcpurple_protocol_get_type(void);
+G_MODULE_EXPORT GType silcpurple_protocol_get_type(void);
 
 void silc_say(SilcClient client, SilcClientConnection conn,
 	      SilcClientMessageType type, char *msg, ...);
diff --git a/libpurple/protocols/simple/simple.h b/libpurple/protocols/simple/simple.h
--- a/libpurple/protocols/simple/simple.h
+++ b/libpurple/protocols/simple/simple.h
@@ -154,6 +154,6 @@ struct transaction {
 	TransCallback callback;
 };
 
-GType simple_protocol_get_type(void);
+G_MODULE_EXPORT GType simple_protocol_get_type(void);
 
 #endif /* _PURPLE_SIMPLE_H */
diff --git a/libpurple/protocols/yahoo/yahoo.h b/libpurple/protocols/yahoo/yahoo.h
--- a/libpurple/protocols/yahoo/yahoo.h
+++ b/libpurple/protocols/yahoo/yahoo.h
@@ -44,6 +44,6 @@ typedef struct _YahooProtocolClass
 /**
  * Returns the GType for the YahooProtocol object.
  */
-GType yahoo_protocol_get_type(void);
+G_MODULE_EXPORT GType yahoo_protocol_get_type(void);
 
 #endif /* _YAHOO_H_ */
diff --git a/libpurple/protocols/yahoo/yahoojp.h b/libpurple/protocols/yahoo/yahoojp.h
--- a/libpurple/protocols/yahoo/yahoojp.h
+++ b/libpurple/protocols/yahoo/yahoojp.h
@@ -49,7 +49,7 @@ void yahoojp_protocol_register_type(Purp
 /**
  * Returns the GType for the YahooJPProtocol object.
  */
-GType yahoojp_protocol_get_type(void);
+G_MODULE_EXPORT GType yahoojp_protocol_get_type(void);
 
 void yahoojp_register_commands(void);
 void yahoojp_unregister_commands(void);
diff --git a/libpurple/protocols/zephyr/zephyr.h b/libpurple/protocols/zephyr/zephyr.h
--- a/libpurple/protocols/zephyr/zephyr.h
+++ b/libpurple/protocols/zephyr/zephyr.h
@@ -44,6 +44,6 @@ typedef struct _ZephyrProtocolClass
 /**
  * Returns the GType for the ZephyrProtocol object.
  */
-GType zephyr_protocol_get_type(void);
+G_MODULE_EXPORT GType zephyr_protocol_get_type(void);
 
 #endif /* _ZEPHYR_H_ */



More information about the Commits mailing list