libpurple/protocol.h

Sat, 30 Jan 2021 02:26:08 -0600

author
Gary Kramlich <grim@reaperworld.com>
date
Sat, 30 Jan 2021 02:26:08 -0600
changeset 40745
1b0fa96b5ca3
parent 40708
53a26c29d26c
child 40813
71305a7d7423
permissions
-rw-r--r--

Make PurpleWhiteboard derivable and remove purple_whiteboard_[gs]et_ui data.

Testing Done:
Compiled

Reviewed at https://reviews.imfreedom.org/r/461/

40595
d7e28f8a0994 split up whiteboard.[ch] to separate files
Gary Kramlich <grim@reaperworld.com>
parents: 40525
diff changeset
1 /*
d7e28f8a0994 split up whiteboard.[ch] to separate files
Gary Kramlich <grim@reaperworld.com>
parents: 40525
diff changeset
2 * Purple - Internet Messaging Library
d7e28f8a0994 split up whiteboard.[ch] to separate files
Gary Kramlich <grim@reaperworld.com>
parents: 40525
diff changeset
3 * Copyright (C) Pidgin Developers <devel@pidgin.im>
36563
5ecb9a6c4611 Added protocol.[ch] and moved PurpleProtocol and PurpleProtocolInterface to it
Ankit Vani <a@nevitus.org>
parents:
diff changeset
4 *
5ecb9a6c4611 Added protocol.[ch] and moved PurpleProtocol and PurpleProtocolInterface to it
Ankit Vani <a@nevitus.org>
parents:
diff changeset
5 * Purple is the legal property of its developers, whose names are too numerous
5ecb9a6c4611 Added protocol.[ch] and moved PurpleProtocol and PurpleProtocolInterface to it
Ankit Vani <a@nevitus.org>
parents:
diff changeset
6 * to list here. Please refer to the COPYRIGHT file distributed with this
5ecb9a6c4611 Added protocol.[ch] and moved PurpleProtocol and PurpleProtocolInterface to it
Ankit Vani <a@nevitus.org>
parents:
diff changeset
7 * source distribution.
5ecb9a6c4611 Added protocol.[ch] and moved PurpleProtocol and PurpleProtocolInterface to it
Ankit Vani <a@nevitus.org>
parents:
diff changeset
8 *
5ecb9a6c4611 Added protocol.[ch] and moved PurpleProtocol and PurpleProtocolInterface to it
Ankit Vani <a@nevitus.org>
parents:
diff changeset
9 * This program is free software; you can redistribute it and/or modify
5ecb9a6c4611 Added protocol.[ch] and moved PurpleProtocol and PurpleProtocolInterface to it
Ankit Vani <a@nevitus.org>
parents:
diff changeset
10 * it under the terms of the GNU General Public License as published by
5ecb9a6c4611 Added protocol.[ch] and moved PurpleProtocol and PurpleProtocolInterface to it
Ankit Vani <a@nevitus.org>
parents:
diff changeset
11 * the Free Software Foundation; either version 2 of the License, or
5ecb9a6c4611 Added protocol.[ch] and moved PurpleProtocol and PurpleProtocolInterface to it
Ankit Vani <a@nevitus.org>
parents:
diff changeset
12 * (at your option) any later version.
5ecb9a6c4611 Added protocol.[ch] and moved PurpleProtocol and PurpleProtocolInterface to it
Ankit Vani <a@nevitus.org>
parents:
diff changeset
13 *
5ecb9a6c4611 Added protocol.[ch] and moved PurpleProtocol and PurpleProtocolInterface to it
Ankit Vani <a@nevitus.org>
parents:
diff changeset
14 * This program is distributed in the hope that it will be useful,
5ecb9a6c4611 Added protocol.[ch] and moved PurpleProtocol and PurpleProtocolInterface to it
Ankit Vani <a@nevitus.org>
parents:
diff changeset
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
5ecb9a6c4611 Added protocol.[ch] and moved PurpleProtocol and PurpleProtocolInterface to it
Ankit Vani <a@nevitus.org>
parents:
diff changeset
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
5ecb9a6c4611 Added protocol.[ch] and moved PurpleProtocol and PurpleProtocolInterface to it
Ankit Vani <a@nevitus.org>
parents:
diff changeset
17 * GNU General Public License for more details.
5ecb9a6c4611 Added protocol.[ch] and moved PurpleProtocol and PurpleProtocolInterface to it
Ankit Vani <a@nevitus.org>
parents:
diff changeset
18 *
5ecb9a6c4611 Added protocol.[ch] and moved PurpleProtocol and PurpleProtocolInterface to it
Ankit Vani <a@nevitus.org>
parents:
diff changeset
19 * You should have received a copy of the GNU General Public License
40595
d7e28f8a0994 split up whiteboard.[ch] to separate files
Gary Kramlich <grim@reaperworld.com>
parents: 40525
diff changeset
20 * along with this program; if not, see <https://www.gnu.org/licenses/>.
36563
5ecb9a6c4611 Added protocol.[ch] and moved PurpleProtocol and PurpleProtocolInterface to it
Ankit Vani <a@nevitus.org>
parents:
diff changeset
21 */
37094
84873ce721dc Merge gtkdoc-conversion
Ankit Vani <a@nevitus.org>
parents: 37092
diff changeset
22
40474
1341be8e3402 Make it so only libpurple can directly include libpurple header files.
Gary Kramlich <grim@reaperworld.com>
parents: 40439
diff changeset
23 #if !defined(PURPLE_GLOBAL_HEADER_INSIDE) && !defined(PURPLE_COMPILATION)
1341be8e3402 Make it so only libpurple can directly include libpurple header files.
Gary Kramlich <grim@reaperworld.com>
parents: 40439
diff changeset
24 # error "only <purple.h> may be included directly"
1341be8e3402 Make it so only libpurple can directly include libpurple header files.
Gary Kramlich <grim@reaperworld.com>
parents: 40439
diff changeset
25 #endif
1341be8e3402 Make it so only libpurple can directly include libpurple header files.
Gary Kramlich <grim@reaperworld.com>
parents: 40439
diff changeset
26
39659
e4dfb99b0cef Fix libpurple header guards using reserved names.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 39597
diff changeset
27 #ifndef PURPLE_PROTOCOL_H
e4dfb99b0cef Fix libpurple header guards using reserved names.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 39597
diff changeset
28 #define PURPLE_PROTOCOL_H
40595
d7e28f8a0994 split up whiteboard.[ch] to separate files
Gary Kramlich <grim@reaperworld.com>
parents: 40525
diff changeset
29
37060
e5206d7698e5 Add section blocks for plugins.h, protocol.h, protocols.h
Ankit Vani <a@nevitus.org>
parents: 37054
diff changeset
30 /**
e5206d7698e5 Add section blocks for plugins.h, protocol.h, protocols.h
Ankit Vani <a@nevitus.org>
parents: 37054
diff changeset
31 * SECTION:protocol
e5206d7698e5 Add section blocks for plugins.h, protocol.h, protocols.h
Ankit Vani <a@nevitus.org>
parents: 37054
diff changeset
32 * @section_id: libpurple-protocol
e5206d7698e5 Add section blocks for plugins.h, protocol.h, protocols.h
Ankit Vani <a@nevitus.org>
parents: 37054
diff changeset
33 * @short_description: <filename>protocol.h</filename>
37062
f9b1a70fb9d6 Fix case in protocol(s).h
Ankit Vani <a@nevitus.org>
parents: 37060
diff changeset
34 * @title: Protocol Object and Interfaces
40595
d7e28f8a0994 split up whiteboard.[ch] to separate files
Gary Kramlich <grim@reaperworld.com>
parents: 40525
diff changeset
35 *
d7e28f8a0994 split up whiteboard.[ch] to separate files
Gary Kramlich <grim@reaperworld.com>
parents: 40525
diff changeset
36 * #PurpleProtocol is the base type for all protocols in libpurple.
37060
e5206d7698e5 Add section blocks for plugins.h, protocol.h, protocols.h
Ankit Vani <a@nevitus.org>
parents: 37054
diff changeset
37 */
36563
5ecb9a6c4611 Added protocol.[ch] and moved PurpleProtocol and PurpleProtocolInterface to it
Ankit Vani <a@nevitus.org>
parents:
diff changeset
38
36718
24f9c085897a Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents: 36717
diff changeset
39 #define PURPLE_TYPE_PROTOCOL (purple_protocol_get_type())
24f9c085897a Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents: 36717
diff changeset
40 #define PURPLE_PROTOCOL(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), PURPLE_TYPE_PROTOCOL, PurpleProtocol))
24f9c085897a Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents: 36717
diff changeset
41 #define PURPLE_PROTOCOL_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), PURPLE_TYPE_PROTOCOL, PurpleProtocolClass))
24f9c085897a Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents: 36717
diff changeset
42 #define PURPLE_IS_PROTOCOL(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), PURPLE_TYPE_PROTOCOL))
24f9c085897a Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents: 36717
diff changeset
43 #define PURPLE_IS_PROTOCOL_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass), PURPLE_TYPE_PROTOCOL))
24f9c085897a Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents: 36717
diff changeset
44 #define PURPLE_PROTOCOL_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), PURPLE_TYPE_PROTOCOL, PurpleProtocolClass))
36563
5ecb9a6c4611 Added protocol.[ch] and moved PurpleProtocol and PurpleProtocolInterface to it
Ankit Vani <a@nevitus.org>
parents:
diff changeset
45
5ecb9a6c4611 Added protocol.[ch] and moved PurpleProtocol and PurpleProtocolInterface to it
Ankit Vani <a@nevitus.org>
parents:
diff changeset
46 typedef struct _PurpleProtocol PurpleProtocol;
5ecb9a6c4611 Added protocol.[ch] and moved PurpleProtocol and PurpleProtocolInterface to it
Ankit Vani <a@nevitus.org>
parents:
diff changeset
47 typedef struct _PurpleProtocolClass PurpleProtocolClass;
5ecb9a6c4611 Added protocol.[ch] and moved PurpleProtocol and PurpleProtocolInterface to it
Ankit Vani <a@nevitus.org>
parents:
diff changeset
48
36569
264e4c0cc0d1 Included required headers
Ankit Vani <a@nevitus.org>
parents: 36567
diff changeset
49 #include "account.h"
36624
38043ecaf4a6 Finished implementing functions for protocols.[ch].
Ankit Vani <a@nevitus.org>
parents: 36621
diff changeset
50 #include "buddyicon.h"
36569
264e4c0cc0d1 Included required headers
Ankit Vani <a@nevitus.org>
parents: 36567
diff changeset
51 #include "buddylist.h"
40439
e9838d634d5e Make sure that internal.h can only be included by libpurple and split out some pieces to purpleprivate.h
Gary Kramlich <grim@reaperworld.com>
parents: 40350
diff changeset
52 #include "chat.h"
36569
264e4c0cc0d1 Included required headers
Ankit Vani <a@nevitus.org>
parents: 36567
diff changeset
53 #include "connection.h"
264e4c0cc0d1 Included required headers
Ankit Vani <a@nevitus.org>
parents: 36567
diff changeset
54 #include "conversations.h"
36613
0e96218aa13a Refactored the protocols to use the new macros, to allow for static or dynamic loading of types as configured
Ankit Vani <a@nevitus.org>
parents: 36611
diff changeset
55 #include "debug.h"
36688
e49025233301 Merged soc.2013.gobjectification branch
Ankit Vani <a@nevitus.org>
parents: 36686
diff changeset
56 #include "xfer.h"
37134
07746c9a04bf Merged default branch
Ankit Vani <a@nevitus.org>
parents: 37132
diff changeset
57 #include "image.h"
36610
3d99b9c0bf90 Refactored account, blist, buddyicon, connection, conversation, presence to use the new protocol API
Ankit Vani <a@nevitus.org>
parents: 36609
diff changeset
58 #include "notify.h"
36613
0e96218aa13a Refactored the protocols to use the new macros, to allow for static or dynamic loading of types as configured
Ankit Vani <a@nevitus.org>
parents: 36611
diff changeset
59 #include "plugins.h"
39970
cc7d4ff5a205 rename accountopt.[ch] to purpleaccountoption.[ch]
Gary Kramlich <grim@reaperworld.com>
parents: 39968
diff changeset
60 #include "purpleaccountoption.h"
39968
71622ee1354e move PurpleAccountUserSplit to their own file
Gary Kramlich <grim@reaperworld.com>
parents: 39896
diff changeset
61 #include "purpleaccountusersplit.h"
40696
cf58ec89b1e4 Rename message.[ch] to purplemessage.[ch]
Gary Kramlich <grim@reaperworld.com>
parents: 40634
diff changeset
62 #include "purplemessage.h"
40595
d7e28f8a0994 split up whiteboard.[ch] to separate files
Gary Kramlich <grim@reaperworld.com>
parents: 40525
diff changeset
63 #include "purplewhiteboard.h"
d7e28f8a0994 split up whiteboard.[ch] to separate files
Gary Kramlich <grim@reaperworld.com>
parents: 40525
diff changeset
64 #include "purplewhiteboardops.h"
36569
264e4c0cc0d1 Included required headers
Ankit Vani <a@nevitus.org>
parents: 36567
diff changeset
65 #include "roomlist.h"
36587
69cdb86cfbc5 Added missing includes
Ankit Vani <a@nevitus.org>
parents: 36583
diff changeset
66 #include "status.h"
36569
264e4c0cc0d1 Included required headers
Ankit Vani <a@nevitus.org>
parents: 36567
diff changeset
67
36563
5ecb9a6c4611 Added protocol.[ch] and moved PurpleProtocol and PurpleProtocolInterface to it
Ankit Vani <a@nevitus.org>
parents:
diff changeset
68 /**
37036
a8e12bcb0a74 Convert the new .h files for this branch for gtk-doc
Ankit Vani <a@nevitus.org>
parents: 37034
diff changeset
69 * PurpleProtocol:
37038
8832d14d7d0c Rename 'protocol_options' field of PurpleProtocol to more appropriate 'account_options'
Ankit Vani <a@nevitus.org>
parents: 37036
diff changeset
70 * @id: Protocol ID
8832d14d7d0c Rename 'protocol_options' field of PurpleProtocol to more appropriate 'account_options'
Ankit Vani <a@nevitus.org>
parents: 37036
diff changeset
71 * @name: Translated name of the protocol
8832d14d7d0c Rename 'protocol_options' field of PurpleProtocol to more appropriate 'account_options'
Ankit Vani <a@nevitus.org>
parents: 37036
diff changeset
72 * @options: Protocol options
8832d14d7d0c Rename 'protocol_options' field of PurpleProtocol to more appropriate 'account_options'
Ankit Vani <a@nevitus.org>
parents: 37036
diff changeset
73 * @user_splits: A GList of PurpleAccountUserSplit
8832d14d7d0c Rename 'protocol_options' field of PurpleProtocol to more appropriate 'account_options'
Ankit Vani <a@nevitus.org>
parents: 37036
diff changeset
74 * @account_options: A GList of PurpleAccountOption
8832d14d7d0c Rename 'protocol_options' field of PurpleProtocol to more appropriate 'account_options'
Ankit Vani <a@nevitus.org>
parents: 37036
diff changeset
75 * @icon_spec: The icon spec.
8832d14d7d0c Rename 'protocol_options' field of PurpleProtocol to more appropriate 'account_options'
Ankit Vani <a@nevitus.org>
parents: 37036
diff changeset
76 * @whiteboard_ops: Whiteboard operations
37036
a8e12bcb0a74 Convert the new .h files for this branch for gtk-doc
Ankit Vani <a@nevitus.org>
parents: 37034
diff changeset
77 *
36563
5ecb9a6c4611 Added protocol.[ch] and moved PurpleProtocol and PurpleProtocolInterface to it
Ankit Vani <a@nevitus.org>
parents:
diff changeset
78 * Represents an instance of a protocol registered with the protocols
36681
9c38716c8eb7 Moved protocol class members to instance. Protocol definitions now require *_init, *_class_init instead of *_base_init.
Ankit Vani <a@nevitus.org>
parents: 36680
diff changeset
79 * subsystem. Protocols must initialize the members to appropriate values.
36563
5ecb9a6c4611 Added protocol.[ch] and moved PurpleProtocol and PurpleProtocolInterface to it
Ankit Vani <a@nevitus.org>
parents:
diff changeset
80 */
5ecb9a6c4611 Added protocol.[ch] and moved PurpleProtocol and PurpleProtocolInterface to it
Ankit Vani <a@nevitus.org>
parents:
diff changeset
81 struct _PurpleProtocol
5ecb9a6c4611 Added protocol.[ch] and moved PurpleProtocol and PurpleProtocolInterface to it
Ankit Vani <a@nevitus.org>
parents:
diff changeset
82 {
5ecb9a6c4611 Added protocol.[ch] and moved PurpleProtocol and PurpleProtocolInterface to it
Ankit Vani <a@nevitus.org>
parents:
diff changeset
83 GObject gparent;
5ecb9a6c4611 Added protocol.[ch] and moved PurpleProtocol and PurpleProtocolInterface to it
Ankit Vani <a@nevitus.org>
parents:
diff changeset
84
37073
baf45dc13ffd Fix some gtk-doc warnings in protocol(s).h (not all)
Ankit Vani <a@nevitus.org>
parents: 37062
diff changeset
85 /*< public >*/
37036
a8e12bcb0a74 Convert the new .h files for this branch for gtk-doc
Ankit Vani <a@nevitus.org>
parents: 37034
diff changeset
86 const char *id;
a8e12bcb0a74 Convert the new .h files for this branch for gtk-doc
Ankit Vani <a@nevitus.org>
parents: 37034
diff changeset
87 const char *name;
36563
5ecb9a6c4611 Added protocol.[ch] and moved PurpleProtocol and PurpleProtocolInterface to it
Ankit Vani <a@nevitus.org>
parents:
diff changeset
88
37036
a8e12bcb0a74 Convert the new .h files for this branch for gtk-doc
Ankit Vani <a@nevitus.org>
parents: 37034
diff changeset
89 PurpleProtocolOptions options;
36563
5ecb9a6c4611 Added protocol.[ch] and moved PurpleProtocol and PurpleProtocolInterface to it
Ankit Vani <a@nevitus.org>
parents:
diff changeset
90
37036
a8e12bcb0a74 Convert the new .h files for this branch for gtk-doc
Ankit Vani <a@nevitus.org>
parents: 37034
diff changeset
91 GList *user_splits;
37038
8832d14d7d0c Rename 'protocol_options' field of PurpleProtocol to more appropriate 'account_options'
Ankit Vani <a@nevitus.org>
parents: 37036
diff changeset
92 GList *account_options;
36563
5ecb9a6c4611 Added protocol.[ch] and moved PurpleProtocol and PurpleProtocolInterface to it
Ankit Vani <a@nevitus.org>
parents:
diff changeset
93
37036
a8e12bcb0a74 Convert the new .h files for this branch for gtk-doc
Ankit Vani <a@nevitus.org>
parents: 37034
diff changeset
94 PurpleBuddyIconSpec *icon_spec;
a8e12bcb0a74 Convert the new .h files for this branch for gtk-doc
Ankit Vani <a@nevitus.org>
parents: 37034
diff changeset
95 PurpleWhiteboardOps *whiteboard_ops;
36564
2d423b459d4b Declared functions to call interface methods from PurpleProtocol * objects
Ankit Vani <a@nevitus.org>
parents: 36563
diff changeset
96
36896
3865997e388b Merged soc.2013.gobjectification branch
Ankit Vani <a@nevitus.org>
parents: 36731
diff changeset
97 /*< private >*/
36563
5ecb9a6c4611 Added protocol.[ch] and moved PurpleProtocol and PurpleProtocolInterface to it
Ankit Vani <a@nevitus.org>
parents:
diff changeset
98 void (*_purple_reserved1)(void);
5ecb9a6c4611 Added protocol.[ch] and moved PurpleProtocol and PurpleProtocolInterface to it
Ankit Vani <a@nevitus.org>
parents:
diff changeset
99 void (*_purple_reserved2)(void);
5ecb9a6c4611 Added protocol.[ch] and moved PurpleProtocol and PurpleProtocolInterface to it
Ankit Vani <a@nevitus.org>
parents:
diff changeset
100 void (*_purple_reserved3)(void);
5ecb9a6c4611 Added protocol.[ch] and moved PurpleProtocol and PurpleProtocolInterface to it
Ankit Vani <a@nevitus.org>
parents:
diff changeset
101 void (*_purple_reserved4)(void);
5ecb9a6c4611 Added protocol.[ch] and moved PurpleProtocol and PurpleProtocolInterface to it
Ankit Vani <a@nevitus.org>
parents:
diff changeset
102 };
5ecb9a6c4611 Added protocol.[ch] and moved PurpleProtocol and PurpleProtocolInterface to it
Ankit Vani <a@nevitus.org>
parents:
diff changeset
103
5ecb9a6c4611 Added protocol.[ch] and moved PurpleProtocol and PurpleProtocolInterface to it
Ankit Vani <a@nevitus.org>
parents:
diff changeset
104 /**
37036
a8e12bcb0a74 Convert the new .h files for this branch for gtk-doc
Ankit Vani <a@nevitus.org>
parents: 37034
diff changeset
105 * PurpleProtocolClass:
37086
b78048ba0fbb Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents: 37084
diff changeset
106 * @login: Log in to the server.
b78048ba0fbb Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents: 37084
diff changeset
107 * @close: Close connection with the server.
b78048ba0fbb Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents: 37084
diff changeset
108 * @status_types: Returns a list of #PurpleStatusType which exist for this
b78048ba0fbb Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents: 37084
diff changeset
109 * account; and must add at least the offline and online states.
b78048ba0fbb Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents: 37084
diff changeset
110 * @list_icon: Returns the base icon name for the given buddy and account. If
b78048ba0fbb Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents: 37084
diff changeset
111 * buddy is %NULL and the account is non-%NULL, it will return
b78048ba0fbb Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents: 37084
diff changeset
112 * the name to use for the account's icon. If both are %NULL, it
b78048ba0fbb Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents: 37084
diff changeset
113 * will return the name to use for the protocol's icon.
37036
a8e12bcb0a74 Convert the new .h files for this branch for gtk-doc
Ankit Vani <a@nevitus.org>
parents: 37034
diff changeset
114 *
36681
9c38716c8eb7 Moved protocol class members to instance. Protocol definitions now require *_init, *_class_init instead of *_base_init.
Ankit Vani <a@nevitus.org>
parents: 36680
diff changeset
115 * The base class for all protocols.
36717
6c4736862534 Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents: 36716
diff changeset
116 *
6c4736862534 Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents: 36716
diff changeset
117 * All protocol types must implement the methods in this class.
36681
9c38716c8eb7 Moved protocol class members to instance. Protocol definitions now require *_init, *_class_init instead of *_base_init.
Ankit Vani <a@nevitus.org>
parents: 36680
diff changeset
118 */
37086
b78048ba0fbb Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents: 37084
diff changeset
119 /* If adding new methods to this class, ensure you add checks for them in
b78048ba0fbb Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents: 37084
diff changeset
120 purple_protocols_add().
b78048ba0fbb Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents: 37084
diff changeset
121 */
36681
9c38716c8eb7 Moved protocol class members to instance. Protocol definitions now require *_init, *_class_init instead of *_base_init.
Ankit Vani <a@nevitus.org>
parents: 36680
diff changeset
122 struct _PurpleProtocolClass
9c38716c8eb7 Moved protocol class members to instance. Protocol definitions now require *_init, *_class_init instead of *_base_init.
Ankit Vani <a@nevitus.org>
parents: 36680
diff changeset
123 {
9c38716c8eb7 Moved protocol class members to instance. Protocol definitions now require *_init, *_class_init instead of *_base_init.
Ankit Vani <a@nevitus.org>
parents: 36680
diff changeset
124 GObjectClass parent_class;
36717
6c4736862534 Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents: 36716
diff changeset
125
38745
f4376b1f4682 A ton more of introspection cleanups
Gary Kramlich <grim@reaperworld.com>
parents: 37167
diff changeset
126 void (*login)(PurpleAccount *account);
36717
6c4736862534 Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents: 36716
diff changeset
127
38745
f4376b1f4682 A ton more of introspection cleanups
Gary Kramlich <grim@reaperworld.com>
parents: 37167
diff changeset
128 void (*close)(PurpleConnection *connection);
36717
6c4736862534 Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents: 36716
diff changeset
129
6c4736862534 Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents: 36716
diff changeset
130 GList *(*status_types)(PurpleAccount *account);
6c4736862534 Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents: 36716
diff changeset
131
6c4736862534 Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents: 36716
diff changeset
132 const char *(*list_icon)(PurpleAccount *account, PurpleBuddy *buddy);
6c4736862534 Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents: 36716
diff changeset
133
36896
3865997e388b Merged soc.2013.gobjectification branch
Ankit Vani <a@nevitus.org>
parents: 36731
diff changeset
134 /*< private >*/
36717
6c4736862534 Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents: 36716
diff changeset
135 void (*_purple_reserved1)(void);
6c4736862534 Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents: 36716
diff changeset
136 void (*_purple_reserved2)(void);
6c4736862534 Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents: 36716
diff changeset
137 void (*_purple_reserved3)(void);
6c4736862534 Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents: 36716
diff changeset
138 void (*_purple_reserved4)(void);
36681
9c38716c8eb7 Moved protocol class members to instance. Protocol definitions now require *_init, *_class_init instead of *_base_init.
Ankit Vani <a@nevitus.org>
parents: 36680
diff changeset
139 };
9c38716c8eb7 Moved protocol class members to instance. Protocol definitions now require *_init, *_class_init instead of *_base_init.
Ankit Vani <a@nevitus.org>
parents: 36680
diff changeset
140
36718
24f9c085897a Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents: 36717
diff changeset
141 /**
37036
a8e12bcb0a74 Convert the new .h files for this branch for gtk-doc
Ankit Vani <a@nevitus.org>
parents: 37034
diff changeset
142 * PURPLE_PROTOCOL_IMPLEMENTS:
a8e12bcb0a74 Convert the new .h files for this branch for gtk-doc
Ankit Vani <a@nevitus.org>
parents: 37034
diff changeset
143 * @protocol: The protocol in which to check
39759
ea1401483849 Rename *_GET_*_IFACE to more standard *_GET_IFACE.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 39758
diff changeset
144 * @IFACE: The interface name in caps. e.g. <literal>CLIENT</literal>
37036
a8e12bcb0a74 Convert the new .h files for this branch for gtk-doc
Ankit Vani <a@nevitus.org>
parents: 37034
diff changeset
145 * @func: The function to check
a8e12bcb0a74 Convert the new .h files for this branch for gtk-doc
Ankit Vani <a@nevitus.org>
parents: 37034
diff changeset
146 *
a8e12bcb0a74 Convert the new .h files for this branch for gtk-doc
Ankit Vani <a@nevitus.org>
parents: 37034
diff changeset
147 * Returns: %TRUE if a protocol implements a function in an interface,
a8e12bcb0a74 Convert the new .h files for this branch for gtk-doc
Ankit Vani <a@nevitus.org>
parents: 37034
diff changeset
148 * %FALSE otherwise.
36620
c76013b145f4 Added PURPLE_PROTOCOL_IMPLEMENTS(protocol,func) to check if a protocol implements a function
Ankit Vani <a@nevitus.org>
parents: 36618
diff changeset
149 */
36720
465f02116328 Refactored account, blistnodetypes, buddylist, connection to use the new protocol interfaces
Ankit Vani <a@nevitus.org>
parents: 36718
diff changeset
150 #define PURPLE_PROTOCOL_IMPLEMENTS(protocol, IFACE, func) \
39761
59c4ebe9ef67 Rename PURPLE_PROTOCOL_IS_* to PURPLE_IS_PROTOCOL_*.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 39760
diff changeset
151 (PURPLE_IS_PROTOCOL_##IFACE(protocol) && \
39759
ea1401483849 Rename *_GET_*_IFACE to more standard *_GET_IFACE.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 39758
diff changeset
152 PURPLE_PROTOCOL_##IFACE##_GET_IFACE(protocol)->func != NULL)
36620
c76013b145f4 Added PURPLE_PROTOCOL_IMPLEMENTS(protocol,func) to check if a protocol implements a function
Ankit Vani <a@nevitus.org>
parents: 36618
diff changeset
153
36563
5ecb9a6c4611 Added protocol.[ch] and moved PurpleProtocol and PurpleProtocolInterface to it
Ankit Vani <a@nevitus.org>
parents:
diff changeset
154 G_BEGIN_DECLS
5ecb9a6c4611 Added protocol.[ch] and moved PurpleProtocol and PurpleProtocolInterface to it
Ankit Vani <a@nevitus.org>
parents:
diff changeset
155
5ecb9a6c4611 Added protocol.[ch] and moved PurpleProtocol and PurpleProtocolInterface to it
Ankit Vani <a@nevitus.org>
parents:
diff changeset
156 /**************************************************************************/
37090
c45c70779582 Remove @name from new plugin and protocol stuff
Ankit Vani <a@nevitus.org>
parents: 37089
diff changeset
157 /* Protocol Object API */
36563
5ecb9a6c4611 Added protocol.[ch] and moved PurpleProtocol and PurpleProtocolInterface to it
Ankit Vani <a@nevitus.org>
parents:
diff changeset
158 /**************************************************************************/
5ecb9a6c4611 Added protocol.[ch] and moved PurpleProtocol and PurpleProtocolInterface to it
Ankit Vani <a@nevitus.org>
parents:
diff changeset
159
36617
be16459a68e9 Finished implementation of protocol object and interface stuff in protocol.[ch].
Ankit Vani <a@nevitus.org>
parents: 36613
diff changeset
160 /**
37036
a8e12bcb0a74 Convert the new .h files for this branch for gtk-doc
Ankit Vani <a@nevitus.org>
parents: 37034
diff changeset
161 * purple_protocol_get_type:
a8e12bcb0a74 Convert the new .h files for this branch for gtk-doc
Ankit Vani <a@nevitus.org>
parents: 37034
diff changeset
162 *
37073
baf45dc13ffd Fix some gtk-doc warnings in protocol(s).h (not all)
Ankit Vani <a@nevitus.org>
parents: 37062
diff changeset
163 * Returns: The #GType for #PurpleProtocol.
36563
5ecb9a6c4611 Added protocol.[ch] and moved PurpleProtocol and PurpleProtocolInterface to it
Ankit Vani <a@nevitus.org>
parents:
diff changeset
164 */
5ecb9a6c4611 Added protocol.[ch] and moved PurpleProtocol and PurpleProtocolInterface to it
Ankit Vani <a@nevitus.org>
parents:
diff changeset
165 GType purple_protocol_get_type(void);
5ecb9a6c4611 Added protocol.[ch] and moved PurpleProtocol and PurpleProtocolInterface to it
Ankit Vani <a@nevitus.org>
parents:
diff changeset
166
36617
be16459a68e9 Finished implementation of protocol object and interface stuff in protocol.[ch].
Ankit Vani <a@nevitus.org>
parents: 36613
diff changeset
167 /**
37036
a8e12bcb0a74 Convert the new .h files for this branch for gtk-doc
Ankit Vani <a@nevitus.org>
parents: 37034
diff changeset
168 * purple_protocol_get_id:
a8e12bcb0a74 Convert the new .h files for this branch for gtk-doc
Ankit Vani <a@nevitus.org>
parents: 37034
diff changeset
169 * @protocol: The protocol.
36581
09d5842255a2 Added missing includes and functions to headers
Ankit Vani <a@nevitus.org>
parents: 36580
diff changeset
170 *
37036
a8e12bcb0a74 Convert the new .h files for this branch for gtk-doc
Ankit Vani <a@nevitus.org>
parents: 37034
diff changeset
171 * Returns the ID of a protocol.
36581
09d5842255a2 Added missing includes and functions to headers
Ankit Vani <a@nevitus.org>
parents: 36580
diff changeset
172 *
37034
9d6765962b22 Initial replacements for this branch
Ankit Vani <a@nevitus.org>
parents: 37023
diff changeset
173 * Returns: The ID of the protocol.
36581
09d5842255a2 Added missing includes and functions to headers
Ankit Vani <a@nevitus.org>
parents: 36580
diff changeset
174 */
09d5842255a2 Added missing includes and functions to headers
Ankit Vani <a@nevitus.org>
parents: 36580
diff changeset
175 const char *purple_protocol_get_id(const PurpleProtocol *protocol);
09d5842255a2 Added missing includes and functions to headers
Ankit Vani <a@nevitus.org>
parents: 36580
diff changeset
176
36617
be16459a68e9 Finished implementation of protocol object and interface stuff in protocol.[ch].
Ankit Vani <a@nevitus.org>
parents: 36613
diff changeset
177 /**
37036
a8e12bcb0a74 Convert the new .h files for this branch for gtk-doc
Ankit Vani <a@nevitus.org>
parents: 37034
diff changeset
178 * purple_protocol_get_name:
a8e12bcb0a74 Convert the new .h files for this branch for gtk-doc
Ankit Vani <a@nevitus.org>
parents: 37034
diff changeset
179 * @protocol: The protocol.
36581
09d5842255a2 Added missing includes and functions to headers
Ankit Vani <a@nevitus.org>
parents: 36580
diff changeset
180 *
37036
a8e12bcb0a74 Convert the new .h files for this branch for gtk-doc
Ankit Vani <a@nevitus.org>
parents: 37034
diff changeset
181 * Returns the translated name of a protocol.
36581
09d5842255a2 Added missing includes and functions to headers
Ankit Vani <a@nevitus.org>
parents: 36580
diff changeset
182 *
37034
9d6765962b22 Initial replacements for this branch
Ankit Vani <a@nevitus.org>
parents: 37023
diff changeset
183 * Returns: The translated name of the protocol.
36581
09d5842255a2 Added missing includes and functions to headers
Ankit Vani <a@nevitus.org>
parents: 36580
diff changeset
184 */
09d5842255a2 Added missing includes and functions to headers
Ankit Vani <a@nevitus.org>
parents: 36580
diff changeset
185 const char *purple_protocol_get_name(const PurpleProtocol *protocol);
09d5842255a2 Added missing includes and functions to headers
Ankit Vani <a@nevitus.org>
parents: 36580
diff changeset
186
36617
be16459a68e9 Finished implementation of protocol object and interface stuff in protocol.[ch].
Ankit Vani <a@nevitus.org>
parents: 36613
diff changeset
187 /**
37036
a8e12bcb0a74 Convert the new .h files for this branch for gtk-doc
Ankit Vani <a@nevitus.org>
parents: 37034
diff changeset
188 * purple_protocol_get_options:
a8e12bcb0a74 Convert the new .h files for this branch for gtk-doc
Ankit Vani <a@nevitus.org>
parents: 37034
diff changeset
189 * @protocol: The protocol.
36581
09d5842255a2 Added missing includes and functions to headers
Ankit Vani <a@nevitus.org>
parents: 36580
diff changeset
190 *
37036
a8e12bcb0a74 Convert the new .h files for this branch for gtk-doc
Ankit Vani <a@nevitus.org>
parents: 37034
diff changeset
191 * Returns the options of a protocol.
36581
09d5842255a2 Added missing includes and functions to headers
Ankit Vani <a@nevitus.org>
parents: 36580
diff changeset
192 *
37034
9d6765962b22 Initial replacements for this branch
Ankit Vani <a@nevitus.org>
parents: 37023
diff changeset
193 * Returns: The options of the protocol.
36581
09d5842255a2 Added missing includes and functions to headers
Ankit Vani <a@nevitus.org>
parents: 36580
diff changeset
194 */
09d5842255a2 Added missing includes and functions to headers
Ankit Vani <a@nevitus.org>
parents: 36580
diff changeset
195 PurpleProtocolOptions purple_protocol_get_options(const PurpleProtocol *protocol);
09d5842255a2 Added missing includes and functions to headers
Ankit Vani <a@nevitus.org>
parents: 36580
diff changeset
196
36617
be16459a68e9 Finished implementation of protocol object and interface stuff in protocol.[ch].
Ankit Vani <a@nevitus.org>
parents: 36613
diff changeset
197 /**
37036
a8e12bcb0a74 Convert the new .h files for this branch for gtk-doc
Ankit Vani <a@nevitus.org>
parents: 37034
diff changeset
198 * purple_protocol_get_user_splits:
a8e12bcb0a74 Convert the new .h files for this branch for gtk-doc
Ankit Vani <a@nevitus.org>
parents: 37034
diff changeset
199 * @protocol: The protocol.
36581
09d5842255a2 Added missing includes and functions to headers
Ankit Vani <a@nevitus.org>
parents: 36580
diff changeset
200 *
37036
a8e12bcb0a74 Convert the new .h files for this branch for gtk-doc
Ankit Vani <a@nevitus.org>
parents: 37034
diff changeset
201 * Returns the user splits of a protocol.
36581
09d5842255a2 Added missing includes and functions to headers
Ankit Vani <a@nevitus.org>
parents: 36580
diff changeset
202 *
39739
ed1cd735639b Add some missing element-type annotations.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 39672
diff changeset
203 * Returns: (element-type PurpleAccountUserSplit) (transfer none): The user
ed1cd735639b Add some missing element-type annotations.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 39672
diff changeset
204 * splits of the protocol.
36581
09d5842255a2 Added missing includes and functions to headers
Ankit Vani <a@nevitus.org>
parents: 36580
diff changeset
205 */
09d5842255a2 Added missing includes and functions to headers
Ankit Vani <a@nevitus.org>
parents: 36580
diff changeset
206 GList *purple_protocol_get_user_splits(const PurpleProtocol *protocol);
09d5842255a2 Added missing includes and functions to headers
Ankit Vani <a@nevitus.org>
parents: 36580
diff changeset
207
36617
be16459a68e9 Finished implementation of protocol object and interface stuff in protocol.[ch].
Ankit Vani <a@nevitus.org>
parents: 36613
diff changeset
208 /**
37038
8832d14d7d0c Rename 'protocol_options' field of PurpleProtocol to more appropriate 'account_options'
Ankit Vani <a@nevitus.org>
parents: 37036
diff changeset
209 * purple_protocol_get_account_options:
37034
9d6765962b22 Initial replacements for this branch
Ankit Vani <a@nevitus.org>
parents: 37023
diff changeset
210 * @protocol: The protocol.
36581
09d5842255a2 Added missing includes and functions to headers
Ankit Vani <a@nevitus.org>
parents: 36580
diff changeset
211 *
37036
a8e12bcb0a74 Convert the new .h files for this branch for gtk-doc
Ankit Vani <a@nevitus.org>
parents: 37034
diff changeset
212 * Returns the account options for a protocol.
a8e12bcb0a74 Convert the new .h files for this branch for gtk-doc
Ankit Vani <a@nevitus.org>
parents: 37034
diff changeset
213 *
39739
ed1cd735639b Add some missing element-type annotations.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 39672
diff changeset
214 * Returns: (element-type PurpleAccountOption) (transfer none): The account
ed1cd735639b Add some missing element-type annotations.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 39672
diff changeset
215 * options for the protocol.
36581
09d5842255a2 Added missing includes and functions to headers
Ankit Vani <a@nevitus.org>
parents: 36580
diff changeset
216 */
37038
8832d14d7d0c Rename 'protocol_options' field of PurpleProtocol to more appropriate 'account_options'
Ankit Vani <a@nevitus.org>
parents: 37036
diff changeset
217 GList *purple_protocol_get_account_options(const PurpleProtocol *protocol);
36581
09d5842255a2 Added missing includes and functions to headers
Ankit Vani <a@nevitus.org>
parents: 36580
diff changeset
218
36617
be16459a68e9 Finished implementation of protocol object and interface stuff in protocol.[ch].
Ankit Vani <a@nevitus.org>
parents: 36613
diff changeset
219 /**
37036
a8e12bcb0a74 Convert the new .h files for this branch for gtk-doc
Ankit Vani <a@nevitus.org>
parents: 37034
diff changeset
220 * purple_protocol_get_icon_spec:
a8e12bcb0a74 Convert the new .h files for this branch for gtk-doc
Ankit Vani <a@nevitus.org>
parents: 37034
diff changeset
221 * @protocol: The protocol.
36581
09d5842255a2 Added missing includes and functions to headers
Ankit Vani <a@nevitus.org>
parents: 36580
diff changeset
222 *
37036
a8e12bcb0a74 Convert the new .h files for this branch for gtk-doc
Ankit Vani <a@nevitus.org>
parents: 37034
diff changeset
223 * Returns the icon spec of a protocol.
36581
09d5842255a2 Added missing includes and functions to headers
Ankit Vani <a@nevitus.org>
parents: 36580
diff changeset
224 *
37034
9d6765962b22 Initial replacements for this branch
Ankit Vani <a@nevitus.org>
parents: 37023
diff changeset
225 * Returns: The icon spec of the protocol.
36581
09d5842255a2 Added missing includes and functions to headers
Ankit Vani <a@nevitus.org>
parents: 36580
diff changeset
226 */
36608
bb8dbeba5bed Changed icon spec member of a protocol to a pointer. Use purple_buddy_icon_spec_new() to create an icon spec instance
Ankit Vani <a@nevitus.org>
parents: 36605
diff changeset
227 PurpleBuddyIconSpec *purple_protocol_get_icon_spec(const PurpleProtocol *protocol);
36581
09d5842255a2 Added missing includes and functions to headers
Ankit Vani <a@nevitus.org>
parents: 36580
diff changeset
228
36617
be16459a68e9 Finished implementation of protocol object and interface stuff in protocol.[ch].
Ankit Vani <a@nevitus.org>
parents: 36613
diff changeset
229 /**
37036
a8e12bcb0a74 Convert the new .h files for this branch for gtk-doc
Ankit Vani <a@nevitus.org>
parents: 37034
diff changeset
230 * purple_protocol_get_whiteboard_ops:
a8e12bcb0a74 Convert the new .h files for this branch for gtk-doc
Ankit Vani <a@nevitus.org>
parents: 37034
diff changeset
231 * @protocol: The protocol.
36581
09d5842255a2 Added missing includes and functions to headers
Ankit Vani <a@nevitus.org>
parents: 36580
diff changeset
232 *
37036
a8e12bcb0a74 Convert the new .h files for this branch for gtk-doc
Ankit Vani <a@nevitus.org>
parents: 37034
diff changeset
233 * Returns the whiteboard ops of a protocol.
36581
09d5842255a2 Added missing includes and functions to headers
Ankit Vani <a@nevitus.org>
parents: 36580
diff changeset
234 *
40188
80e78796edb2 Revert (skip) annotations
qarkai <qarkai@gmail.com>
parents: 40186
diff changeset
235 * Returns: (transfer none): The whiteboard ops of the protocol.
36581
09d5842255a2 Added missing includes and functions to headers
Ankit Vani <a@nevitus.org>
parents: 36580
diff changeset
236 */
36637
9b0109ae118d Renamed some prpl stuff to protocol stuff.
Ankit Vani <a@nevitus.org>
parents: 36624
diff changeset
237 PurpleWhiteboardOps *purple_protocol_get_whiteboard_ops(const PurpleProtocol *protocol);
36581
09d5842255a2 Added missing includes and functions to headers
Ankit Vani <a@nevitus.org>
parents: 36580
diff changeset
238
36718
24f9c085897a Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents: 36717
diff changeset
239 /**************************************************************************/
37090
c45c70779582 Remove @name from new plugin and protocol stuff
Ankit Vani <a@nevitus.org>
parents: 37089
diff changeset
240 /* Protocol Class API */
36718
24f9c085897a Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents: 36717
diff changeset
241 /**************************************************************************/
24f9c085897a Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents: 36717
diff changeset
242
38745
f4376b1f4682 A ton more of introspection cleanups
Gary Kramlich <grim@reaperworld.com>
parents: 37167
diff changeset
243 void purple_protocol_class_login(PurpleProtocol *protocol, PurpleAccount *account);
36718
24f9c085897a Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents: 36717
diff changeset
244
38745
f4376b1f4682 A ton more of introspection cleanups
Gary Kramlich <grim@reaperworld.com>
parents: 37167
diff changeset
245 void purple_protocol_class_close(PurpleProtocol *protocol, PurpleConnection *connection);
36718
24f9c085897a Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents: 36717
diff changeset
246
38745
f4376b1f4682 A ton more of introspection cleanups
Gary Kramlich <grim@reaperworld.com>
parents: 37167
diff changeset
247 GList *purple_protocol_class_status_types(PurpleProtocol *protocol,
36718
24f9c085897a Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents: 36717
diff changeset
248 PurpleAccount *account);
24f9c085897a Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents: 36717
diff changeset
249
38745
f4376b1f4682 A ton more of introspection cleanups
Gary Kramlich <grim@reaperworld.com>
parents: 37167
diff changeset
250 const char *purple_protocol_class_list_icon(PurpleProtocol *protocol,
36718
24f9c085897a Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents: 36717
diff changeset
251 PurpleAccount *account, PurpleBuddy *buddy);
24f9c085897a Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents: 36717
diff changeset
252
36563
5ecb9a6c4611 Added protocol.[ch] and moved PurpleProtocol and PurpleProtocolInterface to it
Ankit Vani <a@nevitus.org>
parents:
diff changeset
253 G_END_DECLS
5ecb9a6c4611 Added protocol.[ch] and moved PurpleProtocol and PurpleProtocolInterface to it
Ankit Vani <a@nevitus.org>
parents:
diff changeset
254
39659
e4dfb99b0cef Fix libpurple header guards using reserved names.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 39597
diff changeset
255 #endif /* PURPLE_PROTOCOL_H */

mercurial