Tue, 06 Aug 2019 19:15:13 -0400
Rename *_GET_*_IFACE to more standard *_GET_IFACE.
Two sed's of `s/_GET_\([A-Za-z0-9_]\+\)_IFACE/_\1_GET_IFACE/g` and
`s/\(PURPLE_PROTOCOL_IMPLEMENTS.\+\)_IFACE/\1/g`, plus a small fix in
`PURPLE_PROTOCOL_IMPLEMENTS`.
|
36563
5ecb9a6c4611
Added protocol.[ch] and moved PurpleProtocol and PurpleProtocolInterface to it
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
1 | /* purple |
|
5ecb9a6c4611
Added protocol.[ch] and moved PurpleProtocol and PurpleProtocolInterface to it
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
2 | * |
|
5ecb9a6c4611
Added protocol.[ch] and moved PurpleProtocol and PurpleProtocolInterface to it
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
3 | * 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
|
4 | * 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
|
5 | * source distribution. |
|
5ecb9a6c4611
Added protocol.[ch] and moved PurpleProtocol and PurpleProtocolInterface to it
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
6 | * |
|
5ecb9a6c4611
Added protocol.[ch] and moved PurpleProtocol and PurpleProtocolInterface to it
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
7 | * 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
|
8 | * 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
|
9 | * 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
|
10 | * (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
|
11 | * |
|
5ecb9a6c4611
Added protocol.[ch] and moved PurpleProtocol and PurpleProtocolInterface to it
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
12 | * 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
|
13 | * 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
|
14 | * 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
|
15 | * 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
|
16 | * |
|
5ecb9a6c4611
Added protocol.[ch] and moved PurpleProtocol and PurpleProtocolInterface to it
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
17 | * You should have received a copy of the GNU General Public License |
|
5ecb9a6c4611
Added protocol.[ch] and moved PurpleProtocol and PurpleProtocolInterface to it
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
18 | * along with this program; if not, write to the Free Software |
|
5ecb9a6c4611
Added protocol.[ch] and moved PurpleProtocol and PurpleProtocolInterface to it
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
19 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA |
|
5ecb9a6c4611
Added protocol.[ch] and moved PurpleProtocol and PurpleProtocolInterface to it
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
20 | */ |
| 37094 | 21 | |
|
39659
e4dfb99b0cef
Fix libpurple header guards using reserved names.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39597
diff
changeset
|
22 | #ifndef PURPLE_PROTOCOL_H |
|
e4dfb99b0cef
Fix libpurple header guards using reserved names.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39597
diff
changeset
|
23 | #define PURPLE_PROTOCOL_H |
|
37060
e5206d7698e5
Add section blocks for plugins.h, protocol.h, protocols.h
Ankit Vani <a@nevitus.org>
parents:
37054
diff
changeset
|
24 | /** |
|
e5206d7698e5
Add section blocks for plugins.h, protocol.h, protocols.h
Ankit Vani <a@nevitus.org>
parents:
37054
diff
changeset
|
25 | * SECTION:protocol |
|
e5206d7698e5
Add section blocks for plugins.h, protocol.h, protocols.h
Ankit Vani <a@nevitus.org>
parents:
37054
diff
changeset
|
26 | * @section_id: libpurple-protocol |
|
e5206d7698e5
Add section blocks for plugins.h, protocol.h, protocols.h
Ankit Vani <a@nevitus.org>
parents:
37054
diff
changeset
|
27 | * @short_description: <filename>protocol.h</filename> |
| 37062 | 28 | * @title: Protocol Object and Interfaces |
|
37060
e5206d7698e5
Add section blocks for plugins.h, protocol.h, protocols.h
Ankit Vani <a@nevitus.org>
parents:
37054
diff
changeset
|
29 | */ |
|
36563
5ecb9a6c4611
Added protocol.[ch] and moved PurpleProtocol and PurpleProtocolInterface to it
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
30 | |
|
36718
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
31 | #define PURPLE_TYPE_PROTOCOL (purple_protocol_get_type()) |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
32 | #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
|
33 | #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
|
34 | #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
|
35 | #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
|
36 | #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
|
37 | |
|
5ecb9a6c4611
Added protocol.[ch] and moved PurpleProtocol and PurpleProtocolInterface to it
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
38 | typedef struct _PurpleProtocol PurpleProtocol; |
|
5ecb9a6c4611
Added protocol.[ch] and moved PurpleProtocol and PurpleProtocolInterface to it
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
39 | typedef struct _PurpleProtocolClass PurpleProtocolClass; |
|
5ecb9a6c4611
Added protocol.[ch] and moved PurpleProtocol and PurpleProtocolInterface to it
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
40 | |
| 36569 | 41 | #include "account.h" |
|
36581
09d5842255a2
Added missing includes and functions to headers
Ankit Vani <a@nevitus.org>
parents:
36580
diff
changeset
|
42 | #include "accountopt.h" |
|
36624
38043ecaf4a6
Finished implementing functions for protocols.[ch].
Ankit Vani <a@nevitus.org>
parents:
36621
diff
changeset
|
43 | #include "buddyicon.h" |
| 36569 | 44 | #include "buddylist.h" |
| 45 | #include "connection.h" | |
| 46 | #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
|
47 | #include "debug.h" |
|
36688
e49025233301
Merged soc.2013.gobjectification branch
Ankit Vani <a@nevitus.org>
parents:
36686
diff
changeset
|
48 | #include "xfer.h" |
| 37134 | 49 | #include "image.h" |
|
36609
637155f87448
Refactored the protocols to use purple_buddy_icon_spec_new()
Ankit Vani <a@nevitus.org>
parents:
36608
diff
changeset
|
50 | #include "media.h" |
| 37148 | 51 | #include "message.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
|
52 | #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
|
53 | #include "plugins.h" |
| 36569 | 54 | #include "roomlist.h" |
| 36587 | 55 | #include "status.h" |
| 36569 | 56 | #include "whiteboard.h" |
| 57 | ||
|
36563
5ecb9a6c4611
Added protocol.[ch] and moved PurpleProtocol and PurpleProtocolInterface to it
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
58 | /** |
|
37036
a8e12bcb0a74
Convert the new .h files for this branch for gtk-doc
Ankit Vani <a@nevitus.org>
parents:
37034
diff
changeset
|
59 | * PurpleProtocolOverrideFlags: |
|
a8e12bcb0a74
Convert the new .h files for this branch for gtk-doc
Ankit Vani <a@nevitus.org>
parents:
37034
diff
changeset
|
60 | * |
|
36686
9807e4acf281
Added PurpleProtocolOverrideFlags and purple_protocol_override()
Ankit Vani <a@nevitus.org>
parents:
36682
diff
changeset
|
61 | * Flags to indicate what base protocol's data a derived protocol wants to |
|
9807e4acf281
Added PurpleProtocolOverrideFlags and purple_protocol_override()
Ankit Vani <a@nevitus.org>
parents:
36682
diff
changeset
|
62 | * override. |
|
9807e4acf281
Added PurpleProtocolOverrideFlags and purple_protocol_override()
Ankit Vani <a@nevitus.org>
parents:
36682
diff
changeset
|
63 | * |
|
37091
fb174197abb2
Remove @see in new plugin and protocol stuff
Ankit Vani <a@nevitus.org>
parents:
37090
diff
changeset
|
64 | * See purple_protocol_override(). |
|
36686
9807e4acf281
Added PurpleProtocolOverrideFlags and purple_protocol_override()
Ankit Vani <a@nevitus.org>
parents:
36682
diff
changeset
|
65 | */ |
|
9807e4acf281
Added PurpleProtocolOverrideFlags and purple_protocol_override()
Ankit Vani <a@nevitus.org>
parents:
36682
diff
changeset
|
66 | typedef enum /*< flags >*/ |
|
9807e4acf281
Added PurpleProtocolOverrideFlags and purple_protocol_override()
Ankit Vani <a@nevitus.org>
parents:
36682
diff
changeset
|
67 | { |
|
9807e4acf281
Added PurpleProtocolOverrideFlags and purple_protocol_override()
Ankit Vani <a@nevitus.org>
parents:
36682
diff
changeset
|
68 | PURPLE_PROTOCOL_OVERRIDE_USER_SPLITS = 1 << 1, |
|
9807e4acf281
Added PurpleProtocolOverrideFlags and purple_protocol_override()
Ankit Vani <a@nevitus.org>
parents:
36682
diff
changeset
|
69 | PURPLE_PROTOCOL_OVERRIDE_PROTOCOL_OPTIONS = 1 << 2, |
|
9807e4acf281
Added PurpleProtocolOverrideFlags and purple_protocol_override()
Ankit Vani <a@nevitus.org>
parents:
36682
diff
changeset
|
70 | PURPLE_PROTOCOL_OVERRIDE_ICON_SPEC = 1 << 3, |
|
9807e4acf281
Added PurpleProtocolOverrideFlags and purple_protocol_override()
Ankit Vani <a@nevitus.org>
parents:
36682
diff
changeset
|
71 | } PurpleProtocolOverrideFlags; |
|
9807e4acf281
Added PurpleProtocolOverrideFlags and purple_protocol_override()
Ankit Vani <a@nevitus.org>
parents:
36682
diff
changeset
|
72 | |
|
9807e4acf281
Added PurpleProtocolOverrideFlags and purple_protocol_override()
Ankit Vani <a@nevitus.org>
parents:
36682
diff
changeset
|
73 | /** |
|
37036
a8e12bcb0a74
Convert the new .h files for this branch for gtk-doc
Ankit Vani <a@nevitus.org>
parents:
37034
diff
changeset
|
74 | * PurpleProtocol: |
|
37038
8832d14d7d0c
Rename 'protocol_options' field of PurpleProtocol to more appropriate 'account_options'
Ankit Vani <a@nevitus.org>
parents:
37036
diff
changeset
|
75 | * @id: Protocol ID |
|
8832d14d7d0c
Rename 'protocol_options' field of PurpleProtocol to more appropriate 'account_options'
Ankit Vani <a@nevitus.org>
parents:
37036
diff
changeset
|
76 | * @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
|
77 | * @options: Protocol options |
|
8832d14d7d0c
Rename 'protocol_options' field of PurpleProtocol to more appropriate 'account_options'
Ankit Vani <a@nevitus.org>
parents:
37036
diff
changeset
|
78 | * @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
|
79 | * @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
|
80 | * @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
|
81 | * @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
|
82 | * |
|
36563
5ecb9a6c4611
Added protocol.[ch] and moved PurpleProtocol and PurpleProtocolInterface to it
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
83 | * 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
|
84 | * 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
|
85 | */ |
|
5ecb9a6c4611
Added protocol.[ch] and moved PurpleProtocol and PurpleProtocolInterface to it
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
86 | struct _PurpleProtocol |
|
5ecb9a6c4611
Added protocol.[ch] and moved PurpleProtocol and PurpleProtocolInterface to it
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
87 | { |
|
5ecb9a6c4611
Added protocol.[ch] and moved PurpleProtocol and PurpleProtocolInterface to it
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
88 | GObject gparent; |
|
5ecb9a6c4611
Added protocol.[ch] and moved PurpleProtocol and PurpleProtocolInterface to it
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
89 | |
|
37073
baf45dc13ffd
Fix some gtk-doc warnings in protocol(s).h (not all)
Ankit Vani <a@nevitus.org>
parents:
37062
diff
changeset
|
90 | /*< public >*/ |
|
37036
a8e12bcb0a74
Convert the new .h files for this branch for gtk-doc
Ankit Vani <a@nevitus.org>
parents:
37034
diff
changeset
|
91 | const char *id; |
|
a8e12bcb0a74
Convert the new .h files for this branch for gtk-doc
Ankit Vani <a@nevitus.org>
parents:
37034
diff
changeset
|
92 | const char *name; |
|
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 | PurpleProtocolOptions options; |
|
36563
5ecb9a6c4611
Added protocol.[ch] and moved PurpleProtocol and PurpleProtocolInterface to it
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
95 | |
|
37036
a8e12bcb0a74
Convert the new .h files for this branch for gtk-doc
Ankit Vani <a@nevitus.org>
parents:
37034
diff
changeset
|
96 | 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
|
97 | GList *account_options; |
|
36563
5ecb9a6c4611
Added protocol.[ch] and moved PurpleProtocol and PurpleProtocolInterface to it
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
98 | |
|
37036
a8e12bcb0a74
Convert the new .h files for this branch for gtk-doc
Ankit Vani <a@nevitus.org>
parents:
37034
diff
changeset
|
99 | PurpleBuddyIconSpec *icon_spec; |
|
a8e12bcb0a74
Convert the new .h files for this branch for gtk-doc
Ankit Vani <a@nevitus.org>
parents:
37034
diff
changeset
|
100 | PurpleWhiteboardOps *whiteboard_ops; |
|
36564
2d423b459d4b
Declared functions to call interface methods from PurpleProtocol * objects
Ankit Vani <a@nevitus.org>
parents:
36563
diff
changeset
|
101 | |
|
36896
3865997e388b
Merged soc.2013.gobjectification branch
Ankit Vani <a@nevitus.org>
parents:
36731
diff
changeset
|
102 | /*< private >*/ |
|
36563
5ecb9a6c4611
Added protocol.[ch] and moved PurpleProtocol and PurpleProtocolInterface to it
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
103 | void (*_purple_reserved1)(void); |
|
5ecb9a6c4611
Added protocol.[ch] and moved PurpleProtocol and PurpleProtocolInterface to it
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
104 | void (*_purple_reserved2)(void); |
|
5ecb9a6c4611
Added protocol.[ch] and moved PurpleProtocol and PurpleProtocolInterface to it
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
105 | void (*_purple_reserved3)(void); |
|
5ecb9a6c4611
Added protocol.[ch] and moved PurpleProtocol and PurpleProtocolInterface to it
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
106 | void (*_purple_reserved4)(void); |
|
5ecb9a6c4611
Added protocol.[ch] and moved PurpleProtocol and PurpleProtocolInterface to it
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
107 | }; |
|
5ecb9a6c4611
Added protocol.[ch] and moved PurpleProtocol and PurpleProtocolInterface to it
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
108 | |
|
5ecb9a6c4611
Added protocol.[ch] and moved PurpleProtocol and PurpleProtocolInterface to it
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
109 | /** |
|
37036
a8e12bcb0a74
Convert the new .h files for this branch for gtk-doc
Ankit Vani <a@nevitus.org>
parents:
37034
diff
changeset
|
110 | * PurpleProtocolClass: |
|
37086
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
111 | * @login: Log in to the server. |
|
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
112 | * @close: Close connection with the server. |
|
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
113 | * @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
|
114 | * 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
|
115 | * @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
|
116 | * 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
|
117 | * 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
|
118 | * 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
|
119 | * |
|
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
|
120 | * The base class for all protocols. |
|
36717
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
121 | * |
|
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
122 | * 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
|
123 | */ |
|
37086
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
124 | /* 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
|
125 | purple_protocols_add(). |
|
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
126 | */ |
|
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
|
127 | 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
|
128 | { |
|
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
|
129 | GObjectClass parent_class; |
|
36717
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
130 | |
|
38745
f4376b1f4682
A ton more of introspection cleanups
Gary Kramlich <grim@reaperworld.com>
parents:
37167
diff
changeset
|
131 | void (*login)(PurpleAccount *account); |
|
36717
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
132 | |
|
38745
f4376b1f4682
A ton more of introspection cleanups
Gary Kramlich <grim@reaperworld.com>
parents:
37167
diff
changeset
|
133 | void (*close)(PurpleConnection *connection); |
|
36717
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
134 | |
|
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
135 | GList *(*status_types)(PurpleAccount *account); |
|
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
136 | |
|
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
137 | 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
|
138 | |
|
36896
3865997e388b
Merged soc.2013.gobjectification branch
Ankit Vani <a@nevitus.org>
parents:
36731
diff
changeset
|
139 | /*< private >*/ |
|
36717
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
140 | void (*_purple_reserved1)(void); |
|
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
141 | void (*_purple_reserved2)(void); |
|
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
142 | void (*_purple_reserved3)(void); |
|
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
143 | 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
|
144 | }; |
|
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
|
145 | |
|
36718
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
146 | #define PURPLE_TYPE_PROTOCOL_CLIENT_IFACE (purple_protocol_client_iface_get_type()) |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
147 | |
|
39757
4a5ba806d8c9
Rename *Iface to more standard names.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39739
diff
changeset
|
148 | typedef struct _PurpleProtocolClientInterface PurpleProtocolClientInterface; |
|
36718
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
149 | |
|
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
|
150 | /** |
|
39757
4a5ba806d8c9
Rename *Iface to more standard names.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39739
diff
changeset
|
151 | * PurpleProtocolClientInterface: |
|
37086
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
152 | * @get_actions: Returns the actions the protocol can perform. These will |
|
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
153 | * show up in the Accounts menu, under a submenu with the name |
|
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
154 | * of the account. |
|
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
155 | * @list_emblem: Fills the four <type>char**</type>'s with string |
|
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
156 | * identifiers for "emblems" that the UI will interpret and |
|
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
157 | * display as relevant |
|
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
158 | * @status_text: Gets a short string representing this buddy's status. This |
|
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
159 | * will be shown on the buddy list. |
|
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
160 | * @tooltip_text: Allows the protocol to add text to a buddy's tooltip. |
|
39481
4db28449567d
Rename PurpleMenuAction to PurpleActionMenu
Gary Kramlich <grim@reaperworld.com>
parents:
38859
diff
changeset
|
161 | * @blist_node_menu: Returns a list of #PurpleActionMenu structs, which |
|
37086
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
162 | * represent extra actions to be shown in (for example) the |
|
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
163 | * right-click menu for @node. |
|
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
164 | * @normalize: Convert the username @who to its canonical form. Also checks for |
|
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
165 | * validity. |
|
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
166 | * <sbr/>For example, AIM treats "fOo BaR" and "foobar" as the same |
|
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
167 | * user; this function should return the same normalized string for |
|
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
168 | * both of those. On the other hand, both of these are invalid for |
|
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
169 | * protocols with number-based usernames, so function should return |
|
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
170 | * %NULL in such case. |
|
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
171 | * <sbr/>@account: The account the username is related to. Can be |
|
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
172 | * %NULL. |
|
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
173 | * <sbr/>@who: The username to convert. |
|
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
174 | * <sbr/>Returns: Normalized username, or %NULL, if it's invalid. |
|
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
175 | * @offline_message: Checks whether offline messages to @buddy are supported. |
|
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
176 | * <sbr/>Returns: %TRUE if @buddy can be sent messages while |
|
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
177 | * they are offline, or %FALSE if not. |
|
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
178 | * @get_account_text_table: This allows protocols to specify additional strings |
|
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
179 | * to be used for various purposes. The idea is to |
|
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
180 | * stuff a bunch of strings in this hash table instead |
|
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
181 | * of expanding the struct for every addition. This |
|
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
182 | * hash table is allocated every call and |
|
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
183 | * <emphasis>MUST</emphasis> be unrefed by the caller. |
|
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
184 | * <sbr/>@account: The account to specify. This can be |
|
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
185 | * %NULL. |
|
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
186 | * <sbr/>Returns: The protocol's string hash table. |
|
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
187 | * The hash table should be destroyed |
|
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
188 | * by the caller when it's no longer |
|
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
189 | * needed. |
|
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
190 | * @get_moods: Returns an array of #PurpleMood's, with the last one having |
|
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
191 | * "mood" set to %NULL. |
|
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
192 | * @get_max_message_size: Gets the maximum message size in bytes for the |
|
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
193 | * conversation. |
|
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
194 | * <sbr/>It may depend on connection-specific or |
|
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
195 | * conversation-specific variables, like channel or |
|
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
196 | * buddy's name length. |
|
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
197 | * <sbr/>This value is intended for plaintext message, |
|
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
198 | * the exact value may be lower because of: |
|
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
199 | * <sbr/> - used newlines (some protocols count them as |
|
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
200 | * more than one byte), |
|
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
201 | * <sbr/> - formatting, |
|
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
202 | * <sbr/> - used special characters. |
|
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
203 | * <sbr/>@conv: The conversation to query, or NULL to |
|
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
204 | * get safe minimum for the protocol. |
|
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
205 | * <sbr/>Returns: Maximum message size, 0 if unspecified, |
|
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
206 | * -1 for infinite. |
|
37036
a8e12bcb0a74
Convert the new .h files for this branch for gtk-doc
Ankit Vani <a@nevitus.org>
parents:
37034
diff
changeset
|
207 | * |
|
36717
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
208 | * The protocol client interface. |
|
36682
cf89caae5d1e
List the required protocol implementations in PurpleProtocolInterface's documentation
Ankit Vani <a@nevitus.org>
parents:
36681
diff
changeset
|
209 | * |
|
36717
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
210 | * This interface provides a gateway between purple and the protocol. |
|
36563
5ecb9a6c4611
Added protocol.[ch] and moved PurpleProtocol and PurpleProtocolInterface to it
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
211 | */ |
|
39757
4a5ba806d8c9
Rename *Iface to more standard names.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39739
diff
changeset
|
212 | struct _PurpleProtocolClientInterface |
|
36563
5ecb9a6c4611
Added protocol.[ch] and moved PurpleProtocol and PurpleProtocolInterface to it
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
213 | { |
|
5ecb9a6c4611
Added protocol.[ch] and moved PurpleProtocol and PurpleProtocolInterface to it
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
214 | /*< private >*/ |
|
5ecb9a6c4611
Added protocol.[ch] and moved PurpleProtocol and PurpleProtocolInterface to it
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
215 | GTypeInterface parent_iface; |
|
5ecb9a6c4611
Added protocol.[ch] and moved PurpleProtocol and PurpleProtocolInterface to it
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
216 | |
|
37073
baf45dc13ffd
Fix some gtk-doc warnings in protocol(s).h (not all)
Ankit Vani <a@nevitus.org>
parents:
37062
diff
changeset
|
217 | /*< public >*/ |
|
38745
f4376b1f4682
A ton more of introspection cleanups
Gary Kramlich <grim@reaperworld.com>
parents:
37167
diff
changeset
|
218 | GList *(*get_actions)(PurpleConnection *connection); |
|
36563
5ecb9a6c4611
Added protocol.[ch] and moved PurpleProtocol and PurpleProtocolInterface to it
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
219 | |
|
5ecb9a6c4611
Added protocol.[ch] and moved PurpleProtocol and PurpleProtocolInterface to it
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
220 | const char *(*list_emblem)(PurpleBuddy *buddy); |
|
5ecb9a6c4611
Added protocol.[ch] and moved PurpleProtocol and PurpleProtocolInterface to it
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
221 | |
|
5ecb9a6c4611
Added protocol.[ch] and moved PurpleProtocol and PurpleProtocolInterface to it
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
222 | char *(*status_text)(PurpleBuddy *buddy); |
|
5ecb9a6c4611
Added protocol.[ch] and moved PurpleProtocol and PurpleProtocolInterface to it
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
223 | |
|
36564
2d423b459d4b
Declared functions to call interface methods from PurpleProtocol * objects
Ankit Vani <a@nevitus.org>
parents:
36563
diff
changeset
|
224 | void (*tooltip_text)(PurpleBuddy *buddy, PurpleNotifyUserInfo *user_info, |
|
2d423b459d4b
Declared functions to call interface methods from PurpleProtocol * objects
Ankit Vani <a@nevitus.org>
parents:
36563
diff
changeset
|
225 | gboolean full); |
|
36563
5ecb9a6c4611
Added protocol.[ch] and moved PurpleProtocol and PurpleProtocolInterface to it
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
226 | |
|
5ecb9a6c4611
Added protocol.[ch] and moved PurpleProtocol and PurpleProtocolInterface to it
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
227 | GList *(*blist_node_menu)(PurpleBlistNode *node); |
|
5ecb9a6c4611
Added protocol.[ch] and moved PurpleProtocol and PurpleProtocolInterface to it
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
228 | |
|
38745
f4376b1f4682
A ton more of introspection cleanups
Gary Kramlich <grim@reaperworld.com>
parents:
37167
diff
changeset
|
229 | void (*buddy_free)(PurpleBuddy *buddy); |
|
36717
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
230 | |
|
38745
f4376b1f4682
A ton more of introspection cleanups
Gary Kramlich <grim@reaperworld.com>
parents:
37167
diff
changeset
|
231 | void (*convo_closed)(PurpleConnection *connection, const char *who); |
|
36717
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
232 | |
|
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
233 | const char *(*normalize)(const PurpleAccount *account, const char *who); |
|
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
234 | |
|
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
235 | PurpleChat *(*find_blist_chat)(PurpleAccount *account, const char *name); |
|
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
236 | |
|
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
237 | gboolean (*offline_message)(const PurpleBuddy *buddy); |
|
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
238 | |
|
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
239 | GHashTable *(*get_account_text_table)(PurpleAccount *account); |
|
36563
5ecb9a6c4611
Added protocol.[ch] and moved PurpleProtocol and PurpleProtocolInterface to it
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
240 | |
|
36717
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
241 | PurpleMood *(*get_moods)(PurpleAccount *account); |
|
36563
5ecb9a6c4611
Added protocol.[ch] and moved PurpleProtocol and PurpleProtocolInterface to it
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
242 | |
|
36717
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
243 | gssize (*get_max_message_size)(PurpleConversation *conv); |
|
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
244 | }; |
|
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
245 | |
|
39758
a0e894209b3e
Rename *_HAS_*_IFACE to more standard *_IS_*.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39757
diff
changeset
|
246 | #define PURPLE_PROTOCOL_IS_CLIENT(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), PURPLE_TYPE_PROTOCOL_CLIENT_IFACE)) |
|
39759
ea1401483849
Rename *_GET_*_IFACE to more standard *_GET_IFACE.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39758
diff
changeset
|
247 | #define PURPLE_PROTOCOL_CLIENT_GET_IFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE((obj), PURPLE_TYPE_PROTOCOL_CLIENT_IFACE, \ |
|
39757
4a5ba806d8c9
Rename *Iface to more standard names.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39739
diff
changeset
|
248 | PurpleProtocolClientInterface)) |
|
37092
3dca8b4caa7f
Move the HAS_IFACE and GET_IFACE macros after the iface structs
Ankit Vani <a@nevitus.org>
parents:
37091
diff
changeset
|
249 | |
|
36718
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
250 | #define PURPLE_TYPE_PROTOCOL_SERVER_IFACE (purple_protocol_server_iface_get_type()) |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
251 | |
|
39757
4a5ba806d8c9
Rename *Iface to more standard names.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39739
diff
changeset
|
252 | typedef struct _PurpleProtocolServerInterface PurpleProtocolServerInterface; |
|
36718
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
253 | |
|
36717
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
254 | /** |
|
39757
4a5ba806d8c9
Rename *Iface to more standard names.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39739
diff
changeset
|
255 | * PurpleProtocolServerInterface: |
|
37086
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
256 | * @register_user: New user registration |
|
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
257 | * @unregister_user: Remove the user from the server. The account can either be |
|
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
258 | * connected or disconnected. After the removal is finished, |
|
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
259 | * the connection will stay open and has to be closed! |
|
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
260 | * @get_info: Should arrange for purple_notify_userinfo() to be called |
|
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
261 | * with @who's user info. |
|
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
262 | * @add_buddy: Add a buddy to a group on the server. |
|
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
263 | * <sbr/>This protocol function may be called in situations in |
|
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
264 | * which the buddy is already in the specified group. If the |
|
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
265 | * protocol supports authorization and the user is not already |
|
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
266 | * authorized to see the status of @buddy, @add_buddy should |
|
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
267 | * request authorization. |
|
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
268 | * <sbr/>If authorization is required, then use the supplied |
|
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
269 | * invite message. |
|
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
270 | * @keepalive: If implemented, this will be called regularly for this |
|
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
271 | * protocol's active connections. You'd want to do this if you |
|
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
272 | * need to repeatedly send some kind of keepalive packet to |
|
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
273 | * the server to avoid being disconnected. ("Regularly" is |
|
39518
6141cf90e5b8
libpurple: Make keepalive interval configurable
Petteri Pitkänen <petepitk@gmail.com>
parents:
38859
diff
changeset
|
274 | * defined to be 30 unless get_keepalive_interval() is |
|
6141cf90e5b8
libpurple: Make keepalive interval configurable
Petteri Pitkänen <petepitk@gmail.com>
parents:
38859
diff
changeset
|
275 | * implemented to override it). |
|
37086
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
276 | * <filename>libpurple/connection.c</filename>.) |
|
39518
6141cf90e5b8
libpurple: Make keepalive interval configurable
Petteri Pitkänen <petepitk@gmail.com>
parents:
38859
diff
changeset
|
277 | * @get_keepalive_interval: If implemented, this will override the default |
|
6141cf90e5b8
libpurple: Make keepalive interval configurable
Petteri Pitkänen <petepitk@gmail.com>
parents:
38859
diff
changeset
|
278 | * keepalive interval. |
|
37086
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
279 | * @alias_buddy: Save/store buddy's alias on server list/roster |
|
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
280 | * @group_buddy: Change a buddy's group on a server list/roster |
|
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
281 | * @rename_group: Rename a group on a server list/roster |
|
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
282 | * @set_buddy_icon: Set the buddy icon for the given connection to @img. The |
|
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
283 | * protocol does <emphasis>NOT</emphasis> own a reference to |
| 37134 | 284 | * @img; if it needs one, it must #g_object_ref(@img) |
|
37086
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
285 | * itself. |
|
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
286 | * @send_raw: For use in plugins that may understand the underlying |
|
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
287 | * protocol |
|
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
288 | * @set_public_alias: Set the user's "friendly name" (or alias or nickname or |
|
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
289 | * whatever term you want to call it) on the server. The |
|
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
290 | * protocol should call @success_cb or @failure_cb |
|
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
291 | * <emphasis>asynchronously</emphasis> (if it knows |
|
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
292 | * immediately that the set will fail, call one of the |
|
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
293 | * callbacks from an idle/0-second timeout) depending on if |
|
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
294 | * the nickname is set successfully. See |
|
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
295 | * purple_account_set_public_alias(). |
|
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
296 | * <sbr/>@gc: The connection for which to set an alias |
|
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
297 | * <sbr/>@alias: The new server-side alias/nickname for this |
|
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
298 | * account, or %NULL to unset the |
|
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
299 | * alias/nickname (or return it to a |
|
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
300 | * protocol-specific "default"). |
|
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
301 | * <sbr/>@success_cb: Callback to be called if the public |
|
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
302 | * alias is set |
|
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
303 | * <sbr/>@failure_cb: Callback to be called if setting the |
|
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
304 | * public alias fails |
|
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
305 | * @get_public_alias: Retrieve the user's "friendly name" as set on the server. |
|
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
306 | * The protocol should call @success_cb or @failure_cb |
|
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
307 | * <emphasis>asynchronously</emphasis> (even if it knows |
|
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
308 | * immediately that the get will fail, call one of the |
|
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
309 | * callbacks from an idle/0-second timeout) depending on if |
|
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
310 | * the nickname is retrieved. See |
|
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
311 | * purple_account_get_public_alias(). |
|
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
312 | * <sbr/>@gc: The connection for which to retireve |
|
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
313 | * the alias |
|
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
314 | * <sbr/>@success_cb: Callback to be called with the |
|
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
315 | * retrieved alias |
|
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
316 | * <sbr/>@failure_cb: Callback to be called if the protocol |
|
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
317 | * is unable to retrieve the alias |
|
37036
a8e12bcb0a74
Convert the new .h files for this branch for gtk-doc
Ankit Vani <a@nevitus.org>
parents:
37034
diff
changeset
|
318 | * |
|
36717
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
319 | * The protocol server interface. |
|
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
320 | * |
|
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
321 | * This interface provides a gateway between purple and the protocol's server. |
|
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
322 | */ |
|
39757
4a5ba806d8c9
Rename *Iface to more standard names.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39739
diff
changeset
|
323 | struct _PurpleProtocolServerInterface |
|
36717
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
324 | { |
|
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
325 | /*< private >*/ |
|
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
326 | GTypeInterface parent_iface; |
|
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
327 | |
|
37073
baf45dc13ffd
Fix some gtk-doc warnings in protocol(s).h (not all)
Ankit Vani <a@nevitus.org>
parents:
37062
diff
changeset
|
328 | /*< public >*/ |
|
38745
f4376b1f4682
A ton more of introspection cleanups
Gary Kramlich <grim@reaperworld.com>
parents:
37167
diff
changeset
|
329 | void (*register_user)(PurpleAccount *account); |
|
36717
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
330 | |
|
38745
f4376b1f4682
A ton more of introspection cleanups
Gary Kramlich <grim@reaperworld.com>
parents:
37167
diff
changeset
|
331 | void (*unregister_user)(PurpleAccount *account, PurpleAccountUnregistrationCb cb, |
|
36717
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
332 | void *user_data); |
|
36563
5ecb9a6c4611
Added protocol.[ch] and moved PurpleProtocol and PurpleProtocolInterface to it
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
333 | |
|
38745
f4376b1f4682
A ton more of introspection cleanups
Gary Kramlich <grim@reaperworld.com>
parents:
37167
diff
changeset
|
334 | void (*set_info)(PurpleConnection *connection, const char *info); |
|
36563
5ecb9a6c4611
Added protocol.[ch] and moved PurpleProtocol and PurpleProtocolInterface to it
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
335 | |
|
38745
f4376b1f4682
A ton more of introspection cleanups
Gary Kramlich <grim@reaperworld.com>
parents:
37167
diff
changeset
|
336 | void (*get_info)(PurpleConnection *connection, const char *who); |
|
37086
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
337 | |
|
36563
5ecb9a6c4611
Added protocol.[ch] and moved PurpleProtocol and PurpleProtocolInterface to it
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
338 | void (*set_status)(PurpleAccount *account, PurpleStatus *status); |
|
5ecb9a6c4611
Added protocol.[ch] and moved PurpleProtocol and PurpleProtocolInterface to it
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
339 | |
|
38745
f4376b1f4682
A ton more of introspection cleanups
Gary Kramlich <grim@reaperworld.com>
parents:
37167
diff
changeset
|
340 | void (*set_idle)(PurpleConnection *connection, int idletime); |
|
37086
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
341 | |
|
38745
f4376b1f4682
A ton more of introspection cleanups
Gary Kramlich <grim@reaperworld.com>
parents:
37167
diff
changeset
|
342 | void (*change_passwd)(PurpleConnection *connection, const char *old_pass, |
|
36563
5ecb9a6c4611
Added protocol.[ch] and moved PurpleProtocol and PurpleProtocolInterface to it
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
343 | const char *new_pass); |
|
5ecb9a6c4611
Added protocol.[ch] and moved PurpleProtocol and PurpleProtocolInterface to it
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
344 | |
|
36564
2d423b459d4b
Declared functions to call interface methods from PurpleProtocol * objects
Ankit Vani <a@nevitus.org>
parents:
36563
diff
changeset
|
345 | void (*add_buddy)(PurpleConnection *pc, PurpleBuddy *buddy, |
|
2d423b459d4b
Declared functions to call interface methods from PurpleProtocol * objects
Ankit Vani <a@nevitus.org>
parents:
36563
diff
changeset
|
346 | PurpleGroup *group, const char *message); |
|
37086
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
347 | |
|
36564
2d423b459d4b
Declared functions to call interface methods from PurpleProtocol * objects
Ankit Vani <a@nevitus.org>
parents:
36563
diff
changeset
|
348 | void (*add_buddies)(PurpleConnection *pc, GList *buddies, GList *groups, |
|
2d423b459d4b
Declared functions to call interface methods from PurpleProtocol * objects
Ankit Vani <a@nevitus.org>
parents:
36563
diff
changeset
|
349 | const char *message); |
|
37086
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
350 | |
|
38745
f4376b1f4682
A ton more of introspection cleanups
Gary Kramlich <grim@reaperworld.com>
parents:
37167
diff
changeset
|
351 | void (*remove_buddy)(PurpleConnection *connection, PurpleBuddy *buddy, |
|
36564
2d423b459d4b
Declared functions to call interface methods from PurpleProtocol * objects
Ankit Vani <a@nevitus.org>
parents:
36563
diff
changeset
|
352 | PurpleGroup *group); |
|
37086
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
353 | |
|
38745
f4376b1f4682
A ton more of introspection cleanups
Gary Kramlich <grim@reaperworld.com>
parents:
37167
diff
changeset
|
354 | void (*remove_buddies)(PurpleConnection *connection, GList *buddies, GList *groups); |
|
36717
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
355 | |
|
38745
f4376b1f4682
A ton more of introspection cleanups
Gary Kramlich <grim@reaperworld.com>
parents:
37167
diff
changeset
|
356 | void (*keepalive)(PurpleConnection *connection); |
|
36717
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
357 | |
|
39518
6141cf90e5b8
libpurple: Make keepalive interval configurable
Petteri Pitkänen <petepitk@gmail.com>
parents:
38859
diff
changeset
|
358 | int (*get_keepalive_interval)(void); |
|
6141cf90e5b8
libpurple: Make keepalive interval configurable
Petteri Pitkänen <petepitk@gmail.com>
parents:
38859
diff
changeset
|
359 | |
|
38745
f4376b1f4682
A ton more of introspection cleanups
Gary Kramlich <grim@reaperworld.com>
parents:
37167
diff
changeset
|
360 | void (*alias_buddy)(PurpleConnection *connection, const char *who, |
|
36717
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
361 | const char *alias); |
|
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
362 | |
|
38745
f4376b1f4682
A ton more of introspection cleanups
Gary Kramlich <grim@reaperworld.com>
parents:
37167
diff
changeset
|
363 | void (*group_buddy)(PurpleConnection *connection, const char *who, |
|
37086
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
364 | const char *old_group, const char *new_group); |
|
36717
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
365 | |
|
38745
f4376b1f4682
A ton more of introspection cleanups
Gary Kramlich <grim@reaperworld.com>
parents:
37167
diff
changeset
|
366 | void (*rename_group)(PurpleConnection *connection, const char *old_name, |
|
37086
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
367 | PurpleGroup *group, GList *moved_buddies); |
|
36717
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
368 | |
|
38745
f4376b1f4682
A ton more of introspection cleanups
Gary Kramlich <grim@reaperworld.com>
parents:
37167
diff
changeset
|
369 | void (*set_buddy_icon)(PurpleConnection *connection, PurpleImage *img); |
|
36717
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
370 | |
|
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
371 | void (*remove_group)(PurpleConnection *gc, PurpleGroup *group); |
|
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
372 | |
|
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
373 | int (*send_raw)(PurpleConnection *gc, const char *buf, int len); |
|
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
374 | |
|
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
375 | void (*set_public_alias)(PurpleConnection *gc, const char *alias, |
|
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
376 | PurpleSetPublicAliasSuccessCallback success_cb, |
|
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
377 | PurpleSetPublicAliasFailureCallback failure_cb); |
|
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
378 | |
|
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
379 | void (*get_public_alias)(PurpleConnection *gc, |
|
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
380 | PurpleGetPublicAliasSuccessCallback success_cb, |
|
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
381 | PurpleGetPublicAliasFailureCallback failure_cb); |
|
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
382 | }; |
|
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
383 | |
|
39758
a0e894209b3e
Rename *_HAS_*_IFACE to more standard *_IS_*.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39757
diff
changeset
|
384 | #define PURPLE_PROTOCOL_IS_SERVER(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), PURPLE_TYPE_PROTOCOL_SERVER_IFACE)) |
|
39759
ea1401483849
Rename *_GET_*_IFACE to more standard *_GET_IFACE.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39758
diff
changeset
|
385 | #define PURPLE_PROTOCOL_SERVER_GET_IFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE((obj), PURPLE_TYPE_PROTOCOL_SERVER_IFACE, \ |
|
39757
4a5ba806d8c9
Rename *Iface to more standard names.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39739
diff
changeset
|
386 | PurpleProtocolServerInterface)) |
|
37092
3dca8b4caa7f
Move the HAS_IFACE and GET_IFACE macros after the iface structs
Ankit Vani <a@nevitus.org>
parents:
37091
diff
changeset
|
387 | |
|
36718
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
388 | #define PURPLE_TYPE_PROTOCOL_IM_IFACE (purple_protocol_im_iface_get_type()) |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
389 | |
|
39757
4a5ba806d8c9
Rename *Iface to more standard names.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39739
diff
changeset
|
390 | typedef struct _PurpleProtocolIMInterface PurpleProtocolIMInterface; |
|
36718
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
391 | |
|
36717
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
392 | /** |
|
39757
4a5ba806d8c9
Rename *Iface to more standard names.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39739
diff
changeset
|
393 | * PurpleProtocolIMInterface: |
|
37086
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
394 | * @send: This protocol function should return a positive value on |
| 37087 | 395 | * success. If the message is too big to be sent, return |
| 396 | * <literal>-E2BIG</literal>. If the account is not connected, | |
| 397 | * return <literal>-ENOTCONN</literal>. If the protocol is unable | |
| 398 | * to send the message for another reason, return some other | |
| 399 | * negative value. You can use one of the valid #errno values, or | |
| 400 | * just big something. If the message should not be echoed to the | |
| 401 | * conversation window, return 0. | |
|
37086
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
402 | * @send_typing: If this protocol requires the #PURPLE_IM_TYPING message to be |
|
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
403 | * sent repeatedly to signify that the user is still typing, then |
|
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
404 | * the protocol should return the number of seconds to wait before |
|
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
405 | * sending a subsequent notification. Otherwise the protocol |
|
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
406 | * should return 0. |
|
37036
a8e12bcb0a74
Convert the new .h files for this branch for gtk-doc
Ankit Vani <a@nevitus.org>
parents:
37034
diff
changeset
|
407 | * |
|
36717
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
408 | * The protocol IM interface. |
|
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
409 | * |
|
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
410 | * This interface provides callbacks needed by protocols that implement IMs. |
|
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
411 | */ |
|
39757
4a5ba806d8c9
Rename *Iface to more standard names.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39739
diff
changeset
|
412 | struct _PurpleProtocolIMInterface |
|
36717
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
413 | { |
|
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
414 | /*< private >*/ |
|
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
415 | GTypeInterface parent_iface; |
|
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
416 | |
|
37073
baf45dc13ffd
Fix some gtk-doc warnings in protocol(s).h (not all)
Ankit Vani <a@nevitus.org>
parents:
37062
diff
changeset
|
417 | /*< public >*/ |
|
38745
f4376b1f4682
A ton more of introspection cleanups
Gary Kramlich <grim@reaperworld.com>
parents:
37167
diff
changeset
|
418 | int (*send)(PurpleConnection *connection, PurpleMessage *msg); |
|
36717
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
419 | |
|
38745
f4376b1f4682
A ton more of introspection cleanups
Gary Kramlich <grim@reaperworld.com>
parents:
37167
diff
changeset
|
420 | unsigned int (*send_typing)(PurpleConnection *connection, const char *name, |
|
37086
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
421 | PurpleIMTypingState state); |
|
36717
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
422 | }; |
|
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
423 | |
|
39758
a0e894209b3e
Rename *_HAS_*_IFACE to more standard *_IS_*.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39757
diff
changeset
|
424 | #define PURPLE_PROTOCOL_IS_IM(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), PURPLE_TYPE_PROTOCOL_IM_IFACE)) |
|
39759
ea1401483849
Rename *_GET_*_IFACE to more standard *_GET_IFACE.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39758
diff
changeset
|
425 | #define PURPLE_PROTOCOL_IM_GET_IFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE((obj), PURPLE_TYPE_PROTOCOL_IM_IFACE, \ |
|
39757
4a5ba806d8c9
Rename *Iface to more standard names.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39739
diff
changeset
|
426 | PurpleProtocolIMInterface)) |
|
37092
3dca8b4caa7f
Move the HAS_IFACE and GET_IFACE macros after the iface structs
Ankit Vani <a@nevitus.org>
parents:
37091
diff
changeset
|
427 | |
|
36718
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
428 | #define PURPLE_TYPE_PROTOCOL_CHAT_IFACE (purple_protocol_chat_iface_get_type()) |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
429 | |
|
39757
4a5ba806d8c9
Rename *Iface to more standard names.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39739
diff
changeset
|
430 | typedef struct _PurpleProtocolChatInterface PurpleProtocolChatInterface; |
|
36718
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
431 | |
|
36717
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
432 | /** |
|
39757
4a5ba806d8c9
Rename *Iface to more standard names.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39739
diff
changeset
|
433 | * PurpleProtocolChatInterface: |
|
37086
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
434 | * @info: Returns a list of #PurpleProtocolChatEntry structs, which represent |
|
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
435 | * information required by the protocol to join a chat. libpurple will |
|
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
436 | * call join_chat along with the information filled by the user. |
|
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
437 | * <sbr/>Returns: A list of #PurpleProtocolChatEntry's |
|
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
438 | * @info_defaults: Returns a hashtable which maps #PurpleProtocolChatEntry |
|
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
439 | * struct identifiers to default options as strings based on |
|
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
440 | * @chat_name. The resulting hashtable should be created with |
|
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
441 | * #g_hash_table_new_full(#g_str_hash, #g_str_equal, %NULL, |
|
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
442 | * #g_free). Use @get_name if you instead need to extract a chat |
|
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
443 | * name from a hashtable. |
|
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
444 | * <sbr/>@chat_name: The chat name to be turned into components |
|
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
445 | * <sbr/>Returns: Hashtable containing the information extracted |
|
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
446 | * from @chat_name |
|
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
447 | * @join: Called when the user requests joining a chat. Should arrange for |
| 37101 | 448 | * purple_serv_got_joined_chat() to be called. |
|
37086
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
449 | * <sbr/>@components: A hashtable containing information required to join |
|
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
450 | * the chat as described by the entries returned by |
|
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
451 | * @info. It may also be called when accepting an |
|
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
452 | * invitation, in which case this matches the data |
| 37103 | 453 | * parameter passed to purple_serv_got_chat_invite(). |
|
37086
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
454 | * @reject: Called when the user refuses a chat invitation. |
|
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
455 | * <sbr/>@components: A hashtable containing information required to |
| 37103 | 456 | * join the chat as passed to purple_serv_got_chat_invite(). |
|
37086
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
457 | * @get_name: Returns a chat name based on the information in components. Use |
|
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
458 | * @info_defaults if you instead need to generate a hashtable from a |
|
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
459 | * chat name. |
|
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
460 | * <sbr/>@components: A hashtable containing information about the |
|
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
461 | * chat. |
|
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
462 | * @invite: Invite a user to join a chat. |
|
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
463 | * <sbr/>@id: The id of the chat to invite the user to. |
|
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
464 | * <sbr/>@message: A message displayed to the user when the invitation |
|
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
465 | * is received. |
|
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
466 | * <sbr/>@who: The name of the user to send the invation to. |
|
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
467 | * @leave: Called when the user requests leaving a chat. |
|
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
468 | * <sbr/>@id: The id of the chat to leave |
|
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
469 | * @send: Send a message to a chat. |
|
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
470 | * <sbr/>This protocol function should return a positive value on |
| 37087 | 471 | * success. If the message is too big to be sent, return |
| 472 | * <literal>-E2BIG</literal>. If the account is not connected, | |
| 473 | * return <literal>-ENOTCONN</literal>. If the protocol is unable | |
| 474 | * to send the message for another reason, return some other | |
| 475 | * negative value. You can use one of the valid #errno values, or | |
| 476 | * just big something. | |
|
37086
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
477 | * <sbr/>@id: The id of the chat to send the message to. |
| 37148 | 478 | * <sbr/>@msg: The message to send to the chat. |
|
37086
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
479 | * <sbr/>Returns: A positive number or 0 in case of success, a |
|
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
480 | * negative error number in case of failure. |
|
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
481 | * @get_user_real_name: Gets the real name of a participant in a chat. For |
|
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
482 | * example, on XMPP this turns a chat room nick |
|
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
483 | * <literal>foo</literal> into |
|
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
484 | * <literal>room\@server/foo</literal>. |
|
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
485 | * <sbr/>@gc: the connection on which the room is. |
|
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
486 | * <sbr/>@id: the ID of the chat room. |
|
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
487 | * <sbr/>@who: the nickname of the chat participant. |
|
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
488 | * <sbr/>Returns: the real name of the participant. This |
|
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
489 | * string must be freed by the caller. |
|
37036
a8e12bcb0a74
Convert the new .h files for this branch for gtk-doc
Ankit Vani <a@nevitus.org>
parents:
37034
diff
changeset
|
490 | * |
|
36717
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
491 | * The protocol chat interface. |
|
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
492 | * |
|
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
493 | * This interface provides callbacks needed by protocols that implement chats. |
|
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
494 | */ |
|
39757
4a5ba806d8c9
Rename *Iface to more standard names.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39739
diff
changeset
|
495 | struct _PurpleProtocolChatInterface |
|
36717
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
496 | { |
|
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
497 | /*< private >*/ |
|
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
498 | GTypeInterface parent_iface; |
|
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
499 | |
|
37073
baf45dc13ffd
Fix some gtk-doc warnings in protocol(s).h (not all)
Ankit Vani <a@nevitus.org>
parents:
37062
diff
changeset
|
500 | /*< public >*/ |
|
38745
f4376b1f4682
A ton more of introspection cleanups
Gary Kramlich <grim@reaperworld.com>
parents:
37167
diff
changeset
|
501 | GList *(*info)(PurpleConnection *connection); |
|
36717
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
502 | |
|
38745
f4376b1f4682
A ton more of introspection cleanups
Gary Kramlich <grim@reaperworld.com>
parents:
37167
diff
changeset
|
503 | GHashTable *(*info_defaults)(PurpleConnection *connection, const char *chat_name); |
|
36563
5ecb9a6c4611
Added protocol.[ch] and moved PurpleProtocol and PurpleProtocolInterface to it
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
504 | |
|
38745
f4376b1f4682
A ton more of introspection cleanups
Gary Kramlich <grim@reaperworld.com>
parents:
37167
diff
changeset
|
505 | void (*join)(PurpleConnection *connection, GHashTable *components); |
|
36563
5ecb9a6c4611
Added protocol.[ch] and moved PurpleProtocol and PurpleProtocolInterface to it
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
506 | |
|
38745
f4376b1f4682
A ton more of introspection cleanups
Gary Kramlich <grim@reaperworld.com>
parents:
37167
diff
changeset
|
507 | void (*reject)(PurpleConnection *connection, GHashTable *components); |
|
36563
5ecb9a6c4611
Added protocol.[ch] and moved PurpleProtocol and PurpleProtocolInterface to it
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
508 | |
|
36718
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
509 | char *(*get_name)(GHashTable *components); |
|
36563
5ecb9a6c4611
Added protocol.[ch] and moved PurpleProtocol and PurpleProtocolInterface to it
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
510 | |
|
38745
f4376b1f4682
A ton more of introspection cleanups
Gary Kramlich <grim@reaperworld.com>
parents:
37167
diff
changeset
|
511 | void (*invite)(PurpleConnection *connection, int id, |
|
37086
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
512 | const char *message, const char *who); |
|
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
513 | |
|
38745
f4376b1f4682
A ton more of introspection cleanups
Gary Kramlich <grim@reaperworld.com>
parents:
37167
diff
changeset
|
514 | void (*leave)(PurpleConnection *connection, int id); |
|
36563
5ecb9a6c4611
Added protocol.[ch] and moved PurpleProtocol and PurpleProtocolInterface to it
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
515 | |
|
38745
f4376b1f4682
A ton more of introspection cleanups
Gary Kramlich <grim@reaperworld.com>
parents:
37167
diff
changeset
|
516 | int (*send)(PurpleConnection *connection, int id, PurpleMessage *msg); |
|
36563
5ecb9a6c4611
Added protocol.[ch] and moved PurpleProtocol and PurpleProtocolInterface to it
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
517 | |
|
36718
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
518 | char *(*get_user_real_name)(PurpleConnection *gc, int id, const char *who); |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
519 | |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
520 | void (*set_topic)(PurpleConnection *gc, int id, const char *topic); |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
521 | }; |
|
36563
5ecb9a6c4611
Added protocol.[ch] and moved PurpleProtocol and PurpleProtocolInterface to it
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
522 | |
|
39758
a0e894209b3e
Rename *_HAS_*_IFACE to more standard *_IS_*.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39757
diff
changeset
|
523 | #define PURPLE_PROTOCOL_IS_CHAT(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), PURPLE_TYPE_PROTOCOL_CHAT_IFACE)) |
|
39759
ea1401483849
Rename *_GET_*_IFACE to more standard *_GET_IFACE.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39758
diff
changeset
|
524 | #define PURPLE_PROTOCOL_CHAT_GET_IFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE((obj), PURPLE_TYPE_PROTOCOL_CHAT_IFACE, \ |
|
39757
4a5ba806d8c9
Rename *Iface to more standard names.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39739
diff
changeset
|
525 | PurpleProtocolChatInterface)) |
|
37092
3dca8b4caa7f
Move the HAS_IFACE and GET_IFACE macros after the iface structs
Ankit Vani <a@nevitus.org>
parents:
37091
diff
changeset
|
526 | |
|
36718
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
527 | #define PURPLE_TYPE_PROTOCOL_PRIVACY_IFACE (purple_protocol_privacy_iface_get_type()) |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
528 | |
|
39757
4a5ba806d8c9
Rename *Iface to more standard names.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39739
diff
changeset
|
529 | typedef struct _PurpleProtocolPrivacyInterface PurpleProtocolPrivacyInterface; |
|
36563
5ecb9a6c4611
Added protocol.[ch] and moved PurpleProtocol and PurpleProtocolInterface to it
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
530 | |
|
36717
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
531 | /** |
|
39757
4a5ba806d8c9
Rename *Iface to more standard names.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39739
diff
changeset
|
532 | * PurpleProtocolPrivacyInterface: |
|
37162
3336df05de5b
Add introspection gtkdocs for server.h
Jorge Villaseñor <salinasv@pidgin.im>
parents:
37148
diff
changeset
|
533 | * @add_permit: Add the buddy on the required authorized list. |
|
3336df05de5b
Add introspection gtkdocs for server.h
Jorge Villaseñor <salinasv@pidgin.im>
parents:
37148
diff
changeset
|
534 | * @add_deny: Add the buddy on the required blocked list. |
|
3336df05de5b
Add introspection gtkdocs for server.h
Jorge Villaseñor <salinasv@pidgin.im>
parents:
37148
diff
changeset
|
535 | * @rem_permit: Remove the buddy from the requried authorized list. |
|
3336df05de5b
Add introspection gtkdocs for server.h
Jorge Villaseñor <salinasv@pidgin.im>
parents:
37148
diff
changeset
|
536 | * @rem_deny: Remove the buddy from the required blocked list. |
|
3336df05de5b
Add introspection gtkdocs for server.h
Jorge Villaseñor <salinasv@pidgin.im>
parents:
37148
diff
changeset
|
537 | * @set_permit_deny:Update the server with the privacy information on the permit and deny lists. |
|
37036
a8e12bcb0a74
Convert the new .h files for this branch for gtk-doc
Ankit Vani <a@nevitus.org>
parents:
37034
diff
changeset
|
538 | * |
|
36717
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
539 | * The protocol privacy interface. |
|
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
540 | * |
|
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
541 | * This interface provides privacy callbacks such as to permit/deny users. |
|
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
542 | */ |
|
39757
4a5ba806d8c9
Rename *Iface to more standard names.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39739
diff
changeset
|
543 | struct _PurpleProtocolPrivacyInterface |
|
36717
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
544 | { |
|
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
545 | /*< private >*/ |
|
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
546 | GTypeInterface parent_iface; |
|
36563
5ecb9a6c4611
Added protocol.[ch] and moved PurpleProtocol and PurpleProtocolInterface to it
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
547 | |
|
37073
baf45dc13ffd
Fix some gtk-doc warnings in protocol(s).h (not all)
Ankit Vani <a@nevitus.org>
parents:
37062
diff
changeset
|
548 | /*< public >*/ |
|
37162
3336df05de5b
Add introspection gtkdocs for server.h
Jorge Villaseñor <salinasv@pidgin.im>
parents:
37148
diff
changeset
|
549 | void (*add_permit)(PurpleConnection *gc, const char *name); |
|
37086
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
550 | |
|
37162
3336df05de5b
Add introspection gtkdocs for server.h
Jorge Villaseñor <salinasv@pidgin.im>
parents:
37148
diff
changeset
|
551 | void (*add_deny)(PurpleConnection *gc, const char *name); |
|
37086
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
552 | |
|
37162
3336df05de5b
Add introspection gtkdocs for server.h
Jorge Villaseñor <salinasv@pidgin.im>
parents:
37148
diff
changeset
|
553 | void (*rem_permit)(PurpleConnection *gc, const char *name); |
|
37086
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
554 | |
|
37162
3336df05de5b
Add introspection gtkdocs for server.h
Jorge Villaseñor <salinasv@pidgin.im>
parents:
37148
diff
changeset
|
555 | void (*rem_deny)(PurpleConnection *gc, const char *name); |
|
37086
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
556 | |
|
37162
3336df05de5b
Add introspection gtkdocs for server.h
Jorge Villaseñor <salinasv@pidgin.im>
parents:
37148
diff
changeset
|
557 | void (*set_permit_deny)(PurpleConnection *gc); |
|
36717
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
558 | }; |
|
36563
5ecb9a6c4611
Added protocol.[ch] and moved PurpleProtocol and PurpleProtocolInterface to it
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
559 | |
|
39758
a0e894209b3e
Rename *_HAS_*_IFACE to more standard *_IS_*.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39757
diff
changeset
|
560 | #define PURPLE_PROTOCOL_IS_PRIVACY(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), PURPLE_TYPE_PROTOCOL_PRIVACY_IFACE)) |
|
39759
ea1401483849
Rename *_GET_*_IFACE to more standard *_GET_IFACE.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39758
diff
changeset
|
561 | #define PURPLE_PROTOCOL_PRIVACY_GET_IFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE((obj), PURPLE_TYPE_PROTOCOL_PRIVACY_IFACE, \ |
|
39757
4a5ba806d8c9
Rename *Iface to more standard names.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39739
diff
changeset
|
562 | PurpleProtocolPrivacyInterface)) |
|
37092
3dca8b4caa7f
Move the HAS_IFACE and GET_IFACE macros after the iface structs
Ankit Vani <a@nevitus.org>
parents:
37091
diff
changeset
|
563 | |
|
36718
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
564 | #define PURPLE_TYPE_PROTOCOL_ROOMLIST_IFACE (purple_protocol_roomlist_iface_get_type()) |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
565 | |
|
39757
4a5ba806d8c9
Rename *Iface to more standard names.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39739
diff
changeset
|
566 | typedef struct _PurpleProtocolRoomlistInterface PurpleProtocolRoomlistInterface; |
|
36718
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
567 | |
|
36717
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
568 | /** |
|
39757
4a5ba806d8c9
Rename *Iface to more standard names.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39739
diff
changeset
|
569 | * PurpleProtocolRoomlistInterface: |
|
37036
a8e12bcb0a74
Convert the new .h files for this branch for gtk-doc
Ankit Vani <a@nevitus.org>
parents:
37034
diff
changeset
|
570 | * |
|
36717
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
571 | * The protocol roomlist interface. |
|
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
572 | * |
|
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
573 | * This interface provides callbacks for room listing. |
|
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
574 | */ |
|
39757
4a5ba806d8c9
Rename *Iface to more standard names.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39739
diff
changeset
|
575 | struct _PurpleProtocolRoomlistInterface |
|
36717
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
576 | { |
|
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
577 | /*< private >*/ |
|
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
578 | GTypeInterface parent_iface; |
|
36563
5ecb9a6c4611
Added protocol.[ch] and moved PurpleProtocol and PurpleProtocolInterface to it
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
579 | |
|
37073
baf45dc13ffd
Fix some gtk-doc warnings in protocol(s).h (not all)
Ankit Vani <a@nevitus.org>
parents:
37062
diff
changeset
|
580 | /*< public >*/ |
|
36718
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
581 | PurpleRoomlist *(*get_list)(PurpleConnection *gc); |
|
37086
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
582 | |
|
36718
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
583 | void (*cancel)(PurpleRoomlist *list); |
|
37086
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
584 | |
|
36718
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
585 | void (*expand_category)(PurpleRoomlist *list, |
|
37086
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
586 | PurpleRoomlistRoom *category); |
|
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
587 | |
|
36563
5ecb9a6c4611
Added protocol.[ch] and moved PurpleProtocol and PurpleProtocolInterface to it
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
588 | /* room list serialize */ |
|
36718
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
589 | char *(*room_serialize)(PurpleRoomlistRoom *room); |
|
36717
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
590 | }; |
|
36563
5ecb9a6c4611
Added protocol.[ch] and moved PurpleProtocol and PurpleProtocolInterface to it
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
591 | |
|
39758
a0e894209b3e
Rename *_HAS_*_IFACE to more standard *_IS_*.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39757
diff
changeset
|
592 | #define PURPLE_PROTOCOL_IS_ROOMLIST(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), PURPLE_TYPE_PROTOCOL_ROOMLIST_IFACE)) |
|
39759
ea1401483849
Rename *_GET_*_IFACE to more standard *_GET_IFACE.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39758
diff
changeset
|
593 | #define PURPLE_PROTOCOL_ROOMLIST_GET_IFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE((obj), PURPLE_TYPE_PROTOCOL_ROOMLIST_IFACE, \ |
|
39757
4a5ba806d8c9
Rename *Iface to more standard names.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39739
diff
changeset
|
594 | PurpleProtocolRoomlistInterface)) |
|
37092
3dca8b4caa7f
Move the HAS_IFACE and GET_IFACE macros after the iface structs
Ankit Vani <a@nevitus.org>
parents:
37091
diff
changeset
|
595 | |
|
36718
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
596 | #define PURPLE_TYPE_PROTOCOL_MEDIA_IFACE (purple_protocol_media_iface_get_type()) |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
597 | |
|
39757
4a5ba806d8c9
Rename *Iface to more standard names.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39739
diff
changeset
|
598 | typedef struct _PurpleProtocolMediaInterface PurpleProtocolMediaInterface; |
|
36718
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
599 | |
|
36717
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
600 | /** |
|
39757
4a5ba806d8c9
Rename *Iface to more standard names.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39739
diff
changeset
|
601 | * PurpleProtocolMediaInterface: |
|
37086
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
602 | * @initiate_session: Initiate a media session with the given contact. |
|
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
603 | * <sbr/>@account: The account to initiate the media session |
|
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
604 | * on. |
|
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
605 | * <sbr/>@who: The remote user to initiate the session with. |
|
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
606 | * <sbr/>@type: The type of media session to initiate. |
|
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
607 | * <sbr/>Returns: %TRUE if the call succeeded else %FALSE. |
|
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
608 | * (Doesn't imply the media session or stream |
|
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
609 | * will be successfully created) |
|
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
610 | * @get_caps: Checks to see if the given contact supports the given type of |
|
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
611 | * media session. |
|
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
612 | * <sbr/>@account: The account the contact is on. |
|
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
613 | * <sbr/>@who: The remote user to check for media capability with. |
|
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
614 | * <sbr/>Returns: The media caps the contact supports. |
|
37164
aea7e3b20138
Added send_dtmf to protocol media interface
Ankit Vani <a@nevitus.org>
parents:
37148
diff
changeset
|
615 | * @send_dtmf: Sends DTMF codes out-of-band in a protocol-specific way if the |
|
aea7e3b20138
Added send_dtmf to protocol media interface
Ankit Vani <a@nevitus.org>
parents:
37148
diff
changeset
|
616 | * protocol supports it, or failing that in-band if the media backend |
|
aea7e3b20138
Added send_dtmf to protocol media interface
Ankit Vani <a@nevitus.org>
parents:
37148
diff
changeset
|
617 | * can do so. See purple_media_send_dtmf(). |
|
37036
a8e12bcb0a74
Convert the new .h files for this branch for gtk-doc
Ankit Vani <a@nevitus.org>
parents:
37034
diff
changeset
|
618 | * |
|
36717
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
619 | * The protocol media interface. |
|
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
620 | * |
|
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
621 | * This interface provides callbacks for media sessions on the protocol. |
|
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
622 | */ |
|
39757
4a5ba806d8c9
Rename *Iface to more standard names.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39739
diff
changeset
|
623 | struct _PurpleProtocolMediaInterface |
|
36717
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
624 | { |
|
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
625 | /*< private >*/ |
|
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
626 | GTypeInterface parent_iface; |
|
36563
5ecb9a6c4611
Added protocol.[ch] and moved PurpleProtocol and PurpleProtocolInterface to it
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
627 | |
|
37073
baf45dc13ffd
Fix some gtk-doc warnings in protocol(s).h (not all)
Ankit Vani <a@nevitus.org>
parents:
37062
diff
changeset
|
628 | /*< public >*/ |
|
36718
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
629 | gboolean (*initiate_session)(PurpleAccount *account, const char *who, |
|
36563
5ecb9a6c4611
Added protocol.[ch] and moved PurpleProtocol and PurpleProtocolInterface to it
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
630 | PurpleMediaSessionType type); |
|
5ecb9a6c4611
Added protocol.[ch] and moved PurpleProtocol and PurpleProtocolInterface to it
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
631 | |
|
36718
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
632 | PurpleMediaCaps (*get_caps)(PurpleAccount *account, |
|
36563
5ecb9a6c4611
Added protocol.[ch] and moved PurpleProtocol and PurpleProtocolInterface to it
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
633 | const char *who); |
|
37164
aea7e3b20138
Added send_dtmf to protocol media interface
Ankit Vani <a@nevitus.org>
parents:
37148
diff
changeset
|
634 | |
|
aea7e3b20138
Added send_dtmf to protocol media interface
Ankit Vani <a@nevitus.org>
parents:
37148
diff
changeset
|
635 | gboolean (*send_dtmf)(PurpleMedia *media, gchar dtmf, |
|
aea7e3b20138
Added send_dtmf to protocol media interface
Ankit Vani <a@nevitus.org>
parents:
37148
diff
changeset
|
636 | guint8 volume, guint8 duration); |
|
36717
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
637 | }; |
|
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
638 | |
|
39758
a0e894209b3e
Rename *_HAS_*_IFACE to more standard *_IS_*.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39757
diff
changeset
|
639 | #define PURPLE_PROTOCOL_IS_MEDIA(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), PURPLE_TYPE_PROTOCOL_MEDIA_IFACE)) |
|
39759
ea1401483849
Rename *_GET_*_IFACE to more standard *_GET_IFACE.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39758
diff
changeset
|
640 | #define PURPLE_PROTOCOL_MEDIA_GET_IFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE((obj), PURPLE_TYPE_PROTOCOL_MEDIA_IFACE, \ |
|
39757
4a5ba806d8c9
Rename *Iface to more standard names.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39739
diff
changeset
|
641 | PurpleProtocolMediaInterface)) |
|
37092
3dca8b4caa7f
Move the HAS_IFACE and GET_IFACE macros after the iface structs
Ankit Vani <a@nevitus.org>
parents:
37091
diff
changeset
|
642 | |
|
36718
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
643 | #define PURPLE_TYPE_PROTOCOL_FACTORY_IFACE (purple_protocol_factory_iface_get_type()) |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
644 | |
|
39757
4a5ba806d8c9
Rename *Iface to more standard names.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39739
diff
changeset
|
645 | typedef struct _PurpleProtocolFactoryInterface PurpleProtocolFactoryInterface; |
|
36718
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
646 | |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
647 | /** |
|
39757
4a5ba806d8c9
Rename *Iface to more standard names.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39739
diff
changeset
|
648 | * PurpleProtocolFactoryInterface: |
|
37086
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
649 | * @connection_new: Creates a new protocol-specific connection object that |
|
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
650 | * inherits #PurpleConnection. |
|
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
651 | * @roomlist_new: Creates a new protocol-specific room list object that |
|
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
652 | * inherits #PurpleRoomlist. |
|
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
653 | * @whiteboard_new: Creates a new protocol-specific whiteboard object that |
|
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
654 | * inherits #PurpleWhiteboard. |
|
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
655 | * @xfer_new: Creates a new protocol-specific file transfer object that |
|
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
656 | * inherits #PurpleXfer. |
|
37036
a8e12bcb0a74
Convert the new .h files for this branch for gtk-doc
Ankit Vani <a@nevitus.org>
parents:
37034
diff
changeset
|
657 | * |
|
36717
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
658 | * The protocol factory interface. |
|
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
659 | * |
|
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
660 | * This interface provides callbacks for construction of protocol-specific |
|
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
661 | * subclasses of some purple objects. |
|
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
662 | */ |
|
39757
4a5ba806d8c9
Rename *Iface to more standard names.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39739
diff
changeset
|
663 | struct _PurpleProtocolFactoryInterface |
|
36717
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
664 | { |
|
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
665 | /*< private >*/ |
|
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
666 | GTypeInterface parent_iface; |
|
36563
5ecb9a6c4611
Added protocol.[ch] and moved PurpleProtocol and PurpleProtocolInterface to it
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
667 | |
|
37073
baf45dc13ffd
Fix some gtk-doc warnings in protocol(s).h (not all)
Ankit Vani <a@nevitus.org>
parents:
37062
diff
changeset
|
668 | /*< public >*/ |
|
36717
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
669 | PurpleConnection *(*connection_new)(PurpleProtocol *protocol, |
|
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
670 | PurpleAccount *account, |
|
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
671 | const char *password); |
|
36563
5ecb9a6c4611
Added protocol.[ch] and moved PurpleProtocol and PurpleProtocolInterface to it
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
672 | |
|
36717
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
673 | PurpleRoomlist *(*roomlist_new)(PurpleAccount *account); |
|
36583
0582190c9382
Merged soc.2013.gobjectification branch
Ankit Vani <a@nevitus.org>
parents:
36581
diff
changeset
|
674 | |
|
36717
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
675 | PurpleWhiteboard *(*whiteboard_new)(PurpleAccount *account, |
|
36718
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
676 | const char *who, int state); |
|
36563
5ecb9a6c4611
Added protocol.[ch] and moved PurpleProtocol and PurpleProtocolInterface to it
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
677 | }; |
|
5ecb9a6c4611
Added protocol.[ch] and moved PurpleProtocol and PurpleProtocolInterface to it
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
678 | |
|
39758
a0e894209b3e
Rename *_HAS_*_IFACE to more standard *_IS_*.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39757
diff
changeset
|
679 | #define PURPLE_PROTOCOL_IS_FACTORY(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), PURPLE_TYPE_PROTOCOL_FACTORY_IFACE)) |
|
39759
ea1401483849
Rename *_GET_*_IFACE to more standard *_GET_IFACE.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39758
diff
changeset
|
680 | #define PURPLE_PROTOCOL_FACTORY_GET_IFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE((obj), PURPLE_TYPE_PROTOCOL_FACTORY_IFACE, \ |
|
39757
4a5ba806d8c9
Rename *Iface to more standard names.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39739
diff
changeset
|
681 | PurpleProtocolFactoryInterface)) |
|
37092
3dca8b4caa7f
Move the HAS_IFACE and GET_IFACE macros after the iface structs
Ankit Vani <a@nevitus.org>
parents:
37091
diff
changeset
|
682 | |
|
36718
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
683 | /** |
|
37036
a8e12bcb0a74
Convert the new .h files for this branch for gtk-doc
Ankit Vani <a@nevitus.org>
parents:
37034
diff
changeset
|
684 | * PURPLE_PROTOCOL_IMPLEMENTS: |
|
a8e12bcb0a74
Convert the new .h files for this branch for gtk-doc
Ankit Vani <a@nevitus.org>
parents:
37034
diff
changeset
|
685 | * @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
|
686 | * @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
|
687 | * @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
|
688 | * |
|
a8e12bcb0a74
Convert the new .h files for this branch for gtk-doc
Ankit Vani <a@nevitus.org>
parents:
37034
diff
changeset
|
689 | * 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
|
690 | * %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
|
691 | */ |
|
36720
465f02116328
Refactored account, blistnodetypes, buddylist, connection to use the new protocol interfaces
Ankit Vani <a@nevitus.org>
parents:
36718
diff
changeset
|
692 | #define PURPLE_PROTOCOL_IMPLEMENTS(protocol, IFACE, func) \ |
|
39758
a0e894209b3e
Rename *_HAS_*_IFACE to more standard *_IS_*.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39757
diff
changeset
|
693 | (PURPLE_PROTOCOL_IS_##IFACE(protocol) && \ |
|
39759
ea1401483849
Rename *_GET_*_IFACE to more standard *_GET_IFACE.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39758
diff
changeset
|
694 | 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
|
695 | |
|
36563
5ecb9a6c4611
Added protocol.[ch] and moved PurpleProtocol and PurpleProtocolInterface to it
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
696 | G_BEGIN_DECLS |
|
5ecb9a6c4611
Added protocol.[ch] and moved PurpleProtocol and PurpleProtocolInterface to it
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
697 | |
|
5ecb9a6c4611
Added protocol.[ch] and moved PurpleProtocol and PurpleProtocolInterface to it
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
698 | /**************************************************************************/ |
|
37090
c45c70779582
Remove @name from new plugin and protocol stuff
Ankit Vani <a@nevitus.org>
parents:
37089
diff
changeset
|
699 | /* Protocol Object API */ |
|
36563
5ecb9a6c4611
Added protocol.[ch] and moved PurpleProtocol and PurpleProtocolInterface to it
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
700 | /**************************************************************************/ |
|
5ecb9a6c4611
Added protocol.[ch] and moved PurpleProtocol and PurpleProtocolInterface to it
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
701 | |
|
36617
be16459a68e9
Finished implementation of protocol object and interface stuff in protocol.[ch].
Ankit Vani <a@nevitus.org>
parents:
36613
diff
changeset
|
702 | /** |
|
37036
a8e12bcb0a74
Convert the new .h files for this branch for gtk-doc
Ankit Vani <a@nevitus.org>
parents:
37034
diff
changeset
|
703 | * 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
|
704 | * |
|
37073
baf45dc13ffd
Fix some gtk-doc warnings in protocol(s).h (not all)
Ankit Vani <a@nevitus.org>
parents:
37062
diff
changeset
|
705 | * 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
|
706 | */ |
|
5ecb9a6c4611
Added protocol.[ch] and moved PurpleProtocol and PurpleProtocolInterface to it
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
707 | 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
|
708 | |
|
36617
be16459a68e9
Finished implementation of protocol object and interface stuff in protocol.[ch].
Ankit Vani <a@nevitus.org>
parents:
36613
diff
changeset
|
709 | /** |
|
37036
a8e12bcb0a74
Convert the new .h files for this branch for gtk-doc
Ankit Vani <a@nevitus.org>
parents:
37034
diff
changeset
|
710 | * 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
|
711 | * @protocol: The protocol. |
|
36581
09d5842255a2
Added missing includes and functions to headers
Ankit Vani <a@nevitus.org>
parents:
36580
diff
changeset
|
712 | * |
|
37036
a8e12bcb0a74
Convert the new .h files for this branch for gtk-doc
Ankit Vani <a@nevitus.org>
parents:
37034
diff
changeset
|
713 | * Returns the ID of a protocol. |
|
36581
09d5842255a2
Added missing includes and functions to headers
Ankit Vani <a@nevitus.org>
parents:
36580
diff
changeset
|
714 | * |
|
37034
9d6765962b22
Initial replacements for this branch
Ankit Vani <a@nevitus.org>
parents:
37023
diff
changeset
|
715 | * Returns: The ID of the protocol. |
|
36581
09d5842255a2
Added missing includes and functions to headers
Ankit Vani <a@nevitus.org>
parents:
36580
diff
changeset
|
716 | */ |
|
09d5842255a2
Added missing includes and functions to headers
Ankit Vani <a@nevitus.org>
parents:
36580
diff
changeset
|
717 | 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
|
718 | |
|
36617
be16459a68e9
Finished implementation of protocol object and interface stuff in protocol.[ch].
Ankit Vani <a@nevitus.org>
parents:
36613
diff
changeset
|
719 | /** |
|
37036
a8e12bcb0a74
Convert the new .h files for this branch for gtk-doc
Ankit Vani <a@nevitus.org>
parents:
37034
diff
changeset
|
720 | * 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
|
721 | * @protocol: The protocol. |
|
36581
09d5842255a2
Added missing includes and functions to headers
Ankit Vani <a@nevitus.org>
parents:
36580
diff
changeset
|
722 | * |
|
37036
a8e12bcb0a74
Convert the new .h files for this branch for gtk-doc
Ankit Vani <a@nevitus.org>
parents:
37034
diff
changeset
|
723 | * 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
|
724 | * |
|
37034
9d6765962b22
Initial replacements for this branch
Ankit Vani <a@nevitus.org>
parents:
37023
diff
changeset
|
725 | * 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
|
726 | */ |
|
09d5842255a2
Added missing includes and functions to headers
Ankit Vani <a@nevitus.org>
parents:
36580
diff
changeset
|
727 | 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
|
728 | |
|
36617
be16459a68e9
Finished implementation of protocol object and interface stuff in protocol.[ch].
Ankit Vani <a@nevitus.org>
parents:
36613
diff
changeset
|
729 | /** |
|
37036
a8e12bcb0a74
Convert the new .h files for this branch for gtk-doc
Ankit Vani <a@nevitus.org>
parents:
37034
diff
changeset
|
730 | * 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
|
731 | * @protocol: The protocol. |
|
36581
09d5842255a2
Added missing includes and functions to headers
Ankit Vani <a@nevitus.org>
parents:
36580
diff
changeset
|
732 | * |
|
37036
a8e12bcb0a74
Convert the new .h files for this branch for gtk-doc
Ankit Vani <a@nevitus.org>
parents:
37034
diff
changeset
|
733 | * Returns the options of a protocol. |
|
36581
09d5842255a2
Added missing includes and functions to headers
Ankit Vani <a@nevitus.org>
parents:
36580
diff
changeset
|
734 | * |
|
37034
9d6765962b22
Initial replacements for this branch
Ankit Vani <a@nevitus.org>
parents:
37023
diff
changeset
|
735 | * Returns: The options of the protocol. |
|
36581
09d5842255a2
Added missing includes and functions to headers
Ankit Vani <a@nevitus.org>
parents:
36580
diff
changeset
|
736 | */ |
|
09d5842255a2
Added missing includes and functions to headers
Ankit Vani <a@nevitus.org>
parents:
36580
diff
changeset
|
737 | 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
|
738 | |
|
36617
be16459a68e9
Finished implementation of protocol object and interface stuff in protocol.[ch].
Ankit Vani <a@nevitus.org>
parents:
36613
diff
changeset
|
739 | /** |
|
37036
a8e12bcb0a74
Convert the new .h files for this branch for gtk-doc
Ankit Vani <a@nevitus.org>
parents:
37034
diff
changeset
|
740 | * 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
|
741 | * @protocol: The protocol. |
|
36581
09d5842255a2
Added missing includes and functions to headers
Ankit Vani <a@nevitus.org>
parents:
36580
diff
changeset
|
742 | * |
|
37036
a8e12bcb0a74
Convert the new .h files for this branch for gtk-doc
Ankit Vani <a@nevitus.org>
parents:
37034
diff
changeset
|
743 | * 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
|
744 | * |
|
39739
ed1cd735639b
Add some missing element-type annotations.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39672
diff
changeset
|
745 | * 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
|
746 | * splits of the protocol. |
|
36581
09d5842255a2
Added missing includes and functions to headers
Ankit Vani <a@nevitus.org>
parents:
36580
diff
changeset
|
747 | */ |
|
09d5842255a2
Added missing includes and functions to headers
Ankit Vani <a@nevitus.org>
parents:
36580
diff
changeset
|
748 | 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
|
749 | |
|
36617
be16459a68e9
Finished implementation of protocol object and interface stuff in protocol.[ch].
Ankit Vani <a@nevitus.org>
parents:
36613
diff
changeset
|
750 | /** |
|
37038
8832d14d7d0c
Rename 'protocol_options' field of PurpleProtocol to more appropriate 'account_options'
Ankit Vani <a@nevitus.org>
parents:
37036
diff
changeset
|
751 | * purple_protocol_get_account_options: |
|
37034
9d6765962b22
Initial replacements for this branch
Ankit Vani <a@nevitus.org>
parents:
37023
diff
changeset
|
752 | * @protocol: The protocol. |
|
36581
09d5842255a2
Added missing includes and functions to headers
Ankit Vani <a@nevitus.org>
parents:
36580
diff
changeset
|
753 | * |
|
37036
a8e12bcb0a74
Convert the new .h files for this branch for gtk-doc
Ankit Vani <a@nevitus.org>
parents:
37034
diff
changeset
|
754 | * 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
|
755 | * |
|
39739
ed1cd735639b
Add some missing element-type annotations.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39672
diff
changeset
|
756 | * 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
|
757 | * options for the protocol. |
|
36581
09d5842255a2
Added missing includes and functions to headers
Ankit Vani <a@nevitus.org>
parents:
36580
diff
changeset
|
758 | */ |
|
37038
8832d14d7d0c
Rename 'protocol_options' field of PurpleProtocol to more appropriate 'account_options'
Ankit Vani <a@nevitus.org>
parents:
37036
diff
changeset
|
759 | 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
|
760 | |
|
36617
be16459a68e9
Finished implementation of protocol object and interface stuff in protocol.[ch].
Ankit Vani <a@nevitus.org>
parents:
36613
diff
changeset
|
761 | /** |
|
37036
a8e12bcb0a74
Convert the new .h files for this branch for gtk-doc
Ankit Vani <a@nevitus.org>
parents:
37034
diff
changeset
|
762 | * 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
|
763 | * @protocol: The protocol. |
|
36581
09d5842255a2
Added missing includes and functions to headers
Ankit Vani <a@nevitus.org>
parents:
36580
diff
changeset
|
764 | * |
|
37036
a8e12bcb0a74
Convert the new .h files for this branch for gtk-doc
Ankit Vani <a@nevitus.org>
parents:
37034
diff
changeset
|
765 | * 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
|
766 | * |
|
37034
9d6765962b22
Initial replacements for this branch
Ankit Vani <a@nevitus.org>
parents:
37023
diff
changeset
|
767 | * 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
|
768 | */ |
|
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
|
769 | 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
|
770 | |
|
36617
be16459a68e9
Finished implementation of protocol object and interface stuff in protocol.[ch].
Ankit Vani <a@nevitus.org>
parents:
36613
diff
changeset
|
771 | /** |
|
37036
a8e12bcb0a74
Convert the new .h files for this branch for gtk-doc
Ankit Vani <a@nevitus.org>
parents:
37034
diff
changeset
|
772 | * 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
|
773 | * @protocol: The protocol. |
|
36581
09d5842255a2
Added missing includes and functions to headers
Ankit Vani <a@nevitus.org>
parents:
36580
diff
changeset
|
774 | * |
|
37036
a8e12bcb0a74
Convert the new .h files for this branch for gtk-doc
Ankit Vani <a@nevitus.org>
parents:
37034
diff
changeset
|
775 | * 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
|
776 | * |
|
37034
9d6765962b22
Initial replacements for this branch
Ankit Vani <a@nevitus.org>
parents:
37023
diff
changeset
|
777 | * Returns: The whiteboard ops of the protocol. |
|
36581
09d5842255a2
Added missing includes and functions to headers
Ankit Vani <a@nevitus.org>
parents:
36580
diff
changeset
|
778 | */ |
|
36637
9b0109ae118d
Renamed some prpl stuff to protocol stuff.
Ankit Vani <a@nevitus.org>
parents:
36624
diff
changeset
|
779 | 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
|
780 | |
|
36686
9807e4acf281
Added PurpleProtocolOverrideFlags and purple_protocol_override()
Ankit Vani <a@nevitus.org>
parents:
36682
diff
changeset
|
781 | /** |
|
37036
a8e12bcb0a74
Convert the new .h files for this branch for gtk-doc
Ankit Vani <a@nevitus.org>
parents:
37034
diff
changeset
|
782 | * purple_protocol_override: |
|
a8e12bcb0a74
Convert the new .h files for this branch for gtk-doc
Ankit Vani <a@nevitus.org>
parents:
37034
diff
changeset
|
783 | * @protocol: The protocol instance. |
|
a8e12bcb0a74
Convert the new .h files for this branch for gtk-doc
Ankit Vani <a@nevitus.org>
parents:
37034
diff
changeset
|
784 | * @flags: What instance data to delete. |
|
a8e12bcb0a74
Convert the new .h files for this branch for gtk-doc
Ankit Vani <a@nevitus.org>
parents:
37034
diff
changeset
|
785 | * |
|
36686
9807e4acf281
Added PurpleProtocolOverrideFlags and purple_protocol_override()
Ankit Vani <a@nevitus.org>
parents:
36682
diff
changeset
|
786 | * Lets derived protocol types override the base type's instance data, such as |
|
9807e4acf281
Added PurpleProtocolOverrideFlags and purple_protocol_override()
Ankit Vani <a@nevitus.org>
parents:
36682
diff
changeset
|
787 | * protocol options, user splits, icon spec, etc. |
|
9807e4acf281
Added PurpleProtocolOverrideFlags and purple_protocol_override()
Ankit Vani <a@nevitus.org>
parents:
36682
diff
changeset
|
788 | * This function is called in the *_init() function of your derived protocol, |
|
9807e4acf281
Added PurpleProtocolOverrideFlags and purple_protocol_override()
Ankit Vani <a@nevitus.org>
parents:
36682
diff
changeset
|
789 | * to delete the parent type's data so you can define your own. |
|
9807e4acf281
Added PurpleProtocolOverrideFlags and purple_protocol_override()
Ankit Vani <a@nevitus.org>
parents:
36682
diff
changeset
|
790 | */ |
|
9807e4acf281
Added PurpleProtocolOverrideFlags and purple_protocol_override()
Ankit Vani <a@nevitus.org>
parents:
36682
diff
changeset
|
791 | void purple_protocol_override(PurpleProtocol *protocol, |
|
36718
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
792 | PurpleProtocolOverrideFlags flags); |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
793 | |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
794 | /**************************************************************************/ |
|
37090
c45c70779582
Remove @name from new plugin and protocol stuff
Ankit Vani <a@nevitus.org>
parents:
37089
diff
changeset
|
795 | /* Protocol Class API */ |
|
36718
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
796 | /**************************************************************************/ |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
797 | |
|
38745
f4376b1f4682
A ton more of introspection cleanups
Gary Kramlich <grim@reaperworld.com>
parents:
37167
diff
changeset
|
798 | 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
|
799 | |
|
38745
f4376b1f4682
A ton more of introspection cleanups
Gary Kramlich <grim@reaperworld.com>
parents:
37167
diff
changeset
|
800 | 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
|
801 | |
|
38745
f4376b1f4682
A ton more of introspection cleanups
Gary Kramlich <grim@reaperworld.com>
parents:
37167
diff
changeset
|
802 | 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
|
803 | PurpleAccount *account); |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
804 | |
|
38745
f4376b1f4682
A ton more of introspection cleanups
Gary Kramlich <grim@reaperworld.com>
parents:
37167
diff
changeset
|
805 | 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
|
806 | PurpleAccount *account, PurpleBuddy *buddy); |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
807 | |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
808 | /**************************************************************************/ |
|
37090
c45c70779582
Remove @name from new plugin and protocol stuff
Ankit Vani <a@nevitus.org>
parents:
37089
diff
changeset
|
809 | /* Protocol Client Interface API */ |
|
36718
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
810 | /**************************************************************************/ |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
811 | |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
812 | /** |
|
37036
a8e12bcb0a74
Convert the new .h files for this branch for gtk-doc
Ankit Vani <a@nevitus.org>
parents:
37034
diff
changeset
|
813 | * purple_protocol_client_iface_get_type: |
|
a8e12bcb0a74
Convert the new .h files for this branch for gtk-doc
Ankit Vani <a@nevitus.org>
parents:
37034
diff
changeset
|
814 | * |
|
37073
baf45dc13ffd
Fix some gtk-doc warnings in protocol(s).h (not all)
Ankit Vani <a@nevitus.org>
parents:
37062
diff
changeset
|
815 | * Returns: The #GType for the protocol client interface. |
|
39597
bd90a84a84a4
add since tags to the client_iface methods as well
Gary Kramlich <grim@reaperworld.com>
parents:
39596
diff
changeset
|
816 | * |
|
bd90a84a84a4
add since tags to the client_iface methods as well
Gary Kramlich <grim@reaperworld.com>
parents:
39596
diff
changeset
|
817 | * Since: 3.0.0 |
|
36718
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
818 | */ |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
819 | GType purple_protocol_client_iface_get_type(void); |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
820 | |
|
39592
445e2cf29f4d
Start of cleaning up missing docs in protocol.h
Gary Kramlich <grim@reaperworld.com>
parents:
39521
diff
changeset
|
821 | /** |
|
445e2cf29f4d
Start of cleaning up missing docs in protocol.h
Gary Kramlich <grim@reaperworld.com>
parents:
39521
diff
changeset
|
822 | * purple_protocol_client_iface_get_actions: |
|
445e2cf29f4d
Start of cleaning up missing docs in protocol.h
Gary Kramlich <grim@reaperworld.com>
parents:
39521
diff
changeset
|
823 | * @protocol: The #PurpleProtocol instance. |
|
445e2cf29f4d
Start of cleaning up missing docs in protocol.h
Gary Kramlich <grim@reaperworld.com>
parents:
39521
diff
changeset
|
824 | * @connection: The #PurpleConnection instance. |
|
445e2cf29f4d
Start of cleaning up missing docs in protocol.h
Gary Kramlich <grim@reaperworld.com>
parents:
39521
diff
changeset
|
825 | * |
|
445e2cf29f4d
Start of cleaning up missing docs in protocol.h
Gary Kramlich <grim@reaperworld.com>
parents:
39521
diff
changeset
|
826 | * Gets a list of actions for @connection. |
|
445e2cf29f4d
Start of cleaning up missing docs in protocol.h
Gary Kramlich <grim@reaperworld.com>
parents:
39521
diff
changeset
|
827 | * |
|
445e2cf29f4d
Start of cleaning up missing docs in protocol.h
Gary Kramlich <grim@reaperworld.com>
parents:
39521
diff
changeset
|
828 | * Returns: (transfer full) (element-type PurpleProtocolAction): The list of actions for @connection. |
|
39597
bd90a84a84a4
add since tags to the client_iface methods as well
Gary Kramlich <grim@reaperworld.com>
parents:
39596
diff
changeset
|
829 | * |
|
bd90a84a84a4
add since tags to the client_iface methods as well
Gary Kramlich <grim@reaperworld.com>
parents:
39596
diff
changeset
|
830 | * Since: 3.0.0 |
|
39592
445e2cf29f4d
Start of cleaning up missing docs in protocol.h
Gary Kramlich <grim@reaperworld.com>
parents:
39521
diff
changeset
|
831 | */ |
|
38745
f4376b1f4682
A ton more of introspection cleanups
Gary Kramlich <grim@reaperworld.com>
parents:
37167
diff
changeset
|
832 | GList *purple_protocol_client_iface_get_actions(PurpleProtocol *protocol, |
|
f4376b1f4682
A ton more of introspection cleanups
Gary Kramlich <grim@reaperworld.com>
parents:
37167
diff
changeset
|
833 | PurpleConnection *connection); |
|
36718
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
834 | |
|
39592
445e2cf29f4d
Start of cleaning up missing docs in protocol.h
Gary Kramlich <grim@reaperworld.com>
parents:
39521
diff
changeset
|
835 | /** |
|
445e2cf29f4d
Start of cleaning up missing docs in protocol.h
Gary Kramlich <grim@reaperworld.com>
parents:
39521
diff
changeset
|
836 | * purple_protocol_client_iface_list_emblem: |
|
445e2cf29f4d
Start of cleaning up missing docs in protocol.h
Gary Kramlich <grim@reaperworld.com>
parents:
39521
diff
changeset
|
837 | * @protocol: The #PurpleProtocol instance. |
|
445e2cf29f4d
Start of cleaning up missing docs in protocol.h
Gary Kramlich <grim@reaperworld.com>
parents:
39521
diff
changeset
|
838 | * @buddy: The #PurpleBuddy instance. |
|
445e2cf29f4d
Start of cleaning up missing docs in protocol.h
Gary Kramlich <grim@reaperworld.com>
parents:
39521
diff
changeset
|
839 | * |
|
39595
0c9f3c4f1afb
Various typo and whitespace fixes found in review
Gary Kramlich <grim@reaperworld.com>
parents:
39594
diff
changeset
|
840 | * Gets the icon name of the emblem that should be used for @buddy. |
|
39592
445e2cf29f4d
Start of cleaning up missing docs in protocol.h
Gary Kramlich <grim@reaperworld.com>
parents:
39521
diff
changeset
|
841 | * |
|
39595
0c9f3c4f1afb
Various typo and whitespace fixes found in review
Gary Kramlich <grim@reaperworld.com>
parents:
39594
diff
changeset
|
842 | * Returns: The icon name of the emblem or NULL. |
|
39597
bd90a84a84a4
add since tags to the client_iface methods as well
Gary Kramlich <grim@reaperworld.com>
parents:
39596
diff
changeset
|
843 | * |
|
bd90a84a84a4
add since tags to the client_iface methods as well
Gary Kramlich <grim@reaperworld.com>
parents:
39596
diff
changeset
|
844 | * Since: 3.0.0 |
|
39592
445e2cf29f4d
Start of cleaning up missing docs in protocol.h
Gary Kramlich <grim@reaperworld.com>
parents:
39521
diff
changeset
|
845 | */ |
|
38745
f4376b1f4682
A ton more of introspection cleanups
Gary Kramlich <grim@reaperworld.com>
parents:
37167
diff
changeset
|
846 | const char *purple_protocol_client_iface_list_emblem(PurpleProtocol *protocol, |
|
36718
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
847 | PurpleBuddy *buddy); |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
848 | |
|
39592
445e2cf29f4d
Start of cleaning up missing docs in protocol.h
Gary Kramlich <grim@reaperworld.com>
parents:
39521
diff
changeset
|
849 | /** |
|
445e2cf29f4d
Start of cleaning up missing docs in protocol.h
Gary Kramlich <grim@reaperworld.com>
parents:
39521
diff
changeset
|
850 | * purple_protocol_client_iface_status_text: |
|
445e2cf29f4d
Start of cleaning up missing docs in protocol.h
Gary Kramlich <grim@reaperworld.com>
parents:
39521
diff
changeset
|
851 | * @protocol: The #PurpleProtocol instance. |
|
445e2cf29f4d
Start of cleaning up missing docs in protocol.h
Gary Kramlich <grim@reaperworld.com>
parents:
39521
diff
changeset
|
852 | * @buddy: The #ProtocolBuddy instance. |
|
445e2cf29f4d
Start of cleaning up missing docs in protocol.h
Gary Kramlich <grim@reaperworld.com>
parents:
39521
diff
changeset
|
853 | * |
|
445e2cf29f4d
Start of cleaning up missing docs in protocol.h
Gary Kramlich <grim@reaperworld.com>
parents:
39521
diff
changeset
|
854 | * Gets the status text for @buddy. |
|
445e2cf29f4d
Start of cleaning up missing docs in protocol.h
Gary Kramlich <grim@reaperworld.com>
parents:
39521
diff
changeset
|
855 | * |
|
445e2cf29f4d
Start of cleaning up missing docs in protocol.h
Gary Kramlich <grim@reaperworld.com>
parents:
39521
diff
changeset
|
856 | * Returns: (transfer full): The status text for @buddy or NULL. |
|
39597
bd90a84a84a4
add since tags to the client_iface methods as well
Gary Kramlich <grim@reaperworld.com>
parents:
39596
diff
changeset
|
857 | * |
|
bd90a84a84a4
add since tags to the client_iface methods as well
Gary Kramlich <grim@reaperworld.com>
parents:
39596
diff
changeset
|
858 | * Since: 3.0.0 |
|
39592
445e2cf29f4d
Start of cleaning up missing docs in protocol.h
Gary Kramlich <grim@reaperworld.com>
parents:
39521
diff
changeset
|
859 | */ |
|
38745
f4376b1f4682
A ton more of introspection cleanups
Gary Kramlich <grim@reaperworld.com>
parents:
37167
diff
changeset
|
860 | char *purple_protocol_client_iface_status_text(PurpleProtocol *protocol, |
|
36718
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
861 | PurpleBuddy *buddy); |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
862 | |
|
39592
445e2cf29f4d
Start of cleaning up missing docs in protocol.h
Gary Kramlich <grim@reaperworld.com>
parents:
39521
diff
changeset
|
863 | /** |
|
445e2cf29f4d
Start of cleaning up missing docs in protocol.h
Gary Kramlich <grim@reaperworld.com>
parents:
39521
diff
changeset
|
864 | * purple_protocol_client_iface_tooltip_text: |
|
445e2cf29f4d
Start of cleaning up missing docs in protocol.h
Gary Kramlich <grim@reaperworld.com>
parents:
39521
diff
changeset
|
865 | * @protocol: The #PurpleProtocol instance. |
|
445e2cf29f4d
Start of cleaning up missing docs in protocol.h
Gary Kramlich <grim@reaperworld.com>
parents:
39521
diff
changeset
|
866 | * @buddy: The #PurpleBuddy instance. |
|
39596
17d54aaad818
Finish an imcomplete doc comment and clean up the wording on another
Gary Kramlich <grim@reaperworld.com>
parents:
39595
diff
changeset
|
867 | * @user_info: The #PurpleNotifyUserInfo instance. |
|
17d54aaad818
Finish an imcomplete doc comment and clean up the wording on another
Gary Kramlich <grim@reaperworld.com>
parents:
39595
diff
changeset
|
868 | * @full: Whether or not additional info should be added. |
|
39592
445e2cf29f4d
Start of cleaning up missing docs in protocol.h
Gary Kramlich <grim@reaperworld.com>
parents:
39521
diff
changeset
|
869 | * |
|
39596
17d54aaad818
Finish an imcomplete doc comment and clean up the wording on another
Gary Kramlich <grim@reaperworld.com>
parents:
39595
diff
changeset
|
870 | * Asks @protocol to update @user_info for @buddy. If @full is %TRUE then |
|
17d54aaad818
Finish an imcomplete doc comment and clean up the wording on another
Gary Kramlich <grim@reaperworld.com>
parents:
39595
diff
changeset
|
871 | * more detailed information will added. |
|
39597
bd90a84a84a4
add since tags to the client_iface methods as well
Gary Kramlich <grim@reaperworld.com>
parents:
39596
diff
changeset
|
872 | * |
|
bd90a84a84a4
add since tags to the client_iface methods as well
Gary Kramlich <grim@reaperworld.com>
parents:
39596
diff
changeset
|
873 | * Since: 3.0.0 |
|
39592
445e2cf29f4d
Start of cleaning up missing docs in protocol.h
Gary Kramlich <grim@reaperworld.com>
parents:
39521
diff
changeset
|
874 | */ |
|
38745
f4376b1f4682
A ton more of introspection cleanups
Gary Kramlich <grim@reaperworld.com>
parents:
37167
diff
changeset
|
875 | void purple_protocol_client_iface_tooltip_text(PurpleProtocol *protocol, |
|
36718
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
876 | PurpleBuddy *buddy, PurpleNotifyUserInfo *user_info, gboolean full); |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
877 | |
|
38745
f4376b1f4682
A ton more of introspection cleanups
Gary Kramlich <grim@reaperworld.com>
parents:
37167
diff
changeset
|
878 | GList *purple_protocol_client_iface_blist_node_menu(PurpleProtocol *protocol, |
|
36718
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
879 | PurpleBlistNode *node); |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
880 | |
|
38745
f4376b1f4682
A ton more of introspection cleanups
Gary Kramlich <grim@reaperworld.com>
parents:
37167
diff
changeset
|
881 | void purple_protocol_client_iface_buddy_free(PurpleProtocol *protocol, PurpleBuddy *buddy); |
|
36718
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
882 | |
|
38745
f4376b1f4682
A ton more of introspection cleanups
Gary Kramlich <grim@reaperworld.com>
parents:
37167
diff
changeset
|
883 | void purple_protocol_client_iface_convo_closed(PurpleProtocol *protocol, |
|
f4376b1f4682
A ton more of introspection cleanups
Gary Kramlich <grim@reaperworld.com>
parents:
37167
diff
changeset
|
884 | PurpleConnection *connection, const char *who); |
|
36718
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
885 | |
|
38745
f4376b1f4682
A ton more of introspection cleanups
Gary Kramlich <grim@reaperworld.com>
parents:
37167
diff
changeset
|
886 | const char *purple_protocol_client_iface_normalize(PurpleProtocol *protocol, |
|
36718
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
887 | const PurpleAccount *account, const char *who); |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
888 | |
|
38745
f4376b1f4682
A ton more of introspection cleanups
Gary Kramlich <grim@reaperworld.com>
parents:
37167
diff
changeset
|
889 | PurpleChat *purple_protocol_client_iface_find_blist_chat(PurpleProtocol *protocol, |
|
36718
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
890 | PurpleAccount *account, const char *name); |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
891 | |
|
38745
f4376b1f4682
A ton more of introspection cleanups
Gary Kramlich <grim@reaperworld.com>
parents:
37167
diff
changeset
|
892 | gboolean purple_protocol_client_iface_offline_message(PurpleProtocol *protocol, |
|
36718
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
893 | const PurpleBuddy *buddy); |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
894 | |
|
38745
f4376b1f4682
A ton more of introspection cleanups
Gary Kramlich <grim@reaperworld.com>
parents:
37167
diff
changeset
|
895 | GHashTable *purple_protocol_client_iface_get_account_text_table(PurpleProtocol *protocol, |
|
36718
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
896 | PurpleAccount *account); |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
897 | |
|
38745
f4376b1f4682
A ton more of introspection cleanups
Gary Kramlich <grim@reaperworld.com>
parents:
37167
diff
changeset
|
898 | PurpleMood *purple_protocol_client_iface_get_moods(PurpleProtocol *protocol, |
|
36718
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
899 | PurpleAccount *account); |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
900 | |
|
38745
f4376b1f4682
A ton more of introspection cleanups
Gary Kramlich <grim@reaperworld.com>
parents:
37167
diff
changeset
|
901 | gssize purple_protocol_client_iface_get_max_message_size(PurpleProtocol *protocol, |
|
36718
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
902 | PurpleConversation *conv); |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
903 | |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
904 | /**************************************************************************/ |
|
37090
c45c70779582
Remove @name from new plugin and protocol stuff
Ankit Vani <a@nevitus.org>
parents:
37089
diff
changeset
|
905 | /* Protocol Server Interface API */ |
|
36718
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
906 | /**************************************************************************/ |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
907 | |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
908 | /** |
|
37036
a8e12bcb0a74
Convert the new .h files for this branch for gtk-doc
Ankit Vani <a@nevitus.org>
parents:
37034
diff
changeset
|
909 | * purple_protocol_server_iface_get_type: |
|
a8e12bcb0a74
Convert the new .h files for this branch for gtk-doc
Ankit Vani <a@nevitus.org>
parents:
37034
diff
changeset
|
910 | * |
|
37073
baf45dc13ffd
Fix some gtk-doc warnings in protocol(s).h (not all)
Ankit Vani <a@nevitus.org>
parents:
37062
diff
changeset
|
911 | * Returns: The #GType for the protocol server interface. |
|
36718
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
912 | */ |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
913 | GType purple_protocol_server_iface_get_type(void); |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
914 | |
|
38745
f4376b1f4682
A ton more of introspection cleanups
Gary Kramlich <grim@reaperworld.com>
parents:
37167
diff
changeset
|
915 | void purple_protocol_server_iface_register_user(PurpleProtocol *protocol, |
|
f4376b1f4682
A ton more of introspection cleanups
Gary Kramlich <grim@reaperworld.com>
parents:
37167
diff
changeset
|
916 | PurpleAccount *account); |
|
36718
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
917 | |
|
37132
f4740b6e7525
Add (scope) annotation to callback parameters in plugins.h, protocol.h, protocols.h
Ankit Vani <a@nevitus.org>
parents:
37103
diff
changeset
|
918 | /** |
|
f4740b6e7525
Add (scope) annotation to callback parameters in plugins.h, protocol.h, protocols.h
Ankit Vani <a@nevitus.org>
parents:
37103
diff
changeset
|
919 | * purple_protocol_server_iface_unregister_user: |
|
f4740b6e7525
Add (scope) annotation to callback parameters in plugins.h, protocol.h, protocols.h
Ankit Vani <a@nevitus.org>
parents:
37103
diff
changeset
|
920 | * @cb: (scope call): |
|
f4740b6e7525
Add (scope) annotation to callback parameters in plugins.h, protocol.h, protocols.h
Ankit Vani <a@nevitus.org>
parents:
37103
diff
changeset
|
921 | */ |
|
38745
f4376b1f4682
A ton more of introspection cleanups
Gary Kramlich <grim@reaperworld.com>
parents:
37167
diff
changeset
|
922 | void purple_protocol_server_iface_unregister_user(PurpleProtocol *protocol, |
|
f4376b1f4682
A ton more of introspection cleanups
Gary Kramlich <grim@reaperworld.com>
parents:
37167
diff
changeset
|
923 | PurpleAccount *account, PurpleAccountUnregistrationCb cb, void *user_data); |
|
36718
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
924 | |
|
38745
f4376b1f4682
A ton more of introspection cleanups
Gary Kramlich <grim@reaperworld.com>
parents:
37167
diff
changeset
|
925 | void purple_protocol_server_iface_set_info(PurpleProtocol *protocol, PurpleConnection *connection, |
|
36718
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
926 | const char *info); |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
927 | |
|
38745
f4376b1f4682
A ton more of introspection cleanups
Gary Kramlich <grim@reaperworld.com>
parents:
37167
diff
changeset
|
928 | void purple_protocol_server_iface_get_info(PurpleProtocol *protocol, PurpleConnection *connection, |
|
36718
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
929 | const char *who); |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
930 | |
|
38745
f4376b1f4682
A ton more of introspection cleanups
Gary Kramlich <grim@reaperworld.com>
parents:
37167
diff
changeset
|
931 | void purple_protocol_server_iface_set_status(PurpleProtocol *protocol, |
|
36718
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
932 | PurpleAccount *account, PurpleStatus *status); |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
933 | |
|
38745
f4376b1f4682
A ton more of introspection cleanups
Gary Kramlich <grim@reaperworld.com>
parents:
37167
diff
changeset
|
934 | void purple_protocol_server_iface_set_idle(PurpleProtocol *protocol, PurpleConnection *connection, |
|
36718
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
935 | int idletime); |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
936 | |
|
38745
f4376b1f4682
A ton more of introspection cleanups
Gary Kramlich <grim@reaperworld.com>
parents:
37167
diff
changeset
|
937 | void purple_protocol_server_iface_change_passwd(PurpleProtocol *protocol, |
|
f4376b1f4682
A ton more of introspection cleanups
Gary Kramlich <grim@reaperworld.com>
parents:
37167
diff
changeset
|
938 | PurpleConnection *connection, const char *old_pass, const char *new_pass); |
|
36718
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
939 | |
|
38745
f4376b1f4682
A ton more of introspection cleanups
Gary Kramlich <grim@reaperworld.com>
parents:
37167
diff
changeset
|
940 | void purple_protocol_server_iface_add_buddy(PurpleProtocol *protocol, |
|
36718
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
941 | PurpleConnection *pc, PurpleBuddy *buddy, PurpleGroup *group, |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
942 | const char *message); |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
943 | |
|
38745
f4376b1f4682
A ton more of introspection cleanups
Gary Kramlich <grim@reaperworld.com>
parents:
37167
diff
changeset
|
944 | void purple_protocol_server_iface_add_buddies(PurpleProtocol *protocol, |
|
36718
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
945 | PurpleConnection *pc, GList *buddies, GList *groups, |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
946 | const char *message); |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
947 | |
|
38745
f4376b1f4682
A ton more of introspection cleanups
Gary Kramlich <grim@reaperworld.com>
parents:
37167
diff
changeset
|
948 | void purple_protocol_server_iface_remove_buddy(PurpleProtocol *protocol, |
|
f4376b1f4682
A ton more of introspection cleanups
Gary Kramlich <grim@reaperworld.com>
parents:
37167
diff
changeset
|
949 | PurpleConnection *connection, PurpleBuddy *buddy, PurpleGroup *group); |
|
36718
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
950 | |
|
38745
f4376b1f4682
A ton more of introspection cleanups
Gary Kramlich <grim@reaperworld.com>
parents:
37167
diff
changeset
|
951 | void purple_protocol_server_iface_remove_buddies(PurpleProtocol *protocol, |
|
f4376b1f4682
A ton more of introspection cleanups
Gary Kramlich <grim@reaperworld.com>
parents:
37167
diff
changeset
|
952 | PurpleConnection *connection, GList *buddies, GList *groups); |
|
36718
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
953 | |
|
38745
f4376b1f4682
A ton more of introspection cleanups
Gary Kramlich <grim@reaperworld.com>
parents:
37167
diff
changeset
|
954 | void purple_protocol_server_iface_keepalive(PurpleProtocol *protocol, |
|
f4376b1f4682
A ton more of introspection cleanups
Gary Kramlich <grim@reaperworld.com>
parents:
37167
diff
changeset
|
955 | PurpleConnection *connection); |
|
36718
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
956 | |
|
39518
6141cf90e5b8
libpurple: Make keepalive interval configurable
Petteri Pitkänen <petepitk@gmail.com>
parents:
38859
diff
changeset
|
957 | int purple_protocol_server_iface_get_keepalive_interval(PurpleProtocol *protocol); |
|
6141cf90e5b8
libpurple: Make keepalive interval configurable
Petteri Pitkänen <petepitk@gmail.com>
parents:
38859
diff
changeset
|
958 | |
|
38745
f4376b1f4682
A ton more of introspection cleanups
Gary Kramlich <grim@reaperworld.com>
parents:
37167
diff
changeset
|
959 | void purple_protocol_server_iface_alias_buddy(PurpleProtocol *protocol, |
|
f4376b1f4682
A ton more of introspection cleanups
Gary Kramlich <grim@reaperworld.com>
parents:
37167
diff
changeset
|
960 | PurpleConnection *connection, const char *who, const char *alias); |
|
36718
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
961 | |
|
38745
f4376b1f4682
A ton more of introspection cleanups
Gary Kramlich <grim@reaperworld.com>
parents:
37167
diff
changeset
|
962 | void purple_protocol_server_iface_group_buddy(PurpleProtocol *protocol, |
|
f4376b1f4682
A ton more of introspection cleanups
Gary Kramlich <grim@reaperworld.com>
parents:
37167
diff
changeset
|
963 | PurpleConnection *connection, const char *who, const char *old_group, |
|
36718
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
964 | const char *new_group); |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
965 | |
|
38745
f4376b1f4682
A ton more of introspection cleanups
Gary Kramlich <grim@reaperworld.com>
parents:
37167
diff
changeset
|
966 | void purple_protocol_server_iface_rename_group(PurpleProtocol *protocol, |
|
f4376b1f4682
A ton more of introspection cleanups
Gary Kramlich <grim@reaperworld.com>
parents:
37167
diff
changeset
|
967 | PurpleConnection *connection, const char *old_name, PurpleGroup *group, |
|
36718
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
968 | GList *moved_buddies); |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
969 | |
|
38745
f4376b1f4682
A ton more of introspection cleanups
Gary Kramlich <grim@reaperworld.com>
parents:
37167
diff
changeset
|
970 | void purple_protocol_server_iface_set_buddy_icon(PurpleProtocol *protocol, |
|
f4376b1f4682
A ton more of introspection cleanups
Gary Kramlich <grim@reaperworld.com>
parents:
37167
diff
changeset
|
971 | PurpleConnection *connection, PurpleImage *img); |
|
36718
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
972 | |
|
38745
f4376b1f4682
A ton more of introspection cleanups
Gary Kramlich <grim@reaperworld.com>
parents:
37167
diff
changeset
|
973 | void purple_protocol_server_iface_remove_group(PurpleProtocol *protocol, |
|
36718
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
974 | PurpleConnection *gc, PurpleGroup *group); |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
975 | |
|
38745
f4376b1f4682
A ton more of introspection cleanups
Gary Kramlich <grim@reaperworld.com>
parents:
37167
diff
changeset
|
976 | int purple_protocol_server_iface_send_raw(PurpleProtocol *protocol, |
|
36718
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
977 | PurpleConnection *gc, const char *buf, int len); |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
978 | |
|
37132
f4740b6e7525
Add (scope) annotation to callback parameters in plugins.h, protocol.h, protocols.h
Ankit Vani <a@nevitus.org>
parents:
37103
diff
changeset
|
979 | /** |
|
f4740b6e7525
Add (scope) annotation to callback parameters in plugins.h, protocol.h, protocols.h
Ankit Vani <a@nevitus.org>
parents:
37103
diff
changeset
|
980 | * purple_protocol_server_iface_set_public_alias: |
|
f4740b6e7525
Add (scope) annotation to callback parameters in plugins.h, protocol.h, protocols.h
Ankit Vani <a@nevitus.org>
parents:
37103
diff
changeset
|
981 | * @success_cb: (scope call): |
|
f4740b6e7525
Add (scope) annotation to callback parameters in plugins.h, protocol.h, protocols.h
Ankit Vani <a@nevitus.org>
parents:
37103
diff
changeset
|
982 | * @failure_cb: (scope call): |
|
f4740b6e7525
Add (scope) annotation to callback parameters in plugins.h, protocol.h, protocols.h
Ankit Vani <a@nevitus.org>
parents:
37103
diff
changeset
|
983 | */ |
|
38745
f4376b1f4682
A ton more of introspection cleanups
Gary Kramlich <grim@reaperworld.com>
parents:
37167
diff
changeset
|
984 | void purple_protocol_server_iface_set_public_alias(PurpleProtocol *protocol, |
|
36718
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
985 | PurpleConnection *gc, const char *alias, |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
986 | PurpleSetPublicAliasSuccessCallback success_cb, |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
987 | PurpleSetPublicAliasFailureCallback failure_cb); |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
988 | |
|
37132
f4740b6e7525
Add (scope) annotation to callback parameters in plugins.h, protocol.h, protocols.h
Ankit Vani <a@nevitus.org>
parents:
37103
diff
changeset
|
989 | /** |
|
f4740b6e7525
Add (scope) annotation to callback parameters in plugins.h, protocol.h, protocols.h
Ankit Vani <a@nevitus.org>
parents:
37103
diff
changeset
|
990 | * purple_protocol_server_iface_get_public_alias: |
|
f4740b6e7525
Add (scope) annotation to callback parameters in plugins.h, protocol.h, protocols.h
Ankit Vani <a@nevitus.org>
parents:
37103
diff
changeset
|
991 | * @success_cb: (scope call): |
|
f4740b6e7525
Add (scope) annotation to callback parameters in plugins.h, protocol.h, protocols.h
Ankit Vani <a@nevitus.org>
parents:
37103
diff
changeset
|
992 | * @failure_cb: (scope call): |
|
f4740b6e7525
Add (scope) annotation to callback parameters in plugins.h, protocol.h, protocols.h
Ankit Vani <a@nevitus.org>
parents:
37103
diff
changeset
|
993 | */ |
|
38745
f4376b1f4682
A ton more of introspection cleanups
Gary Kramlich <grim@reaperworld.com>
parents:
37167
diff
changeset
|
994 | void purple_protocol_server_iface_get_public_alias(PurpleProtocol *protocol, |
|
36718
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
995 | PurpleConnection *gc, PurpleGetPublicAliasSuccessCallback success_cb, |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
996 | PurpleGetPublicAliasFailureCallback failure_cb); |
|
36686
9807e4acf281
Added PurpleProtocolOverrideFlags and purple_protocol_override()
Ankit Vani <a@nevitus.org>
parents:
36682
diff
changeset
|
997 | |
|
36566
029a5f652427
Moved all of protocol API to protocol.h
Ankit Vani <a@nevitus.org>
parents:
36564
diff
changeset
|
998 | /**************************************************************************/ |
|
37090
c45c70779582
Remove @name from new plugin and protocol stuff
Ankit Vani <a@nevitus.org>
parents:
37089
diff
changeset
|
999 | /* Protocol IM Interface API */ |
|
36718
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
1000 | /**************************************************************************/ |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
1001 | |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
1002 | /** |
|
37036
a8e12bcb0a74
Convert the new .h files for this branch for gtk-doc
Ankit Vani <a@nevitus.org>
parents:
37034
diff
changeset
|
1003 | * purple_protocol_im_iface_get_type: |
|
a8e12bcb0a74
Convert the new .h files for this branch for gtk-doc
Ankit Vani <a@nevitus.org>
parents:
37034
diff
changeset
|
1004 | * |
|
37073
baf45dc13ffd
Fix some gtk-doc warnings in protocol(s).h (not all)
Ankit Vani <a@nevitus.org>
parents:
37062
diff
changeset
|
1005 | * Returns: The #GType for the protocol IM interface. |
|
36718
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
1006 | */ |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
1007 | GType purple_protocol_im_iface_get_type(void); |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
1008 | |
|
38745
f4376b1f4682
A ton more of introspection cleanups
Gary Kramlich <grim@reaperworld.com>
parents:
37167
diff
changeset
|
1009 | int purple_protocol_im_iface_send(PurpleProtocol *protocol, PurpleConnection *connection, |
| 37148 | 1010 | PurpleMessage *msg); |
|
36718
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
1011 | |
|
38745
f4376b1f4682
A ton more of introspection cleanups
Gary Kramlich <grim@reaperworld.com>
parents:
37167
diff
changeset
|
1012 | unsigned int purple_protocol_im_iface_send_typing(PurpleProtocol *protocol, |
|
f4376b1f4682
A ton more of introspection cleanups
Gary Kramlich <grim@reaperworld.com>
parents:
37167
diff
changeset
|
1013 | PurpleConnection *connection, const char *name, PurpleIMTypingState state); |
|
36718
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
1014 | |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
1015 | /**************************************************************************/ |
|
37090
c45c70779582
Remove @name from new plugin and protocol stuff
Ankit Vani <a@nevitus.org>
parents:
37089
diff
changeset
|
1016 | /* Protocol Chat Interface API */ |
|
36566
029a5f652427
Moved all of protocol API to protocol.h
Ankit Vani <a@nevitus.org>
parents:
36564
diff
changeset
|
1017 | /**************************************************************************/ |
|
36718
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
1018 | |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
1019 | /** |
|
37036
a8e12bcb0a74
Convert the new .h files for this branch for gtk-doc
Ankit Vani <a@nevitus.org>
parents:
37034
diff
changeset
|
1020 | * purple_protocol_chat_iface_get_type: |
|
a8e12bcb0a74
Convert the new .h files for this branch for gtk-doc
Ankit Vani <a@nevitus.org>
parents:
37034
diff
changeset
|
1021 | * |
|
37073
baf45dc13ffd
Fix some gtk-doc warnings in protocol(s).h (not all)
Ankit Vani <a@nevitus.org>
parents:
37062
diff
changeset
|
1022 | * Returns: The #GType for the protocol chat interface. |
|
39593
2d41781914e7
Document the protocol whiteboard and chat interfaces
Gary Kramlich <grim@reaperworld.com>
parents:
39592
diff
changeset
|
1023 | * |
|
2d41781914e7
Document the protocol whiteboard and chat interfaces
Gary Kramlich <grim@reaperworld.com>
parents:
39592
diff
changeset
|
1024 | * Since: 3.0.0 |
|
36718
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
1025 | */ |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
1026 | GType purple_protocol_chat_iface_get_type(void); |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
1027 | |
|
39593
2d41781914e7
Document the protocol whiteboard and chat interfaces
Gary Kramlich <grim@reaperworld.com>
parents:
39592
diff
changeset
|
1028 | /** |
|
2d41781914e7
Document the protocol whiteboard and chat interfaces
Gary Kramlich <grim@reaperworld.com>
parents:
39592
diff
changeset
|
1029 | * purple_protocol_chat_iface_info: |
|
2d41781914e7
Document the protocol whiteboard and chat interfaces
Gary Kramlich <grim@reaperworld.com>
parents:
39592
diff
changeset
|
1030 | * @protocol: The #PurpleProtocol instance. |
|
2d41781914e7
Document the protocol whiteboard and chat interfaces
Gary Kramlich <grim@reaperworld.com>
parents:
39592
diff
changeset
|
1031 | * @connection: The #PurpleConnection instance. |
|
2d41781914e7
Document the protocol whiteboard and chat interfaces
Gary Kramlich <grim@reaperworld.com>
parents:
39592
diff
changeset
|
1032 | * |
|
39596
17d54aaad818
Finish an imcomplete doc comment and clean up the wording on another
Gary Kramlich <grim@reaperworld.com>
parents:
39595
diff
changeset
|
1033 | * Gets the list of #PurpleProtocolChatEntry's that are required to join a |
|
17d54aaad818
Finish an imcomplete doc comment and clean up the wording on another
Gary Kramlich <grim@reaperworld.com>
parents:
39595
diff
changeset
|
1034 | * multi user chat. |
|
39593
2d41781914e7
Document the protocol whiteboard and chat interfaces
Gary Kramlich <grim@reaperworld.com>
parents:
39592
diff
changeset
|
1035 | * |
|
2d41781914e7
Document the protocol whiteboard and chat interfaces
Gary Kramlich <grim@reaperworld.com>
parents:
39592
diff
changeset
|
1036 | * Returns: (transfer full) (element-type PurpleProtocolChatEntry): The list |
|
2d41781914e7
Document the protocol whiteboard and chat interfaces
Gary Kramlich <grim@reaperworld.com>
parents:
39592
diff
changeset
|
1037 | * of #PurpleProtocolChatEntry's that are used to join a chat. |
|
2d41781914e7
Document the protocol whiteboard and chat interfaces
Gary Kramlich <grim@reaperworld.com>
parents:
39592
diff
changeset
|
1038 | * |
|
2d41781914e7
Document the protocol whiteboard and chat interfaces
Gary Kramlich <grim@reaperworld.com>
parents:
39592
diff
changeset
|
1039 | * Since: 3.0.0 |
|
2d41781914e7
Document the protocol whiteboard and chat interfaces
Gary Kramlich <grim@reaperworld.com>
parents:
39592
diff
changeset
|
1040 | */ |
|
38745
f4376b1f4682
A ton more of introspection cleanups
Gary Kramlich <grim@reaperworld.com>
parents:
37167
diff
changeset
|
1041 | GList *purple_protocol_chat_iface_info(PurpleProtocol *protocol, |
|
f4376b1f4682
A ton more of introspection cleanups
Gary Kramlich <grim@reaperworld.com>
parents:
37167
diff
changeset
|
1042 | PurpleConnection *connection); |
|
36718
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
1043 | |
|
39593
2d41781914e7
Document the protocol whiteboard and chat interfaces
Gary Kramlich <grim@reaperworld.com>
parents:
39592
diff
changeset
|
1044 | /** |
|
2d41781914e7
Document the protocol whiteboard and chat interfaces
Gary Kramlich <grim@reaperworld.com>
parents:
39592
diff
changeset
|
1045 | * purple_protocol_chat_iface_info_defaults: |
|
2d41781914e7
Document the protocol whiteboard and chat interfaces
Gary Kramlich <grim@reaperworld.com>
parents:
39592
diff
changeset
|
1046 | * @protocol: The #PurpleProtocol instance |
|
2d41781914e7
Document the protocol whiteboard and chat interfaces
Gary Kramlich <grim@reaperworld.com>
parents:
39592
diff
changeset
|
1047 | * @connection: The #PurpleConnection instance |
|
2d41781914e7
Document the protocol whiteboard and chat interfaces
Gary Kramlich <grim@reaperworld.com>
parents:
39592
diff
changeset
|
1048 | * @chat_name: The name of the chat |
|
2d41781914e7
Document the protocol whiteboard and chat interfaces
Gary Kramlich <grim@reaperworld.com>
parents:
39592
diff
changeset
|
1049 | * |
|
2d41781914e7
Document the protocol whiteboard and chat interfaces
Gary Kramlich <grim@reaperworld.com>
parents:
39592
diff
changeset
|
1050 | * Returns a #GHashTable of the default protocol dependent components that will |
|
2d41781914e7
Document the protocol whiteboard and chat interfaces
Gary Kramlich <grim@reaperworld.com>
parents:
39592
diff
changeset
|
1051 | * be passed to #purple_protocol_chat_iface_join. |
|
2d41781914e7
Document the protocol whiteboard and chat interfaces
Gary Kramlich <grim@reaperworld.com>
parents:
39592
diff
changeset
|
1052 | * |
|
2d41781914e7
Document the protocol whiteboard and chat interfaces
Gary Kramlich <grim@reaperworld.com>
parents:
39592
diff
changeset
|
1053 | * Returns: (transfer full) (element-type utf8 utf8): The values that will be |
|
2d41781914e7
Document the protocol whiteboard and chat interfaces
Gary Kramlich <grim@reaperworld.com>
parents:
39592
diff
changeset
|
1054 | * used to join the chat. |
|
2d41781914e7
Document the protocol whiteboard and chat interfaces
Gary Kramlich <grim@reaperworld.com>
parents:
39592
diff
changeset
|
1055 | * |
|
2d41781914e7
Document the protocol whiteboard and chat interfaces
Gary Kramlich <grim@reaperworld.com>
parents:
39592
diff
changeset
|
1056 | * Since: 3.0.0 |
|
2d41781914e7
Document the protocol whiteboard and chat interfaces
Gary Kramlich <grim@reaperworld.com>
parents:
39592
diff
changeset
|
1057 | */ |
|
38745
f4376b1f4682
A ton more of introspection cleanups
Gary Kramlich <grim@reaperworld.com>
parents:
37167
diff
changeset
|
1058 | GHashTable *purple_protocol_chat_iface_info_defaults(PurpleProtocol *protocol, |
|
f4376b1f4682
A ton more of introspection cleanups
Gary Kramlich <grim@reaperworld.com>
parents:
37167
diff
changeset
|
1059 | PurpleConnection *connection, const char *chat_name); |
|
36718
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
1060 | |
|
39593
2d41781914e7
Document the protocol whiteboard and chat interfaces
Gary Kramlich <grim@reaperworld.com>
parents:
39592
diff
changeset
|
1061 | /** |
|
2d41781914e7
Document the protocol whiteboard and chat interfaces
Gary Kramlich <grim@reaperworld.com>
parents:
39592
diff
changeset
|
1062 | * purple_protocol_chat_iface_join: |
|
2d41781914e7
Document the protocol whiteboard and chat interfaces
Gary Kramlich <grim@reaperworld.com>
parents:
39592
diff
changeset
|
1063 | * @protocol: The #PurpleProtocol instance |
|
2d41781914e7
Document the protocol whiteboard and chat interfaces
Gary Kramlich <grim@reaperworld.com>
parents:
39592
diff
changeset
|
1064 | * @connection: The #PurpleConnection instance |
|
2d41781914e7
Document the protocol whiteboard and chat interfaces
Gary Kramlich <grim@reaperworld.com>
parents:
39592
diff
changeset
|
1065 | * @components: (element-type utf8 utf8): The protocol dependent join |
|
2d41781914e7
Document the protocol whiteboard and chat interfaces
Gary Kramlich <grim@reaperworld.com>
parents:
39592
diff
changeset
|
1066 | * components |
|
2d41781914e7
Document the protocol whiteboard and chat interfaces
Gary Kramlich <grim@reaperworld.com>
parents:
39592
diff
changeset
|
1067 | * |
|
2d41781914e7
Document the protocol whiteboard and chat interfaces
Gary Kramlich <grim@reaperworld.com>
parents:
39592
diff
changeset
|
1068 | * Joins the chat described in @components. |
|
2d41781914e7
Document the protocol whiteboard and chat interfaces
Gary Kramlich <grim@reaperworld.com>
parents:
39592
diff
changeset
|
1069 | * |
|
2d41781914e7
Document the protocol whiteboard and chat interfaces
Gary Kramlich <grim@reaperworld.com>
parents:
39592
diff
changeset
|
1070 | * Since: 3.0.0 |
|
2d41781914e7
Document the protocol whiteboard and chat interfaces
Gary Kramlich <grim@reaperworld.com>
parents:
39592
diff
changeset
|
1071 | */ |
|
38745
f4376b1f4682
A ton more of introspection cleanups
Gary Kramlich <grim@reaperworld.com>
parents:
37167
diff
changeset
|
1072 | void purple_protocol_chat_iface_join(PurpleProtocol *protocol, PurpleConnection *connection, |
|
36718
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
1073 | GHashTable *components); |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
1074 | |
|
39593
2d41781914e7
Document the protocol whiteboard and chat interfaces
Gary Kramlich <grim@reaperworld.com>
parents:
39592
diff
changeset
|
1075 | /** |
|
2d41781914e7
Document the protocol whiteboard and chat interfaces
Gary Kramlich <grim@reaperworld.com>
parents:
39592
diff
changeset
|
1076 | * purple_protocol_chat_iface_reject: |
|
2d41781914e7
Document the protocol whiteboard and chat interfaces
Gary Kramlich <grim@reaperworld.com>
parents:
39592
diff
changeset
|
1077 | * @protocol: The #PurpleProtocol instance |
|
2d41781914e7
Document the protocol whiteboard and chat interfaces
Gary Kramlich <grim@reaperworld.com>
parents:
39592
diff
changeset
|
1078 | * @connection: The #PurpleConnection instance |
|
2d41781914e7
Document the protocol whiteboard and chat interfaces
Gary Kramlich <grim@reaperworld.com>
parents:
39592
diff
changeset
|
1079 | * @components: (element-type utf8 utf8): The protocol dependent join |
|
2d41781914e7
Document the protocol whiteboard and chat interfaces
Gary Kramlich <grim@reaperworld.com>
parents:
39592
diff
changeset
|
1080 | * components |
|
2d41781914e7
Document the protocol whiteboard and chat interfaces
Gary Kramlich <grim@reaperworld.com>
parents:
39592
diff
changeset
|
1081 | * |
|
2d41781914e7
Document the protocol whiteboard and chat interfaces
Gary Kramlich <grim@reaperworld.com>
parents:
39592
diff
changeset
|
1082 | * Not quite sure exactly what this does or where it's used. Please fill in |
|
2d41781914e7
Document the protocol whiteboard and chat interfaces
Gary Kramlich <grim@reaperworld.com>
parents:
39592
diff
changeset
|
1083 | * the details if you know. |
|
2d41781914e7
Document the protocol whiteboard and chat interfaces
Gary Kramlich <grim@reaperworld.com>
parents:
39592
diff
changeset
|
1084 | * |
|
2d41781914e7
Document the protocol whiteboard and chat interfaces
Gary Kramlich <grim@reaperworld.com>
parents:
39592
diff
changeset
|
1085 | * Since: 3.0.0 |
|
2d41781914e7
Document the protocol whiteboard and chat interfaces
Gary Kramlich <grim@reaperworld.com>
parents:
39592
diff
changeset
|
1086 | */ |
|
38745
f4376b1f4682
A ton more of introspection cleanups
Gary Kramlich <grim@reaperworld.com>
parents:
37167
diff
changeset
|
1087 | void purple_protocol_chat_iface_reject(PurpleProtocol *protocol, |
|
f4376b1f4682
A ton more of introspection cleanups
Gary Kramlich <grim@reaperworld.com>
parents:
37167
diff
changeset
|
1088 | PurpleConnection *connection, GHashTable *components); |
|
36718
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
1089 | |
|
39593
2d41781914e7
Document the protocol whiteboard and chat interfaces
Gary Kramlich <grim@reaperworld.com>
parents:
39592
diff
changeset
|
1090 | /** |
|
2d41781914e7
Document the protocol whiteboard and chat interfaces
Gary Kramlich <grim@reaperworld.com>
parents:
39592
diff
changeset
|
1091 | * purple_protocol_chat_iface_get_name: |
|
2d41781914e7
Document the protocol whiteboard and chat interfaces
Gary Kramlich <grim@reaperworld.com>
parents:
39592
diff
changeset
|
1092 | * @protocol: The #PurpleProtocol instance |
|
2d41781914e7
Document the protocol whiteboard and chat interfaces
Gary Kramlich <grim@reaperworld.com>
parents:
39592
diff
changeset
|
1093 | * @components: (element-type utf8 utf8): The protocol dependent join |
|
2d41781914e7
Document the protocol whiteboard and chat interfaces
Gary Kramlich <grim@reaperworld.com>
parents:
39592
diff
changeset
|
1094 | * components |
|
2d41781914e7
Document the protocol whiteboard and chat interfaces
Gary Kramlich <grim@reaperworld.com>
parents:
39592
diff
changeset
|
1095 | * |
|
39595
0c9f3c4f1afb
Various typo and whitespace fixes found in review
Gary Kramlich <grim@reaperworld.com>
parents:
39594
diff
changeset
|
1096 | * Gets the name from @components. |
|
39593
2d41781914e7
Document the protocol whiteboard and chat interfaces
Gary Kramlich <grim@reaperworld.com>
parents:
39592
diff
changeset
|
1097 | * |
|
2d41781914e7
Document the protocol whiteboard and chat interfaces
Gary Kramlich <grim@reaperworld.com>
parents:
39592
diff
changeset
|
1098 | * Returns: (transfer full): The chat name from @components. |
|
2d41781914e7
Document the protocol whiteboard and chat interfaces
Gary Kramlich <grim@reaperworld.com>
parents:
39592
diff
changeset
|
1099 | * |
|
2d41781914e7
Document the protocol whiteboard and chat interfaces
Gary Kramlich <grim@reaperworld.com>
parents:
39592
diff
changeset
|
1100 | * Since: 3.0.0 |
|
2d41781914e7
Document the protocol whiteboard and chat interfaces
Gary Kramlich <grim@reaperworld.com>
parents:
39592
diff
changeset
|
1101 | */ |
|
38745
f4376b1f4682
A ton more of introspection cleanups
Gary Kramlich <grim@reaperworld.com>
parents:
37167
diff
changeset
|
1102 | char *purple_protocol_chat_iface_get_name(PurpleProtocol *protocol, |
|
36718
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
1103 | GHashTable *components); |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
1104 | |
|
39593
2d41781914e7
Document the protocol whiteboard and chat interfaces
Gary Kramlich <grim@reaperworld.com>
parents:
39592
diff
changeset
|
1105 | /** |
|
2d41781914e7
Document the protocol whiteboard and chat interfaces
Gary Kramlich <grim@reaperworld.com>
parents:
39592
diff
changeset
|
1106 | * purple_protocol_chat_iface_invite: |
|
2d41781914e7
Document the protocol whiteboard and chat interfaces
Gary Kramlich <grim@reaperworld.com>
parents:
39592
diff
changeset
|
1107 | * @protocol: The #PurpleProtocol instance |
|
2d41781914e7
Document the protocol whiteboard and chat interfaces
Gary Kramlich <grim@reaperworld.com>
parents:
39592
diff
changeset
|
1108 | * @connection: The #PurpleConnection instance |
|
2d41781914e7
Document the protocol whiteboard and chat interfaces
Gary Kramlich <grim@reaperworld.com>
parents:
39592
diff
changeset
|
1109 | * @id: The id of the chat |
|
2d41781914e7
Document the protocol whiteboard and chat interfaces
Gary Kramlich <grim@reaperworld.com>
parents:
39592
diff
changeset
|
1110 | * @message: The invite message |
|
2d41781914e7
Document the protocol whiteboard and chat interfaces
Gary Kramlich <grim@reaperworld.com>
parents:
39592
diff
changeset
|
1111 | * @who: The target of the invite |
|
2d41781914e7
Document the protocol whiteboard and chat interfaces
Gary Kramlich <grim@reaperworld.com>
parents:
39592
diff
changeset
|
1112 | * |
|
2d41781914e7
Document the protocol whiteboard and chat interfaces
Gary Kramlich <grim@reaperworld.com>
parents:
39592
diff
changeset
|
1113 | * Sends an invite to @who with @message. |
|
2d41781914e7
Document the protocol whiteboard and chat interfaces
Gary Kramlich <grim@reaperworld.com>
parents:
39592
diff
changeset
|
1114 | * |
|
2d41781914e7
Document the protocol whiteboard and chat interfaces
Gary Kramlich <grim@reaperworld.com>
parents:
39592
diff
changeset
|
1115 | * Since: 3.0.0 |
|
2d41781914e7
Document the protocol whiteboard and chat interfaces
Gary Kramlich <grim@reaperworld.com>
parents:
39592
diff
changeset
|
1116 | */ |
|
38745
f4376b1f4682
A ton more of introspection cleanups
Gary Kramlich <grim@reaperworld.com>
parents:
37167
diff
changeset
|
1117 | void purple_protocol_chat_iface_invite(PurpleProtocol *protocol, |
|
f4376b1f4682
A ton more of introspection cleanups
Gary Kramlich <grim@reaperworld.com>
parents:
37167
diff
changeset
|
1118 | PurpleConnection *connection, int id, const char *message, const char *who); |
|
36718
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
1119 | |
|
39593
2d41781914e7
Document the protocol whiteboard and chat interfaces
Gary Kramlich <grim@reaperworld.com>
parents:
39592
diff
changeset
|
1120 | /** |
|
2d41781914e7
Document the protocol whiteboard and chat interfaces
Gary Kramlich <grim@reaperworld.com>
parents:
39592
diff
changeset
|
1121 | * purple_protocol_chat_iface_leave: |
|
2d41781914e7
Document the protocol whiteboard and chat interfaces
Gary Kramlich <grim@reaperworld.com>
parents:
39592
diff
changeset
|
1122 | * @protocol: The #PurpleProtocol instance |
|
2d41781914e7
Document the protocol whiteboard and chat interfaces
Gary Kramlich <grim@reaperworld.com>
parents:
39592
diff
changeset
|
1123 | * @connection: The #PurpleConnection instance |
|
2d41781914e7
Document the protocol whiteboard and chat interfaces
Gary Kramlich <grim@reaperworld.com>
parents:
39592
diff
changeset
|
1124 | * @id: The id of the chat |
|
2d41781914e7
Document the protocol whiteboard and chat interfaces
Gary Kramlich <grim@reaperworld.com>
parents:
39592
diff
changeset
|
1125 | * |
|
2d41781914e7
Document the protocol whiteboard and chat interfaces
Gary Kramlich <grim@reaperworld.com>
parents:
39592
diff
changeset
|
1126 | * Leaves the chat identified by @id. |
|
2d41781914e7
Document the protocol whiteboard and chat interfaces
Gary Kramlich <grim@reaperworld.com>
parents:
39592
diff
changeset
|
1127 | * |
|
2d41781914e7
Document the protocol whiteboard and chat interfaces
Gary Kramlich <grim@reaperworld.com>
parents:
39592
diff
changeset
|
1128 | * Since: 3.0.0 |
|
2d41781914e7
Document the protocol whiteboard and chat interfaces
Gary Kramlich <grim@reaperworld.com>
parents:
39592
diff
changeset
|
1129 | */ |
|
38745
f4376b1f4682
A ton more of introspection cleanups
Gary Kramlich <grim@reaperworld.com>
parents:
37167
diff
changeset
|
1130 | void purple_protocol_chat_iface_leave(PurpleProtocol *protocol, PurpleConnection *connection, |
|
36718
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
1131 | int id); |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
1132 | |
|
39593
2d41781914e7
Document the protocol whiteboard and chat interfaces
Gary Kramlich <grim@reaperworld.com>
parents:
39592
diff
changeset
|
1133 | /** |
|
39595
0c9f3c4f1afb
Various typo and whitespace fixes found in review
Gary Kramlich <grim@reaperworld.com>
parents:
39594
diff
changeset
|
1134 | * purple_protocol_chat_iface_send: |
|
39593
2d41781914e7
Document the protocol whiteboard and chat interfaces
Gary Kramlich <grim@reaperworld.com>
parents:
39592
diff
changeset
|
1135 | * @protocol: The #PurpleProtocol instance |
|
2d41781914e7
Document the protocol whiteboard and chat interfaces
Gary Kramlich <grim@reaperworld.com>
parents:
39592
diff
changeset
|
1136 | * @connection: The #PurpleConnection instance |
|
2d41781914e7
Document the protocol whiteboard and chat interfaces
Gary Kramlich <grim@reaperworld.com>
parents:
39592
diff
changeset
|
1137 | * @id: The id of the chat |
|
2d41781914e7
Document the protocol whiteboard and chat interfaces
Gary Kramlich <grim@reaperworld.com>
parents:
39592
diff
changeset
|
1138 | * @msg: The message to send |
|
2d41781914e7
Document the protocol whiteboard and chat interfaces
Gary Kramlich <grim@reaperworld.com>
parents:
39592
diff
changeset
|
1139 | * |
|
2d41781914e7
Document the protocol whiteboard and chat interfaces
Gary Kramlich <grim@reaperworld.com>
parents:
39592
diff
changeset
|
1140 | * Sends @msg to the chat identified by @id. |
|
2d41781914e7
Document the protocol whiteboard and chat interfaces
Gary Kramlich <grim@reaperworld.com>
parents:
39592
diff
changeset
|
1141 | * |
|
2d41781914e7
Document the protocol whiteboard and chat interfaces
Gary Kramlich <grim@reaperworld.com>
parents:
39592
diff
changeset
|
1142 | * Returns: 0 on success, non-zero on failure. |
|
2d41781914e7
Document the protocol whiteboard and chat interfaces
Gary Kramlich <grim@reaperworld.com>
parents:
39592
diff
changeset
|
1143 | * |
|
2d41781914e7
Document the protocol whiteboard and chat interfaces
Gary Kramlich <grim@reaperworld.com>
parents:
39592
diff
changeset
|
1144 | * Since: 3.0.0 |
|
2d41781914e7
Document the protocol whiteboard and chat interfaces
Gary Kramlich <grim@reaperworld.com>
parents:
39592
diff
changeset
|
1145 | */ |
|
38745
f4376b1f4682
A ton more of introspection cleanups
Gary Kramlich <grim@reaperworld.com>
parents:
37167
diff
changeset
|
1146 | int purple_protocol_chat_iface_send(PurpleProtocol *protocol, PurpleConnection *connection, |
| 37148 | 1147 | int id, PurpleMessage *msg); |
|
36718
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
1148 | |
|
39593
2d41781914e7
Document the protocol whiteboard and chat interfaces
Gary Kramlich <grim@reaperworld.com>
parents:
39592
diff
changeset
|
1149 | /** |
|
2d41781914e7
Document the protocol whiteboard and chat interfaces
Gary Kramlich <grim@reaperworld.com>
parents:
39592
diff
changeset
|
1150 | * purple_protocol_chat_iface_get_user_real_name: |
|
2d41781914e7
Document the protocol whiteboard and chat interfaces
Gary Kramlich <grim@reaperworld.com>
parents:
39592
diff
changeset
|
1151 | * @protocol: The #PurpleProtocol instance |
|
2d41781914e7
Document the protocol whiteboard and chat interfaces
Gary Kramlich <grim@reaperworld.com>
parents:
39592
diff
changeset
|
1152 | * @gc: The #PurpleConnection instance |
|
2d41781914e7
Document the protocol whiteboard and chat interfaces
Gary Kramlich <grim@reaperworld.com>
parents:
39592
diff
changeset
|
1153 | * @id: The id of the chat |
|
2d41781914e7
Document the protocol whiteboard and chat interfaces
Gary Kramlich <grim@reaperworld.com>
parents:
39592
diff
changeset
|
1154 | * @who: The username |
|
2d41781914e7
Document the protocol whiteboard and chat interfaces
Gary Kramlich <grim@reaperworld.com>
parents:
39592
diff
changeset
|
1155 | * |
|
2d41781914e7
Document the protocol whiteboard and chat interfaces
Gary Kramlich <grim@reaperworld.com>
parents:
39592
diff
changeset
|
1156 | * Gets the real name of @who. |
|
2d41781914e7
Document the protocol whiteboard and chat interfaces
Gary Kramlich <grim@reaperworld.com>
parents:
39592
diff
changeset
|
1157 | * |
|
2d41781914e7
Document the protocol whiteboard and chat interfaces
Gary Kramlich <grim@reaperworld.com>
parents:
39592
diff
changeset
|
1158 | * Returns: (transfer full): The realname of @who. |
|
2d41781914e7
Document the protocol whiteboard and chat interfaces
Gary Kramlich <grim@reaperworld.com>
parents:
39592
diff
changeset
|
1159 | * |
|
2d41781914e7
Document the protocol whiteboard and chat interfaces
Gary Kramlich <grim@reaperworld.com>
parents:
39592
diff
changeset
|
1160 | * Since: 3.0.0 |
|
2d41781914e7
Document the protocol whiteboard and chat interfaces
Gary Kramlich <grim@reaperworld.com>
parents:
39592
diff
changeset
|
1161 | */ |
|
38745
f4376b1f4682
A ton more of introspection cleanups
Gary Kramlich <grim@reaperworld.com>
parents:
37167
diff
changeset
|
1162 | char *purple_protocol_chat_iface_get_user_real_name(PurpleProtocol *protocol, |
|
36718
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
1163 | PurpleConnection *gc, int id, const char *who); |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
1164 | |
|
39593
2d41781914e7
Document the protocol whiteboard and chat interfaces
Gary Kramlich <grim@reaperworld.com>
parents:
39592
diff
changeset
|
1165 | /** |
|
2d41781914e7
Document the protocol whiteboard and chat interfaces
Gary Kramlich <grim@reaperworld.com>
parents:
39592
diff
changeset
|
1166 | * purple_protocol_chat_iface_set_topic: |
|
2d41781914e7
Document the protocol whiteboard and chat interfaces
Gary Kramlich <grim@reaperworld.com>
parents:
39592
diff
changeset
|
1167 | * @protocol: The #PurpleProtocol instance |
|
2d41781914e7
Document the protocol whiteboard and chat interfaces
Gary Kramlich <grim@reaperworld.com>
parents:
39592
diff
changeset
|
1168 | * @gc: The #PurpleConnection instance |
|
2d41781914e7
Document the protocol whiteboard and chat interfaces
Gary Kramlich <grim@reaperworld.com>
parents:
39592
diff
changeset
|
1169 | * @id: The id of the chat |
|
2d41781914e7
Document the protocol whiteboard and chat interfaces
Gary Kramlich <grim@reaperworld.com>
parents:
39592
diff
changeset
|
1170 | * @topic: The new topic |
|
2d41781914e7
Document the protocol whiteboard and chat interfaces
Gary Kramlich <grim@reaperworld.com>
parents:
39592
diff
changeset
|
1171 | * |
|
2d41781914e7
Document the protocol whiteboard and chat interfaces
Gary Kramlich <grim@reaperworld.com>
parents:
39592
diff
changeset
|
1172 | * Sets the topic for the chat with id @id to @topic. |
|
2d41781914e7
Document the protocol whiteboard and chat interfaces
Gary Kramlich <grim@reaperworld.com>
parents:
39592
diff
changeset
|
1173 | * |
|
2d41781914e7
Document the protocol whiteboard and chat interfaces
Gary Kramlich <grim@reaperworld.com>
parents:
39592
diff
changeset
|
1174 | * Since: 3.0.0 |
|
2d41781914e7
Document the protocol whiteboard and chat interfaces
Gary Kramlich <grim@reaperworld.com>
parents:
39592
diff
changeset
|
1175 | */ |
|
38745
f4376b1f4682
A ton more of introspection cleanups
Gary Kramlich <grim@reaperworld.com>
parents:
37167
diff
changeset
|
1176 | void purple_protocol_chat_iface_set_topic(PurpleProtocol *protocol, |
|
36718
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
1177 | PurpleConnection *gc, int id, const char *topic); |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
1178 | |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
1179 | /**************************************************************************/ |
|
37090
c45c70779582
Remove @name from new plugin and protocol stuff
Ankit Vani <a@nevitus.org>
parents:
37089
diff
changeset
|
1180 | /* Protocol Privacy Interface API */ |
|
36718
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
1181 | /**************************************************************************/ |
|
36566
029a5f652427
Moved all of protocol API to protocol.h
Ankit Vani <a@nevitus.org>
parents:
36564
diff
changeset
|
1182 | |
|
36617
be16459a68e9
Finished implementation of protocol object and interface stuff in protocol.[ch].
Ankit Vani <a@nevitus.org>
parents:
36613
diff
changeset
|
1183 | /** |
|
37036
a8e12bcb0a74
Convert the new .h files for this branch for gtk-doc
Ankit Vani <a@nevitus.org>
parents:
37034
diff
changeset
|
1184 | * purple_protocol_privacy_iface_get_type: |
|
a8e12bcb0a74
Convert the new .h files for this branch for gtk-doc
Ankit Vani <a@nevitus.org>
parents:
37034
diff
changeset
|
1185 | * |
|
37073
baf45dc13ffd
Fix some gtk-doc warnings in protocol(s).h (not all)
Ankit Vani <a@nevitus.org>
parents:
37062
diff
changeset
|
1186 | * Returns: The #GType for the protocol privacy interface. |
|
39594
3b42f3b5f643
Add since tags and remove stuff from ChangeLog.API
Gary Kramlich <grim@reaperworld.com>
parents:
39593
diff
changeset
|
1187 | * |
|
3b42f3b5f643
Add since tags and remove stuff from ChangeLog.API
Gary Kramlich <grim@reaperworld.com>
parents:
39593
diff
changeset
|
1188 | * Since: 3.0.0 |
|
36617
be16459a68e9
Finished implementation of protocol object and interface stuff in protocol.[ch].
Ankit Vani <a@nevitus.org>
parents:
36613
diff
changeset
|
1189 | */ |
|
36718
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
1190 | GType purple_protocol_privacy_iface_get_type(void); |
|
36564
2d423b459d4b
Declared functions to call interface methods from PurpleProtocol * objects
Ankit Vani <a@nevitus.org>
parents:
36563
diff
changeset
|
1191 | |
|
39592
445e2cf29f4d
Start of cleaning up missing docs in protocol.h
Gary Kramlich <grim@reaperworld.com>
parents:
39521
diff
changeset
|
1192 | /** |
|
445e2cf29f4d
Start of cleaning up missing docs in protocol.h
Gary Kramlich <grim@reaperworld.com>
parents:
39521
diff
changeset
|
1193 | * purple_protocol_privacy_iface_add_permit: |
|
445e2cf29f4d
Start of cleaning up missing docs in protocol.h
Gary Kramlich <grim@reaperworld.com>
parents:
39521
diff
changeset
|
1194 | * @protocol: The #PurpleProtocol instance. |
|
445e2cf29f4d
Start of cleaning up missing docs in protocol.h
Gary Kramlich <grim@reaperworld.com>
parents:
39521
diff
changeset
|
1195 | * @connection: The #PurpleConnection instance. |
|
445e2cf29f4d
Start of cleaning up missing docs in protocol.h
Gary Kramlich <grim@reaperworld.com>
parents:
39521
diff
changeset
|
1196 | * @name: The username to permit. |
|
445e2cf29f4d
Start of cleaning up missing docs in protocol.h
Gary Kramlich <grim@reaperworld.com>
parents:
39521
diff
changeset
|
1197 | * |
|
445e2cf29f4d
Start of cleaning up missing docs in protocol.h
Gary Kramlich <grim@reaperworld.com>
parents:
39521
diff
changeset
|
1198 | * Adds a permit to the privacy settings for @connection to allow @name to |
|
445e2cf29f4d
Start of cleaning up missing docs in protocol.h
Gary Kramlich <grim@reaperworld.com>
parents:
39521
diff
changeset
|
1199 | * contact the user. |
|
39594
3b42f3b5f643
Add since tags and remove stuff from ChangeLog.API
Gary Kramlich <grim@reaperworld.com>
parents:
39593
diff
changeset
|
1200 | * |
|
3b42f3b5f643
Add since tags and remove stuff from ChangeLog.API
Gary Kramlich <grim@reaperworld.com>
parents:
39593
diff
changeset
|
1201 | * Since: 3.0.0 |
|
39592
445e2cf29f4d
Start of cleaning up missing docs in protocol.h
Gary Kramlich <grim@reaperworld.com>
parents:
39521
diff
changeset
|
1202 | */ |
|
38745
f4376b1f4682
A ton more of introspection cleanups
Gary Kramlich <grim@reaperworld.com>
parents:
37167
diff
changeset
|
1203 | void purple_protocol_privacy_iface_add_permit(PurpleProtocol *protocol, |
|
f4376b1f4682
A ton more of introspection cleanups
Gary Kramlich <grim@reaperworld.com>
parents:
37167
diff
changeset
|
1204 | PurpleConnection *connection, const char *name); |
|
36564
2d423b459d4b
Declared functions to call interface methods from PurpleProtocol * objects
Ankit Vani <a@nevitus.org>
parents:
36563
diff
changeset
|
1205 | |
|
39592
445e2cf29f4d
Start of cleaning up missing docs in protocol.h
Gary Kramlich <grim@reaperworld.com>
parents:
39521
diff
changeset
|
1206 | /** |
|
445e2cf29f4d
Start of cleaning up missing docs in protocol.h
Gary Kramlich <grim@reaperworld.com>
parents:
39521
diff
changeset
|
1207 | * purple_protocol_privacy_iface_add_deny: |
|
445e2cf29f4d
Start of cleaning up missing docs in protocol.h
Gary Kramlich <grim@reaperworld.com>
parents:
39521
diff
changeset
|
1208 | * @protocol: The #PurpleProtocol instance. |
|
445e2cf29f4d
Start of cleaning up missing docs in protocol.h
Gary Kramlich <grim@reaperworld.com>
parents:
39521
diff
changeset
|
1209 | * @connection: The #PurpleConnection instance. |
|
445e2cf29f4d
Start of cleaning up missing docs in protocol.h
Gary Kramlich <grim@reaperworld.com>
parents:
39521
diff
changeset
|
1210 | * @name: The username to deny. |
|
445e2cf29f4d
Start of cleaning up missing docs in protocol.h
Gary Kramlich <grim@reaperworld.com>
parents:
39521
diff
changeset
|
1211 | * |
|
445e2cf29f4d
Start of cleaning up missing docs in protocol.h
Gary Kramlich <grim@reaperworld.com>
parents:
39521
diff
changeset
|
1212 | * Adds a deny to the privacy settings for @connection to deny @name from |
|
445e2cf29f4d
Start of cleaning up missing docs in protocol.h
Gary Kramlich <grim@reaperworld.com>
parents:
39521
diff
changeset
|
1213 | * contacting the user. |
|
39594
3b42f3b5f643
Add since tags and remove stuff from ChangeLog.API
Gary Kramlich <grim@reaperworld.com>
parents:
39593
diff
changeset
|
1214 | * |
|
3b42f3b5f643
Add since tags and remove stuff from ChangeLog.API
Gary Kramlich <grim@reaperworld.com>
parents:
39593
diff
changeset
|
1215 | * Since: 3.0.0 |
|
39592
445e2cf29f4d
Start of cleaning up missing docs in protocol.h
Gary Kramlich <grim@reaperworld.com>
parents:
39521
diff
changeset
|
1216 | */ |
|
38745
f4376b1f4682
A ton more of introspection cleanups
Gary Kramlich <grim@reaperworld.com>
parents:
37167
diff
changeset
|
1217 | void purple_protocol_privacy_iface_add_deny(PurpleProtocol *protocol, |
|
f4376b1f4682
A ton more of introspection cleanups
Gary Kramlich <grim@reaperworld.com>
parents:
37167
diff
changeset
|
1218 | PurpleConnection *connection, const char *name); |
|
36564
2d423b459d4b
Declared functions to call interface methods from PurpleProtocol * objects
Ankit Vani <a@nevitus.org>
parents:
36563
diff
changeset
|
1219 | |
|
39592
445e2cf29f4d
Start of cleaning up missing docs in protocol.h
Gary Kramlich <grim@reaperworld.com>
parents:
39521
diff
changeset
|
1220 | /** |
|
445e2cf29f4d
Start of cleaning up missing docs in protocol.h
Gary Kramlich <grim@reaperworld.com>
parents:
39521
diff
changeset
|
1221 | * purple_protocol_privacy_iface_rem_permit: |
|
445e2cf29f4d
Start of cleaning up missing docs in protocol.h
Gary Kramlich <grim@reaperworld.com>
parents:
39521
diff
changeset
|
1222 | * @protocol: The #PurpleProtocol instance. |
|
445e2cf29f4d
Start of cleaning up missing docs in protocol.h
Gary Kramlich <grim@reaperworld.com>
parents:
39521
diff
changeset
|
1223 | * @connection: The #PurpleConnection instance. |
|
445e2cf29f4d
Start of cleaning up missing docs in protocol.h
Gary Kramlich <grim@reaperworld.com>
parents:
39521
diff
changeset
|
1224 | * @name: The username to remove from the permit privacy settings. |
|
445e2cf29f4d
Start of cleaning up missing docs in protocol.h
Gary Kramlich <grim@reaperworld.com>
parents:
39521
diff
changeset
|
1225 | * |
|
445e2cf29f4d
Start of cleaning up missing docs in protocol.h
Gary Kramlich <grim@reaperworld.com>
parents:
39521
diff
changeset
|
1226 | * Removes an existing permit for @name. |
|
39594
3b42f3b5f643
Add since tags and remove stuff from ChangeLog.API
Gary Kramlich <grim@reaperworld.com>
parents:
39593
diff
changeset
|
1227 | * |
|
3b42f3b5f643
Add since tags and remove stuff from ChangeLog.API
Gary Kramlich <grim@reaperworld.com>
parents:
39593
diff
changeset
|
1228 | * Since: 3.0.0 |
|
39592
445e2cf29f4d
Start of cleaning up missing docs in protocol.h
Gary Kramlich <grim@reaperworld.com>
parents:
39521
diff
changeset
|
1229 | */ |
|
38745
f4376b1f4682
A ton more of introspection cleanups
Gary Kramlich <grim@reaperworld.com>
parents:
37167
diff
changeset
|
1230 | void purple_protocol_privacy_iface_rem_permit(PurpleProtocol *protocol, |
|
f4376b1f4682
A ton more of introspection cleanups
Gary Kramlich <grim@reaperworld.com>
parents:
37167
diff
changeset
|
1231 | PurpleConnection *connection, const char *name); |
|
36564
2d423b459d4b
Declared functions to call interface methods from PurpleProtocol * objects
Ankit Vani <a@nevitus.org>
parents:
36563
diff
changeset
|
1232 | |
|
39592
445e2cf29f4d
Start of cleaning up missing docs in protocol.h
Gary Kramlich <grim@reaperworld.com>
parents:
39521
diff
changeset
|
1233 | /** |
|
445e2cf29f4d
Start of cleaning up missing docs in protocol.h
Gary Kramlich <grim@reaperworld.com>
parents:
39521
diff
changeset
|
1234 | * purple_protocol_privacy_iface_rem_deny: |
|
445e2cf29f4d
Start of cleaning up missing docs in protocol.h
Gary Kramlich <grim@reaperworld.com>
parents:
39521
diff
changeset
|
1235 | * @protocol: The #PurpleProtocol instance. |
|
445e2cf29f4d
Start of cleaning up missing docs in protocol.h
Gary Kramlich <grim@reaperworld.com>
parents:
39521
diff
changeset
|
1236 | * @connection: The #PurpleConnection instance. |
|
445e2cf29f4d
Start of cleaning up missing docs in protocol.h
Gary Kramlich <grim@reaperworld.com>
parents:
39521
diff
changeset
|
1237 | * @name: The username to remove from the deny privacy settings. |
|
445e2cf29f4d
Start of cleaning up missing docs in protocol.h
Gary Kramlich <grim@reaperworld.com>
parents:
39521
diff
changeset
|
1238 | * |
|
445e2cf29f4d
Start of cleaning up missing docs in protocol.h
Gary Kramlich <grim@reaperworld.com>
parents:
39521
diff
changeset
|
1239 | * Removes an existing deny for @name. |
|
39594
3b42f3b5f643
Add since tags and remove stuff from ChangeLog.API
Gary Kramlich <grim@reaperworld.com>
parents:
39593
diff
changeset
|
1240 | * |
|
3b42f3b5f643
Add since tags and remove stuff from ChangeLog.API
Gary Kramlich <grim@reaperworld.com>
parents:
39593
diff
changeset
|
1241 | * Since: 3.0.0 |
|
39592
445e2cf29f4d
Start of cleaning up missing docs in protocol.h
Gary Kramlich <grim@reaperworld.com>
parents:
39521
diff
changeset
|
1242 | */ |
|
38745
f4376b1f4682
A ton more of introspection cleanups
Gary Kramlich <grim@reaperworld.com>
parents:
37167
diff
changeset
|
1243 | void purple_protocol_privacy_iface_rem_deny(PurpleProtocol *protocol, |
|
f4376b1f4682
A ton more of introspection cleanups
Gary Kramlich <grim@reaperworld.com>
parents:
37167
diff
changeset
|
1244 | PurpleConnection *connection, const char *name); |
|
36564
2d423b459d4b
Declared functions to call interface methods from PurpleProtocol * objects
Ankit Vani <a@nevitus.org>
parents:
36563
diff
changeset
|
1245 | |
|
39592
445e2cf29f4d
Start of cleaning up missing docs in protocol.h
Gary Kramlich <grim@reaperworld.com>
parents:
39521
diff
changeset
|
1246 | /** |
|
445e2cf29f4d
Start of cleaning up missing docs in protocol.h
Gary Kramlich <grim@reaperworld.com>
parents:
39521
diff
changeset
|
1247 | * purple_protocol_privacy_iface_set_permit_deny: |
|
445e2cf29f4d
Start of cleaning up missing docs in protocol.h
Gary Kramlich <grim@reaperworld.com>
parents:
39521
diff
changeset
|
1248 | * @protocol: The #PurpleProtocol instance. |
|
445e2cf29f4d
Start of cleaning up missing docs in protocol.h
Gary Kramlich <grim@reaperworld.com>
parents:
39521
diff
changeset
|
1249 | * @connection: The #PurpleConnection instance. |
|
445e2cf29f4d
Start of cleaning up missing docs in protocol.h
Gary Kramlich <grim@reaperworld.com>
parents:
39521
diff
changeset
|
1250 | * |
|
445e2cf29f4d
Start of cleaning up missing docs in protocol.h
Gary Kramlich <grim@reaperworld.com>
parents:
39521
diff
changeset
|
1251 | * Forces a sync of the privacy settings with server. |
|
39594
3b42f3b5f643
Add since tags and remove stuff from ChangeLog.API
Gary Kramlich <grim@reaperworld.com>
parents:
39593
diff
changeset
|
1252 | * |
|
3b42f3b5f643
Add since tags and remove stuff from ChangeLog.API
Gary Kramlich <grim@reaperworld.com>
parents:
39593
diff
changeset
|
1253 | * Since: 3.0.0 |
|
39592
445e2cf29f4d
Start of cleaning up missing docs in protocol.h
Gary Kramlich <grim@reaperworld.com>
parents:
39521
diff
changeset
|
1254 | */ |
|
38745
f4376b1f4682
A ton more of introspection cleanups
Gary Kramlich <grim@reaperworld.com>
parents:
37167
diff
changeset
|
1255 | void purple_protocol_privacy_iface_set_permit_deny(PurpleProtocol *protocol, |
|
f4376b1f4682
A ton more of introspection cleanups
Gary Kramlich <grim@reaperworld.com>
parents:
37167
diff
changeset
|
1256 | PurpleConnection *connection); |
|
36564
2d423b459d4b
Declared functions to call interface methods from PurpleProtocol * objects
Ankit Vani <a@nevitus.org>
parents:
36563
diff
changeset
|
1257 | |
|
36718
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
1258 | /**************************************************************************/ |
|
37090
c45c70779582
Remove @name from new plugin and protocol stuff
Ankit Vani <a@nevitus.org>
parents:
37089
diff
changeset
|
1259 | /* Protocol Roomlist Interface API */ |
|
36718
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
1260 | /**************************************************************************/ |
|
36564
2d423b459d4b
Declared functions to call interface methods from PurpleProtocol * objects
Ankit Vani <a@nevitus.org>
parents:
36563
diff
changeset
|
1261 | |
|
36718
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
1262 | /** |
|
37036
a8e12bcb0a74
Convert the new .h files for this branch for gtk-doc
Ankit Vani <a@nevitus.org>
parents:
37034
diff
changeset
|
1263 | * purple_protocol_roomlist_iface_get_type: |
|
a8e12bcb0a74
Convert the new .h files for this branch for gtk-doc
Ankit Vani <a@nevitus.org>
parents:
37034
diff
changeset
|
1264 | * |
|
37073
baf45dc13ffd
Fix some gtk-doc warnings in protocol(s).h (not all)
Ankit Vani <a@nevitus.org>
parents:
37062
diff
changeset
|
1265 | * Returns: The #GType for the protocol roomlist interface. |
|
39594
3b42f3b5f643
Add since tags and remove stuff from ChangeLog.API
Gary Kramlich <grim@reaperworld.com>
parents:
39593
diff
changeset
|
1266 | * |
|
3b42f3b5f643
Add since tags and remove stuff from ChangeLog.API
Gary Kramlich <grim@reaperworld.com>
parents:
39593
diff
changeset
|
1267 | * Since: 3.0.0 |
|
36718
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
1268 | */ |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
1269 | GType purple_protocol_roomlist_iface_get_type(void); |
|
36564
2d423b459d4b
Declared functions to call interface methods from PurpleProtocol * objects
Ankit Vani <a@nevitus.org>
parents:
36563
diff
changeset
|
1270 | |
|
39592
445e2cf29f4d
Start of cleaning up missing docs in protocol.h
Gary Kramlich <grim@reaperworld.com>
parents:
39521
diff
changeset
|
1271 | /** |
|
445e2cf29f4d
Start of cleaning up missing docs in protocol.h
Gary Kramlich <grim@reaperworld.com>
parents:
39521
diff
changeset
|
1272 | * purple_protocol_roomlist_iface_get_list: |
|
445e2cf29f4d
Start of cleaning up missing docs in protocol.h
Gary Kramlich <grim@reaperworld.com>
parents:
39521
diff
changeset
|
1273 | * @protocol: The #PurpleProtocol instance. |
|
445e2cf29f4d
Start of cleaning up missing docs in protocol.h
Gary Kramlich <grim@reaperworld.com>
parents:
39521
diff
changeset
|
1274 | * @gc: The #PurpleAccount to get the roomlist for. |
|
445e2cf29f4d
Start of cleaning up missing docs in protocol.h
Gary Kramlich <grim@reaperworld.com>
parents:
39521
diff
changeset
|
1275 | * |
|
39595
0c9f3c4f1afb
Various typo and whitespace fixes found in review
Gary Kramlich <grim@reaperworld.com>
parents:
39594
diff
changeset
|
1276 | * Gets the list of rooms for @gc. |
|
39592
445e2cf29f4d
Start of cleaning up missing docs in protocol.h
Gary Kramlich <grim@reaperworld.com>
parents:
39521
diff
changeset
|
1277 | * |
|
445e2cf29f4d
Start of cleaning up missing docs in protocol.h
Gary Kramlich <grim@reaperworld.com>
parents:
39521
diff
changeset
|
1278 | * Returns: (transfer full): The roomlist for @gc. |
|
39594
3b42f3b5f643
Add since tags and remove stuff from ChangeLog.API
Gary Kramlich <grim@reaperworld.com>
parents:
39593
diff
changeset
|
1279 | * |
|
3b42f3b5f643
Add since tags and remove stuff from ChangeLog.API
Gary Kramlich <grim@reaperworld.com>
parents:
39593
diff
changeset
|
1280 | * Since: 3.0.0 |
|
39592
445e2cf29f4d
Start of cleaning up missing docs in protocol.h
Gary Kramlich <grim@reaperworld.com>
parents:
39521
diff
changeset
|
1281 | */ |
|
38745
f4376b1f4682
A ton more of introspection cleanups
Gary Kramlich <grim@reaperworld.com>
parents:
37167
diff
changeset
|
1282 | PurpleRoomlist *purple_protocol_roomlist_iface_get_list(PurpleProtocol *protocol, |
|
36718
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
1283 | PurpleConnection *gc); |
|
36564
2d423b459d4b
Declared functions to call interface methods from PurpleProtocol * objects
Ankit Vani <a@nevitus.org>
parents:
36563
diff
changeset
|
1284 | |
|
39592
445e2cf29f4d
Start of cleaning up missing docs in protocol.h
Gary Kramlich <grim@reaperworld.com>
parents:
39521
diff
changeset
|
1285 | /** |
|
445e2cf29f4d
Start of cleaning up missing docs in protocol.h
Gary Kramlich <grim@reaperworld.com>
parents:
39521
diff
changeset
|
1286 | * purple_protocol_roomlist_iface_cancel: |
|
445e2cf29f4d
Start of cleaning up missing docs in protocol.h
Gary Kramlich <grim@reaperworld.com>
parents:
39521
diff
changeset
|
1287 | * @protocol: The #PurpleProtocol instance. |
|
445e2cf29f4d
Start of cleaning up missing docs in protocol.h
Gary Kramlich <grim@reaperworld.com>
parents:
39521
diff
changeset
|
1288 | * @list: The #PurpleRoomlist instance. |
|
445e2cf29f4d
Start of cleaning up missing docs in protocol.h
Gary Kramlich <grim@reaperworld.com>
parents:
39521
diff
changeset
|
1289 | * |
|
445e2cf29f4d
Start of cleaning up missing docs in protocol.h
Gary Kramlich <grim@reaperworld.com>
parents:
39521
diff
changeset
|
1290 | * Requesting a roomlist can take a long time. This function cancels a request |
|
445e2cf29f4d
Start of cleaning up missing docs in protocol.h
Gary Kramlich <grim@reaperworld.com>
parents:
39521
diff
changeset
|
1291 | * that's already in progress. |
|
39594
3b42f3b5f643
Add since tags and remove stuff from ChangeLog.API
Gary Kramlich <grim@reaperworld.com>
parents:
39593
diff
changeset
|
1292 | * |
|
3b42f3b5f643
Add since tags and remove stuff from ChangeLog.API
Gary Kramlich <grim@reaperworld.com>
parents:
39593
diff
changeset
|
1293 | * Since: 3.0.0 |
|
39592
445e2cf29f4d
Start of cleaning up missing docs in protocol.h
Gary Kramlich <grim@reaperworld.com>
parents:
39521
diff
changeset
|
1294 | */ |
|
38745
f4376b1f4682
A ton more of introspection cleanups
Gary Kramlich <grim@reaperworld.com>
parents:
37167
diff
changeset
|
1295 | void purple_protocol_roomlist_iface_cancel(PurpleProtocol *protocol, |
|
36718
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
1296 | PurpleRoomlist *list); |
|
36564
2d423b459d4b
Declared functions to call interface methods from PurpleProtocol * objects
Ankit Vani <a@nevitus.org>
parents:
36563
diff
changeset
|
1297 | |
|
39592
445e2cf29f4d
Start of cleaning up missing docs in protocol.h
Gary Kramlich <grim@reaperworld.com>
parents:
39521
diff
changeset
|
1298 | /** |
|
445e2cf29f4d
Start of cleaning up missing docs in protocol.h
Gary Kramlich <grim@reaperworld.com>
parents:
39521
diff
changeset
|
1299 | * purple_protocol_roomlist_iface_expand_category: |
|
445e2cf29f4d
Start of cleaning up missing docs in protocol.h
Gary Kramlich <grim@reaperworld.com>
parents:
39521
diff
changeset
|
1300 | * @protocol: The #PurpleProtocol instance. |
|
445e2cf29f4d
Start of cleaning up missing docs in protocol.h
Gary Kramlich <grim@reaperworld.com>
parents:
39521
diff
changeset
|
1301 | * @list: The #PurpleRoomlist instance. |
|
445e2cf29f4d
Start of cleaning up missing docs in protocol.h
Gary Kramlich <grim@reaperworld.com>
parents:
39521
diff
changeset
|
1302 | * @category: The category to expand. |
|
445e2cf29f4d
Start of cleaning up missing docs in protocol.h
Gary Kramlich <grim@reaperworld.com>
parents:
39521
diff
changeset
|
1303 | * |
|
445e2cf29f4d
Start of cleaning up missing docs in protocol.h
Gary Kramlich <grim@reaperworld.com>
parents:
39521
diff
changeset
|
1304 | * Expands the given @category for @list. |
|
39594
3b42f3b5f643
Add since tags and remove stuff from ChangeLog.API
Gary Kramlich <grim@reaperworld.com>
parents:
39593
diff
changeset
|
1305 | * |
|
3b42f3b5f643
Add since tags and remove stuff from ChangeLog.API
Gary Kramlich <grim@reaperworld.com>
parents:
39593
diff
changeset
|
1306 | * Since: 3.0.0 |
|
39592
445e2cf29f4d
Start of cleaning up missing docs in protocol.h
Gary Kramlich <grim@reaperworld.com>
parents:
39521
diff
changeset
|
1307 | */ |
|
38745
f4376b1f4682
A ton more of introspection cleanups
Gary Kramlich <grim@reaperworld.com>
parents:
37167
diff
changeset
|
1308 | void purple_protocol_roomlist_iface_expand_category(PurpleProtocol *protocol, |
|
36718
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
1309 | PurpleRoomlist *list, PurpleRoomlistRoom *category); |
|
36564
2d423b459d4b
Declared functions to call interface methods from PurpleProtocol * objects
Ankit Vani <a@nevitus.org>
parents:
36563
diff
changeset
|
1310 | |
|
39592
445e2cf29f4d
Start of cleaning up missing docs in protocol.h
Gary Kramlich <grim@reaperworld.com>
parents:
39521
diff
changeset
|
1311 | /** |
|
445e2cf29f4d
Start of cleaning up missing docs in protocol.h
Gary Kramlich <grim@reaperworld.com>
parents:
39521
diff
changeset
|
1312 | * purple_protocol_roomlist_iface_room_serialize: |
|
445e2cf29f4d
Start of cleaning up missing docs in protocol.h
Gary Kramlich <grim@reaperworld.com>
parents:
39521
diff
changeset
|
1313 | * @protocol: The #PurpleProtocol instance. |
|
445e2cf29f4d
Start of cleaning up missing docs in protocol.h
Gary Kramlich <grim@reaperworld.com>
parents:
39521
diff
changeset
|
1314 | * @room: The #PurpleRoomlistRoom instance. |
|
445e2cf29f4d
Start of cleaning up missing docs in protocol.h
Gary Kramlich <grim@reaperworld.com>
parents:
39521
diff
changeset
|
1315 | * |
|
445e2cf29f4d
Start of cleaning up missing docs in protocol.h
Gary Kramlich <grim@reaperworld.com>
parents:
39521
diff
changeset
|
1316 | * Serializes @room into a string that will be displayed in a user interface. |
|
445e2cf29f4d
Start of cleaning up missing docs in protocol.h
Gary Kramlich <grim@reaperworld.com>
parents:
39521
diff
changeset
|
1317 | * |
|
445e2cf29f4d
Start of cleaning up missing docs in protocol.h
Gary Kramlich <grim@reaperworld.com>
parents:
39521
diff
changeset
|
1318 | * Returns: (transfer full): The serialized form of @room. |
|
39594
3b42f3b5f643
Add since tags and remove stuff from ChangeLog.API
Gary Kramlich <grim@reaperworld.com>
parents:
39593
diff
changeset
|
1319 | * |
|
3b42f3b5f643
Add since tags and remove stuff from ChangeLog.API
Gary Kramlich <grim@reaperworld.com>
parents:
39593
diff
changeset
|
1320 | * Since: 3.0.0 |
|
39592
445e2cf29f4d
Start of cleaning up missing docs in protocol.h
Gary Kramlich <grim@reaperworld.com>
parents:
39521
diff
changeset
|
1321 | */ |
|
38745
f4376b1f4682
A ton more of introspection cleanups
Gary Kramlich <grim@reaperworld.com>
parents:
37167
diff
changeset
|
1322 | char *purple_protocol_roomlist_iface_room_serialize(PurpleProtocol *protocol, |
|
36718
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
1323 | PurpleRoomlistRoom *room); |
|
36564
2d423b459d4b
Declared functions to call interface methods from PurpleProtocol * objects
Ankit Vani <a@nevitus.org>
parents:
36563
diff
changeset
|
1324 | |
|
36718
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
1325 | /**************************************************************************/ |
|
37090
c45c70779582
Remove @name from new plugin and protocol stuff
Ankit Vani <a@nevitus.org>
parents:
37089
diff
changeset
|
1326 | /* Protocol Media Interface API */ |
|
36718
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
1327 | /**************************************************************************/ |
|
36564
2d423b459d4b
Declared functions to call interface methods from PurpleProtocol * objects
Ankit Vani <a@nevitus.org>
parents:
36563
diff
changeset
|
1328 | |
|
36718
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
1329 | /** |
|
37036
a8e12bcb0a74
Convert the new .h files for this branch for gtk-doc
Ankit Vani <a@nevitus.org>
parents:
37034
diff
changeset
|
1330 | * purple_protocol_media_iface_get_type: |
|
a8e12bcb0a74
Convert the new .h files for this branch for gtk-doc
Ankit Vani <a@nevitus.org>
parents:
37034
diff
changeset
|
1331 | * |
|
37073
baf45dc13ffd
Fix some gtk-doc warnings in protocol(s).h (not all)
Ankit Vani <a@nevitus.org>
parents:
37062
diff
changeset
|
1332 | * Returns: The #GType for the protocol media interface. |
|
39594
3b42f3b5f643
Add since tags and remove stuff from ChangeLog.API
Gary Kramlich <grim@reaperworld.com>
parents:
39593
diff
changeset
|
1333 | * |
|
3b42f3b5f643
Add since tags and remove stuff from ChangeLog.API
Gary Kramlich <grim@reaperworld.com>
parents:
39593
diff
changeset
|
1334 | * Since: 3.0.0 |
|
36718
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
1335 | */ |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
1336 | GType purple_protocol_media_iface_get_type(void); |
|
36564
2d423b459d4b
Declared functions to call interface methods from PurpleProtocol * objects
Ankit Vani <a@nevitus.org>
parents:
36563
diff
changeset
|
1337 | |
|
39592
445e2cf29f4d
Start of cleaning up missing docs in protocol.h
Gary Kramlich <grim@reaperworld.com>
parents:
39521
diff
changeset
|
1338 | /** |
|
445e2cf29f4d
Start of cleaning up missing docs in protocol.h
Gary Kramlich <grim@reaperworld.com>
parents:
39521
diff
changeset
|
1339 | * purple_protocol_media_iface_initiate_session: |
|
445e2cf29f4d
Start of cleaning up missing docs in protocol.h
Gary Kramlich <grim@reaperworld.com>
parents:
39521
diff
changeset
|
1340 | * @protocol: The #PurpleProtocol instance. |
|
445e2cf29f4d
Start of cleaning up missing docs in protocol.h
Gary Kramlich <grim@reaperworld.com>
parents:
39521
diff
changeset
|
1341 | * @account: The #PurpleAccount instance. |
|
445e2cf29f4d
Start of cleaning up missing docs in protocol.h
Gary Kramlich <grim@reaperworld.com>
parents:
39521
diff
changeset
|
1342 | * @who: The user to initiate a media session with. |
|
445e2cf29f4d
Start of cleaning up missing docs in protocol.h
Gary Kramlich <grim@reaperworld.com>
parents:
39521
diff
changeset
|
1343 | * @type: The type of media session to create. |
|
445e2cf29f4d
Start of cleaning up missing docs in protocol.h
Gary Kramlich <grim@reaperworld.com>
parents:
39521
diff
changeset
|
1344 | * |
|
445e2cf29f4d
Start of cleaning up missing docs in protocol.h
Gary Kramlich <grim@reaperworld.com>
parents:
39521
diff
changeset
|
1345 | * Initiates a media connection of @type to @who. |
|
445e2cf29f4d
Start of cleaning up missing docs in protocol.h
Gary Kramlich <grim@reaperworld.com>
parents:
39521
diff
changeset
|
1346 | * |
|
445e2cf29f4d
Start of cleaning up missing docs in protocol.h
Gary Kramlich <grim@reaperworld.com>
parents:
39521
diff
changeset
|
1347 | * Returns: TRUE if successful, FALSE otherwise. |
|
39594
3b42f3b5f643
Add since tags and remove stuff from ChangeLog.API
Gary Kramlich <grim@reaperworld.com>
parents:
39593
diff
changeset
|
1348 | * |
|
3b42f3b5f643
Add since tags and remove stuff from ChangeLog.API
Gary Kramlich <grim@reaperworld.com>
parents:
39593
diff
changeset
|
1349 | * Since: 3.0.0 |
|
39592
445e2cf29f4d
Start of cleaning up missing docs in protocol.h
Gary Kramlich <grim@reaperworld.com>
parents:
39521
diff
changeset
|
1350 | */ |
|
38745
f4376b1f4682
A ton more of introspection cleanups
Gary Kramlich <grim@reaperworld.com>
parents:
37167
diff
changeset
|
1351 | gboolean purple_protocol_media_iface_initiate_session(PurpleProtocol *protocol, |
|
36718
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
1352 | PurpleAccount *account, const char *who, PurpleMediaSessionType type); |
|
36564
2d423b459d4b
Declared functions to call interface methods from PurpleProtocol * objects
Ankit Vani <a@nevitus.org>
parents:
36563
diff
changeset
|
1353 | |
|
39592
445e2cf29f4d
Start of cleaning up missing docs in protocol.h
Gary Kramlich <grim@reaperworld.com>
parents:
39521
diff
changeset
|
1354 | /** |
|
445e2cf29f4d
Start of cleaning up missing docs in protocol.h
Gary Kramlich <grim@reaperworld.com>
parents:
39521
diff
changeset
|
1355 | * purple_protocol_media_iface_get_caps: |
|
445e2cf29f4d
Start of cleaning up missing docs in protocol.h
Gary Kramlich <grim@reaperworld.com>
parents:
39521
diff
changeset
|
1356 | * @protocol: The #PurpleProtocol instance. |
|
445e2cf29f4d
Start of cleaning up missing docs in protocol.h
Gary Kramlich <grim@reaperworld.com>
parents:
39521
diff
changeset
|
1357 | * @account: The #PurpleAccount instance. |
|
445e2cf29f4d
Start of cleaning up missing docs in protocol.h
Gary Kramlich <grim@reaperworld.com>
parents:
39521
diff
changeset
|
1358 | * @who: The user to get the media capabilites for. |
|
445e2cf29f4d
Start of cleaning up missing docs in protocol.h
Gary Kramlich <grim@reaperworld.com>
parents:
39521
diff
changeset
|
1359 | * |
|
39595
0c9f3c4f1afb
Various typo and whitespace fixes found in review
Gary Kramlich <grim@reaperworld.com>
parents:
39594
diff
changeset
|
1360 | * Gets the #PurpleMediaCaps for @who which determine what types of media are |
|
0c9f3c4f1afb
Various typo and whitespace fixes found in review
Gary Kramlich <grim@reaperworld.com>
parents:
39594
diff
changeset
|
1361 | * available. |
|
39592
445e2cf29f4d
Start of cleaning up missing docs in protocol.h
Gary Kramlich <grim@reaperworld.com>
parents:
39521
diff
changeset
|
1362 | * |
|
39595
0c9f3c4f1afb
Various typo and whitespace fixes found in review
Gary Kramlich <grim@reaperworld.com>
parents:
39594
diff
changeset
|
1363 | * Returns: the media capabilities of @who. |
|
39594
3b42f3b5f643
Add since tags and remove stuff from ChangeLog.API
Gary Kramlich <grim@reaperworld.com>
parents:
39593
diff
changeset
|
1364 | * |
|
3b42f3b5f643
Add since tags and remove stuff from ChangeLog.API
Gary Kramlich <grim@reaperworld.com>
parents:
39593
diff
changeset
|
1365 | * Since: 3.0.0 |
|
39592
445e2cf29f4d
Start of cleaning up missing docs in protocol.h
Gary Kramlich <grim@reaperworld.com>
parents:
39521
diff
changeset
|
1366 | */ |
|
38745
f4376b1f4682
A ton more of introspection cleanups
Gary Kramlich <grim@reaperworld.com>
parents:
37167
diff
changeset
|
1367 | PurpleMediaCaps purple_protocol_media_iface_get_caps(PurpleProtocol *protocol, |
|
36718
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
1368 | PurpleAccount *account, const char *who); |
|
36564
2d423b459d4b
Declared functions to call interface methods from PurpleProtocol * objects
Ankit Vani <a@nevitus.org>
parents:
36563
diff
changeset
|
1369 | |
|
39592
445e2cf29f4d
Start of cleaning up missing docs in protocol.h
Gary Kramlich <grim@reaperworld.com>
parents:
39521
diff
changeset
|
1370 | /** |
|
445e2cf29f4d
Start of cleaning up missing docs in protocol.h
Gary Kramlich <grim@reaperworld.com>
parents:
39521
diff
changeset
|
1371 | * purple_protocol_media_iface_send_dtmf: |
|
445e2cf29f4d
Start of cleaning up missing docs in protocol.h
Gary Kramlich <grim@reaperworld.com>
parents:
39521
diff
changeset
|
1372 | * @protocol: The #PurpleProtocol instance. |
|
445e2cf29f4d
Start of cleaning up missing docs in protocol.h
Gary Kramlich <grim@reaperworld.com>
parents:
39521
diff
changeset
|
1373 | * @media: The #PurpleMedia instance. |
|
445e2cf29f4d
Start of cleaning up missing docs in protocol.h
Gary Kramlich <grim@reaperworld.com>
parents:
39521
diff
changeset
|
1374 | * @dtmf: A DTMF to send. |
|
445e2cf29f4d
Start of cleaning up missing docs in protocol.h
Gary Kramlich <grim@reaperworld.com>
parents:
39521
diff
changeset
|
1375 | * @volume: The volume to send @dtmf at. |
|
445e2cf29f4d
Start of cleaning up missing docs in protocol.h
Gary Kramlich <grim@reaperworld.com>
parents:
39521
diff
changeset
|
1376 | * @duration: The duration to send @dtmf (in ms?) |
|
445e2cf29f4d
Start of cleaning up missing docs in protocol.h
Gary Kramlich <grim@reaperworld.com>
parents:
39521
diff
changeset
|
1377 | * |
|
445e2cf29f4d
Start of cleaning up missing docs in protocol.h
Gary Kramlich <grim@reaperworld.com>
parents:
39521
diff
changeset
|
1378 | * Sends a DTMF (dual-tone multi-frequency) signal via the established @media |
|
445e2cf29f4d
Start of cleaning up missing docs in protocol.h
Gary Kramlich <grim@reaperworld.com>
parents:
39521
diff
changeset
|
1379 | * for the given @duration at the given @volume. |
|
445e2cf29f4d
Start of cleaning up missing docs in protocol.h
Gary Kramlich <grim@reaperworld.com>
parents:
39521
diff
changeset
|
1380 | * |
|
445e2cf29f4d
Start of cleaning up missing docs in protocol.h
Gary Kramlich <grim@reaperworld.com>
parents:
39521
diff
changeset
|
1381 | * It is up to the specific implementation if DTMF is send in or out of band. |
|
445e2cf29f4d
Start of cleaning up missing docs in protocol.h
Gary Kramlich <grim@reaperworld.com>
parents:
39521
diff
changeset
|
1382 | * |
|
445e2cf29f4d
Start of cleaning up missing docs in protocol.h
Gary Kramlich <grim@reaperworld.com>
parents:
39521
diff
changeset
|
1383 | * Returns: TRUE if successful, FALSE otherwise. |
|
39594
3b42f3b5f643
Add since tags and remove stuff from ChangeLog.API
Gary Kramlich <grim@reaperworld.com>
parents:
39593
diff
changeset
|
1384 | * |
|
3b42f3b5f643
Add since tags and remove stuff from ChangeLog.API
Gary Kramlich <grim@reaperworld.com>
parents:
39593
diff
changeset
|
1385 | * Since: 3.0.0 |
|
39592
445e2cf29f4d
Start of cleaning up missing docs in protocol.h
Gary Kramlich <grim@reaperworld.com>
parents:
39521
diff
changeset
|
1386 | */ |
|
38745
f4376b1f4682
A ton more of introspection cleanups
Gary Kramlich <grim@reaperworld.com>
parents:
37167
diff
changeset
|
1387 | gboolean purple_protocol_media_iface_send_dtmf(PurpleProtocol *protocol, |
|
37164
aea7e3b20138
Added send_dtmf to protocol media interface
Ankit Vani <a@nevitus.org>
parents:
37148
diff
changeset
|
1388 | PurpleMedia *media, gchar dtmf, guint8 volume, guint8 duration); |
|
aea7e3b20138
Added send_dtmf to protocol media interface
Ankit Vani <a@nevitus.org>
parents:
37148
diff
changeset
|
1389 | |
|
36718
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
1390 | /**************************************************************************/ |
|
37090
c45c70779582
Remove @name from new plugin and protocol stuff
Ankit Vani <a@nevitus.org>
parents:
37089
diff
changeset
|
1391 | /* Protocol Factory Interface API */ |
|
36718
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
1392 | /**************************************************************************/ |
|
36564
2d423b459d4b
Declared functions to call interface methods from PurpleProtocol * objects
Ankit Vani <a@nevitus.org>
parents:
36563
diff
changeset
|
1393 | |
|
36718
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
1394 | /** |
|
37036
a8e12bcb0a74
Convert the new .h files for this branch for gtk-doc
Ankit Vani <a@nevitus.org>
parents:
37034
diff
changeset
|
1395 | * purple_protocol_factory_iface_get_type: |
|
a8e12bcb0a74
Convert the new .h files for this branch for gtk-doc
Ankit Vani <a@nevitus.org>
parents:
37034
diff
changeset
|
1396 | * |
|
37073
baf45dc13ffd
Fix some gtk-doc warnings in protocol(s).h (not all)
Ankit Vani <a@nevitus.org>
parents:
37062
diff
changeset
|
1397 | * Returns: The #GType for the protocol factory interface. |
|
36718
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
1398 | */ |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
1399 | GType purple_protocol_factory_iface_get_type(void); |
|
36564
2d423b459d4b
Declared functions to call interface methods from PurpleProtocol * objects
Ankit Vani <a@nevitus.org>
parents:
36563
diff
changeset
|
1400 | |
|
38745
f4376b1f4682
A ton more of introspection cleanups
Gary Kramlich <grim@reaperworld.com>
parents:
37167
diff
changeset
|
1401 | /** |
|
f4376b1f4682
A ton more of introspection cleanups
Gary Kramlich <grim@reaperworld.com>
parents:
37167
diff
changeset
|
1402 | * purple_protocol_factory_iface_connection_new: (skip) |
|
f4376b1f4682
A ton more of introspection cleanups
Gary Kramlich <grim@reaperworld.com>
parents:
37167
diff
changeset
|
1403 | */ |
|
f4376b1f4682
A ton more of introspection cleanups
Gary Kramlich <grim@reaperworld.com>
parents:
37167
diff
changeset
|
1404 | PurpleConnection *purple_protocol_factory_iface_connection_new(PurpleProtocol *protocol, |
|
36718
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
1405 | PurpleAccount *account, const char *password); |
|
36564
2d423b459d4b
Declared functions to call interface methods from PurpleProtocol * objects
Ankit Vani <a@nevitus.org>
parents:
36563
diff
changeset
|
1406 | |
|
38745
f4376b1f4682
A ton more of introspection cleanups
Gary Kramlich <grim@reaperworld.com>
parents:
37167
diff
changeset
|
1407 | /** |
|
f4376b1f4682
A ton more of introspection cleanups
Gary Kramlich <grim@reaperworld.com>
parents:
37167
diff
changeset
|
1408 | * purple_protocol_factory_iface_roomlist_new: (skip) |
|
f4376b1f4682
A ton more of introspection cleanups
Gary Kramlich <grim@reaperworld.com>
parents:
37167
diff
changeset
|
1409 | */ |
|
f4376b1f4682
A ton more of introspection cleanups
Gary Kramlich <grim@reaperworld.com>
parents:
37167
diff
changeset
|
1410 | PurpleRoomlist *purple_protocol_factory_iface_roomlist_new(PurpleProtocol *protocol, |
|
36718
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
1411 | PurpleAccount *account); |
|
36564
2d423b459d4b
Declared functions to call interface methods from PurpleProtocol * objects
Ankit Vani <a@nevitus.org>
parents:
36563
diff
changeset
|
1412 | |
|
38745
f4376b1f4682
A ton more of introspection cleanups
Gary Kramlich <grim@reaperworld.com>
parents:
37167
diff
changeset
|
1413 | /** |
|
f4376b1f4682
A ton more of introspection cleanups
Gary Kramlich <grim@reaperworld.com>
parents:
37167
diff
changeset
|
1414 | * purple_protocol_factory_iface_whiteboard_new: (skip) |
|
f4376b1f4682
A ton more of introspection cleanups
Gary Kramlich <grim@reaperworld.com>
parents:
37167
diff
changeset
|
1415 | */ |
|
f4376b1f4682
A ton more of introspection cleanups
Gary Kramlich <grim@reaperworld.com>
parents:
37167
diff
changeset
|
1416 | PurpleWhiteboard *purple_protocol_factory_iface_whiteboard_new(PurpleProtocol *protocol, |
|
36718
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
1417 | PurpleAccount *account, const char *who, int state); |
|
36564
2d423b459d4b
Declared functions to call interface methods from PurpleProtocol * objects
Ankit Vani <a@nevitus.org>
parents:
36563
diff
changeset
|
1418 | |
|
36563
5ecb9a6c4611
Added protocol.[ch] and moved PurpleProtocol and PurpleProtocolInterface to it
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
1419 | G_END_DECLS |
|
5ecb9a6c4611
Added protocol.[ch] and moved PurpleProtocol and PurpleProtocolInterface to it
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
1420 | |
|
39659
e4dfb99b0cef
Fix libpurple header guards using reserved names.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39597
diff
changeset
|
1421 | #endif /* PURPLE_PROTOCOL_H */ |