--- a/libpurple/protocols/sametime/sametime.h Wed Aug 28 03:39:06 2013 +0530 +++ b/libpurple/protocols/sametime/sametime.h Wed Aug 28 15:07:38 2013 +0530 @@ -1,4 +1,12 @@ +#ifndef _SAMETIME_H_ +#define _SAMETIME_H_ +#define MW_TYPE_PROTOCOL (mw_protocol_get_type()) +#define MW_PROTOCOL(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), MW_TYPE_PROTOCOL, SametimeProtocol)) +#define MW_PROTOCOL_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), MW_TYPE_PROTOCOL, SametimeProtocolClass)) +#define MW_IS_PROTOCOL(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), MW_TYPE_PROTOCOL)) +#define MW_IS_PROTOCOL_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass), MW_TYPE_PROTOCOL)) +#define MW_PROTOCOL_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), MW_TYPE_PROTOCOL, SametimeProtocolClass)) /* CFLAGS trumps configure values */ @@ -24,3 +32,22 @@ #define MW_PLUGIN_DEFAULT_ENCODING "ISO-8859-1" #endif /* ISO-8859-1 */ + + +typedef struct _SametimeProtocol +{ + PurpleProtocol parent; +} SametimeProtocol; + +typedef struct _SametimeProtocolClass +{ + PurpleProtocolClass parent_class; +} SametimeProtocolClass; + + +/** + * Returns the GType for the SametimeProtocol object. + */ +GType mw_protocol_get_type(void); + +#endif /* _SAMETIME_H_ */