Fri, 20 Sep 2013 22:08:33 +0530
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 | 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 | 10 | |
| 11 | /* CFLAGS trumps configure values */ | |
| 12 | ||
| 13 | ||
| 15884 | 14 | /** default host for the purple plugin. You can specialize a build to |
| 10977 | 15 | default to your server by supplying this at compile time */ |
| 16 | #ifndef MW_PLUGIN_DEFAULT_HOST | |
| 17 | #define MW_PLUGIN_DEFAULT_HOST "" | |
| 18 | #endif | |
| 19 | /* "" */ | |
| 20 | ||
| 21 | ||
| 15884 | 22 | /** default port for the purple plugin. You can specialize a build to |
| 10977 | 23 | default to your server by supplying this at compile time */ |
| 24 | #ifndef MW_PLUGIN_DEFAULT_PORT | |
| 25 | #define MW_PLUGIN_DEFAULT_PORT 1533 | |
| 26 | #endif | |
| 27 | /* 1533 */ | |
| 28 | ||
| 29 | ||
| 15884 | 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_ */ |