libpurple/protocols/sametime/sametime.h

Fri, 20 Sep 2013 22:08:33 +0530

author
Ankit Vani <a@nevitus.org>
date
Fri, 20 Sep 2013 22:08:33 +0530
branch
soc.2013.gobjectification.plugins
changeset 36775
5e59f252d777
parent 36660
ddb40f691d20
child 37418
28302ab00d1a
permissions
-rw-r--r--

Added G_MODULE_EXPORT declaration to protocol get_type() functions

36592
431166bcb802 Refactored sametime to use the new protocol API
Ankit Vani <a@nevitus.org>
parents: 15884
diff changeset
1 #ifndef _SAMETIME_H_
431166bcb802 Refactored sametime to use the new protocol API
Ankit Vani <a@nevitus.org>
parents: 15884
diff changeset
2 #define _SAMETIME_H_
10977
5802457af313 [gaim-migrate @ 12803]
Christopher O'Brien <siege@pidgin.im>
parents:
diff changeset
3
36592
431166bcb802 Refactored sametime to use the new protocol API
Ankit Vani <a@nevitus.org>
parents: 15884
diff changeset
4 #define MW_TYPE_PROTOCOL (mw_protocol_get_type())
36660
ddb40f691d20 Renamed certain protocol type names to better suit the naming convention used by the protocol
Ankit Vani <a@nevitus.org>
parents: 36592
diff changeset
5 #define MW_PROTOCOL(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), MW_TYPE_PROTOCOL, mwProtocol))
ddb40f691d20 Renamed certain protocol type names to better suit the naming convention used by the protocol
Ankit Vani <a@nevitus.org>
parents: 36592
diff changeset
6 #define MW_PROTOCOL_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), MW_TYPE_PROTOCOL, mwProtocolClass))
36592
431166bcb802 Refactored sametime to use the new protocol API
Ankit Vani <a@nevitus.org>
parents: 15884
diff changeset
7 #define MW_IS_PROTOCOL(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), MW_TYPE_PROTOCOL))
431166bcb802 Refactored sametime to use the new protocol API
Ankit Vani <a@nevitus.org>
parents: 15884
diff changeset
8 #define MW_IS_PROTOCOL_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass), MW_TYPE_PROTOCOL))
36660
ddb40f691d20 Renamed certain protocol type names to better suit the naming convention used by the protocol
Ankit Vani <a@nevitus.org>
parents: 36592
diff changeset
9 #define MW_PROTOCOL_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), MW_TYPE_PROTOCOL, mwProtocolClass))
10977
5802457af313 [gaim-migrate @ 12803]
Christopher O'Brien <siege@pidgin.im>
parents:
diff changeset
10
5802457af313 [gaim-migrate @ 12803]
Christopher O'Brien <siege@pidgin.im>
parents:
diff changeset
11 /* CFLAGS trumps configure values */
5802457af313 [gaim-migrate @ 12803]
Christopher O'Brien <siege@pidgin.im>
parents:
diff changeset
12
5802457af313 [gaim-migrate @ 12803]
Christopher O'Brien <siege@pidgin.im>
parents:
diff changeset
13
15884
4de1981757fc sed -ie 's/gaim/purple/g'
Sean Egan <seanegan@pidgin.im>
parents: 15435
diff changeset
14 /** default host for the purple plugin. You can specialize a build to
10977
5802457af313 [gaim-migrate @ 12803]
Christopher O'Brien <siege@pidgin.im>
parents:
diff changeset
15 default to your server by supplying this at compile time */
5802457af313 [gaim-migrate @ 12803]
Christopher O'Brien <siege@pidgin.im>
parents:
diff changeset
16 #ifndef MW_PLUGIN_DEFAULT_HOST
5802457af313 [gaim-migrate @ 12803]
Christopher O'Brien <siege@pidgin.im>
parents:
diff changeset
17 #define MW_PLUGIN_DEFAULT_HOST ""
5802457af313 [gaim-migrate @ 12803]
Christopher O'Brien <siege@pidgin.im>
parents:
diff changeset
18 #endif
5802457af313 [gaim-migrate @ 12803]
Christopher O'Brien <siege@pidgin.im>
parents:
diff changeset
19 /* "" */
5802457af313 [gaim-migrate @ 12803]
Christopher O'Brien <siege@pidgin.im>
parents:
diff changeset
20
5802457af313 [gaim-migrate @ 12803]
Christopher O'Brien <siege@pidgin.im>
parents:
diff changeset
21
15884
4de1981757fc sed -ie 's/gaim/purple/g'
Sean Egan <seanegan@pidgin.im>
parents: 15435
diff changeset
22 /** default port for the purple plugin. You can specialize a build to
10977
5802457af313 [gaim-migrate @ 12803]
Christopher O'Brien <siege@pidgin.im>
parents:
diff changeset
23 default to your server by supplying this at compile time */
5802457af313 [gaim-migrate @ 12803]
Christopher O'Brien <siege@pidgin.im>
parents:
diff changeset
24 #ifndef MW_PLUGIN_DEFAULT_PORT
5802457af313 [gaim-migrate @ 12803]
Christopher O'Brien <siege@pidgin.im>
parents:
diff changeset
25 #define MW_PLUGIN_DEFAULT_PORT 1533
5802457af313 [gaim-migrate @ 12803]
Christopher O'Brien <siege@pidgin.im>
parents:
diff changeset
26 #endif
5802457af313 [gaim-migrate @ 12803]
Christopher O'Brien <siege@pidgin.im>
parents:
diff changeset
27 /* 1533 */
5802457af313 [gaim-migrate @ 12803]
Christopher O'Brien <siege@pidgin.im>
parents:
diff changeset
28
5802457af313 [gaim-migrate @ 12803]
Christopher O'Brien <siege@pidgin.im>
parents:
diff changeset
29
15884
4de1981757fc sed -ie 's/gaim/purple/g'
Sean Egan <seanegan@pidgin.im>
parents: 15435
diff changeset
30 /** default encoding for the purple plugin.*/
11943
81ee4bc13c28 [gaim-migrate @ 14234]
Christopher O'Brien <siege@pidgin.im>
parents: 10977
diff changeset
31 #ifndef MW_PLUGIN_DEFAULT_ENCODING
81ee4bc13c28 [gaim-migrate @ 14234]
Christopher O'Brien <siege@pidgin.im>
parents: 10977
diff changeset
32 #define MW_PLUGIN_DEFAULT_ENCODING "ISO-8859-1"
81ee4bc13c28 [gaim-migrate @ 14234]
Christopher O'Brien <siege@pidgin.im>
parents: 10977
diff changeset
33 #endif
81ee4bc13c28 [gaim-migrate @ 14234]
Christopher O'Brien <siege@pidgin.im>
parents: 10977
diff changeset
34 /* ISO-8859-1 */
36592
431166bcb802 Refactored sametime to use the new protocol API
Ankit Vani <a@nevitus.org>
parents: 15884
diff changeset
35
431166bcb802 Refactored sametime to use the new protocol API
Ankit Vani <a@nevitus.org>
parents: 15884
diff changeset
36
36660
ddb40f691d20 Renamed certain protocol type names to better suit the naming convention used by the protocol
Ankit Vani <a@nevitus.org>
parents: 36592
diff changeset
37 typedef struct _mwProtocol
36592
431166bcb802 Refactored sametime to use the new protocol API
Ankit Vani <a@nevitus.org>
parents: 15884
diff changeset
38 {
431166bcb802 Refactored sametime to use the new protocol API
Ankit Vani <a@nevitus.org>
parents: 15884
diff changeset
39 PurpleProtocol parent;
36660
ddb40f691d20 Renamed certain protocol type names to better suit the naming convention used by the protocol
Ankit Vani <a@nevitus.org>
parents: 36592
diff changeset
40 } mwProtocol;
36592
431166bcb802 Refactored sametime to use the new protocol API
Ankit Vani <a@nevitus.org>
parents: 15884
diff changeset
41
36660
ddb40f691d20 Renamed certain protocol type names to better suit the naming convention used by the protocol
Ankit Vani <a@nevitus.org>
parents: 36592
diff changeset
42 typedef struct _mwProtocolClass
36592
431166bcb802 Refactored sametime to use the new protocol API
Ankit Vani <a@nevitus.org>
parents: 15884
diff changeset
43 {
431166bcb802 Refactored sametime to use the new protocol API
Ankit Vani <a@nevitus.org>
parents: 15884
diff changeset
44 PurpleProtocolClass parent_class;
36660
ddb40f691d20 Renamed certain protocol type names to better suit the naming convention used by the protocol
Ankit Vani <a@nevitus.org>
parents: 36592
diff changeset
45 } mwProtocolClass;
36592
431166bcb802 Refactored sametime to use the new protocol API
Ankit Vani <a@nevitus.org>
parents: 15884
diff changeset
46
431166bcb802 Refactored sametime to use the new protocol API
Ankit Vani <a@nevitus.org>
parents: 15884
diff changeset
47
431166bcb802 Refactored sametime to use the new protocol API
Ankit Vani <a@nevitus.org>
parents: 15884
diff changeset
48 /**
36660
ddb40f691d20 Renamed certain protocol type names to better suit the naming convention used by the protocol
Ankit Vani <a@nevitus.org>
parents: 36592
diff changeset
49 * Returns the GType for the mwProtocol object.
36592
431166bcb802 Refactored sametime to use the new protocol API
Ankit Vani <a@nevitus.org>
parents: 15884
diff changeset
50 */
36775
5e59f252d777 Added G_MODULE_EXPORT declaration to protocol get_type() functions
Ankit Vani <a@nevitus.org>
parents: 36660
diff changeset
51 G_MODULE_EXPORT GType mw_protocol_get_type(void);
36592
431166bcb802 Refactored sametime to use the new protocol API
Ankit Vani <a@nevitus.org>
parents: 15884
diff changeset
52
431166bcb802 Refactored sametime to use the new protocol API
Ankit Vani <a@nevitus.org>
parents: 15884
diff changeset
53 #endif /* _SAMETIME_H_ */

mercurial