Tue, 06 Aug 2019 19:50:26 -0400
Rename *_TYPE_*_IFACE to more standard *_TYPE_*.
Using sed of `s/\(TYPE_PROTOCOL_[A-Za-z0-9_]\+\)_IFACE/\1/g`.
|
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 | |
|
37418
28302ab00d1a
Include gmodule.h in each protocol's eponymous header because they all
Michael McConville <mmcco@mykolab.com>
parents:
36775
diff
changeset
|
4 | #include <gmodule.h> |
|
28302ab00d1a
Include gmodule.h in each protocol's eponymous header because they all
Michael McConville <mmcco@mykolab.com>
parents:
36775
diff
changeset
|
5 | |
|
36592
431166bcb802
Refactored sametime to use the new protocol API
Ankit Vani <a@nevitus.org>
parents:
15884
diff
changeset
|
6 | #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
|
7 | #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
|
8 | #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
|
9 | #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
|
10 | #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
|
11 | #define MW_PROTOCOL_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), MW_TYPE_PROTOCOL, mwProtocolClass)) |
| 10977 | 12 | |
| 13 | /* CFLAGS trumps configure values */ | |
| 14 | ||
| 15 | ||
| 15884 | 16 | /** default host for the purple plugin. You can specialize a build to |
| 10977 | 17 | default to your server by supplying this at compile time */ |
| 18 | #ifndef MW_PLUGIN_DEFAULT_HOST | |
| 19 | #define MW_PLUGIN_DEFAULT_HOST "" | |
| 20 | #endif | |
| 21 | /* "" */ | |
| 22 | ||
| 23 | ||
| 15884 | 24 | /** default port for the purple plugin. You can specialize a build to |
| 10977 | 25 | default to your server by supplying this at compile time */ |
| 26 | #ifndef MW_PLUGIN_DEFAULT_PORT | |
| 27 | #define MW_PLUGIN_DEFAULT_PORT 1533 | |
| 28 | #endif | |
| 29 | /* 1533 */ | |
| 30 | ||
| 31 | ||
| 15884 | 32 | /** default encoding for the purple plugin.*/ |
|
11943
81ee4bc13c28
[gaim-migrate @ 14234]
Christopher O'Brien <siege@pidgin.im>
parents:
10977
diff
changeset
|
33 | #ifndef MW_PLUGIN_DEFAULT_ENCODING |
|
81ee4bc13c28
[gaim-migrate @ 14234]
Christopher O'Brien <siege@pidgin.im>
parents:
10977
diff
changeset
|
34 | #define MW_PLUGIN_DEFAULT_ENCODING "ISO-8859-1" |
|
81ee4bc13c28
[gaim-migrate @ 14234]
Christopher O'Brien <siege@pidgin.im>
parents:
10977
diff
changeset
|
35 | #endif |
|
81ee4bc13c28
[gaim-migrate @ 14234]
Christopher O'Brien <siege@pidgin.im>
parents:
10977
diff
changeset
|
36 | /* ISO-8859-1 */ |
|
36592
431166bcb802
Refactored sametime to use the new protocol API
Ankit Vani <a@nevitus.org>
parents:
15884
diff
changeset
|
37 | |
|
431166bcb802
Refactored sametime to use the new protocol API
Ankit Vani <a@nevitus.org>
parents:
15884
diff
changeset
|
38 | |
|
39556
622bf98df0ac
Remove unnecessary struct tags.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
37418
diff
changeset
|
39 | typedef struct |
|
36592
431166bcb802
Refactored sametime to use the new protocol API
Ankit Vani <a@nevitus.org>
parents:
15884
diff
changeset
|
40 | { |
|
431166bcb802
Refactored sametime to use the new protocol API
Ankit Vani <a@nevitus.org>
parents:
15884
diff
changeset
|
41 | 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
|
42 | } mwProtocol; |
|
36592
431166bcb802
Refactored sametime to use the new protocol API
Ankit Vani <a@nevitus.org>
parents:
15884
diff
changeset
|
43 | |
|
39556
622bf98df0ac
Remove unnecessary struct tags.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
37418
diff
changeset
|
44 | typedef struct |
|
36592
431166bcb802
Refactored sametime to use the new protocol API
Ankit Vani <a@nevitus.org>
parents:
15884
diff
changeset
|
45 | { |
|
431166bcb802
Refactored sametime to use the new protocol API
Ankit Vani <a@nevitus.org>
parents:
15884
diff
changeset
|
46 | 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
|
47 | } mwProtocolClass; |
|
36592
431166bcb802
Refactored sametime to use the new protocol API
Ankit Vani <a@nevitus.org>
parents:
15884
diff
changeset
|
48 | |
|
431166bcb802
Refactored sametime to use the new protocol API
Ankit Vani <a@nevitus.org>
parents:
15884
diff
changeset
|
49 | |
|
431166bcb802
Refactored sametime to use the new protocol API
Ankit Vani <a@nevitus.org>
parents:
15884
diff
changeset
|
50 | /** |
|
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
|
51 | * 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
|
52 | */ |
|
36775
5e59f252d777
Added G_MODULE_EXPORT declaration to protocol get_type() functions
Ankit Vani <a@nevitus.org>
parents:
36660
diff
changeset
|
53 | 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
|
54 | |
|
431166bcb802
Refactored sametime to use the new protocol API
Ankit Vani <a@nevitus.org>
parents:
15884
diff
changeset
|
55 | #endif /* _SAMETIME_H_ */ |