Thu, 14 Nov 2019 23:21:54 +0300
Revert (skip) annotations
|
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" |
|
36624
38043ecaf4a6
Finished implementing functions for protocols.[ch].
Ankit Vani <a@nevitus.org>
parents:
36621
diff
changeset
|
42 | #include "buddyicon.h" |
| 36569 | 43 | #include "buddylist.h" |
| 44 | #include "connection.h" | |
| 45 | #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
|
46 | #include "debug.h" |
|
36688
e49025233301
Merged soc.2013.gobjectification branch
Ankit Vani <a@nevitus.org>
parents:
36686
diff
changeset
|
47 | #include "xfer.h" |
| 37134 | 48 | #include "image.h" |
|
36609
637155f87448
Refactored the protocols to use purple_buddy_icon_spec_new()
Ankit Vani <a@nevitus.org>
parents:
36608
diff
changeset
|
49 | #include "media.h" |
| 37148 | 50 | #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
|
51 | #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
|
52 | #include "plugins.h" |
|
39970
cc7d4ff5a205
rename accountopt.[ch] to purpleaccountoption.[ch]
Gary Kramlich <grim@reaperworld.com>
parents:
39968
diff
changeset
|
53 | #include "purpleaccountoption.h" |
|
39968
71622ee1354e
move PurpleAccountUserSplit to their own file
Gary Kramlich <grim@reaperworld.com>
parents:
39896
diff
changeset
|
54 | #include "purpleaccountusersplit.h" |
| 36569 | 55 | #include "roomlist.h" |
| 36587 | 56 | #include "status.h" |
| 36569 | 57 | #include "whiteboard.h" |
| 58 | ||
|
36563
5ecb9a6c4611
Added protocol.[ch] and moved PurpleProtocol and PurpleProtocolInterface to it
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
59 | /** |
|
37036
a8e12bcb0a74
Convert the new .h files for this branch for gtk-doc
Ankit Vani <a@nevitus.org>
parents:
37034
diff
changeset
|
60 | * PurpleProtocol: |
|
37038
8832d14d7d0c
Rename 'protocol_options' field of PurpleProtocol to more appropriate 'account_options'
Ankit Vani <a@nevitus.org>
parents:
37036
diff
changeset
|
61 | * @id: Protocol ID |
|
8832d14d7d0c
Rename 'protocol_options' field of PurpleProtocol to more appropriate 'account_options'
Ankit Vani <a@nevitus.org>
parents:
37036
diff
changeset
|
62 | * @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
|
63 | * @options: Protocol options |
|
8832d14d7d0c
Rename 'protocol_options' field of PurpleProtocol to more appropriate 'account_options'
Ankit Vani <a@nevitus.org>
parents:
37036
diff
changeset
|
64 | * @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
|
65 | * @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
|
66 | * @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
|
67 | * @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
|
68 | * |
|
36563
5ecb9a6c4611
Added protocol.[ch] and moved PurpleProtocol and PurpleProtocolInterface to it
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
69 | * 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
|
70 | * 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
|
71 | */ |
|
5ecb9a6c4611
Added protocol.[ch] and moved PurpleProtocol and PurpleProtocolInterface to it
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
72 | struct _PurpleProtocol |
|
5ecb9a6c4611
Added protocol.[ch] and moved PurpleProtocol and PurpleProtocolInterface to it
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
73 | { |
|
5ecb9a6c4611
Added protocol.[ch] and moved PurpleProtocol and PurpleProtocolInterface to it
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
74 | GObject gparent; |
|
5ecb9a6c4611
Added protocol.[ch] and moved PurpleProtocol and PurpleProtocolInterface to it
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
75 | |
|
37073
baf45dc13ffd
Fix some gtk-doc warnings in protocol(s).h (not all)
Ankit Vani <a@nevitus.org>
parents:
37062
diff
changeset
|
76 | /*< public >*/ |
|
37036
a8e12bcb0a74
Convert the new .h files for this branch for gtk-doc
Ankit Vani <a@nevitus.org>
parents:
37034
diff
changeset
|
77 | const char *id; |
|
a8e12bcb0a74
Convert the new .h files for this branch for gtk-doc
Ankit Vani <a@nevitus.org>
parents:
37034
diff
changeset
|
78 | const char *name; |
|
36563
5ecb9a6c4611
Added protocol.[ch] and moved PurpleProtocol and PurpleProtocolInterface to it
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
79 | |
|
37036
a8e12bcb0a74
Convert the new .h files for this branch for gtk-doc
Ankit Vani <a@nevitus.org>
parents:
37034
diff
changeset
|
80 | PurpleProtocolOptions options; |
|
36563
5ecb9a6c4611
Added protocol.[ch] and moved PurpleProtocol and PurpleProtocolInterface to it
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
81 | |
|
37036
a8e12bcb0a74
Convert the new .h files for this branch for gtk-doc
Ankit Vani <a@nevitus.org>
parents:
37034
diff
changeset
|
82 | 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
|
83 | GList *account_options; |
|
36563
5ecb9a6c4611
Added protocol.[ch] and moved PurpleProtocol and PurpleProtocolInterface to it
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
84 | |
|
37036
a8e12bcb0a74
Convert the new .h files for this branch for gtk-doc
Ankit Vani <a@nevitus.org>
parents:
37034
diff
changeset
|
85 | PurpleBuddyIconSpec *icon_spec; |
|
a8e12bcb0a74
Convert the new .h files for this branch for gtk-doc
Ankit Vani <a@nevitus.org>
parents:
37034
diff
changeset
|
86 | PurpleWhiteboardOps *whiteboard_ops; |
|
36564
2d423b459d4b
Declared functions to call interface methods from PurpleProtocol * objects
Ankit Vani <a@nevitus.org>
parents:
36563
diff
changeset
|
87 | |
|
36896
3865997e388b
Merged soc.2013.gobjectification branch
Ankit Vani <a@nevitus.org>
parents:
36731
diff
changeset
|
88 | /*< private >*/ |
|
36563
5ecb9a6c4611
Added protocol.[ch] and moved PurpleProtocol and PurpleProtocolInterface to it
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
89 | void (*_purple_reserved1)(void); |
|
5ecb9a6c4611
Added protocol.[ch] and moved PurpleProtocol and PurpleProtocolInterface to it
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
90 | void (*_purple_reserved2)(void); |
|
5ecb9a6c4611
Added protocol.[ch] and moved PurpleProtocol and PurpleProtocolInterface to it
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
91 | void (*_purple_reserved3)(void); |
|
5ecb9a6c4611
Added protocol.[ch] and moved PurpleProtocol and PurpleProtocolInterface to it
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
92 | void (*_purple_reserved4)(void); |
|
5ecb9a6c4611
Added protocol.[ch] and moved PurpleProtocol and PurpleProtocolInterface to it
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
93 | }; |
|
5ecb9a6c4611
Added protocol.[ch] and moved PurpleProtocol and PurpleProtocolInterface to it
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
94 | |
|
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 | * PurpleProtocolClass: |
|
37086
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
97 | * @login: Log in to the server. |
|
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
98 | * @close: Close connection with the server. |
|
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
99 | * @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
|
100 | * 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
|
101 | * @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
|
102 | * 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
|
103 | * 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
|
104 | * 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
|
105 | * |
|
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
|
106 | * The base class for all protocols. |
|
36717
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
107 | * |
|
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
108 | * 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
|
109 | */ |
|
37086
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
110 | /* 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
|
111 | purple_protocols_add(). |
|
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
112 | */ |
|
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
|
113 | 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
|
114 | { |
|
9c38716c8eb7
Moved protocol class members to instance. Protocol definitions now require *_init, *_class_init instead of *_base_init.
Ankit Vani <a@nevitus.org>
parents:
36680
diff
changeset
|
115 | GObjectClass parent_class; |
|
36717
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
116 | |
|
38745
f4376b1f4682
A ton more of introspection cleanups
Gary Kramlich <grim@reaperworld.com>
parents:
37167
diff
changeset
|
117 | void (*login)(PurpleAccount *account); |
|
36717
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
118 | |
|
38745
f4376b1f4682
A ton more of introspection cleanups
Gary Kramlich <grim@reaperworld.com>
parents:
37167
diff
changeset
|
119 | void (*close)(PurpleConnection *connection); |
|
36717
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
120 | |
|
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
121 | GList *(*status_types)(PurpleAccount *account); |
|
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
122 | |
|
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
123 | 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
|
124 | |
|
36896
3865997e388b
Merged soc.2013.gobjectification branch
Ankit Vani <a@nevitus.org>
parents:
36731
diff
changeset
|
125 | /*< private >*/ |
|
36717
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
126 | void (*_purple_reserved1)(void); |
|
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
127 | void (*_purple_reserved2)(void); |
|
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
128 | void (*_purple_reserved3)(void); |
|
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
129 | 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
|
130 | }; |
|
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
|
131 | |
|
39760
217330c81a30
Rename *_TYPE_*_IFACE to more standard *_TYPE_*.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39759
diff
changeset
|
132 | #define PURPLE_TYPE_PROTOCOL_CLIENT (purple_protocol_client_iface_get_type()) |
|
36718
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
133 | |
|
39757
4a5ba806d8c9
Rename *Iface to more standard names.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39739
diff
changeset
|
134 | typedef struct _PurpleProtocolClientInterface PurpleProtocolClientInterface; |
|
36718
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
135 | |
|
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
|
136 | /** |
|
39757
4a5ba806d8c9
Rename *Iface to more standard names.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39739
diff
changeset
|
137 | * PurpleProtocolClientInterface: |
|
37086
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
138 | * @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
|
139 | * 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
|
140 | * of the account. |
|
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
141 | * @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
|
142 | * 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
|
143 | * display as relevant |
|
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
144 | * @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
|
145 | * 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
|
146 | * @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
|
147 | * @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
|
148 | * 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
|
149 | * right-click menu for @node. |
|
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
150 | * @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
|
151 | * validity. |
|
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
152 | * <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
|
153 | * 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
|
154 | * 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
|
155 | * 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
|
156 | * %NULL in such case. |
|
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
157 | * <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
|
158 | * %NULL. |
|
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
159 | * <sbr/>@who: The username to convert. |
|
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
160 | * <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
|
161 | * @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
|
162 | * <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
|
163 | * 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
|
164 | * @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
|
165 | * 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
|
166 | * 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
|
167 | * 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
|
168 | * 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
|
169 | * <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
|
170 | * <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
|
171 | * %NULL. |
|
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
172 | * <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
|
173 | * The hash table should be destroyed |
|
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
174 | * 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
|
175 | * needed. |
|
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
176 | * @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
|
177 | * "mood" set to %NULL. |
|
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
178 | * @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
|
179 | * conversation. |
|
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
180 | * <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
|
181 | * conversation-specific variables, like channel or |
|
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
182 | * buddy's name length. |
|
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
183 | * <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
|
184 | * 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
|
185 | * <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
|
186 | * more than one byte), |
|
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
187 | * <sbr/> - formatting, |
|
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
188 | * <sbr/> - used special characters. |
|
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
189 | * <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
|
190 | * get safe minimum for the protocol. |
|
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
191 | * <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
|
192 | * -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
|
193 | * |
|
36717
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
194 | * The protocol client interface. |
|
36682
cf89caae5d1e
List the required protocol implementations in PurpleProtocolInterface's documentation
Ankit Vani <a@nevitus.org>
parents:
36681
diff
changeset
|
195 | * |
|
36717
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
196 | * 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
|
197 | */ |
|
39757
4a5ba806d8c9
Rename *Iface to more standard names.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39739
diff
changeset
|
198 | struct _PurpleProtocolClientInterface |
|
36563
5ecb9a6c4611
Added protocol.[ch] and moved PurpleProtocol and PurpleProtocolInterface to it
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
199 | { |
|
5ecb9a6c4611
Added protocol.[ch] and moved PurpleProtocol and PurpleProtocolInterface to it
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
200 | /*< private >*/ |
|
5ecb9a6c4611
Added protocol.[ch] and moved PurpleProtocol and PurpleProtocolInterface to it
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
201 | GTypeInterface parent_iface; |
|
5ecb9a6c4611
Added protocol.[ch] and moved PurpleProtocol and PurpleProtocolInterface to it
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
202 | |
|
37073
baf45dc13ffd
Fix some gtk-doc warnings in protocol(s).h (not all)
Ankit Vani <a@nevitus.org>
parents:
37062
diff
changeset
|
203 | /*< public >*/ |
|
38745
f4376b1f4682
A ton more of introspection cleanups
Gary Kramlich <grim@reaperworld.com>
parents:
37167
diff
changeset
|
204 | 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
|
205 | |
|
5ecb9a6c4611
Added protocol.[ch] and moved PurpleProtocol and PurpleProtocolInterface to it
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
206 | 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
|
207 | |
|
5ecb9a6c4611
Added protocol.[ch] and moved PurpleProtocol and PurpleProtocolInterface to it
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
208 | char *(*status_text)(PurpleBuddy *buddy); |
|
5ecb9a6c4611
Added protocol.[ch] and moved PurpleProtocol and PurpleProtocolInterface to it
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
209 | |
|
36564
2d423b459d4b
Declared functions to call interface methods from PurpleProtocol * objects
Ankit Vani <a@nevitus.org>
parents:
36563
diff
changeset
|
210 | 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
|
211 | gboolean full); |
|
36563
5ecb9a6c4611
Added protocol.[ch] and moved PurpleProtocol and PurpleProtocolInterface to it
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
212 | |
|
5ecb9a6c4611
Added protocol.[ch] and moved PurpleProtocol and PurpleProtocolInterface to it
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
213 | 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
|
214 | |
|
38745
f4376b1f4682
A ton more of introspection cleanups
Gary Kramlich <grim@reaperworld.com>
parents:
37167
diff
changeset
|
215 | void (*buddy_free)(PurpleBuddy *buddy); |
|
36717
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
216 | |
|
38745
f4376b1f4682
A ton more of introspection cleanups
Gary Kramlich <grim@reaperworld.com>
parents:
37167
diff
changeset
|
217 | 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
|
218 | |
|
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
219 | 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
|
220 | |
|
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
221 | 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
|
222 | |
|
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
223 | gboolean (*offline_message)(const PurpleBuddy *buddy); |
|
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
224 | |
|
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
225 | 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
|
226 | |
|
36717
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
227 | 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
|
228 | |
|
36717
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
229 | gssize (*get_max_message_size)(PurpleConversation *conv); |
|
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
230 | }; |
|
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
231 | |
|
39761
59c4ebe9ef67
Rename PURPLE_PROTOCOL_IS_* to PURPLE_IS_PROTOCOL_*.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39760
diff
changeset
|
232 | #define PURPLE_IS_PROTOCOL_CLIENT(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), PURPLE_TYPE_PROTOCOL_CLIENT)) |
|
39760
217330c81a30
Rename *_TYPE_*_IFACE to more standard *_TYPE_*.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39759
diff
changeset
|
233 | #define PURPLE_PROTOCOL_CLIENT_GET_IFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE((obj), PURPLE_TYPE_PROTOCOL_CLIENT, \ |
|
39757
4a5ba806d8c9
Rename *Iface to more standard names.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39739
diff
changeset
|
234 | PurpleProtocolClientInterface)) |
|
37092
3dca8b4caa7f
Move the HAS_IFACE and GET_IFACE macros after the iface structs
Ankit Vani <a@nevitus.org>
parents:
37091
diff
changeset
|
235 | |
|
39760
217330c81a30
Rename *_TYPE_*_IFACE to more standard *_TYPE_*.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39759
diff
changeset
|
236 | #define PURPLE_TYPE_PROTOCOL_SERVER (purple_protocol_server_iface_get_type()) |
|
36718
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
237 | |
|
39757
4a5ba806d8c9
Rename *Iface to more standard names.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39739
diff
changeset
|
238 | typedef struct _PurpleProtocolServerInterface PurpleProtocolServerInterface; |
|
36718
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
239 | |
|
36717
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
240 | /** |
|
39757
4a5ba806d8c9
Rename *Iface to more standard names.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39739
diff
changeset
|
241 | * PurpleProtocolServerInterface: |
|
37086
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
242 | * @register_user: New user registration |
|
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
243 | * @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
|
244 | * 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
|
245 | * 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
|
246 | * @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
|
247 | * with @who's user info. |
|
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
248 | * @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
|
249 | * <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
|
250 | * 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
|
251 | * 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
|
252 | * 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
|
253 | * request authorization. |
|
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
254 | * <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
|
255 | * invite message. |
|
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
256 | * @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
|
257 | * 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
|
258 | * 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
|
259 | * 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
|
260 | * 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
|
261 | * implemented to override it). |
|
37086
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
262 | * <filename>libpurple/connection.c</filename>.) |
|
39518
6141cf90e5b8
libpurple: Make keepalive interval configurable
Petteri Pitkänen <petepitk@gmail.com>
parents:
38859
diff
changeset
|
263 | * @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
|
264 | * keepalive interval. |
|
37086
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
265 | * @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
|
266 | * @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
|
267 | * @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
|
268 | * @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
|
269 | * protocol does <emphasis>NOT</emphasis> own a reference to |
| 37134 | 270 | * @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
|
271 | * itself. |
|
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
272 | * @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
|
273 | * protocol |
|
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
274 | * @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
|
275 | * 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
|
276 | * 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
|
277 | * <emphasis>asynchronously</emphasis> (if it knows |
|
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
278 | * 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
|
279 | * 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
|
280 | * the nickname is set successfully. See |
|
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
281 | * purple_account_set_public_alias(). |
|
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
282 | * <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
|
283 | * <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
|
284 | * account, or %NULL to unset the |
|
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
285 | * 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
|
286 | * protocol-specific "default"). |
|
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
287 | * <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
|
288 | * alias is set |
|
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
289 | * <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
|
290 | * public alias fails |
|
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
291 | * @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
|
292 | * 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
|
293 | * <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
|
294 | * 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
|
295 | * 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
|
296 | * the nickname is retrieved. See |
|
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
297 | * purple_account_get_public_alias(). |
|
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
298 | * <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
|
299 | * the alias |
|
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
300 | * <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
|
301 | * retrieved alias |
|
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
302 | * <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
|
303 | * 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
|
304 | * |
|
36717
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
305 | * The protocol server interface. |
|
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
306 | * |
|
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
307 | * 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
|
308 | */ |
|
39757
4a5ba806d8c9
Rename *Iface to more standard names.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39739
diff
changeset
|
309 | struct _PurpleProtocolServerInterface |
|
36717
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
310 | { |
|
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
311 | /*< private >*/ |
|
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
312 | GTypeInterface parent_iface; |
|
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
313 | |
|
37073
baf45dc13ffd
Fix some gtk-doc warnings in protocol(s).h (not all)
Ankit Vani <a@nevitus.org>
parents:
37062
diff
changeset
|
314 | /*< public >*/ |
|
38745
f4376b1f4682
A ton more of introspection cleanups
Gary Kramlich <grim@reaperworld.com>
parents:
37167
diff
changeset
|
315 | void (*register_user)(PurpleAccount *account); |
|
36717
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
316 | |
|
38745
f4376b1f4682
A ton more of introspection cleanups
Gary Kramlich <grim@reaperworld.com>
parents:
37167
diff
changeset
|
317 | 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
|
318 | void *user_data); |
|
36563
5ecb9a6c4611
Added protocol.[ch] and moved PurpleProtocol and PurpleProtocolInterface to it
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
319 | |
|
38745
f4376b1f4682
A ton more of introspection cleanups
Gary Kramlich <grim@reaperworld.com>
parents:
37167
diff
changeset
|
320 | 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
|
321 | |
|
38745
f4376b1f4682
A ton more of introspection cleanups
Gary Kramlich <grim@reaperworld.com>
parents:
37167
diff
changeset
|
322 | 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
|
323 | |
|
36563
5ecb9a6c4611
Added protocol.[ch] and moved PurpleProtocol and PurpleProtocolInterface to it
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
324 | 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
|
325 | |
|
38745
f4376b1f4682
A ton more of introspection cleanups
Gary Kramlich <grim@reaperworld.com>
parents:
37167
diff
changeset
|
326 | 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
|
327 | |
|
38745
f4376b1f4682
A ton more of introspection cleanups
Gary Kramlich <grim@reaperworld.com>
parents:
37167
diff
changeset
|
328 | 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
|
329 | const char *new_pass); |
|
5ecb9a6c4611
Added protocol.[ch] and moved PurpleProtocol and PurpleProtocolInterface to it
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
330 | |
|
36564
2d423b459d4b
Declared functions to call interface methods from PurpleProtocol * objects
Ankit Vani <a@nevitus.org>
parents:
36563
diff
changeset
|
331 | 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
|
332 | PurpleGroup *group, const char *message); |
|
37086
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
333 | |
|
36564
2d423b459d4b
Declared functions to call interface methods from PurpleProtocol * objects
Ankit Vani <a@nevitus.org>
parents:
36563
diff
changeset
|
334 | 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
|
335 | const char *message); |
|
37086
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
336 | |
|
38745
f4376b1f4682
A ton more of introspection cleanups
Gary Kramlich <grim@reaperworld.com>
parents:
37167
diff
changeset
|
337 | 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
|
338 | PurpleGroup *group); |
|
37086
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
339 | |
|
38745
f4376b1f4682
A ton more of introspection cleanups
Gary Kramlich <grim@reaperworld.com>
parents:
37167
diff
changeset
|
340 | 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
|
341 | |
|
38745
f4376b1f4682
A ton more of introspection cleanups
Gary Kramlich <grim@reaperworld.com>
parents:
37167
diff
changeset
|
342 | void (*keepalive)(PurpleConnection *connection); |
|
36717
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
343 | |
|
39518
6141cf90e5b8
libpurple: Make keepalive interval configurable
Petteri Pitkänen <petepitk@gmail.com>
parents:
38859
diff
changeset
|
344 | int (*get_keepalive_interval)(void); |
|
6141cf90e5b8
libpurple: Make keepalive interval configurable
Petteri Pitkänen <petepitk@gmail.com>
parents:
38859
diff
changeset
|
345 | |
|
38745
f4376b1f4682
A ton more of introspection cleanups
Gary Kramlich <grim@reaperworld.com>
parents:
37167
diff
changeset
|
346 | 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
|
347 | const char *alias); |
|
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
348 | |
|
38745
f4376b1f4682
A ton more of introspection cleanups
Gary Kramlich <grim@reaperworld.com>
parents:
37167
diff
changeset
|
349 | 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
|
350 | 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
|
351 | |
|
38745
f4376b1f4682
A ton more of introspection cleanups
Gary Kramlich <grim@reaperworld.com>
parents:
37167
diff
changeset
|
352 | 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
|
353 | PurpleGroup *group, GList *moved_buddies); |
|
36717
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
354 | |
|
38745
f4376b1f4682
A ton more of introspection cleanups
Gary Kramlich <grim@reaperworld.com>
parents:
37167
diff
changeset
|
355 | 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
|
356 | |
|
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
357 | void (*remove_group)(PurpleConnection *gc, PurpleGroup *group); |
|
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
358 | |
|
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
359 | 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
|
360 | |
|
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
361 | 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
|
362 | PurpleSetPublicAliasSuccessCallback success_cb, |
|
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
363 | PurpleSetPublicAliasFailureCallback failure_cb); |
|
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
364 | |
|
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
365 | void (*get_public_alias)(PurpleConnection *gc, |
|
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
366 | PurpleGetPublicAliasSuccessCallback success_cb, |
|
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
367 | PurpleGetPublicAliasFailureCallback failure_cb); |
|
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
368 | }; |
|
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
369 | |
|
39761
59c4ebe9ef67
Rename PURPLE_PROTOCOL_IS_* to PURPLE_IS_PROTOCOL_*.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39760
diff
changeset
|
370 | #define PURPLE_IS_PROTOCOL_SERVER(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), PURPLE_TYPE_PROTOCOL_SERVER)) |
|
39760
217330c81a30
Rename *_TYPE_*_IFACE to more standard *_TYPE_*.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39759
diff
changeset
|
371 | #define PURPLE_PROTOCOL_SERVER_GET_IFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE((obj), PURPLE_TYPE_PROTOCOL_SERVER, \ |
|
39757
4a5ba806d8c9
Rename *Iface to more standard names.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39739
diff
changeset
|
372 | PurpleProtocolServerInterface)) |
|
37092
3dca8b4caa7f
Move the HAS_IFACE and GET_IFACE macros after the iface structs
Ankit Vani <a@nevitus.org>
parents:
37091
diff
changeset
|
373 | |
|
39760
217330c81a30
Rename *_TYPE_*_IFACE to more standard *_TYPE_*.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39759
diff
changeset
|
374 | #define PURPLE_TYPE_PROTOCOL_IM (purple_protocol_im_iface_get_type()) |
|
36718
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
375 | |
|
39757
4a5ba806d8c9
Rename *Iface to more standard names.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39739
diff
changeset
|
376 | typedef struct _PurpleProtocolIMInterface PurpleProtocolIMInterface; |
|
36718
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
377 | |
|
36717
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
378 | /** |
|
39757
4a5ba806d8c9
Rename *Iface to more standard names.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39739
diff
changeset
|
379 | * PurpleProtocolIMInterface: |
|
37086
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
380 | * @send: This protocol function should return a positive value on |
| 37087 | 381 | * success. If the message is too big to be sent, return |
| 382 | * <literal>-E2BIG</literal>. If the account is not connected, | |
| 383 | * return <literal>-ENOTCONN</literal>. If the protocol is unable | |
| 384 | * to send the message for another reason, return some other | |
| 385 | * negative value. You can use one of the valid #errno values, or | |
| 386 | * just big something. If the message should not be echoed to the | |
| 387 | * conversation window, return 0. | |
|
37086
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
388 | * @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
|
389 | * 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
|
390 | * 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
|
391 | * 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
|
392 | * 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
|
393 | * |
|
36717
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
394 | * The protocol IM interface. |
|
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
395 | * |
|
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
396 | * 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
|
397 | */ |
|
39757
4a5ba806d8c9
Rename *Iface to more standard names.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39739
diff
changeset
|
398 | struct _PurpleProtocolIMInterface |
|
36717
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
399 | { |
|
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
400 | /*< private >*/ |
|
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
401 | GTypeInterface parent_iface; |
|
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
402 | |
|
37073
baf45dc13ffd
Fix some gtk-doc warnings in protocol(s).h (not all)
Ankit Vani <a@nevitus.org>
parents:
37062
diff
changeset
|
403 | /*< public >*/ |
|
38745
f4376b1f4682
A ton more of introspection cleanups
Gary Kramlich <grim@reaperworld.com>
parents:
37167
diff
changeset
|
404 | int (*send)(PurpleConnection *connection, PurpleMessage *msg); |
|
36717
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
405 | |
|
38745
f4376b1f4682
A ton more of introspection cleanups
Gary Kramlich <grim@reaperworld.com>
parents:
37167
diff
changeset
|
406 | 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
|
407 | PurpleIMTypingState state); |
|
36717
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
408 | }; |
|
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
409 | |
|
39761
59c4ebe9ef67
Rename PURPLE_PROTOCOL_IS_* to PURPLE_IS_PROTOCOL_*.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39760
diff
changeset
|
410 | #define PURPLE_IS_PROTOCOL_IM(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), PURPLE_TYPE_PROTOCOL_IM)) |
|
39760
217330c81a30
Rename *_TYPE_*_IFACE to more standard *_TYPE_*.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39759
diff
changeset
|
411 | #define PURPLE_PROTOCOL_IM_GET_IFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE((obj), PURPLE_TYPE_PROTOCOL_IM, \ |
|
39757
4a5ba806d8c9
Rename *Iface to more standard names.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39739
diff
changeset
|
412 | PurpleProtocolIMInterface)) |
|
37092
3dca8b4caa7f
Move the HAS_IFACE and GET_IFACE macros after the iface structs
Ankit Vani <a@nevitus.org>
parents:
37091
diff
changeset
|
413 | |
|
39760
217330c81a30
Rename *_TYPE_*_IFACE to more standard *_TYPE_*.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39759
diff
changeset
|
414 | #define PURPLE_TYPE_PROTOCOL_CHAT (purple_protocol_chat_iface_get_type()) |
|
36718
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
415 | |
|
39757
4a5ba806d8c9
Rename *Iface to more standard names.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39739
diff
changeset
|
416 | typedef struct _PurpleProtocolChatInterface PurpleProtocolChatInterface; |
|
36718
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
417 | |
|
36717
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
418 | /** |
|
39757
4a5ba806d8c9
Rename *Iface to more standard names.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39739
diff
changeset
|
419 | * PurpleProtocolChatInterface: |
|
37086
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
420 | * @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
|
421 | * 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
|
422 | * 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
|
423 | * <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
|
424 | * @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
|
425 | * 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
|
426 | * @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
|
427 | * #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
|
428 | * #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
|
429 | * name from a hashtable. |
|
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
430 | * <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
|
431 | * <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
|
432 | * from @chat_name |
|
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
433 | * @join: Called when the user requests joining a chat. Should arrange for |
| 37101 | 434 | * 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
|
435 | * <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
|
436 | * 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
|
437 | * @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
|
438 | * invitation, in which case this matches the data |
| 37103 | 439 | * 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
|
440 | * @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
|
441 | * <sbr/>@components: A hashtable containing information required to |
| 37103 | 442 | * 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
|
443 | * @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
|
444 | * @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
|
445 | * chat name. |
|
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
446 | * <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
|
447 | * chat. |
|
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
448 | * @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
|
449 | * <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
|
450 | * <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
|
451 | * is received. |
|
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
452 | * <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
|
453 | * @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
|
454 | * <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
|
455 | * @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
|
456 | * <sbr/>This protocol function should return a positive value on |
| 37087 | 457 | * success. If the message is too big to be sent, return |
| 458 | * <literal>-E2BIG</literal>. If the account is not connected, | |
| 459 | * return <literal>-ENOTCONN</literal>. If the protocol is unable | |
| 460 | * to send the message for another reason, return some other | |
| 461 | * negative value. You can use one of the valid #errno values, or | |
| 462 | * just big something. | |
|
37086
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 send the message to. |
| 37148 | 464 | * <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
|
465 | * <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
|
466 | * 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
|
467 | * @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
|
468 | * 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
|
469 | * <literal>foo</literal> into |
|
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
470 | * <literal>room\@server/foo</literal>. |
|
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
471 | * <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
|
472 | * <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
|
473 | * <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
|
474 | * <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
|
475 | * 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
|
476 | * |
|
36717
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
477 | * The protocol chat interface. |
|
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
478 | * |
|
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
479 | * 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
|
480 | */ |
|
39757
4a5ba806d8c9
Rename *Iface to more standard names.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39739
diff
changeset
|
481 | struct _PurpleProtocolChatInterface |
|
36717
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
482 | { |
|
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
483 | /*< private >*/ |
|
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
484 | GTypeInterface parent_iface; |
|
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
485 | |
|
37073
baf45dc13ffd
Fix some gtk-doc warnings in protocol(s).h (not all)
Ankit Vani <a@nevitus.org>
parents:
37062
diff
changeset
|
486 | /*< public >*/ |
|
38745
f4376b1f4682
A ton more of introspection cleanups
Gary Kramlich <grim@reaperworld.com>
parents:
37167
diff
changeset
|
487 | GList *(*info)(PurpleConnection *connection); |
|
36717
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
488 | |
|
38745
f4376b1f4682
A ton more of introspection cleanups
Gary Kramlich <grim@reaperworld.com>
parents:
37167
diff
changeset
|
489 | 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
|
490 | |
|
38745
f4376b1f4682
A ton more of introspection cleanups
Gary Kramlich <grim@reaperworld.com>
parents:
37167
diff
changeset
|
491 | 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
|
492 | |
|
38745
f4376b1f4682
A ton more of introspection cleanups
Gary Kramlich <grim@reaperworld.com>
parents:
37167
diff
changeset
|
493 | 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
|
494 | |
|
36718
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
495 | 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
|
496 | |
|
38745
f4376b1f4682
A ton more of introspection cleanups
Gary Kramlich <grim@reaperworld.com>
parents:
37167
diff
changeset
|
497 | 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
|
498 | const char *message, const char *who); |
|
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
499 | |
|
38745
f4376b1f4682
A ton more of introspection cleanups
Gary Kramlich <grim@reaperworld.com>
parents:
37167
diff
changeset
|
500 | 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
|
501 | |
|
38745
f4376b1f4682
A ton more of introspection cleanups
Gary Kramlich <grim@reaperworld.com>
parents:
37167
diff
changeset
|
502 | 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
|
503 | |
|
36718
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
504 | 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
|
505 | |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
506 | 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
|
507 | }; |
|
36563
5ecb9a6c4611
Added protocol.[ch] and moved PurpleProtocol and PurpleProtocolInterface to it
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
508 | |
|
39761
59c4ebe9ef67
Rename PURPLE_PROTOCOL_IS_* to PURPLE_IS_PROTOCOL_*.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39760
diff
changeset
|
509 | #define PURPLE_IS_PROTOCOL_CHAT(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), PURPLE_TYPE_PROTOCOL_CHAT)) |
|
39760
217330c81a30
Rename *_TYPE_*_IFACE to more standard *_TYPE_*.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39759
diff
changeset
|
510 | #define PURPLE_PROTOCOL_CHAT_GET_IFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE((obj), PURPLE_TYPE_PROTOCOL_CHAT, \ |
|
39757
4a5ba806d8c9
Rename *Iface to more standard names.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39739
diff
changeset
|
511 | PurpleProtocolChatInterface)) |
|
37092
3dca8b4caa7f
Move the HAS_IFACE and GET_IFACE macros after the iface structs
Ankit Vani <a@nevitus.org>
parents:
37091
diff
changeset
|
512 | |
|
39760
217330c81a30
Rename *_TYPE_*_IFACE to more standard *_TYPE_*.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39759
diff
changeset
|
513 | #define PURPLE_TYPE_PROTOCOL_PRIVACY (purple_protocol_privacy_iface_get_type()) |
|
36718
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
514 | |
|
39757
4a5ba806d8c9
Rename *Iface to more standard names.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39739
diff
changeset
|
515 | typedef struct _PurpleProtocolPrivacyInterface PurpleProtocolPrivacyInterface; |
|
36563
5ecb9a6c4611
Added protocol.[ch] and moved PurpleProtocol and PurpleProtocolInterface to it
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
516 | |
|
36717
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
517 | /** |
|
39757
4a5ba806d8c9
Rename *Iface to more standard names.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39739
diff
changeset
|
518 | * PurpleProtocolPrivacyInterface: |
|
37162
3336df05de5b
Add introspection gtkdocs for server.h
Jorge Villaseñor <salinasv@pidgin.im>
parents:
37148
diff
changeset
|
519 | * @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
|
520 | * @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
|
521 | * @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
|
522 | * @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
|
523 | * @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
|
524 | * |
|
36717
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
525 | * The protocol privacy interface. |
|
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
526 | * |
|
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
527 | * 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
|
528 | */ |
|
39757
4a5ba806d8c9
Rename *Iface to more standard names.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39739
diff
changeset
|
529 | struct _PurpleProtocolPrivacyInterface |
|
36717
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
530 | { |
|
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
531 | /*< private >*/ |
|
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
532 | GTypeInterface parent_iface; |
|
36563
5ecb9a6c4611
Added protocol.[ch] and moved PurpleProtocol and PurpleProtocolInterface to it
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
533 | |
|
37073
baf45dc13ffd
Fix some gtk-doc warnings in protocol(s).h (not all)
Ankit Vani <a@nevitus.org>
parents:
37062
diff
changeset
|
534 | /*< public >*/ |
|
37162
3336df05de5b
Add introspection gtkdocs for server.h
Jorge Villaseñor <salinasv@pidgin.im>
parents:
37148
diff
changeset
|
535 | 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
|
536 | |
|
37162
3336df05de5b
Add introspection gtkdocs for server.h
Jorge Villaseñor <salinasv@pidgin.im>
parents:
37148
diff
changeset
|
537 | 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
|
538 | |
|
37162
3336df05de5b
Add introspection gtkdocs for server.h
Jorge Villaseñor <salinasv@pidgin.im>
parents:
37148
diff
changeset
|
539 | 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
|
540 | |
|
37162
3336df05de5b
Add introspection gtkdocs for server.h
Jorge Villaseñor <salinasv@pidgin.im>
parents:
37148
diff
changeset
|
541 | 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
|
542 | |
|
37162
3336df05de5b
Add introspection gtkdocs for server.h
Jorge Villaseñor <salinasv@pidgin.im>
parents:
37148
diff
changeset
|
543 | void (*set_permit_deny)(PurpleConnection *gc); |
|
36717
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
544 | }; |
|
36563
5ecb9a6c4611
Added protocol.[ch] and moved PurpleProtocol and PurpleProtocolInterface to it
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
545 | |
|
39761
59c4ebe9ef67
Rename PURPLE_PROTOCOL_IS_* to PURPLE_IS_PROTOCOL_*.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39760
diff
changeset
|
546 | #define PURPLE_IS_PROTOCOL_PRIVACY(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), PURPLE_TYPE_PROTOCOL_PRIVACY)) |
|
39760
217330c81a30
Rename *_TYPE_*_IFACE to more standard *_TYPE_*.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39759
diff
changeset
|
547 | #define PURPLE_PROTOCOL_PRIVACY_GET_IFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE((obj), PURPLE_TYPE_PROTOCOL_PRIVACY, \ |
|
39757
4a5ba806d8c9
Rename *Iface to more standard names.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39739
diff
changeset
|
548 | PurpleProtocolPrivacyInterface)) |
|
37092
3dca8b4caa7f
Move the HAS_IFACE and GET_IFACE macros after the iface structs
Ankit Vani <a@nevitus.org>
parents:
37091
diff
changeset
|
549 | |
|
39760
217330c81a30
Rename *_TYPE_*_IFACE to more standard *_TYPE_*.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39759
diff
changeset
|
550 | #define PURPLE_TYPE_PROTOCOL_MEDIA (purple_protocol_media_iface_get_type()) |
|
36718
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
551 | |
|
39757
4a5ba806d8c9
Rename *Iface to more standard names.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39739
diff
changeset
|
552 | typedef struct _PurpleProtocolMediaInterface PurpleProtocolMediaInterface; |
|
36718
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
553 | |
|
36717
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
554 | /** |
|
39757
4a5ba806d8c9
Rename *Iface to more standard names.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39739
diff
changeset
|
555 | * PurpleProtocolMediaInterface: |
|
37086
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
556 | * @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
|
557 | * <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
|
558 | * on. |
|
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
559 | * <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
|
560 | * <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
|
561 | * <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
|
562 | * (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
|
563 | * will be successfully created) |
|
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
564 | * @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
|
565 | * media session. |
|
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
566 | * <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
|
567 | * <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
|
568 | * <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
|
569 | * @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
|
570 | * 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
|
571 | * 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
|
572 | * |
|
36717
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
573 | * The protocol media interface. |
|
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
574 | * |
|
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
575 | * 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
|
576 | */ |
|
39757
4a5ba806d8c9
Rename *Iface to more standard names.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39739
diff
changeset
|
577 | struct _PurpleProtocolMediaInterface |
|
36717
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
578 | { |
|
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
579 | /*< private >*/ |
|
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
580 | GTypeInterface parent_iface; |
|
36563
5ecb9a6c4611
Added protocol.[ch] and moved PurpleProtocol and PurpleProtocolInterface to it
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
581 | |
|
37073
baf45dc13ffd
Fix some gtk-doc warnings in protocol(s).h (not all)
Ankit Vani <a@nevitus.org>
parents:
37062
diff
changeset
|
582 | /*< public >*/ |
|
36718
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
583 | 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
|
584 | PurpleMediaSessionType type); |
|
5ecb9a6c4611
Added protocol.[ch] and moved PurpleProtocol and PurpleProtocolInterface to it
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
585 | |
|
36718
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
586 | 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
|
587 | const char *who); |
|
37164
aea7e3b20138
Added send_dtmf to protocol media interface
Ankit Vani <a@nevitus.org>
parents:
37148
diff
changeset
|
588 | |
|
aea7e3b20138
Added send_dtmf to protocol media interface
Ankit Vani <a@nevitus.org>
parents:
37148
diff
changeset
|
589 | gboolean (*send_dtmf)(PurpleMedia *media, gchar dtmf, |
|
aea7e3b20138
Added send_dtmf to protocol media interface
Ankit Vani <a@nevitus.org>
parents:
37148
diff
changeset
|
590 | guint8 volume, guint8 duration); |
|
36717
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
591 | }; |
|
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
592 | |
|
39761
59c4ebe9ef67
Rename PURPLE_PROTOCOL_IS_* to PURPLE_IS_PROTOCOL_*.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39760
diff
changeset
|
593 | #define PURPLE_IS_PROTOCOL_MEDIA(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), PURPLE_TYPE_PROTOCOL_MEDIA)) |
|
39760
217330c81a30
Rename *_TYPE_*_IFACE to more standard *_TYPE_*.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39759
diff
changeset
|
594 | #define PURPLE_PROTOCOL_MEDIA_GET_IFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE((obj), PURPLE_TYPE_PROTOCOL_MEDIA, \ |
|
39757
4a5ba806d8c9
Rename *Iface to more standard names.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39739
diff
changeset
|
595 | PurpleProtocolMediaInterface)) |
|
37092
3dca8b4caa7f
Move the HAS_IFACE and GET_IFACE macros after the iface structs
Ankit Vani <a@nevitus.org>
parents:
37091
diff
changeset
|
596 | |
|
39760
217330c81a30
Rename *_TYPE_*_IFACE to more standard *_TYPE_*.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39759
diff
changeset
|
597 | #define PURPLE_TYPE_PROTOCOL_FACTORY (purple_protocol_factory_iface_get_type()) |
|
36718
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
598 | |
|
39757
4a5ba806d8c9
Rename *Iface to more standard names.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39739
diff
changeset
|
599 | typedef struct _PurpleProtocolFactoryInterface PurpleProtocolFactoryInterface; |
|
36718
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
600 | |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
601 | /** |
|
39757
4a5ba806d8c9
Rename *Iface to more standard names.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39739
diff
changeset
|
602 | * PurpleProtocolFactoryInterface: |
|
37086
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
603 | * @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
|
604 | * inherits #PurpleConnection. |
|
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
605 | * @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
|
606 | * inherits #PurpleRoomlist. |
|
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
607 | * @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
|
608 | * inherits #PurpleWhiteboard. |
|
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
609 | * @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
|
610 | * inherits #PurpleXfer. |
|
37036
a8e12bcb0a74
Convert the new .h files for this branch for gtk-doc
Ankit Vani <a@nevitus.org>
parents:
37034
diff
changeset
|
611 | * |
|
36717
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
612 | * The protocol factory interface. |
|
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
613 | * |
|
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
614 | * 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
|
615 | * subclasses of some purple objects. |
|
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
616 | */ |
|
39757
4a5ba806d8c9
Rename *Iface to more standard names.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39739
diff
changeset
|
617 | struct _PurpleProtocolFactoryInterface |
|
36717
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
618 | { |
|
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
619 | /*< private >*/ |
|
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
620 | GTypeInterface parent_iface; |
|
36563
5ecb9a6c4611
Added protocol.[ch] and moved PurpleProtocol and PurpleProtocolInterface to it
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
621 | |
|
37073
baf45dc13ffd
Fix some gtk-doc warnings in protocol(s).h (not all)
Ankit Vani <a@nevitus.org>
parents:
37062
diff
changeset
|
622 | /*< public >*/ |
|
36717
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
623 | PurpleConnection *(*connection_new)(PurpleProtocol *protocol, |
|
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
624 | PurpleAccount *account, |
|
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
625 | const char *password); |
|
36563
5ecb9a6c4611
Added protocol.[ch] and moved PurpleProtocol and PurpleProtocolInterface to it
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
626 | |
|
36717
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
627 | PurpleRoomlist *(*roomlist_new)(PurpleAccount *account); |
|
36583
0582190c9382
Merged soc.2013.gobjectification branch
Ankit Vani <a@nevitus.org>
parents:
36581
diff
changeset
|
628 | |
|
36717
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
629 | PurpleWhiteboard *(*whiteboard_new)(PurpleAccount *account, |
|
36718
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
630 | 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
|
631 | }; |
|
5ecb9a6c4611
Added protocol.[ch] and moved PurpleProtocol and PurpleProtocolInterface to it
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
632 | |
|
39761
59c4ebe9ef67
Rename PURPLE_PROTOCOL_IS_* to PURPLE_IS_PROTOCOL_*.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39760
diff
changeset
|
633 | #define PURPLE_IS_PROTOCOL_FACTORY(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), PURPLE_TYPE_PROTOCOL_FACTORY)) |
|
39760
217330c81a30
Rename *_TYPE_*_IFACE to more standard *_TYPE_*.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39759
diff
changeset
|
634 | #define PURPLE_PROTOCOL_FACTORY_GET_IFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE((obj), PURPLE_TYPE_PROTOCOL_FACTORY, \ |
|
39757
4a5ba806d8c9
Rename *Iface to more standard names.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39739
diff
changeset
|
635 | PurpleProtocolFactoryInterface)) |
|
37092
3dca8b4caa7f
Move the HAS_IFACE and GET_IFACE macros after the iface structs
Ankit Vani <a@nevitus.org>
parents:
37091
diff
changeset
|
636 | |
|
36718
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
637 | /** |
|
37036
a8e12bcb0a74
Convert the new .h files for this branch for gtk-doc
Ankit Vani <a@nevitus.org>
parents:
37034
diff
changeset
|
638 | * PURPLE_PROTOCOL_IMPLEMENTS: |
|
a8e12bcb0a74
Convert the new .h files for this branch for gtk-doc
Ankit Vani <a@nevitus.org>
parents:
37034
diff
changeset
|
639 | * @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
|
640 | * @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
|
641 | * @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
|
642 | * |
|
a8e12bcb0a74
Convert the new .h files for this branch for gtk-doc
Ankit Vani <a@nevitus.org>
parents:
37034
diff
changeset
|
643 | * 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
|
644 | * %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
|
645 | */ |
|
36720
465f02116328
Refactored account, blistnodetypes, buddylist, connection to use the new protocol interfaces
Ankit Vani <a@nevitus.org>
parents:
36718
diff
changeset
|
646 | #define PURPLE_PROTOCOL_IMPLEMENTS(protocol, IFACE, func) \ |
|
39761
59c4ebe9ef67
Rename PURPLE_PROTOCOL_IS_* to PURPLE_IS_PROTOCOL_*.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39760
diff
changeset
|
647 | (PURPLE_IS_PROTOCOL_##IFACE(protocol) && \ |
|
39759
ea1401483849
Rename *_GET_*_IFACE to more standard *_GET_IFACE.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39758
diff
changeset
|
648 | 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
|
649 | |
|
36563
5ecb9a6c4611
Added protocol.[ch] and moved PurpleProtocol and PurpleProtocolInterface to it
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
650 | G_BEGIN_DECLS |
|
5ecb9a6c4611
Added protocol.[ch] and moved PurpleProtocol and PurpleProtocolInterface to it
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
651 | |
|
5ecb9a6c4611
Added protocol.[ch] and moved PurpleProtocol and PurpleProtocolInterface to it
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
652 | /**************************************************************************/ |
|
37090
c45c70779582
Remove @name from new plugin and protocol stuff
Ankit Vani <a@nevitus.org>
parents:
37089
diff
changeset
|
653 | /* Protocol Object API */ |
|
36563
5ecb9a6c4611
Added protocol.[ch] and moved PurpleProtocol and PurpleProtocolInterface to it
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
654 | /**************************************************************************/ |
|
5ecb9a6c4611
Added protocol.[ch] and moved PurpleProtocol and PurpleProtocolInterface to it
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
655 | |
|
36617
be16459a68e9
Finished implementation of protocol object and interface stuff in protocol.[ch].
Ankit Vani <a@nevitus.org>
parents:
36613
diff
changeset
|
656 | /** |
|
37036
a8e12bcb0a74
Convert the new .h files for this branch for gtk-doc
Ankit Vani <a@nevitus.org>
parents:
37034
diff
changeset
|
657 | * 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
|
658 | * |
|
37073
baf45dc13ffd
Fix some gtk-doc warnings in protocol(s).h (not all)
Ankit Vani <a@nevitus.org>
parents:
37062
diff
changeset
|
659 | * 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
|
660 | */ |
|
5ecb9a6c4611
Added protocol.[ch] and moved PurpleProtocol and PurpleProtocolInterface to it
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
661 | 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
|
662 | |
|
36617
be16459a68e9
Finished implementation of protocol object and interface stuff in protocol.[ch].
Ankit Vani <a@nevitus.org>
parents:
36613
diff
changeset
|
663 | /** |
|
37036
a8e12bcb0a74
Convert the new .h files for this branch for gtk-doc
Ankit Vani <a@nevitus.org>
parents:
37034
diff
changeset
|
664 | * 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
|
665 | * @protocol: The protocol. |
|
36581
09d5842255a2
Added missing includes and functions to headers
Ankit Vani <a@nevitus.org>
parents:
36580
diff
changeset
|
666 | * |
|
37036
a8e12bcb0a74
Convert the new .h files for this branch for gtk-doc
Ankit Vani <a@nevitus.org>
parents:
37034
diff
changeset
|
667 | * Returns the ID of a protocol. |
|
36581
09d5842255a2
Added missing includes and functions to headers
Ankit Vani <a@nevitus.org>
parents:
36580
diff
changeset
|
668 | * |
|
37034
9d6765962b22
Initial replacements for this branch
Ankit Vani <a@nevitus.org>
parents:
37023
diff
changeset
|
669 | * Returns: The ID of the protocol. |
|
36581
09d5842255a2
Added missing includes and functions to headers
Ankit Vani <a@nevitus.org>
parents:
36580
diff
changeset
|
670 | */ |
|
09d5842255a2
Added missing includes and functions to headers
Ankit Vani <a@nevitus.org>
parents:
36580
diff
changeset
|
671 | 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
|
672 | |
|
36617
be16459a68e9
Finished implementation of protocol object and interface stuff in protocol.[ch].
Ankit Vani <a@nevitus.org>
parents:
36613
diff
changeset
|
673 | /** |
|
37036
a8e12bcb0a74
Convert the new .h files for this branch for gtk-doc
Ankit Vani <a@nevitus.org>
parents:
37034
diff
changeset
|
674 | * 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
|
675 | * @protocol: The protocol. |
|
36581
09d5842255a2
Added missing includes and functions to headers
Ankit Vani <a@nevitus.org>
parents:
36580
diff
changeset
|
676 | * |
|
37036
a8e12bcb0a74
Convert the new .h files for this branch for gtk-doc
Ankit Vani <a@nevitus.org>
parents:
37034
diff
changeset
|
677 | * 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
|
678 | * |
|
37034
9d6765962b22
Initial replacements for this branch
Ankit Vani <a@nevitus.org>
parents:
37023
diff
changeset
|
679 | * 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
|
680 | */ |
|
09d5842255a2
Added missing includes and functions to headers
Ankit Vani <a@nevitus.org>
parents:
36580
diff
changeset
|
681 | 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
|
682 | |
|
36617
be16459a68e9
Finished implementation of protocol object and interface stuff in protocol.[ch].
Ankit Vani <a@nevitus.org>
parents:
36613
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_get_options: |
|
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. |
|
36581
09d5842255a2
Added missing includes and functions to headers
Ankit Vani <a@nevitus.org>
parents:
36580
diff
changeset
|
686 | * |
|
37036
a8e12bcb0a74
Convert the new .h files for this branch for gtk-doc
Ankit Vani <a@nevitus.org>
parents:
37034
diff
changeset
|
687 | * Returns the options of a protocol. |
|
36581
09d5842255a2
Added missing includes and functions to headers
Ankit Vani <a@nevitus.org>
parents:
36580
diff
changeset
|
688 | * |
|
37034
9d6765962b22
Initial replacements for this branch
Ankit Vani <a@nevitus.org>
parents:
37023
diff
changeset
|
689 | * Returns: The options of the protocol. |
|
36581
09d5842255a2
Added missing includes and functions to headers
Ankit Vani <a@nevitus.org>
parents:
36580
diff
changeset
|
690 | */ |
|
09d5842255a2
Added missing includes and functions to headers
Ankit Vani <a@nevitus.org>
parents:
36580
diff
changeset
|
691 | 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
|
692 | |
|
36617
be16459a68e9
Finished implementation of protocol object and interface stuff in protocol.[ch].
Ankit Vani <a@nevitus.org>
parents:
36613
diff
changeset
|
693 | /** |
|
37036
a8e12bcb0a74
Convert the new .h files for this branch for gtk-doc
Ankit Vani <a@nevitus.org>
parents:
37034
diff
changeset
|
694 | * 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
|
695 | * @protocol: The protocol. |
|
36581
09d5842255a2
Added missing includes and functions to headers
Ankit Vani <a@nevitus.org>
parents:
36580
diff
changeset
|
696 | * |
|
37036
a8e12bcb0a74
Convert the new .h files for this branch for gtk-doc
Ankit Vani <a@nevitus.org>
parents:
37034
diff
changeset
|
697 | * 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
|
698 | * |
|
39739
ed1cd735639b
Add some missing element-type annotations.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39672
diff
changeset
|
699 | * 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
|
700 | * splits of the protocol. |
|
36581
09d5842255a2
Added missing includes and functions to headers
Ankit Vani <a@nevitus.org>
parents:
36580
diff
changeset
|
701 | */ |
|
09d5842255a2
Added missing includes and functions to headers
Ankit Vani <a@nevitus.org>
parents:
36580
diff
changeset
|
702 | 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
|
703 | |
|
36617
be16459a68e9
Finished implementation of protocol object and interface stuff in protocol.[ch].
Ankit Vani <a@nevitus.org>
parents:
36613
diff
changeset
|
704 | /** |
|
37038
8832d14d7d0c
Rename 'protocol_options' field of PurpleProtocol to more appropriate 'account_options'
Ankit Vani <a@nevitus.org>
parents:
37036
diff
changeset
|
705 | * purple_protocol_get_account_options: |
|
37034
9d6765962b22
Initial replacements for this branch
Ankit Vani <a@nevitus.org>
parents:
37023
diff
changeset
|
706 | * @protocol: The protocol. |
|
36581
09d5842255a2
Added missing includes and functions to headers
Ankit Vani <a@nevitus.org>
parents:
36580
diff
changeset
|
707 | * |
|
37036
a8e12bcb0a74
Convert the new .h files for this branch for gtk-doc
Ankit Vani <a@nevitus.org>
parents:
37034
diff
changeset
|
708 | * 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
|
709 | * |
|
39739
ed1cd735639b
Add some missing element-type annotations.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39672
diff
changeset
|
710 | * 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
|
711 | * options for the protocol. |
|
36581
09d5842255a2
Added missing includes and functions to headers
Ankit Vani <a@nevitus.org>
parents:
36580
diff
changeset
|
712 | */ |
|
37038
8832d14d7d0c
Rename 'protocol_options' field of PurpleProtocol to more appropriate 'account_options'
Ankit Vani <a@nevitus.org>
parents:
37036
diff
changeset
|
713 | 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
|
714 | |
|
36617
be16459a68e9
Finished implementation of protocol object and interface stuff in protocol.[ch].
Ankit Vani <a@nevitus.org>
parents:
36613
diff
changeset
|
715 | /** |
|
37036
a8e12bcb0a74
Convert the new .h files for this branch for gtk-doc
Ankit Vani <a@nevitus.org>
parents:
37034
diff
changeset
|
716 | * 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
|
717 | * @protocol: The protocol. |
|
36581
09d5842255a2
Added missing includes and functions to headers
Ankit Vani <a@nevitus.org>
parents:
36580
diff
changeset
|
718 | * |
|
37036
a8e12bcb0a74
Convert the new .h files for this branch for gtk-doc
Ankit Vani <a@nevitus.org>
parents:
37034
diff
changeset
|
719 | * 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
|
720 | * |
|
37034
9d6765962b22
Initial replacements for this branch
Ankit Vani <a@nevitus.org>
parents:
37023
diff
changeset
|
721 | * 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
|
722 | */ |
|
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
|
723 | 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
|
724 | |
|
36617
be16459a68e9
Finished implementation of protocol object and interface stuff in protocol.[ch].
Ankit Vani <a@nevitus.org>
parents:
36613
diff
changeset
|
725 | /** |
|
37036
a8e12bcb0a74
Convert the new .h files for this branch for gtk-doc
Ankit Vani <a@nevitus.org>
parents:
37034
diff
changeset
|
726 | * 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
|
727 | * @protocol: The protocol. |
|
36581
09d5842255a2
Added missing includes and functions to headers
Ankit Vani <a@nevitus.org>
parents:
36580
diff
changeset
|
728 | * |
|
37036
a8e12bcb0a74
Convert the new .h files for this branch for gtk-doc
Ankit Vani <a@nevitus.org>
parents:
37034
diff
changeset
|
729 | * 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
|
730 | * |
| 40188 | 731 | * Returns: (transfer none): The whiteboard ops of the protocol. |
|
36581
09d5842255a2
Added missing includes and functions to headers
Ankit Vani <a@nevitus.org>
parents:
36580
diff
changeset
|
732 | */ |
|
36637
9b0109ae118d
Renamed some prpl stuff to protocol stuff.
Ankit Vani <a@nevitus.org>
parents:
36624
diff
changeset
|
733 | 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
|
734 | |
|
36718
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
735 | /**************************************************************************/ |
|
37090
c45c70779582
Remove @name from new plugin and protocol stuff
Ankit Vani <a@nevitus.org>
parents:
37089
diff
changeset
|
736 | /* Protocol Class API */ |
|
36718
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
737 | /**************************************************************************/ |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
738 | |
|
38745
f4376b1f4682
A ton more of introspection cleanups
Gary Kramlich <grim@reaperworld.com>
parents:
37167
diff
changeset
|
739 | 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
|
740 | |
|
38745
f4376b1f4682
A ton more of introspection cleanups
Gary Kramlich <grim@reaperworld.com>
parents:
37167
diff
changeset
|
741 | 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
|
742 | |
|
38745
f4376b1f4682
A ton more of introspection cleanups
Gary Kramlich <grim@reaperworld.com>
parents:
37167
diff
changeset
|
743 | 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
|
744 | PurpleAccount *account); |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
745 | |
|
38745
f4376b1f4682
A ton more of introspection cleanups
Gary Kramlich <grim@reaperworld.com>
parents:
37167
diff
changeset
|
746 | 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
|
747 | PurpleAccount *account, PurpleBuddy *buddy); |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
748 | |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
749 | /**************************************************************************/ |
|
37090
c45c70779582
Remove @name from new plugin and protocol stuff
Ankit Vani <a@nevitus.org>
parents:
37089
diff
changeset
|
750 | /* Protocol Client Interface API */ |
|
36718
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
751 | /**************************************************************************/ |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
752 | |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
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 | * 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
|
755 | * |
|
37073
baf45dc13ffd
Fix some gtk-doc warnings in protocol(s).h (not all)
Ankit Vani <a@nevitus.org>
parents:
37062
diff
changeset
|
756 | * 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
|
757 | * |
|
bd90a84a84a4
add since tags to the client_iface methods as well
Gary Kramlich <grim@reaperworld.com>
parents:
39596
diff
changeset
|
758 | * Since: 3.0.0 |
|
36718
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
759 | */ |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
760 | GType purple_protocol_client_iface_get_type(void); |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
761 | |
|
39592
445e2cf29f4d
Start of cleaning up missing docs in protocol.h
Gary Kramlich <grim@reaperworld.com>
parents:
39521
diff
changeset
|
762 | /** |
|
445e2cf29f4d
Start of cleaning up missing docs in protocol.h
Gary Kramlich <grim@reaperworld.com>
parents:
39521
diff
changeset
|
763 | * 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
|
764 | * @protocol: The #PurpleProtocol instance. |
|
445e2cf29f4d
Start of cleaning up missing docs in protocol.h
Gary Kramlich <grim@reaperworld.com>
parents:
39521
diff
changeset
|
765 | * @connection: The #PurpleConnection instance. |
|
445e2cf29f4d
Start of cleaning up missing docs in protocol.h
Gary Kramlich <grim@reaperworld.com>
parents:
39521
diff
changeset
|
766 | * |
|
445e2cf29f4d
Start of cleaning up missing docs in protocol.h
Gary Kramlich <grim@reaperworld.com>
parents:
39521
diff
changeset
|
767 | * 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
|
768 | * |
|
445e2cf29f4d
Start of cleaning up missing docs in protocol.h
Gary Kramlich <grim@reaperworld.com>
parents:
39521
diff
changeset
|
769 | * 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
|
770 | * |
|
bd90a84a84a4
add since tags to the client_iface methods as well
Gary Kramlich <grim@reaperworld.com>
parents:
39596
diff
changeset
|
771 | * Since: 3.0.0 |
|
39592
445e2cf29f4d
Start of cleaning up missing docs in protocol.h
Gary Kramlich <grim@reaperworld.com>
parents:
39521
diff
changeset
|
772 | */ |
|
38745
f4376b1f4682
A ton more of introspection cleanups
Gary Kramlich <grim@reaperworld.com>
parents:
37167
diff
changeset
|
773 | 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
|
774 | PurpleConnection *connection); |
|
36718
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
775 | |
|
39592
445e2cf29f4d
Start of cleaning up missing docs in protocol.h
Gary Kramlich <grim@reaperworld.com>
parents:
39521
diff
changeset
|
776 | /** |
|
445e2cf29f4d
Start of cleaning up missing docs in protocol.h
Gary Kramlich <grim@reaperworld.com>
parents:
39521
diff
changeset
|
777 | * 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
|
778 | * @protocol: The #PurpleProtocol instance. |
|
445e2cf29f4d
Start of cleaning up missing docs in protocol.h
Gary Kramlich <grim@reaperworld.com>
parents:
39521
diff
changeset
|
779 | * @buddy: The #PurpleBuddy instance. |
|
445e2cf29f4d
Start of cleaning up missing docs in protocol.h
Gary Kramlich <grim@reaperworld.com>
parents:
39521
diff
changeset
|
780 | * |
|
39595
0c9f3c4f1afb
Various typo and whitespace fixes found in review
Gary Kramlich <grim@reaperworld.com>
parents:
39594
diff
changeset
|
781 | * 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
|
782 | * |
|
39595
0c9f3c4f1afb
Various typo and whitespace fixes found in review
Gary Kramlich <grim@reaperworld.com>
parents:
39594
diff
changeset
|
783 | * 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
|
784 | * |
|
bd90a84a84a4
add since tags to the client_iface methods as well
Gary Kramlich <grim@reaperworld.com>
parents:
39596
diff
changeset
|
785 | * Since: 3.0.0 |
|
39592
445e2cf29f4d
Start of cleaning up missing docs in protocol.h
Gary Kramlich <grim@reaperworld.com>
parents:
39521
diff
changeset
|
786 | */ |
|
38745
f4376b1f4682
A ton more of introspection cleanups
Gary Kramlich <grim@reaperworld.com>
parents:
37167
diff
changeset
|
787 | 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
|
788 | PurpleBuddy *buddy); |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
789 | |
|
39592
445e2cf29f4d
Start of cleaning up missing docs in protocol.h
Gary Kramlich <grim@reaperworld.com>
parents:
39521
diff
changeset
|
790 | /** |
|
445e2cf29f4d
Start of cleaning up missing docs in protocol.h
Gary Kramlich <grim@reaperworld.com>
parents:
39521
diff
changeset
|
791 | * 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
|
792 | * @protocol: The #PurpleProtocol instance. |
|
39868
d2958d6e483e
There's no such thing as a ProtocolBuddy, so renamed to PurpleBuddy
Gary Kramlich <grim@reaperworld.com>
parents:
39818
diff
changeset
|
793 | * @buddy: The #PurpleBuddy instance. |
|
39592
445e2cf29f4d
Start of cleaning up missing docs in protocol.h
Gary Kramlich <grim@reaperworld.com>
parents:
39521
diff
changeset
|
794 | * |
|
445e2cf29f4d
Start of cleaning up missing docs in protocol.h
Gary Kramlich <grim@reaperworld.com>
parents:
39521
diff
changeset
|
795 | * 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
|
796 | * |
|
445e2cf29f4d
Start of cleaning up missing docs in protocol.h
Gary Kramlich <grim@reaperworld.com>
parents:
39521
diff
changeset
|
797 | * 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
|
798 | * |
|
bd90a84a84a4
add since tags to the client_iface methods as well
Gary Kramlich <grim@reaperworld.com>
parents:
39596
diff
changeset
|
799 | * Since: 3.0.0 |
|
39592
445e2cf29f4d
Start of cleaning up missing docs in protocol.h
Gary Kramlich <grim@reaperworld.com>
parents:
39521
diff
changeset
|
800 | */ |
|
38745
f4376b1f4682
A ton more of introspection cleanups
Gary Kramlich <grim@reaperworld.com>
parents:
37167
diff
changeset
|
801 | 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
|
802 | PurpleBuddy *buddy); |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
803 | |
|
39592
445e2cf29f4d
Start of cleaning up missing docs in protocol.h
Gary Kramlich <grim@reaperworld.com>
parents:
39521
diff
changeset
|
804 | /** |
|
445e2cf29f4d
Start of cleaning up missing docs in protocol.h
Gary Kramlich <grim@reaperworld.com>
parents:
39521
diff
changeset
|
805 | * 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
|
806 | * @protocol: The #PurpleProtocol instance. |
|
445e2cf29f4d
Start of cleaning up missing docs in protocol.h
Gary Kramlich <grim@reaperworld.com>
parents:
39521
diff
changeset
|
807 | * @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
|
808 | * @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
|
809 | * @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
|
810 | * |
|
39596
17d54aaad818
Finish an imcomplete doc comment and clean up the wording on another
Gary Kramlich <grim@reaperworld.com>
parents:
39595
diff
changeset
|
811 | * 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
|
812 | * 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
|
813 | * |
|
bd90a84a84a4
add since tags to the client_iface methods as well
Gary Kramlich <grim@reaperworld.com>
parents:
39596
diff
changeset
|
814 | * Since: 3.0.0 |
|
39592
445e2cf29f4d
Start of cleaning up missing docs in protocol.h
Gary Kramlich <grim@reaperworld.com>
parents:
39521
diff
changeset
|
815 | */ |
|
38745
f4376b1f4682
A ton more of introspection cleanups
Gary Kramlich <grim@reaperworld.com>
parents:
37167
diff
changeset
|
816 | 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
|
817 | PurpleBuddy *buddy, PurpleNotifyUserInfo *user_info, gboolean full); |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
818 | |
|
38745
f4376b1f4682
A ton more of introspection cleanups
Gary Kramlich <grim@reaperworld.com>
parents:
37167
diff
changeset
|
819 | 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
|
820 | PurpleBlistNode *node); |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
821 | |
|
38745
f4376b1f4682
A ton more of introspection cleanups
Gary Kramlich <grim@reaperworld.com>
parents:
37167
diff
changeset
|
822 | 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
|
823 | |
|
38745
f4376b1f4682
A ton more of introspection cleanups
Gary Kramlich <grim@reaperworld.com>
parents:
37167
diff
changeset
|
824 | 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
|
825 | PurpleConnection *connection, const char *who); |
|
36718
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
826 | |
|
38745
f4376b1f4682
A ton more of introspection cleanups
Gary Kramlich <grim@reaperworld.com>
parents:
37167
diff
changeset
|
827 | 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
|
828 | const PurpleAccount *account, const char *who); |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
829 | |
|
38745
f4376b1f4682
A ton more of introspection cleanups
Gary Kramlich <grim@reaperworld.com>
parents:
37167
diff
changeset
|
830 | 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
|
831 | PurpleAccount *account, const char *name); |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
832 | |
|
38745
f4376b1f4682
A ton more of introspection cleanups
Gary Kramlich <grim@reaperworld.com>
parents:
37167
diff
changeset
|
833 | 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
|
834 | const PurpleBuddy *buddy); |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
835 | |
|
38745
f4376b1f4682
A ton more of introspection cleanups
Gary Kramlich <grim@reaperworld.com>
parents:
37167
diff
changeset
|
836 | 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
|
837 | PurpleAccount *account); |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
838 | |
|
38745
f4376b1f4682
A ton more of introspection cleanups
Gary Kramlich <grim@reaperworld.com>
parents:
37167
diff
changeset
|
839 | 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
|
840 | PurpleAccount *account); |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
841 | |
|
38745
f4376b1f4682
A ton more of introspection cleanups
Gary Kramlich <grim@reaperworld.com>
parents:
37167
diff
changeset
|
842 | 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
|
843 | PurpleConversation *conv); |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
844 | |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
845 | /**************************************************************************/ |
|
37090
c45c70779582
Remove @name from new plugin and protocol stuff
Ankit Vani <a@nevitus.org>
parents:
37089
diff
changeset
|
846 | /* Protocol Server Interface API */ |
|
36718
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
847 | /**************************************************************************/ |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
848 | |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
849 | /** |
|
37036
a8e12bcb0a74
Convert the new .h files for this branch for gtk-doc
Ankit Vani <a@nevitus.org>
parents:
37034
diff
changeset
|
850 | * 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
|
851 | * |
|
37073
baf45dc13ffd
Fix some gtk-doc warnings in protocol(s).h (not all)
Ankit Vani <a@nevitus.org>
parents:
37062
diff
changeset
|
852 | * 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
|
853 | */ |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
854 | GType purple_protocol_server_iface_get_type(void); |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
855 | |
|
38745
f4376b1f4682
A ton more of introspection cleanups
Gary Kramlich <grim@reaperworld.com>
parents:
37167
diff
changeset
|
856 | 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
|
857 | PurpleAccount *account); |
|
36718
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
858 | |
|
37132
f4740b6e7525
Add (scope) annotation to callback parameters in plugins.h, protocol.h, protocols.h
Ankit Vani <a@nevitus.org>
parents:
37103
diff
changeset
|
859 | /** |
|
f4740b6e7525
Add (scope) annotation to callback parameters in plugins.h, protocol.h, protocols.h
Ankit Vani <a@nevitus.org>
parents:
37103
diff
changeset
|
860 | * 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
|
861 | * @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
|
862 | */ |
|
38745
f4376b1f4682
A ton more of introspection cleanups
Gary Kramlich <grim@reaperworld.com>
parents:
37167
diff
changeset
|
863 | 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
|
864 | PurpleAccount *account, PurpleAccountUnregistrationCb cb, void *user_data); |
|
36718
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
865 | |
|
38745
f4376b1f4682
A ton more of introspection cleanups
Gary Kramlich <grim@reaperworld.com>
parents:
37167
diff
changeset
|
866 | 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
|
867 | const char *info); |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
868 | |
|
38745
f4376b1f4682
A ton more of introspection cleanups
Gary Kramlich <grim@reaperworld.com>
parents:
37167
diff
changeset
|
869 | 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
|
870 | const char *who); |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
871 | |
|
38745
f4376b1f4682
A ton more of introspection cleanups
Gary Kramlich <grim@reaperworld.com>
parents:
37167
diff
changeset
|
872 | 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
|
873 | PurpleAccount *account, PurpleStatus *status); |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
874 | |
|
38745
f4376b1f4682
A ton more of introspection cleanups
Gary Kramlich <grim@reaperworld.com>
parents:
37167
diff
changeset
|
875 | 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
|
876 | int idletime); |
|
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 | 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
|
879 | 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
|
880 | |
|
38745
f4376b1f4682
A ton more of introspection cleanups
Gary Kramlich <grim@reaperworld.com>
parents:
37167
diff
changeset
|
881 | 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
|
882 | PurpleConnection *pc, PurpleBuddy *buddy, PurpleGroup *group, |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
883 | const char *message); |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
884 | |
|
38745
f4376b1f4682
A ton more of introspection cleanups
Gary Kramlich <grim@reaperworld.com>
parents:
37167
diff
changeset
|
885 | 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
|
886 | PurpleConnection *pc, GList *buddies, GList *groups, |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
887 | const char *message); |
|
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 | 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
|
890 | PurpleConnection *connection, PurpleBuddy *buddy, PurpleGroup *group); |
|
36718
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 | 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
|
893 | PurpleConnection *connection, GList *buddies, GList *groups); |
|
36718
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 | void purple_protocol_server_iface_keepalive(PurpleProtocol *protocol, |
|
f4376b1f4682
A ton more of introspection cleanups
Gary Kramlich <grim@reaperworld.com>
parents:
37167
diff
changeset
|
896 | PurpleConnection *connection); |
|
36718
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
897 | |
|
39518
6141cf90e5b8
libpurple: Make keepalive interval configurable
Petteri Pitkänen <petepitk@gmail.com>
parents:
38859
diff
changeset
|
898 | 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
|
899 | |
|
38745
f4376b1f4682
A ton more of introspection cleanups
Gary Kramlich <grim@reaperworld.com>
parents:
37167
diff
changeset
|
900 | 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
|
901 | 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
|
902 | |
|
38745
f4376b1f4682
A ton more of introspection cleanups
Gary Kramlich <grim@reaperworld.com>
parents:
37167
diff
changeset
|
903 | 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
|
904 | 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
|
905 | const char *new_group); |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
906 | |
|
38745
f4376b1f4682
A ton more of introspection cleanups
Gary Kramlich <grim@reaperworld.com>
parents:
37167
diff
changeset
|
907 | 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
|
908 | 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
|
909 | GList *moved_buddies); |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
910 | |
|
38745
f4376b1f4682
A ton more of introspection cleanups
Gary Kramlich <grim@reaperworld.com>
parents:
37167
diff
changeset
|
911 | 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
|
912 | PurpleConnection *connection, PurpleImage *img); |
|
36718
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
913 | |
|
38745
f4376b1f4682
A ton more of introspection cleanups
Gary Kramlich <grim@reaperworld.com>
parents:
37167
diff
changeset
|
914 | 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
|
915 | PurpleConnection *gc, PurpleGroup *group); |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
916 | |
|
38745
f4376b1f4682
A ton more of introspection cleanups
Gary Kramlich <grim@reaperworld.com>
parents:
37167
diff
changeset
|
917 | 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
|
918 | PurpleConnection *gc, const char *buf, int len); |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
919 | |
|
37132
f4740b6e7525
Add (scope) annotation to callback parameters in plugins.h, protocol.h, protocols.h
Ankit Vani <a@nevitus.org>
parents:
37103
diff
changeset
|
920 | /** |
|
f4740b6e7525
Add (scope) annotation to callback parameters in plugins.h, protocol.h, protocols.h
Ankit Vani <a@nevitus.org>
parents:
37103
diff
changeset
|
921 | * 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
|
922 | * @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
|
923 | * @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
|
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_public_alias(PurpleProtocol *protocol, |
|
36718
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
926 | PurpleConnection *gc, const char *alias, |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
927 | PurpleSetPublicAliasSuccessCallback success_cb, |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
928 | PurpleSetPublicAliasFailureCallback failure_cb); |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
929 | |
|
37132
f4740b6e7525
Add (scope) annotation to callback parameters in plugins.h, protocol.h, protocols.h
Ankit Vani <a@nevitus.org>
parents:
37103
diff
changeset
|
930 | /** |
|
f4740b6e7525
Add (scope) annotation to callback parameters in plugins.h, protocol.h, protocols.h
Ankit Vani <a@nevitus.org>
parents:
37103
diff
changeset
|
931 | * 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
|
932 | * @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
|
933 | * @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
|
934 | */ |
|
38745
f4376b1f4682
A ton more of introspection cleanups
Gary Kramlich <grim@reaperworld.com>
parents:
37167
diff
changeset
|
935 | 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
|
936 | PurpleConnection *gc, PurpleGetPublicAliasSuccessCallback success_cb, |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
937 | PurpleGetPublicAliasFailureCallback failure_cb); |
|
36686
9807e4acf281
Added PurpleProtocolOverrideFlags and purple_protocol_override()
Ankit Vani <a@nevitus.org>
parents:
36682
diff
changeset
|
938 | |
|
36566
029a5f652427
Moved all of protocol API to protocol.h
Ankit Vani <a@nevitus.org>
parents:
36564
diff
changeset
|
939 | /**************************************************************************/ |
|
37090
c45c70779582
Remove @name from new plugin and protocol stuff
Ankit Vani <a@nevitus.org>
parents:
37089
diff
changeset
|
940 | /* Protocol IM Interface API */ |
|
36718
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
941 | /**************************************************************************/ |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
942 | |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
943 | /** |
|
37036
a8e12bcb0a74
Convert the new .h files for this branch for gtk-doc
Ankit Vani <a@nevitus.org>
parents:
37034
diff
changeset
|
944 | * 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
|
945 | * |
|
37073
baf45dc13ffd
Fix some gtk-doc warnings in protocol(s).h (not all)
Ankit Vani <a@nevitus.org>
parents:
37062
diff
changeset
|
946 | * 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
|
947 | */ |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
948 | GType purple_protocol_im_iface_get_type(void); |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
949 | |
|
38745
f4376b1f4682
A ton more of introspection cleanups
Gary Kramlich <grim@reaperworld.com>
parents:
37167
diff
changeset
|
950 | int purple_protocol_im_iface_send(PurpleProtocol *protocol, PurpleConnection *connection, |
| 37148 | 951 | PurpleMessage *msg); |
|
36718
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
952 | |
|
38745
f4376b1f4682
A ton more of introspection cleanups
Gary Kramlich <grim@reaperworld.com>
parents:
37167
diff
changeset
|
953 | 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
|
954 | PurpleConnection *connection, const char *name, PurpleIMTypingState state); |
|
36718
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
955 | |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
956 | /**************************************************************************/ |
|
37090
c45c70779582
Remove @name from new plugin and protocol stuff
Ankit Vani <a@nevitus.org>
parents:
37089
diff
changeset
|
957 | /* Protocol Chat Interface API */ |
|
36566
029a5f652427
Moved all of protocol API to protocol.h
Ankit Vani <a@nevitus.org>
parents:
36564
diff
changeset
|
958 | /**************************************************************************/ |
|
36718
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
959 | |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
960 | /** |
|
37036
a8e12bcb0a74
Convert the new .h files for this branch for gtk-doc
Ankit Vani <a@nevitus.org>
parents:
37034
diff
changeset
|
961 | * 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
|
962 | * |
|
37073
baf45dc13ffd
Fix some gtk-doc warnings in protocol(s).h (not all)
Ankit Vani <a@nevitus.org>
parents:
37062
diff
changeset
|
963 | * 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
|
964 | * |
|
2d41781914e7
Document the protocol whiteboard and chat interfaces
Gary Kramlich <grim@reaperworld.com>
parents:
39592
diff
changeset
|
965 | * Since: 3.0.0 |
|
36718
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
966 | */ |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
967 | GType purple_protocol_chat_iface_get_type(void); |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
968 | |
|
39593
2d41781914e7
Document the protocol whiteboard and chat interfaces
Gary Kramlich <grim@reaperworld.com>
parents:
39592
diff
changeset
|
969 | /** |
|
2d41781914e7
Document the protocol whiteboard and chat interfaces
Gary Kramlich <grim@reaperworld.com>
parents:
39592
diff
changeset
|
970 | * purple_protocol_chat_iface_info: |
|
2d41781914e7
Document the protocol whiteboard and chat interfaces
Gary Kramlich <grim@reaperworld.com>
parents:
39592
diff
changeset
|
971 | * @protocol: The #PurpleProtocol instance. |
|
2d41781914e7
Document the protocol whiteboard and chat interfaces
Gary Kramlich <grim@reaperworld.com>
parents:
39592
diff
changeset
|
972 | * @connection: The #PurpleConnection instance. |
|
2d41781914e7
Document the protocol whiteboard and chat interfaces
Gary Kramlich <grim@reaperworld.com>
parents:
39592
diff
changeset
|
973 | * |
|
39596
17d54aaad818
Finish an imcomplete doc comment and clean up the wording on another
Gary Kramlich <grim@reaperworld.com>
parents:
39595
diff
changeset
|
974 | * 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
|
975 | * multi user chat. |
|
39593
2d41781914e7
Document the protocol whiteboard and chat interfaces
Gary Kramlich <grim@reaperworld.com>
parents:
39592
diff
changeset
|
976 | * |
|
2d41781914e7
Document the protocol whiteboard and chat interfaces
Gary Kramlich <grim@reaperworld.com>
parents:
39592
diff
changeset
|
977 | * 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
|
978 | * 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
|
979 | * |
|
2d41781914e7
Document the protocol whiteboard and chat interfaces
Gary Kramlich <grim@reaperworld.com>
parents:
39592
diff
changeset
|
980 | * Since: 3.0.0 |
|
2d41781914e7
Document the protocol whiteboard and chat interfaces
Gary Kramlich <grim@reaperworld.com>
parents:
39592
diff
changeset
|
981 | */ |
|
38745
f4376b1f4682
A ton more of introspection cleanups
Gary Kramlich <grim@reaperworld.com>
parents:
37167
diff
changeset
|
982 | GList *purple_protocol_chat_iface_info(PurpleProtocol *protocol, |
|
f4376b1f4682
A ton more of introspection cleanups
Gary Kramlich <grim@reaperworld.com>
parents:
37167
diff
changeset
|
983 | PurpleConnection *connection); |
|
36718
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
984 | |
|
39593
2d41781914e7
Document the protocol whiteboard and chat interfaces
Gary Kramlich <grim@reaperworld.com>
parents:
39592
diff
changeset
|
985 | /** |
|
2d41781914e7
Document the protocol whiteboard and chat interfaces
Gary Kramlich <grim@reaperworld.com>
parents:
39592
diff
changeset
|
986 | * purple_protocol_chat_iface_info_defaults: |
|
2d41781914e7
Document the protocol whiteboard and chat interfaces
Gary Kramlich <grim@reaperworld.com>
parents:
39592
diff
changeset
|
987 | * @protocol: The #PurpleProtocol instance |
|
2d41781914e7
Document the protocol whiteboard and chat interfaces
Gary Kramlich <grim@reaperworld.com>
parents:
39592
diff
changeset
|
988 | * @connection: The #PurpleConnection instance |
|
2d41781914e7
Document the protocol whiteboard and chat interfaces
Gary Kramlich <grim@reaperworld.com>
parents:
39592
diff
changeset
|
989 | * @chat_name: The name of the chat |
|
2d41781914e7
Document the protocol whiteboard and chat interfaces
Gary Kramlich <grim@reaperworld.com>
parents:
39592
diff
changeset
|
990 | * |
|
2d41781914e7
Document the protocol whiteboard and chat interfaces
Gary Kramlich <grim@reaperworld.com>
parents:
39592
diff
changeset
|
991 | * 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
|
992 | * 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
|
993 | * |
|
2d41781914e7
Document the protocol whiteboard and chat interfaces
Gary Kramlich <grim@reaperworld.com>
parents:
39592
diff
changeset
|
994 | * 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
|
995 | * used to join the chat. |
|
2d41781914e7
Document the protocol whiteboard and chat interfaces
Gary Kramlich <grim@reaperworld.com>
parents:
39592
diff
changeset
|
996 | * |
|
2d41781914e7
Document the protocol whiteboard and chat interfaces
Gary Kramlich <grim@reaperworld.com>
parents:
39592
diff
changeset
|
997 | * Since: 3.0.0 |
|
2d41781914e7
Document the protocol whiteboard and chat interfaces
Gary Kramlich <grim@reaperworld.com>
parents:
39592
diff
changeset
|
998 | */ |
|
38745
f4376b1f4682
A ton more of introspection cleanups
Gary Kramlich <grim@reaperworld.com>
parents:
37167
diff
changeset
|
999 | 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
|
1000 | PurpleConnection *connection, const char *chat_name); |
|
36718
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
1001 | |
|
39593
2d41781914e7
Document the protocol whiteboard and chat interfaces
Gary Kramlich <grim@reaperworld.com>
parents:
39592
diff
changeset
|
1002 | /** |
|
2d41781914e7
Document the protocol whiteboard and chat interfaces
Gary Kramlich <grim@reaperworld.com>
parents:
39592
diff
changeset
|
1003 | * purple_protocol_chat_iface_join: |
|
2d41781914e7
Document the protocol whiteboard and chat interfaces
Gary Kramlich <grim@reaperworld.com>
parents:
39592
diff
changeset
|
1004 | * @protocol: The #PurpleProtocol instance |
|
2d41781914e7
Document the protocol whiteboard and chat interfaces
Gary Kramlich <grim@reaperworld.com>
parents:
39592
diff
changeset
|
1005 | * @connection: The #PurpleConnection instance |
|
2d41781914e7
Document the protocol whiteboard and chat interfaces
Gary Kramlich <grim@reaperworld.com>
parents:
39592
diff
changeset
|
1006 | * @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
|
1007 | * components |
|
2d41781914e7
Document the protocol whiteboard and chat interfaces
Gary Kramlich <grim@reaperworld.com>
parents:
39592
diff
changeset
|
1008 | * |
|
2d41781914e7
Document the protocol whiteboard and chat interfaces
Gary Kramlich <grim@reaperworld.com>
parents:
39592
diff
changeset
|
1009 | * Joins the chat described in @components. |
|
2d41781914e7
Document the protocol whiteboard and chat interfaces
Gary Kramlich <grim@reaperworld.com>
parents:
39592
diff
changeset
|
1010 | * |
|
2d41781914e7
Document the protocol whiteboard and chat interfaces
Gary Kramlich <grim@reaperworld.com>
parents:
39592
diff
changeset
|
1011 | * Since: 3.0.0 |
|
2d41781914e7
Document the protocol whiteboard and chat interfaces
Gary Kramlich <grim@reaperworld.com>
parents:
39592
diff
changeset
|
1012 | */ |
|
38745
f4376b1f4682
A ton more of introspection cleanups
Gary Kramlich <grim@reaperworld.com>
parents:
37167
diff
changeset
|
1013 | 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
|
1014 | GHashTable *components); |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
1015 | |
|
39593
2d41781914e7
Document the protocol whiteboard and chat interfaces
Gary Kramlich <grim@reaperworld.com>
parents:
39592
diff
changeset
|
1016 | /** |
|
2d41781914e7
Document the protocol whiteboard and chat interfaces
Gary Kramlich <grim@reaperworld.com>
parents:
39592
diff
changeset
|
1017 | * purple_protocol_chat_iface_reject: |
|
2d41781914e7
Document the protocol whiteboard and chat interfaces
Gary Kramlich <grim@reaperworld.com>
parents:
39592
diff
changeset
|
1018 | * @protocol: The #PurpleProtocol instance |
|
2d41781914e7
Document the protocol whiteboard and chat interfaces
Gary Kramlich <grim@reaperworld.com>
parents:
39592
diff
changeset
|
1019 | * @connection: The #PurpleConnection instance |
|
2d41781914e7
Document the protocol whiteboard and chat interfaces
Gary Kramlich <grim@reaperworld.com>
parents:
39592
diff
changeset
|
1020 | * @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
|
1021 | * components |
|
2d41781914e7
Document the protocol whiteboard and chat interfaces
Gary Kramlich <grim@reaperworld.com>
parents:
39592
diff
changeset
|
1022 | * |
|
2d41781914e7
Document the protocol whiteboard and chat interfaces
Gary Kramlich <grim@reaperworld.com>
parents:
39592
diff
changeset
|
1023 | * 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
|
1024 | * the details if you know. |
|
2d41781914e7
Document the protocol whiteboard and chat interfaces
Gary Kramlich <grim@reaperworld.com>
parents:
39592
diff
changeset
|
1025 | * |
|
2d41781914e7
Document the protocol whiteboard and chat interfaces
Gary Kramlich <grim@reaperworld.com>
parents:
39592
diff
changeset
|
1026 | * Since: 3.0.0 |
|
2d41781914e7
Document the protocol whiteboard and chat interfaces
Gary Kramlich <grim@reaperworld.com>
parents:
39592
diff
changeset
|
1027 | */ |
|
38745
f4376b1f4682
A ton more of introspection cleanups
Gary Kramlich <grim@reaperworld.com>
parents:
37167
diff
changeset
|
1028 | void purple_protocol_chat_iface_reject(PurpleProtocol *protocol, |
|
f4376b1f4682
A ton more of introspection cleanups
Gary Kramlich <grim@reaperworld.com>
parents:
37167
diff
changeset
|
1029 | PurpleConnection *connection, GHashTable *components); |
|
36718
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
1030 | |
|
39593
2d41781914e7
Document the protocol whiteboard and chat interfaces
Gary Kramlich <grim@reaperworld.com>
parents:
39592
diff
changeset
|
1031 | /** |
|
2d41781914e7
Document the protocol whiteboard and chat interfaces
Gary Kramlich <grim@reaperworld.com>
parents:
39592
diff
changeset
|
1032 | * purple_protocol_chat_iface_get_name: |
|
2d41781914e7
Document the protocol whiteboard and chat interfaces
Gary Kramlich <grim@reaperworld.com>
parents:
39592
diff
changeset
|
1033 | * @protocol: The #PurpleProtocol instance |
|
2d41781914e7
Document the protocol whiteboard and chat interfaces
Gary Kramlich <grim@reaperworld.com>
parents:
39592
diff
changeset
|
1034 | * @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
|
1035 | * components |
|
2d41781914e7
Document the protocol whiteboard and chat interfaces
Gary Kramlich <grim@reaperworld.com>
parents:
39592
diff
changeset
|
1036 | * |
|
39595
0c9f3c4f1afb
Various typo and whitespace fixes found in review
Gary Kramlich <grim@reaperworld.com>
parents:
39594
diff
changeset
|
1037 | * Gets the name from @components. |
|
39593
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 | * 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
|
1040 | * |
|
2d41781914e7
Document the protocol whiteboard and chat interfaces
Gary Kramlich <grim@reaperworld.com>
parents:
39592
diff
changeset
|
1041 | * Since: 3.0.0 |
|
2d41781914e7
Document the protocol whiteboard and chat interfaces
Gary Kramlich <grim@reaperworld.com>
parents:
39592
diff
changeset
|
1042 | */ |
|
38745
f4376b1f4682
A ton more of introspection cleanups
Gary Kramlich <grim@reaperworld.com>
parents:
37167
diff
changeset
|
1043 | 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
|
1044 | GHashTable *components); |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
1045 | |
|
39593
2d41781914e7
Document the protocol whiteboard and chat interfaces
Gary Kramlich <grim@reaperworld.com>
parents:
39592
diff
changeset
|
1046 | /** |
|
2d41781914e7
Document the protocol whiteboard and chat interfaces
Gary Kramlich <grim@reaperworld.com>
parents:
39592
diff
changeset
|
1047 | * purple_protocol_chat_iface_invite: |
|
2d41781914e7
Document the protocol whiteboard and chat interfaces
Gary Kramlich <grim@reaperworld.com>
parents:
39592
diff
changeset
|
1048 | * @protocol: The #PurpleProtocol instance |
|
2d41781914e7
Document the protocol whiteboard and chat interfaces
Gary Kramlich <grim@reaperworld.com>
parents:
39592
diff
changeset
|
1049 | * @connection: The #PurpleConnection instance |
|
2d41781914e7
Document the protocol whiteboard and chat interfaces
Gary Kramlich <grim@reaperworld.com>
parents:
39592
diff
changeset
|
1050 | * @id: The id of the chat |
|
2d41781914e7
Document the protocol whiteboard and chat interfaces
Gary Kramlich <grim@reaperworld.com>
parents:
39592
diff
changeset
|
1051 | * @message: The invite message |
|
2d41781914e7
Document the protocol whiteboard and chat interfaces
Gary Kramlich <grim@reaperworld.com>
parents:
39592
diff
changeset
|
1052 | * @who: The target of the invite |
|
2d41781914e7
Document the protocol whiteboard and chat interfaces
Gary Kramlich <grim@reaperworld.com>
parents:
39592
diff
changeset
|
1053 | * |
|
2d41781914e7
Document the protocol whiteboard and chat interfaces
Gary Kramlich <grim@reaperworld.com>
parents:
39592
diff
changeset
|
1054 | * Sends an invite to @who with @message. |
|
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 | void purple_protocol_chat_iface_invite(PurpleProtocol *protocol, |
|
f4376b1f4682
A ton more of introspection cleanups
Gary Kramlich <grim@reaperworld.com>
parents:
37167
diff
changeset
|
1059 | 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
|
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_leave: |
|
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 | * @id: The id of the chat |
|
2d41781914e7
Document the protocol whiteboard and chat interfaces
Gary Kramlich <grim@reaperworld.com>
parents:
39592
diff
changeset
|
1066 | * |
|
2d41781914e7
Document the protocol whiteboard and chat interfaces
Gary Kramlich <grim@reaperworld.com>
parents:
39592
diff
changeset
|
1067 | * Leaves the chat identified by @id. |
|
2d41781914e7
Document the protocol whiteboard and chat interfaces
Gary Kramlich <grim@reaperworld.com>
parents:
39592
diff
changeset
|
1068 | * |
|
2d41781914e7
Document the protocol whiteboard and chat interfaces
Gary Kramlich <grim@reaperworld.com>
parents:
39592
diff
changeset
|
1069 | * Since: 3.0.0 |
|
2d41781914e7
Document the protocol whiteboard and chat interfaces
Gary Kramlich <grim@reaperworld.com>
parents:
39592
diff
changeset
|
1070 | */ |
|
38745
f4376b1f4682
A ton more of introspection cleanups
Gary Kramlich <grim@reaperworld.com>
parents:
37167
diff
changeset
|
1071 | 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
|
1072 | int id); |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
1073 | |
|
39593
2d41781914e7
Document the protocol whiteboard and chat interfaces
Gary Kramlich <grim@reaperworld.com>
parents:
39592
diff
changeset
|
1074 | /** |
|
39595
0c9f3c4f1afb
Various typo and whitespace fixes found in review
Gary Kramlich <grim@reaperworld.com>
parents:
39594
diff
changeset
|
1075 | * purple_protocol_chat_iface_send: |
|
39593
2d41781914e7
Document the protocol whiteboard and chat interfaces
Gary Kramlich <grim@reaperworld.com>
parents:
39592
diff
changeset
|
1076 | * @protocol: The #PurpleProtocol instance |
|
2d41781914e7
Document the protocol whiteboard and chat interfaces
Gary Kramlich <grim@reaperworld.com>
parents:
39592
diff
changeset
|
1077 | * @connection: The #PurpleConnection instance |
|
2d41781914e7
Document the protocol whiteboard and chat interfaces
Gary Kramlich <grim@reaperworld.com>
parents:
39592
diff
changeset
|
1078 | * @id: The id of the chat |
|
2d41781914e7
Document the protocol whiteboard and chat interfaces
Gary Kramlich <grim@reaperworld.com>
parents:
39592
diff
changeset
|
1079 | * @msg: The message to send |
|
2d41781914e7
Document the protocol whiteboard and chat interfaces
Gary Kramlich <grim@reaperworld.com>
parents:
39592
diff
changeset
|
1080 | * |
|
2d41781914e7
Document the protocol whiteboard and chat interfaces
Gary Kramlich <grim@reaperworld.com>
parents:
39592
diff
changeset
|
1081 | * 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
|
1082 | * |
|
2d41781914e7
Document the protocol whiteboard and chat interfaces
Gary Kramlich <grim@reaperworld.com>
parents:
39592
diff
changeset
|
1083 | * 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
|
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 | int purple_protocol_chat_iface_send(PurpleProtocol *protocol, PurpleConnection *connection, |
| 37148 | 1088 | int id, PurpleMessage *msg); |
|
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_user_real_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 | * @gc: The #PurpleConnection instance |
|
2d41781914e7
Document the protocol whiteboard and chat interfaces
Gary Kramlich <grim@reaperworld.com>
parents:
39592
diff
changeset
|
1094 | * @id: The id of the chat |
|
2d41781914e7
Document the protocol whiteboard and chat interfaces
Gary Kramlich <grim@reaperworld.com>
parents:
39592
diff
changeset
|
1095 | * @who: The username |
|
2d41781914e7
Document the protocol whiteboard and chat interfaces
Gary Kramlich <grim@reaperworld.com>
parents:
39592
diff
changeset
|
1096 | * |
|
2d41781914e7
Document the protocol whiteboard and chat interfaces
Gary Kramlich <grim@reaperworld.com>
parents:
39592
diff
changeset
|
1097 | * Gets the real name of @who. |
|
2d41781914e7
Document the protocol whiteboard and chat interfaces
Gary Kramlich <grim@reaperworld.com>
parents:
39592
diff
changeset
|
1098 | * |
|
2d41781914e7
Document the protocol whiteboard and chat interfaces
Gary Kramlich <grim@reaperworld.com>
parents:
39592
diff
changeset
|
1099 | * Returns: (transfer full): The realname of @who. |
|
2d41781914e7
Document the protocol whiteboard and chat interfaces
Gary Kramlich <grim@reaperworld.com>
parents:
39592
diff
changeset
|
1100 | * |
|
2d41781914e7
Document the protocol whiteboard and chat interfaces
Gary Kramlich <grim@reaperworld.com>
parents:
39592
diff
changeset
|
1101 | * Since: 3.0.0 |
|
2d41781914e7
Document the protocol whiteboard and chat interfaces
Gary Kramlich <grim@reaperworld.com>
parents:
39592
diff
changeset
|
1102 | */ |
|
38745
f4376b1f4682
A ton more of introspection cleanups
Gary Kramlich <grim@reaperworld.com>
parents:
37167
diff
changeset
|
1103 | 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
|
1104 | PurpleConnection *gc, int id, const char *who); |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
1105 | |
|
39593
2d41781914e7
Document the protocol whiteboard and chat interfaces
Gary Kramlich <grim@reaperworld.com>
parents:
39592
diff
changeset
|
1106 | /** |
|
2d41781914e7
Document the protocol whiteboard and chat interfaces
Gary Kramlich <grim@reaperworld.com>
parents:
39592
diff
changeset
|
1107 | * purple_protocol_chat_iface_set_topic: |
|
2d41781914e7
Document the protocol whiteboard and chat interfaces
Gary Kramlich <grim@reaperworld.com>
parents:
39592
diff
changeset
|
1108 | * @protocol: The #PurpleProtocol instance |
|
2d41781914e7
Document the protocol whiteboard and chat interfaces
Gary Kramlich <grim@reaperworld.com>
parents:
39592
diff
changeset
|
1109 | * @gc: The #PurpleConnection instance |
|
2d41781914e7
Document the protocol whiteboard and chat interfaces
Gary Kramlich <grim@reaperworld.com>
parents:
39592
diff
changeset
|
1110 | * @id: The id of the chat |
|
2d41781914e7
Document the protocol whiteboard and chat interfaces
Gary Kramlich <grim@reaperworld.com>
parents:
39592
diff
changeset
|
1111 | * @topic: The new topic |
|
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 | * 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
|
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_set_topic(PurpleProtocol *protocol, |
|
36718
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
1118 | PurpleConnection *gc, int id, const char *topic); |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
1119 | |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
1120 | /**************************************************************************/ |
|
37090
c45c70779582
Remove @name from new plugin and protocol stuff
Ankit Vani <a@nevitus.org>
parents:
37089
diff
changeset
|
1121 | /* Protocol Privacy Interface API */ |
|
36718
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
1122 | /**************************************************************************/ |
|
36566
029a5f652427
Moved all of protocol API to protocol.h
Ankit Vani <a@nevitus.org>
parents:
36564
diff
changeset
|
1123 | |
|
36617
be16459a68e9
Finished implementation of protocol object and interface stuff in protocol.[ch].
Ankit Vani <a@nevitus.org>
parents:
36613
diff
changeset
|
1124 | /** |
|
37036
a8e12bcb0a74
Convert the new .h files for this branch for gtk-doc
Ankit Vani <a@nevitus.org>
parents:
37034
diff
changeset
|
1125 | * 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
|
1126 | * |
|
37073
baf45dc13ffd
Fix some gtk-doc warnings in protocol(s).h (not all)
Ankit Vani <a@nevitus.org>
parents:
37062
diff
changeset
|
1127 | * 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
|
1128 | * |
|
3b42f3b5f643
Add since tags and remove stuff from ChangeLog.API
Gary Kramlich <grim@reaperworld.com>
parents:
39593
diff
changeset
|
1129 | * 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
|
1130 | */ |
|
36718
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
1131 | 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
|
1132 | |
|
39592
445e2cf29f4d
Start of cleaning up missing docs in protocol.h
Gary Kramlich <grim@reaperworld.com>
parents:
39521
diff
changeset
|
1133 | /** |
|
445e2cf29f4d
Start of cleaning up missing docs in protocol.h
Gary Kramlich <grim@reaperworld.com>
parents:
39521
diff
changeset
|
1134 | * 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
|
1135 | * @protocol: The #PurpleProtocol instance. |
|
445e2cf29f4d
Start of cleaning up missing docs in protocol.h
Gary Kramlich <grim@reaperworld.com>
parents:
39521
diff
changeset
|
1136 | * @connection: The #PurpleConnection instance. |
|
445e2cf29f4d
Start of cleaning up missing docs in protocol.h
Gary Kramlich <grim@reaperworld.com>
parents:
39521
diff
changeset
|
1137 | * @name: The username to permit. |
|
445e2cf29f4d
Start of cleaning up missing docs in protocol.h
Gary Kramlich <grim@reaperworld.com>
parents:
39521
diff
changeset
|
1138 | * |
|
445e2cf29f4d
Start of cleaning up missing docs in protocol.h
Gary Kramlich <grim@reaperworld.com>
parents:
39521
diff
changeset
|
1139 | * 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
|
1140 | * contact the user. |
|
39594
3b42f3b5f643
Add since tags and remove stuff from ChangeLog.API
Gary Kramlich <grim@reaperworld.com>
parents:
39593
diff
changeset
|
1141 | * |
|
3b42f3b5f643
Add since tags and remove stuff from ChangeLog.API
Gary Kramlich <grim@reaperworld.com>
parents:
39593
diff
changeset
|
1142 | * Since: 3.0.0 |
|
39592
445e2cf29f4d
Start of cleaning up missing docs in protocol.h
Gary Kramlich <grim@reaperworld.com>
parents:
39521
diff
changeset
|
1143 | */ |
|
38745
f4376b1f4682
A ton more of introspection cleanups
Gary Kramlich <grim@reaperworld.com>
parents:
37167
diff
changeset
|
1144 | 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
|
1145 | 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
|
1146 | |
|
39592
445e2cf29f4d
Start of cleaning up missing docs in protocol.h
Gary Kramlich <grim@reaperworld.com>
parents:
39521
diff
changeset
|
1147 | /** |
|
445e2cf29f4d
Start of cleaning up missing docs in protocol.h
Gary Kramlich <grim@reaperworld.com>
parents:
39521
diff
changeset
|
1148 | * 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
|
1149 | * @protocol: The #PurpleProtocol instance. |
|
445e2cf29f4d
Start of cleaning up missing docs in protocol.h
Gary Kramlich <grim@reaperworld.com>
parents:
39521
diff
changeset
|
1150 | * @connection: The #PurpleConnection instance. |
|
445e2cf29f4d
Start of cleaning up missing docs in protocol.h
Gary Kramlich <grim@reaperworld.com>
parents:
39521
diff
changeset
|
1151 | * @name: The username to deny. |
|
445e2cf29f4d
Start of cleaning up missing docs in protocol.h
Gary Kramlich <grim@reaperworld.com>
parents:
39521
diff
changeset
|
1152 | * |
|
445e2cf29f4d
Start of cleaning up missing docs in protocol.h
Gary Kramlich <grim@reaperworld.com>
parents:
39521
diff
changeset
|
1153 | * 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
|
1154 | * contacting the user. |
|
39594
3b42f3b5f643
Add since tags and remove stuff from ChangeLog.API
Gary Kramlich <grim@reaperworld.com>
parents:
39593
diff
changeset
|
1155 | * |
|
3b42f3b5f643
Add since tags and remove stuff from ChangeLog.API
Gary Kramlich <grim@reaperworld.com>
parents:
39593
diff
changeset
|
1156 | * Since: 3.0.0 |
|
39592
445e2cf29f4d
Start of cleaning up missing docs in protocol.h
Gary Kramlich <grim@reaperworld.com>
parents:
39521
diff
changeset
|
1157 | */ |
|
38745
f4376b1f4682
A ton more of introspection cleanups
Gary Kramlich <grim@reaperworld.com>
parents:
37167
diff
changeset
|
1158 | 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
|
1159 | 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
|
1160 | |
|
39592
445e2cf29f4d
Start of cleaning up missing docs in protocol.h
Gary Kramlich <grim@reaperworld.com>
parents:
39521
diff
changeset
|
1161 | /** |
|
445e2cf29f4d
Start of cleaning up missing docs in protocol.h
Gary Kramlich <grim@reaperworld.com>
parents:
39521
diff
changeset
|
1162 | * 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
|
1163 | * @protocol: The #PurpleProtocol instance. |
|
445e2cf29f4d
Start of cleaning up missing docs in protocol.h
Gary Kramlich <grim@reaperworld.com>
parents:
39521
diff
changeset
|
1164 | * @connection: The #PurpleConnection instance. |
|
445e2cf29f4d
Start of cleaning up missing docs in protocol.h
Gary Kramlich <grim@reaperworld.com>
parents:
39521
diff
changeset
|
1165 | * @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
|
1166 | * |
|
445e2cf29f4d
Start of cleaning up missing docs in protocol.h
Gary Kramlich <grim@reaperworld.com>
parents:
39521
diff
changeset
|
1167 | * 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
|
1168 | * |
|
3b42f3b5f643
Add since tags and remove stuff from ChangeLog.API
Gary Kramlich <grim@reaperworld.com>
parents:
39593
diff
changeset
|
1169 | * Since: 3.0.0 |
|
39592
445e2cf29f4d
Start of cleaning up missing docs in protocol.h
Gary Kramlich <grim@reaperworld.com>
parents:
39521
diff
changeset
|
1170 | */ |
|
38745
f4376b1f4682
A ton more of introspection cleanups
Gary Kramlich <grim@reaperworld.com>
parents:
37167
diff
changeset
|
1171 | 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
|
1172 | 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
|
1173 | |
|
39592
445e2cf29f4d
Start of cleaning up missing docs in protocol.h
Gary Kramlich <grim@reaperworld.com>
parents:
39521
diff
changeset
|
1174 | /** |
|
445e2cf29f4d
Start of cleaning up missing docs in protocol.h
Gary Kramlich <grim@reaperworld.com>
parents:
39521
diff
changeset
|
1175 | * 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
|
1176 | * @protocol: The #PurpleProtocol instance. |
|
445e2cf29f4d
Start of cleaning up missing docs in protocol.h
Gary Kramlich <grim@reaperworld.com>
parents:
39521
diff
changeset
|
1177 | * @connection: The #PurpleConnection instance. |
|
445e2cf29f4d
Start of cleaning up missing docs in protocol.h
Gary Kramlich <grim@reaperworld.com>
parents:
39521
diff
changeset
|
1178 | * @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
|
1179 | * |
|
445e2cf29f4d
Start of cleaning up missing docs in protocol.h
Gary Kramlich <grim@reaperworld.com>
parents:
39521
diff
changeset
|
1180 | * 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
|
1181 | * |
|
3b42f3b5f643
Add since tags and remove stuff from ChangeLog.API
Gary Kramlich <grim@reaperworld.com>
parents:
39593
diff
changeset
|
1182 | * Since: 3.0.0 |
|
39592
445e2cf29f4d
Start of cleaning up missing docs in protocol.h
Gary Kramlich <grim@reaperworld.com>
parents:
39521
diff
changeset
|
1183 | */ |
|
38745
f4376b1f4682
A ton more of introspection cleanups
Gary Kramlich <grim@reaperworld.com>
parents:
37167
diff
changeset
|
1184 | 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
|
1185 | 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
|
1186 | |
|
39592
445e2cf29f4d
Start of cleaning up missing docs in protocol.h
Gary Kramlich <grim@reaperworld.com>
parents:
39521
diff
changeset
|
1187 | /** |
|
445e2cf29f4d
Start of cleaning up missing docs in protocol.h
Gary Kramlich <grim@reaperworld.com>
parents:
39521
diff
changeset
|
1188 | * 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
|
1189 | * @protocol: The #PurpleProtocol instance. |
|
445e2cf29f4d
Start of cleaning up missing docs in protocol.h
Gary Kramlich <grim@reaperworld.com>
parents:
39521
diff
changeset
|
1190 | * @connection: The #PurpleConnection instance. |
|
445e2cf29f4d
Start of cleaning up missing docs in protocol.h
Gary Kramlich <grim@reaperworld.com>
parents:
39521
diff
changeset
|
1191 | * |
|
445e2cf29f4d
Start of cleaning up missing docs in protocol.h
Gary Kramlich <grim@reaperworld.com>
parents:
39521
diff
changeset
|
1192 | * 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
|
1193 | * |
|
3b42f3b5f643
Add since tags and remove stuff from ChangeLog.API
Gary Kramlich <grim@reaperworld.com>
parents:
39593
diff
changeset
|
1194 | * Since: 3.0.0 |
|
39592
445e2cf29f4d
Start of cleaning up missing docs in protocol.h
Gary Kramlich <grim@reaperworld.com>
parents:
39521
diff
changeset
|
1195 | */ |
|
38745
f4376b1f4682
A ton more of introspection cleanups
Gary Kramlich <grim@reaperworld.com>
parents:
37167
diff
changeset
|
1196 | 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
|
1197 | PurpleConnection *connection); |
|
36564
2d423b459d4b
Declared functions to call interface methods from PurpleProtocol * objects
Ankit Vani <a@nevitus.org>
parents:
36563
diff
changeset
|
1198 | |
|
36718
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
1199 | /**************************************************************************/ |
|
37090
c45c70779582
Remove @name from new plugin and protocol stuff
Ankit Vani <a@nevitus.org>
parents:
37089
diff
changeset
|
1200 | /* Protocol Media Interface API */ |
|
36718
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
1201 | /**************************************************************************/ |
|
36564
2d423b459d4b
Declared functions to call interface methods from PurpleProtocol * objects
Ankit Vani <a@nevitus.org>
parents:
36563
diff
changeset
|
1202 | |
|
36718
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
1203 | /** |
|
37036
a8e12bcb0a74
Convert the new .h files for this branch for gtk-doc
Ankit Vani <a@nevitus.org>
parents:
37034
diff
changeset
|
1204 | * 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
|
1205 | * |
|
37073
baf45dc13ffd
Fix some gtk-doc warnings in protocol(s).h (not all)
Ankit Vani <a@nevitus.org>
parents:
37062
diff
changeset
|
1206 | * 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
|
1207 | * |
|
3b42f3b5f643
Add since tags and remove stuff from ChangeLog.API
Gary Kramlich <grim@reaperworld.com>
parents:
39593
diff
changeset
|
1208 | * Since: 3.0.0 |
|
36718
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
1209 | */ |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
1210 | 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
|
1211 | |
|
39592
445e2cf29f4d
Start of cleaning up missing docs in protocol.h
Gary Kramlich <grim@reaperworld.com>
parents:
39521
diff
changeset
|
1212 | /** |
|
445e2cf29f4d
Start of cleaning up missing docs in protocol.h
Gary Kramlich <grim@reaperworld.com>
parents:
39521
diff
changeset
|
1213 | * 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
|
1214 | * @protocol: The #PurpleProtocol instance. |
|
445e2cf29f4d
Start of cleaning up missing docs in protocol.h
Gary Kramlich <grim@reaperworld.com>
parents:
39521
diff
changeset
|
1215 | * @account: The #PurpleAccount instance. |
|
445e2cf29f4d
Start of cleaning up missing docs in protocol.h
Gary Kramlich <grim@reaperworld.com>
parents:
39521
diff
changeset
|
1216 | * @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
|
1217 | * @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
|
1218 | * |
|
445e2cf29f4d
Start of cleaning up missing docs in protocol.h
Gary Kramlich <grim@reaperworld.com>
parents:
39521
diff
changeset
|
1219 | * 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
|
1220 | * |
|
445e2cf29f4d
Start of cleaning up missing docs in protocol.h
Gary Kramlich <grim@reaperworld.com>
parents:
39521
diff
changeset
|
1221 | * 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
|
1222 | * |
|
3b42f3b5f643
Add since tags and remove stuff from ChangeLog.API
Gary Kramlich <grim@reaperworld.com>
parents:
39593
diff
changeset
|
1223 | * Since: 3.0.0 |
|
39592
445e2cf29f4d
Start of cleaning up missing docs in protocol.h
Gary Kramlich <grim@reaperworld.com>
parents:
39521
diff
changeset
|
1224 | */ |
|
38745
f4376b1f4682
A ton more of introspection cleanups
Gary Kramlich <grim@reaperworld.com>
parents:
37167
diff
changeset
|
1225 | 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
|
1226 | 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
|
1227 | |
|
39592
445e2cf29f4d
Start of cleaning up missing docs in protocol.h
Gary Kramlich <grim@reaperworld.com>
parents:
39521
diff
changeset
|
1228 | /** |
|
445e2cf29f4d
Start of cleaning up missing docs in protocol.h
Gary Kramlich <grim@reaperworld.com>
parents:
39521
diff
changeset
|
1229 | * 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
|
1230 | * @protocol: The #PurpleProtocol instance. |
|
445e2cf29f4d
Start of cleaning up missing docs in protocol.h
Gary Kramlich <grim@reaperworld.com>
parents:
39521
diff
changeset
|
1231 | * @account: The #PurpleAccount instance. |
|
445e2cf29f4d
Start of cleaning up missing docs in protocol.h
Gary Kramlich <grim@reaperworld.com>
parents:
39521
diff
changeset
|
1232 | * @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
|
1233 | * |
|
39595
0c9f3c4f1afb
Various typo and whitespace fixes found in review
Gary Kramlich <grim@reaperworld.com>
parents:
39594
diff
changeset
|
1234 | * 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
|
1235 | * available. |
|
39592
445e2cf29f4d
Start of cleaning up missing docs in protocol.h
Gary Kramlich <grim@reaperworld.com>
parents:
39521
diff
changeset
|
1236 | * |
|
39595
0c9f3c4f1afb
Various typo and whitespace fixes found in review
Gary Kramlich <grim@reaperworld.com>
parents:
39594
diff
changeset
|
1237 | * 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
|
1238 | * |
|
3b42f3b5f643
Add since tags and remove stuff from ChangeLog.API
Gary Kramlich <grim@reaperworld.com>
parents:
39593
diff
changeset
|
1239 | * Since: 3.0.0 |
|
39592
445e2cf29f4d
Start of cleaning up missing docs in protocol.h
Gary Kramlich <grim@reaperworld.com>
parents:
39521
diff
changeset
|
1240 | */ |
|
38745
f4376b1f4682
A ton more of introspection cleanups
Gary Kramlich <grim@reaperworld.com>
parents:
37167
diff
changeset
|
1241 | 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
|
1242 | 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
|
1243 | |
|
39592
445e2cf29f4d
Start of cleaning up missing docs in protocol.h
Gary Kramlich <grim@reaperworld.com>
parents:
39521
diff
changeset
|
1244 | /** |
|
445e2cf29f4d
Start of cleaning up missing docs in protocol.h
Gary Kramlich <grim@reaperworld.com>
parents:
39521
diff
changeset
|
1245 | * 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
|
1246 | * @protocol: The #PurpleProtocol instance. |
|
445e2cf29f4d
Start of cleaning up missing docs in protocol.h
Gary Kramlich <grim@reaperworld.com>
parents:
39521
diff
changeset
|
1247 | * @media: The #PurpleMedia instance. |
|
445e2cf29f4d
Start of cleaning up missing docs in protocol.h
Gary Kramlich <grim@reaperworld.com>
parents:
39521
diff
changeset
|
1248 | * @dtmf: A DTMF to send. |
|
445e2cf29f4d
Start of cleaning up missing docs in protocol.h
Gary Kramlich <grim@reaperworld.com>
parents:
39521
diff
changeset
|
1249 | * @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
|
1250 | * @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
|
1251 | * |
|
445e2cf29f4d
Start of cleaning up missing docs in protocol.h
Gary Kramlich <grim@reaperworld.com>
parents:
39521
diff
changeset
|
1252 | * 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
|
1253 | * 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
|
1254 | * |
|
445e2cf29f4d
Start of cleaning up missing docs in protocol.h
Gary Kramlich <grim@reaperworld.com>
parents:
39521
diff
changeset
|
1255 | * 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
|
1256 | * |
|
445e2cf29f4d
Start of cleaning up missing docs in protocol.h
Gary Kramlich <grim@reaperworld.com>
parents:
39521
diff
changeset
|
1257 | * 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
|
1258 | * |
|
3b42f3b5f643
Add since tags and remove stuff from ChangeLog.API
Gary Kramlich <grim@reaperworld.com>
parents:
39593
diff
changeset
|
1259 | * Since: 3.0.0 |
|
39592
445e2cf29f4d
Start of cleaning up missing docs in protocol.h
Gary Kramlich <grim@reaperworld.com>
parents:
39521
diff
changeset
|
1260 | */ |
|
38745
f4376b1f4682
A ton more of introspection cleanups
Gary Kramlich <grim@reaperworld.com>
parents:
37167
diff
changeset
|
1261 | 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
|
1262 | 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
|
1263 | |
|
36718
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
1264 | /**************************************************************************/ |
|
37090
c45c70779582
Remove @name from new plugin and protocol stuff
Ankit Vani <a@nevitus.org>
parents:
37089
diff
changeset
|
1265 | /* Protocol Factory Interface API */ |
|
36718
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
1266 | /**************************************************************************/ |
|
36564
2d423b459d4b
Declared functions to call interface methods from PurpleProtocol * objects
Ankit Vani <a@nevitus.org>
parents:
36563
diff
changeset
|
1267 | |
|
36718
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
1268 | /** |
|
37036
a8e12bcb0a74
Convert the new .h files for this branch for gtk-doc
Ankit Vani <a@nevitus.org>
parents:
37034
diff
changeset
|
1269 | * 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
|
1270 | * |
|
37073
baf45dc13ffd
Fix some gtk-doc warnings in protocol(s).h (not all)
Ankit Vani <a@nevitus.org>
parents:
37062
diff
changeset
|
1271 | * 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
|
1272 | */ |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
1273 | 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
|
1274 | |
|
38745
f4376b1f4682
A ton more of introspection cleanups
Gary Kramlich <grim@reaperworld.com>
parents:
37167
diff
changeset
|
1275 | /** |
|
f4376b1f4682
A ton more of introspection cleanups
Gary Kramlich <grim@reaperworld.com>
parents:
37167
diff
changeset
|
1276 | * purple_protocol_factory_iface_connection_new: (skip) |
|
f4376b1f4682
A ton more of introspection cleanups
Gary Kramlich <grim@reaperworld.com>
parents:
37167
diff
changeset
|
1277 | */ |
|
f4376b1f4682
A ton more of introspection cleanups
Gary Kramlich <grim@reaperworld.com>
parents:
37167
diff
changeset
|
1278 | 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
|
1279 | 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
|
1280 | |
|
38745
f4376b1f4682
A ton more of introspection cleanups
Gary Kramlich <grim@reaperworld.com>
parents:
37167
diff
changeset
|
1281 | /** |
|
f4376b1f4682
A ton more of introspection cleanups
Gary Kramlich <grim@reaperworld.com>
parents:
37167
diff
changeset
|
1282 | * purple_protocol_factory_iface_roomlist_new: (skip) |
|
f4376b1f4682
A ton more of introspection cleanups
Gary Kramlich <grim@reaperworld.com>
parents:
37167
diff
changeset
|
1283 | */ |
|
f4376b1f4682
A ton more of introspection cleanups
Gary Kramlich <grim@reaperworld.com>
parents:
37167
diff
changeset
|
1284 | 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
|
1285 | PurpleAccount *account); |
|
36564
2d423b459d4b
Declared functions to call interface methods from PurpleProtocol * objects
Ankit Vani <a@nevitus.org>
parents:
36563
diff
changeset
|
1286 | |
|
38745
f4376b1f4682
A ton more of introspection cleanups
Gary Kramlich <grim@reaperworld.com>
parents:
37167
diff
changeset
|
1287 | /** |
|
f4376b1f4682
A ton more of introspection cleanups
Gary Kramlich <grim@reaperworld.com>
parents:
37167
diff
changeset
|
1288 | * purple_protocol_factory_iface_whiteboard_new: (skip) |
|
f4376b1f4682
A ton more of introspection cleanups
Gary Kramlich <grim@reaperworld.com>
parents:
37167
diff
changeset
|
1289 | */ |
|
f4376b1f4682
A ton more of introspection cleanups
Gary Kramlich <grim@reaperworld.com>
parents:
37167
diff
changeset
|
1290 | 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
|
1291 | 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
|
1292 | |
|
36563
5ecb9a6c4611
Added protocol.[ch] and moved PurpleProtocol and PurpleProtocolInterface to it
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
1293 | G_END_DECLS |
|
5ecb9a6c4611
Added protocol.[ch] and moved PurpleProtocol and PurpleProtocolInterface to it
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
1294 | |
|
39659
e4dfb99b0cef
Fix libpurple header guards using reserved names.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39597
diff
changeset
|
1295 | #endif /* PURPLE_PROTOCOL_H */ |