libpurple/protocols/sametime/sametime.h

Tue, 06 Aug 2019 19:50:26 -0400

author
Elliott Sales de Andrade <qulogic@pidgin.im>
date
Tue, 06 Aug 2019 19:50:26 -0400
changeset 39760
217330c81a30
parent 39556
622bf98df0ac
child 39819
3554dac2991b
permissions
-rw-r--r--

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
5802457af313 [gaim-migrate @ 12803]
Christopher O'Brien <siege@pidgin.im>
parents:
diff changeset
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
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 /* CFLAGS trumps configure values */
5802457af313 [gaim-migrate @ 12803]
Christopher O'Brien <siege@pidgin.im>
parents:
diff changeset
14
5802457af313 [gaim-migrate @ 12803]
Christopher O'Brien <siege@pidgin.im>
parents:
diff changeset
15
15884
4de1981757fc sed -ie 's/gaim/purple/g'
Sean Egan <seanegan@pidgin.im>
parents: 15435
diff changeset
16 /** 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
17 default to your server by supplying this at compile time */
5802457af313 [gaim-migrate @ 12803]
Christopher O'Brien <siege@pidgin.im>
parents:
diff changeset
18 #ifndef MW_PLUGIN_DEFAULT_HOST
5802457af313 [gaim-migrate @ 12803]
Christopher O'Brien <siege@pidgin.im>
parents:
diff changeset
19 #define MW_PLUGIN_DEFAULT_HOST ""
5802457af313 [gaim-migrate @ 12803]
Christopher O'Brien <siege@pidgin.im>
parents:
diff changeset
20 #endif
5802457af313 [gaim-migrate @ 12803]
Christopher O'Brien <siege@pidgin.im>
parents:
diff changeset
21 /* "" */
5802457af313 [gaim-migrate @ 12803]
Christopher O'Brien <siege@pidgin.im>
parents:
diff changeset
22
5802457af313 [gaim-migrate @ 12803]
Christopher O'Brien <siege@pidgin.im>
parents:
diff changeset
23
15884
4de1981757fc sed -ie 's/gaim/purple/g'
Sean Egan <seanegan@pidgin.im>
parents: 15435
diff changeset
24 /** 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
25 default to your server by supplying this at compile time */
5802457af313 [gaim-migrate @ 12803]
Christopher O'Brien <siege@pidgin.im>
parents:
diff changeset
26 #ifndef MW_PLUGIN_DEFAULT_PORT
5802457af313 [gaim-migrate @ 12803]
Christopher O'Brien <siege@pidgin.im>
parents:
diff changeset
27 #define MW_PLUGIN_DEFAULT_PORT 1533
5802457af313 [gaim-migrate @ 12803]
Christopher O'Brien <siege@pidgin.im>
parents:
diff changeset
28 #endif
5802457af313 [gaim-migrate @ 12803]
Christopher O'Brien <siege@pidgin.im>
parents:
diff changeset
29 /* 1533 */
5802457af313 [gaim-migrate @ 12803]
Christopher O'Brien <siege@pidgin.im>
parents:
diff changeset
30
5802457af313 [gaim-migrate @ 12803]
Christopher O'Brien <siege@pidgin.im>
parents:
diff changeset
31
15884
4de1981757fc sed -ie 's/gaim/purple/g'
Sean Egan <seanegan@pidgin.im>
parents: 15435
diff changeset
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_ */

mercurial