Fri, 11 Apr 2014 16:23:12 +0530
Merged default branch
|
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 | |
| 22 | #ifndef _PURPLE_PROTOCOL_H_ | |
| 23 | #define _PURPLE_PROTOCOL_H_ | |
|
37060
e5206d7698e5
Add section blocks for plugins.h, protocol.h, protocols.h
Ankit Vani <a@nevitus.org>
parents:
37054
diff
changeset
|
24 | /** |
|
e5206d7698e5
Add section blocks for plugins.h, protocol.h, protocols.h
Ankit Vani <a@nevitus.org>
parents:
37054
diff
changeset
|
25 | * SECTION:protocol |
|
e5206d7698e5
Add section blocks for plugins.h, protocol.h, protocols.h
Ankit Vani <a@nevitus.org>
parents:
37054
diff
changeset
|
26 | * @section_id: libpurple-protocol |
|
e5206d7698e5
Add section blocks for plugins.h, protocol.h, protocols.h
Ankit Vani <a@nevitus.org>
parents:
37054
diff
changeset
|
27 | * @short_description: <filename>protocol.h</filename> |
| 37062 | 28 | * @title: Protocol Object and Interfaces |
|
37060
e5206d7698e5
Add section blocks for plugins.h, protocol.h, protocols.h
Ankit Vani <a@nevitus.org>
parents:
37054
diff
changeset
|
29 | */ |
|
36563
5ecb9a6c4611
Added protocol.[ch] and moved PurpleProtocol and PurpleProtocolInterface to it
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
30 | |
|
36718
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
31 | #define PURPLE_TYPE_PROTOCOL (purple_protocol_get_type()) |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
32 | #define PURPLE_PROTOCOL(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), PURPLE_TYPE_PROTOCOL, PurpleProtocol)) |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
33 | #define PURPLE_PROTOCOL_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), PURPLE_TYPE_PROTOCOL, PurpleProtocolClass)) |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
34 | #define PURPLE_IS_PROTOCOL(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), PURPLE_TYPE_PROTOCOL)) |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
35 | #define PURPLE_IS_PROTOCOL_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass), PURPLE_TYPE_PROTOCOL)) |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
36 | #define PURPLE_PROTOCOL_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), PURPLE_TYPE_PROTOCOL, PurpleProtocolClass)) |
|
36563
5ecb9a6c4611
Added protocol.[ch] and moved PurpleProtocol and PurpleProtocolInterface to it
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
37 | |
|
5ecb9a6c4611
Added protocol.[ch] and moved PurpleProtocol and PurpleProtocolInterface to it
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
38 | typedef struct _PurpleProtocol PurpleProtocol; |
|
5ecb9a6c4611
Added protocol.[ch] and moved PurpleProtocol and PurpleProtocolInterface to it
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
39 | typedef struct _PurpleProtocolClass PurpleProtocolClass; |
|
5ecb9a6c4611
Added protocol.[ch] and moved PurpleProtocol and PurpleProtocolInterface to it
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
40 | |
| 36569 | 41 | #include "account.h" |
|
36581
09d5842255a2
Added missing includes and functions to headers
Ankit Vani <a@nevitus.org>
parents:
36580
diff
changeset
|
42 | #include "accountopt.h" |
|
36624
38043ecaf4a6
Finished implementing functions for protocols.[ch].
Ankit Vani <a@nevitus.org>
parents:
36621
diff
changeset
|
43 | #include "buddyicon.h" |
| 36569 | 44 | #include "buddylist.h" |
| 45 | #include "connection.h" | |
| 46 | #include "conversations.h" | |
|
36613
0e96218aa13a
Refactored the protocols to use the new macros, to allow for static or dynamic loading of types as configured
Ankit Vani <a@nevitus.org>
parents:
36611
diff
changeset
|
47 | #include "debug.h" |
|
36688
e49025233301
Merged soc.2013.gobjectification branch
Ankit Vani <a@nevitus.org>
parents:
36686
diff
changeset
|
48 | #include "xfer.h" |
| 37134 | 49 | #include "image.h" |
|
36609
637155f87448
Refactored the protocols to use purple_buddy_icon_spec_new()
Ankit Vani <a@nevitus.org>
parents:
36608
diff
changeset
|
50 | #include "media.h" |
|
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" |
| 36569 | 53 | #include "roomlist.h" |
| 36587 | 54 | #include "status.h" |
| 36569 | 55 | #include "whiteboard.h" |
| 56 | ||
|
36563
5ecb9a6c4611
Added protocol.[ch] and moved PurpleProtocol and PurpleProtocolInterface to it
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
57 | /** |
|
37036
a8e12bcb0a74
Convert the new .h files for this branch for gtk-doc
Ankit Vani <a@nevitus.org>
parents:
37034
diff
changeset
|
58 | * PurpleProtocolOverrideFlags: |
|
a8e12bcb0a74
Convert the new .h files for this branch for gtk-doc
Ankit Vani <a@nevitus.org>
parents:
37034
diff
changeset
|
59 | * |
|
36686
9807e4acf281
Added PurpleProtocolOverrideFlags and purple_protocol_override()
Ankit Vani <a@nevitus.org>
parents:
36682
diff
changeset
|
60 | * Flags to indicate what base protocol's data a derived protocol wants to |
|
9807e4acf281
Added PurpleProtocolOverrideFlags and purple_protocol_override()
Ankit Vani <a@nevitus.org>
parents:
36682
diff
changeset
|
61 | * override. |
|
9807e4acf281
Added PurpleProtocolOverrideFlags and purple_protocol_override()
Ankit Vani <a@nevitus.org>
parents:
36682
diff
changeset
|
62 | * |
|
37091
fb174197abb2
Remove @see in new plugin and protocol stuff
Ankit Vani <a@nevitus.org>
parents:
37090
diff
changeset
|
63 | * See purple_protocol_override(). |
|
36686
9807e4acf281
Added PurpleProtocolOverrideFlags and purple_protocol_override()
Ankit Vani <a@nevitus.org>
parents:
36682
diff
changeset
|
64 | */ |
|
9807e4acf281
Added PurpleProtocolOverrideFlags and purple_protocol_override()
Ankit Vani <a@nevitus.org>
parents:
36682
diff
changeset
|
65 | typedef enum /*< flags >*/ |
|
9807e4acf281
Added PurpleProtocolOverrideFlags and purple_protocol_override()
Ankit Vani <a@nevitus.org>
parents:
36682
diff
changeset
|
66 | { |
|
9807e4acf281
Added PurpleProtocolOverrideFlags and purple_protocol_override()
Ankit Vani <a@nevitus.org>
parents:
36682
diff
changeset
|
67 | PURPLE_PROTOCOL_OVERRIDE_USER_SPLITS = 1 << 1, |
|
9807e4acf281
Added PurpleProtocolOverrideFlags and purple_protocol_override()
Ankit Vani <a@nevitus.org>
parents:
36682
diff
changeset
|
68 | PURPLE_PROTOCOL_OVERRIDE_PROTOCOL_OPTIONS = 1 << 2, |
|
9807e4acf281
Added PurpleProtocolOverrideFlags and purple_protocol_override()
Ankit Vani <a@nevitus.org>
parents:
36682
diff
changeset
|
69 | PURPLE_PROTOCOL_OVERRIDE_ICON_SPEC = 1 << 3, |
|
9807e4acf281
Added PurpleProtocolOverrideFlags and purple_protocol_override()
Ankit Vani <a@nevitus.org>
parents:
36682
diff
changeset
|
70 | } PurpleProtocolOverrideFlags; |
|
9807e4acf281
Added PurpleProtocolOverrideFlags and purple_protocol_override()
Ankit Vani <a@nevitus.org>
parents:
36682
diff
changeset
|
71 | |
|
9807e4acf281
Added PurpleProtocolOverrideFlags and purple_protocol_override()
Ankit Vani <a@nevitus.org>
parents:
36682
diff
changeset
|
72 | /** |
|
37036
a8e12bcb0a74
Convert the new .h files for this branch for gtk-doc
Ankit Vani <a@nevitus.org>
parents:
37034
diff
changeset
|
73 | * PurpleProtocol: |
|
37038
8832d14d7d0c
Rename 'protocol_options' field of PurpleProtocol to more appropriate 'account_options'
Ankit Vani <a@nevitus.org>
parents:
37036
diff
changeset
|
74 | * @id: Protocol ID |
|
8832d14d7d0c
Rename 'protocol_options' field of PurpleProtocol to more appropriate 'account_options'
Ankit Vani <a@nevitus.org>
parents:
37036
diff
changeset
|
75 | * @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
|
76 | * @options: Protocol options |
|
8832d14d7d0c
Rename 'protocol_options' field of PurpleProtocol to more appropriate 'account_options'
Ankit Vani <a@nevitus.org>
parents:
37036
diff
changeset
|
77 | * @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
|
78 | * @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
|
79 | * @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
|
80 | * @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
|
81 | * |
|
36563
5ecb9a6c4611
Added protocol.[ch] and moved PurpleProtocol and PurpleProtocolInterface to it
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
82 | * 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
|
83 | * 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
|
84 | */ |
|
5ecb9a6c4611
Added protocol.[ch] and moved PurpleProtocol and PurpleProtocolInterface to it
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
85 | struct _PurpleProtocol |
|
5ecb9a6c4611
Added protocol.[ch] and moved PurpleProtocol and PurpleProtocolInterface to it
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
86 | { |
|
5ecb9a6c4611
Added protocol.[ch] and moved PurpleProtocol and PurpleProtocolInterface to it
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
87 | GObject gparent; |
|
5ecb9a6c4611
Added protocol.[ch] and moved PurpleProtocol and PurpleProtocolInterface to it
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
88 | |
|
37073
baf45dc13ffd
Fix some gtk-doc warnings in protocol(s).h (not all)
Ankit Vani <a@nevitus.org>
parents:
37062
diff
changeset
|
89 | /*< public >*/ |
|
37036
a8e12bcb0a74
Convert the new .h files for this branch for gtk-doc
Ankit Vani <a@nevitus.org>
parents:
37034
diff
changeset
|
90 | const char *id; |
|
a8e12bcb0a74
Convert the new .h files for this branch for gtk-doc
Ankit Vani <a@nevitus.org>
parents:
37034
diff
changeset
|
91 | const char *name; |
|
36563
5ecb9a6c4611
Added protocol.[ch] and moved PurpleProtocol and PurpleProtocolInterface to it
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
92 | |
|
37036
a8e12bcb0a74
Convert the new .h files for this branch for gtk-doc
Ankit Vani <a@nevitus.org>
parents:
37034
diff
changeset
|
93 | PurpleProtocolOptions options; |
|
36563
5ecb9a6c4611
Added protocol.[ch] and moved PurpleProtocol and PurpleProtocolInterface to it
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
94 | |
|
37036
a8e12bcb0a74
Convert the new .h files for this branch for gtk-doc
Ankit Vani <a@nevitus.org>
parents:
37034
diff
changeset
|
95 | 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
|
96 | GList *account_options; |
|
36563
5ecb9a6c4611
Added protocol.[ch] and moved PurpleProtocol and PurpleProtocolInterface to it
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
97 | |
|
37036
a8e12bcb0a74
Convert the new .h files for this branch for gtk-doc
Ankit Vani <a@nevitus.org>
parents:
37034
diff
changeset
|
98 | PurpleBuddyIconSpec *icon_spec; |
|
a8e12bcb0a74
Convert the new .h files for this branch for gtk-doc
Ankit Vani <a@nevitus.org>
parents:
37034
diff
changeset
|
99 | PurpleWhiteboardOps *whiteboard_ops; |
|
36564
2d423b459d4b
Declared functions to call interface methods from PurpleProtocol * objects
Ankit Vani <a@nevitus.org>
parents:
36563
diff
changeset
|
100 | |
|
36896
3865997e388b
Merged soc.2013.gobjectification branch
Ankit Vani <a@nevitus.org>
parents:
36731
diff
changeset
|
101 | /*< private >*/ |
|
36563
5ecb9a6c4611
Added protocol.[ch] and moved PurpleProtocol and PurpleProtocolInterface to it
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
102 | void (*_purple_reserved1)(void); |
|
5ecb9a6c4611
Added protocol.[ch] and moved PurpleProtocol and PurpleProtocolInterface to it
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
103 | void (*_purple_reserved2)(void); |
|
5ecb9a6c4611
Added protocol.[ch] and moved PurpleProtocol and PurpleProtocolInterface to it
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
104 | void (*_purple_reserved3)(void); |
|
5ecb9a6c4611
Added protocol.[ch] and moved PurpleProtocol and PurpleProtocolInterface to it
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
105 | void (*_purple_reserved4)(void); |
|
5ecb9a6c4611
Added protocol.[ch] and moved PurpleProtocol and PurpleProtocolInterface to it
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
106 | }; |
|
5ecb9a6c4611
Added protocol.[ch] and moved PurpleProtocol and PurpleProtocolInterface to it
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
107 | |
|
5ecb9a6c4611
Added protocol.[ch] and moved PurpleProtocol and PurpleProtocolInterface to it
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
108 | /** |
|
37036
a8e12bcb0a74
Convert the new .h files for this branch for gtk-doc
Ankit Vani <a@nevitus.org>
parents:
37034
diff
changeset
|
109 | * PurpleProtocolClass: |
|
37086
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
110 | * @login: Log in to the server. |
|
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
111 | * @close: Close connection with the server. |
|
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
112 | * @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
|
113 | * 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
|
114 | * @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
|
115 | * 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
|
116 | * 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
|
117 | * 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
|
118 | * |
|
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
|
119 | * The base class for all protocols. |
|
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 | * 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
|
122 | */ |
|
37086
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
123 | /* 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
|
124 | purple_protocols_add(). |
|
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
125 | */ |
|
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
|
126 | 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
|
127 | { |
|
9c38716c8eb7
Moved protocol class members to instance. Protocol definitions now require *_init, *_class_init instead of *_base_init.
Ankit Vani <a@nevitus.org>
parents:
36680
diff
changeset
|
128 | GObjectClass parent_class; |
|
36717
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
129 | |
|
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
130 | void (*login)(PurpleAccount *); |
|
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
131 | |
|
36731
38de3f22e864
Renamed close_connection back to close
Ankit Vani <a@nevitus.org>
parents:
36722
diff
changeset
|
132 | void (*close)(PurpleConnection *); |
|
36717
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
133 | |
|
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
134 | GList *(*status_types)(PurpleAccount *account); |
|
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
135 | |
|
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
136 | 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
|
137 | |
|
36896
3865997e388b
Merged soc.2013.gobjectification branch
Ankit Vani <a@nevitus.org>
parents:
36731
diff
changeset
|
138 | /*< private >*/ |
|
36717
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
139 | void (*_purple_reserved1)(void); |
|
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
140 | void (*_purple_reserved2)(void); |
|
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
141 | void (*_purple_reserved3)(void); |
|
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
142 | 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
|
143 | }; |
|
9c38716c8eb7
Moved protocol class members to instance. Protocol definitions now require *_init, *_class_init instead of *_base_init.
Ankit Vani <a@nevitus.org>
parents:
36680
diff
changeset
|
144 | |
|
36718
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
145 | #define PURPLE_TYPE_PROTOCOL_CLIENT_IFACE (purple_protocol_client_iface_get_type()) |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
146 | |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
147 | typedef struct _PurpleProtocolClientIface PurpleProtocolClientIface; |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
148 | |
|
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
|
149 | /** |
|
37036
a8e12bcb0a74
Convert the new .h files for this branch for gtk-doc
Ankit Vani <a@nevitus.org>
parents:
37034
diff
changeset
|
150 | * PurpleProtocolClientIface: |
|
37086
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
151 | * @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
|
152 | * 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
|
153 | * of the account. |
|
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
154 | * @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
|
155 | * 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
|
156 | * display as relevant |
|
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
157 | * @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
|
158 | * 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
|
159 | * @tooltip_text: Allows the protocol to add text to a buddy's tooltip. |
|
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
160 | * @blist_node_menu: Returns a list of #PurpleMenuAction structs, which |
|
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
161 | * 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
|
162 | * right-click menu for @node. |
|
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
163 | * @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
|
164 | * validity. |
|
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
165 | * <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
|
166 | * 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
|
167 | * 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
|
168 | * 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
|
169 | * %NULL in such case. |
|
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
170 | * <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
|
171 | * %NULL. |
|
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
172 | * <sbr/>@who: The username to convert. |
|
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
173 | * <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
|
174 | * @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
|
175 | * <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
|
176 | * 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
|
177 | * @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
|
178 | * 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
|
179 | * 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
|
180 | * 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
|
181 | * 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
|
182 | * <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
|
183 | * <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
|
184 | * %NULL. |
|
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
185 | * <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
|
186 | * The hash table should be destroyed |
|
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
187 | * 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
|
188 | * needed. |
|
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
189 | * @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
|
190 | * "mood" set to %NULL. |
|
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
191 | * @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
|
192 | * conversation. |
|
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
193 | * <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
|
194 | * conversation-specific variables, like channel or |
|
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
195 | * buddy's name length. |
|
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
196 | * <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
|
197 | * 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
|
198 | * <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
|
199 | * more than one byte), |
|
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
200 | * <sbr/> - formatting, |
|
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
201 | * <sbr/> - used special characters. |
|
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
202 | * <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
|
203 | * get safe minimum for the protocol. |
|
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
204 | * <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
|
205 | * -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
|
206 | * |
|
36717
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
207 | * The protocol client interface. |
|
36682
cf89caae5d1e
List the required protocol implementations in PurpleProtocolInterface's documentation
Ankit Vani <a@nevitus.org>
parents:
36681
diff
changeset
|
208 | * |
|
36717
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
209 | * 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
|
210 | */ |
|
36718
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
211 | struct _PurpleProtocolClientIface |
|
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 | /*< private >*/ |
|
5ecb9a6c4611
Added protocol.[ch] and moved PurpleProtocol and PurpleProtocolInterface to it
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
214 | GTypeInterface parent_iface; |
|
5ecb9a6c4611
Added protocol.[ch] and moved PurpleProtocol and PurpleProtocolInterface to it
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
215 | |
|
37073
baf45dc13ffd
Fix some gtk-doc warnings in protocol(s).h (not all)
Ankit Vani <a@nevitus.org>
parents:
37062
diff
changeset
|
216 | /*< public >*/ |
|
36563
5ecb9a6c4611
Added protocol.[ch] and moved PurpleProtocol and PurpleProtocolInterface to it
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
217 | GList *(*get_actions)(PurpleConnection *); |
|
5ecb9a6c4611
Added protocol.[ch] and moved PurpleProtocol and PurpleProtocolInterface to it
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
218 | |
|
5ecb9a6c4611
Added protocol.[ch] and moved PurpleProtocol and PurpleProtocolInterface to it
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
219 | 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
|
220 | |
|
5ecb9a6c4611
Added protocol.[ch] and moved PurpleProtocol and PurpleProtocolInterface to it
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
221 | char *(*status_text)(PurpleBuddy *buddy); |
|
5ecb9a6c4611
Added protocol.[ch] and moved PurpleProtocol and PurpleProtocolInterface to it
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
222 | |
|
36564
2d423b459d4b
Declared functions to call interface methods from PurpleProtocol * objects
Ankit Vani <a@nevitus.org>
parents:
36563
diff
changeset
|
223 | 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
|
224 | gboolean full); |
|
36563
5ecb9a6c4611
Added protocol.[ch] and moved PurpleProtocol and PurpleProtocolInterface to it
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
225 | |
|
5ecb9a6c4611
Added protocol.[ch] and moved PurpleProtocol and PurpleProtocolInterface to it
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
226 | 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
|
227 | |
|
36717
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
228 | void (*buddy_free)(PurpleBuddy *); |
|
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
229 | |
|
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
230 | void (*convo_closed)(PurpleConnection *, const char *who); |
|
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
231 | |
|
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
232 | 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
|
233 | |
|
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
234 | 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
|
235 | |
|
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
236 | gboolean (*offline_message)(const PurpleBuddy *buddy); |
|
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
237 | |
|
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
238 | 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
|
239 | |
|
36717
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
240 | 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
|
241 | |
|
36717
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
242 | gssize (*get_max_message_size)(PurpleConversation *conv); |
|
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
243 | }; |
|
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
244 | |
|
37092
3dca8b4caa7f
Move the HAS_IFACE and GET_IFACE macros after the iface structs
Ankit Vani <a@nevitus.org>
parents:
37091
diff
changeset
|
245 | #define PURPLE_PROTOCOL_HAS_CLIENT_IFACE(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), PURPLE_TYPE_PROTOCOL_CLIENT_IFACE)) |
|
3dca8b4caa7f
Move the HAS_IFACE and GET_IFACE macros after the iface structs
Ankit Vani <a@nevitus.org>
parents:
37091
diff
changeset
|
246 | #define PURPLE_PROTOCOL_GET_CLIENT_IFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE((obj), PURPLE_TYPE_PROTOCOL_CLIENT_IFACE, \ |
|
3dca8b4caa7f
Move the HAS_IFACE and GET_IFACE macros after the iface structs
Ankit Vani <a@nevitus.org>
parents:
37091
diff
changeset
|
247 | PurpleProtocolClientIface)) |
|
3dca8b4caa7f
Move the HAS_IFACE and GET_IFACE macros after the iface structs
Ankit Vani <a@nevitus.org>
parents:
37091
diff
changeset
|
248 | |
|
36718
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
249 | #define PURPLE_TYPE_PROTOCOL_SERVER_IFACE (purple_protocol_server_iface_get_type()) |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
250 | |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
251 | typedef struct _PurpleProtocolServerIface PurpleProtocolServerIface; |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
252 | |
|
36717
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
253 | /** |
|
37036
a8e12bcb0a74
Convert the new .h files for this branch for gtk-doc
Ankit Vani <a@nevitus.org>
parents:
37034
diff
changeset
|
254 | * PurpleProtocolServerIface: |
|
37086
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
255 | * @register_user: New user registration |
|
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
256 | * @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
|
257 | * 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
|
258 | * 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
|
259 | * @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
|
260 | * with @who's user info. |
|
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
261 | * @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
|
262 | * <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
|
263 | * 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
|
264 | * 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
|
265 | * 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
|
266 | * request authorization. |
|
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
267 | * <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
|
268 | * invite message. |
|
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
269 | * @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
|
270 | * 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
|
271 | * 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
|
272 | * the server to avoid being disconnected. ("Regularly" is |
| 37087 | 273 | * defined by <literal>KEEPALIVE_INTERVAL</literal> in |
|
37086
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
274 | * <filename>libpurple/connection.c</filename>.) |
|
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
275 | * @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
|
276 | * @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
|
277 | * @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
|
278 | * @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
|
279 | * protocol does <emphasis>NOT</emphasis> own a reference to |
| 37134 | 280 | * @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
|
281 | * itself. |
|
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
282 | * @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
|
283 | * protocol |
|
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
284 | * @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
|
285 | * 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
|
286 | * 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
|
287 | * <emphasis>asynchronously</emphasis> (if it knows |
|
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
288 | * 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
|
289 | * 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
|
290 | * the nickname is set successfully. See |
|
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
291 | * purple_account_set_public_alias(). |
|
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
292 | * <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
|
293 | * <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
|
294 | * account, or %NULL to unset the |
|
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
295 | * 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
|
296 | * protocol-specific "default"). |
|
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
297 | * <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
|
298 | * alias is set |
|
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
299 | * <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
|
300 | * public alias fails |
|
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
301 | * @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
|
302 | * 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
|
303 | * <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
|
304 | * 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
|
305 | * 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
|
306 | * the nickname is retrieved. See |
|
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
307 | * purple_account_get_public_alias(). |
|
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
308 | * <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
|
309 | * the alias |
|
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
310 | * <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
|
311 | * retrieved alias |
|
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
312 | * <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
|
313 | * 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
|
314 | * |
|
36717
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
315 | * The protocol server interface. |
|
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
316 | * |
|
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
317 | * 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
|
318 | */ |
|
36718
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
319 | struct _PurpleProtocolServerIface |
|
36717
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
320 | { |
|
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
321 | /*< private >*/ |
|
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
322 | GTypeInterface parent_iface; |
|
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
323 | |
|
37073
baf45dc13ffd
Fix some gtk-doc warnings in protocol(s).h (not all)
Ankit Vani <a@nevitus.org>
parents:
37062
diff
changeset
|
324 | /*< public >*/ |
|
36717
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
325 | void (*register_user)(PurpleAccount *); |
|
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
326 | |
|
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
327 | void (*unregister_user)(PurpleAccount *, PurpleAccountUnregistrationCb cb, |
|
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
328 | void *user_data); |
|
36563
5ecb9a6c4611
Added protocol.[ch] and moved PurpleProtocol and PurpleProtocolInterface to it
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
329 | |
|
5ecb9a6c4611
Added protocol.[ch] and moved PurpleProtocol and PurpleProtocolInterface to it
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
330 | void (*set_info)(PurpleConnection *, const char *info); |
|
5ecb9a6c4611
Added protocol.[ch] and moved PurpleProtocol and PurpleProtocolInterface to it
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
331 | |
|
5ecb9a6c4611
Added protocol.[ch] and moved PurpleProtocol and PurpleProtocolInterface to it
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
332 | void (*get_info)(PurpleConnection *, const char *who); |
|
37086
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
333 | |
|
36563
5ecb9a6c4611
Added protocol.[ch] and moved PurpleProtocol and PurpleProtocolInterface to it
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
334 | 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
|
335 | |
|
5ecb9a6c4611
Added protocol.[ch] and moved PurpleProtocol and PurpleProtocolInterface to it
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
336 | void (*set_idle)(PurpleConnection *, int idletime); |
|
37086
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
337 | |
|
36563
5ecb9a6c4611
Added protocol.[ch] and moved PurpleProtocol and PurpleProtocolInterface to it
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
338 | void (*change_passwd)(PurpleConnection *, const char *old_pass, |
|
5ecb9a6c4611
Added protocol.[ch] and moved PurpleProtocol and PurpleProtocolInterface to it
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
339 | const char *new_pass); |
|
5ecb9a6c4611
Added protocol.[ch] and moved PurpleProtocol and PurpleProtocolInterface to it
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
340 | |
|
36564
2d423b459d4b
Declared functions to call interface methods from PurpleProtocol * objects
Ankit Vani <a@nevitus.org>
parents:
36563
diff
changeset
|
341 | 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
|
342 | PurpleGroup *group, const char *message); |
|
37086
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
343 | |
|
36564
2d423b459d4b
Declared functions to call interface methods from PurpleProtocol * objects
Ankit Vani <a@nevitus.org>
parents:
36563
diff
changeset
|
344 | 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
|
345 | const char *message); |
|
37086
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
346 | |
|
36564
2d423b459d4b
Declared functions to call interface methods from PurpleProtocol * objects
Ankit Vani <a@nevitus.org>
parents:
36563
diff
changeset
|
347 | void (*remove_buddy)(PurpleConnection *, PurpleBuddy *buddy, |
|
2d423b459d4b
Declared functions to call interface methods from PurpleProtocol * objects
Ankit Vani <a@nevitus.org>
parents:
36563
diff
changeset
|
348 | PurpleGroup *group); |
|
37086
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
349 | |
|
36563
5ecb9a6c4611
Added protocol.[ch] and moved PurpleProtocol and PurpleProtocolInterface to it
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
350 | void (*remove_buddies)(PurpleConnection *, GList *buddies, GList *groups); |
|
36717
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
351 | |
|
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
352 | void (*keepalive)(PurpleConnection *); |
|
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
353 | |
|
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
354 | void (*alias_buddy)(PurpleConnection *, const char *who, |
|
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
355 | const char *alias); |
|
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 (*group_buddy)(PurpleConnection *, const char *who, |
|
37086
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
358 | 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
|
359 | |
|
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
360 | void (*rename_group)(PurpleConnection *, const char *old_name, |
|
37086
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
361 | PurpleGroup *group, GList *moved_buddies); |
|
36717
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
362 | |
| 37134 | 363 | void (*set_buddy_icon)(PurpleConnection *, PurpleImage *img); |
|
36717
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 (*remove_group)(PurpleConnection *gc, PurpleGroup *group); |
|
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
366 | |
|
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
367 | 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
|
368 | |
|
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
369 | 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
|
370 | PurpleSetPublicAliasSuccessCallback success_cb, |
|
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
371 | PurpleSetPublicAliasFailureCallback failure_cb); |
|
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
372 | |
|
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
373 | void (*get_public_alias)(PurpleConnection *gc, |
|
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
374 | PurpleGetPublicAliasSuccessCallback success_cb, |
|
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
375 | PurpleGetPublicAliasFailureCallback failure_cb); |
|
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
376 | }; |
|
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
377 | |
|
37092
3dca8b4caa7f
Move the HAS_IFACE and GET_IFACE macros after the iface structs
Ankit Vani <a@nevitus.org>
parents:
37091
diff
changeset
|
378 | #define PURPLE_PROTOCOL_HAS_SERVER_IFACE(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), PURPLE_TYPE_PROTOCOL_SERVER_IFACE)) |
|
3dca8b4caa7f
Move the HAS_IFACE and GET_IFACE macros after the iface structs
Ankit Vani <a@nevitus.org>
parents:
37091
diff
changeset
|
379 | #define PURPLE_PROTOCOL_GET_SERVER_IFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE((obj), PURPLE_TYPE_PROTOCOL_SERVER_IFACE, \ |
|
3dca8b4caa7f
Move the HAS_IFACE and GET_IFACE macros after the iface structs
Ankit Vani <a@nevitus.org>
parents:
37091
diff
changeset
|
380 | PurpleProtocolServerIface)) |
|
3dca8b4caa7f
Move the HAS_IFACE and GET_IFACE macros after the iface structs
Ankit Vani <a@nevitus.org>
parents:
37091
diff
changeset
|
381 | |
|
36718
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
382 | #define PURPLE_TYPE_PROTOCOL_IM_IFACE (purple_protocol_im_iface_get_type()) |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
383 | |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
384 | typedef struct _PurpleProtocolIMIface PurpleProtocolIMIface; |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
385 | |
|
36717
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
386 | /** |
|
37036
a8e12bcb0a74
Convert the new .h files for this branch for gtk-doc
Ankit Vani <a@nevitus.org>
parents:
37034
diff
changeset
|
387 | * PurpleProtocolIMIface: |
|
37086
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
388 | * @send: This protocol function should return a positive value on |
| 37087 | 389 | * success. If the message is too big to be sent, return |
| 390 | * <literal>-E2BIG</literal>. If the account is not connected, | |
| 391 | * return <literal>-ENOTCONN</literal>. If the protocol is unable | |
| 392 | * to send the message for another reason, return some other | |
| 393 | * negative value. You can use one of the valid #errno values, or | |
| 394 | * just big something. If the message should not be echoed to the | |
| 395 | * conversation window, return 0. | |
|
37086
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
396 | * @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
|
397 | * 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
|
398 | * 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
|
399 | * 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
|
400 | * 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
|
401 | * |
|
36717
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
402 | * The protocol IM interface. |
|
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
403 | * |
|
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
404 | * 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
|
405 | */ |
|
36718
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
406 | struct _PurpleProtocolIMIface |
|
36717
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
407 | { |
|
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
408 | /*< private >*/ |
|
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
409 | GTypeInterface parent_iface; |
|
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
410 | |
|
37073
baf45dc13ffd
Fix some gtk-doc warnings in protocol(s).h (not all)
Ankit Vani <a@nevitus.org>
parents:
37062
diff
changeset
|
411 | /*< public >*/ |
|
36718
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
412 | int (*send)(PurpleConnection *, const char *who, |
|
36717
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
413 | const char *message, |
|
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
414 | PurpleMessageFlags flags); |
|
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
415 | |
|
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
416 | unsigned int (*send_typing)(PurpleConnection *, const char *name, |
|
37086
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
417 | PurpleIMTypingState state); |
|
36717
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
418 | }; |
|
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
419 | |
|
37092
3dca8b4caa7f
Move the HAS_IFACE and GET_IFACE macros after the iface structs
Ankit Vani <a@nevitus.org>
parents:
37091
diff
changeset
|
420 | #define PURPLE_PROTOCOL_HAS_IM_IFACE(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), PURPLE_TYPE_PROTOCOL_IM_IFACE)) |
|
3dca8b4caa7f
Move the HAS_IFACE and GET_IFACE macros after the iface structs
Ankit Vani <a@nevitus.org>
parents:
37091
diff
changeset
|
421 | #define PURPLE_PROTOCOL_GET_IM_IFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE((obj), PURPLE_TYPE_PROTOCOL_IM_IFACE, \ |
|
3dca8b4caa7f
Move the HAS_IFACE and GET_IFACE macros after the iface structs
Ankit Vani <a@nevitus.org>
parents:
37091
diff
changeset
|
422 | PurpleProtocolIMIface)) |
|
3dca8b4caa7f
Move the HAS_IFACE and GET_IFACE macros after the iface structs
Ankit Vani <a@nevitus.org>
parents:
37091
diff
changeset
|
423 | |
|
36718
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
424 | #define PURPLE_TYPE_PROTOCOL_CHAT_IFACE (purple_protocol_chat_iface_get_type()) |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
425 | |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
426 | typedef struct _PurpleProtocolChatIface PurpleProtocolChatIface; |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
427 | |
|
36717
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
428 | /** |
|
37036
a8e12bcb0a74
Convert the new .h files for this branch for gtk-doc
Ankit Vani <a@nevitus.org>
parents:
37034
diff
changeset
|
429 | * PurpleProtocolChatIface: |
|
37086
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
430 | * @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
|
431 | * 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
|
432 | * 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
|
433 | * <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
|
434 | * @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
|
435 | * 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
|
436 | * @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
|
437 | * #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
|
438 | * #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
|
439 | * name from a hashtable. |
|
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
440 | * <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
|
441 | * <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
|
442 | * from @chat_name |
|
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
443 | * @join: Called when the user requests joining a chat. Should arrange for |
| 37101 | 444 | * 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
|
445 | * <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
|
446 | * 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
|
447 | * @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
|
448 | * invitation, in which case this matches the data |
| 37103 | 449 | * 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
|
450 | * @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
|
451 | * <sbr/>@components: A hashtable containing information required to |
| 37103 | 452 | * 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
|
453 | * @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
|
454 | * @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
|
455 | * chat name. |
|
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
456 | * <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
|
457 | * chat. |
|
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
458 | * @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
|
459 | * <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
|
460 | * <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
|
461 | * is received. |
|
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
462 | * <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
|
463 | * @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
|
464 | * <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
|
465 | * @whisper: Send a whisper to a user in a chat. |
|
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
466 | * <sbr/>@id: The id of the chat. |
|
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
467 | * <sbr/>@who: The name of the user to send the whisper to. |
|
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
468 | * <sbr/>@message: The message of the whisper. |
|
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
469 | * @send: Send a message to a chat. |
|
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
470 | * <sbr/>This protocol function should return a positive value on |
| 37087 | 471 | * success. If the message is too big to be sent, return |
| 472 | * <literal>-E2BIG</literal>. If the account is not connected, | |
| 473 | * return <literal>-ENOTCONN</literal>. If the protocol is unable | |
| 474 | * to send the message for another reason, return some other | |
| 475 | * negative value. You can use one of the valid #errno values, or | |
| 476 | * just big something. | |
|
37086
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
477 | * <sbr/>@id: The id of the chat to send the message to. |
|
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
478 | * <sbr/>@message: The message to send to the chat. |
|
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
479 | * <sbr/>@flags: A bitwise OR of #PurpleMessageFlags representing |
|
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
480 | * message flags. |
|
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
481 | * <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
|
482 | * 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
|
483 | * @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
|
484 | * 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
|
485 | * <literal>foo</literal> into |
|
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
486 | * <literal>room\@server/foo</literal>. |
|
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
487 | * <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
|
488 | * <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
|
489 | * <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
|
490 | * <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
|
491 | * 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
|
492 | * |
|
36717
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
493 | * The protocol chat interface. |
|
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
494 | * |
|
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
495 | * 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
|
496 | */ |
|
36718
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
497 | struct _PurpleProtocolChatIface |
|
36717
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
498 | { |
|
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
499 | /*< private >*/ |
|
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
500 | GTypeInterface parent_iface; |
|
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
501 | |
|
37073
baf45dc13ffd
Fix some gtk-doc warnings in protocol(s).h (not all)
Ankit Vani <a@nevitus.org>
parents:
37062
diff
changeset
|
502 | /*< public >*/ |
|
36718
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
503 | GList *(*info)(PurpleConnection *); |
|
36717
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
504 | |
|
37086
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
505 | GHashTable *(*info_defaults)(PurpleConnection *, const char *chat_name); |
|
36563
5ecb9a6c4611
Added protocol.[ch] and moved PurpleProtocol and PurpleProtocolInterface to it
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
506 | |
|
36718
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
507 | void (*join)(PurpleConnection *, GHashTable *components); |
|
36563
5ecb9a6c4611
Added protocol.[ch] and moved PurpleProtocol and PurpleProtocolInterface to it
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
508 | |
|
36718
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
509 | void (*reject)(PurpleConnection *, GHashTable *components); |
|
36563
5ecb9a6c4611
Added protocol.[ch] and moved PurpleProtocol and PurpleProtocolInterface to it
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
510 | |
|
36718
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
511 | 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
|
512 | |
|
36718
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
513 | void (*invite)(PurpleConnection *, int id, |
|
37086
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
514 | const char *message, const char *who); |
|
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
515 | |
|
36718
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
516 | void (*leave)(PurpleConnection *, int id); |
|
36563
5ecb9a6c4611
Added protocol.[ch] and moved PurpleProtocol and PurpleProtocolInterface to it
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
517 | |
|
36718
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
518 | void (*whisper)(PurpleConnection *, int id, |
|
37086
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
519 | const char *who, const char *message); |
|
36563
5ecb9a6c4611
Added protocol.[ch] and moved PurpleProtocol and PurpleProtocolInterface to it
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
520 | |
|
36718
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
521 | int (*send)(PurpleConnection *, int id, const char *message, |
|
36564
2d423b459d4b
Declared functions to call interface methods from PurpleProtocol * objects
Ankit Vani <a@nevitus.org>
parents:
36563
diff
changeset
|
522 | PurpleMessageFlags flags); |
|
36563
5ecb9a6c4611
Added protocol.[ch] and moved PurpleProtocol and PurpleProtocolInterface to it
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
523 | |
|
36718
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
524 | 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
|
525 | |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
526 | 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
|
527 | }; |
|
36563
5ecb9a6c4611
Added protocol.[ch] and moved PurpleProtocol and PurpleProtocolInterface to it
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
528 | |
|
37092
3dca8b4caa7f
Move the HAS_IFACE and GET_IFACE macros after the iface structs
Ankit Vani <a@nevitus.org>
parents:
37091
diff
changeset
|
529 | #define PURPLE_PROTOCOL_HAS_CHAT_IFACE(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), PURPLE_TYPE_PROTOCOL_CHAT_IFACE)) |
|
3dca8b4caa7f
Move the HAS_IFACE and GET_IFACE macros after the iface structs
Ankit Vani <a@nevitus.org>
parents:
37091
diff
changeset
|
530 | #define PURPLE_PROTOCOL_GET_CHAT_IFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE((obj), PURPLE_TYPE_PROTOCOL_CHAT_IFACE, \ |
|
3dca8b4caa7f
Move the HAS_IFACE and GET_IFACE macros after the iface structs
Ankit Vani <a@nevitus.org>
parents:
37091
diff
changeset
|
531 | PurpleProtocolChatIface)) |
|
3dca8b4caa7f
Move the HAS_IFACE and GET_IFACE macros after the iface structs
Ankit Vani <a@nevitus.org>
parents:
37091
diff
changeset
|
532 | |
|
36718
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
533 | #define PURPLE_TYPE_PROTOCOL_PRIVACY_IFACE (purple_protocol_privacy_iface_get_type()) |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
534 | |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
535 | typedef struct _PurpleProtocolPrivacyIface PurpleProtocolPrivacyIface; |
|
36563
5ecb9a6c4611
Added protocol.[ch] and moved PurpleProtocol and PurpleProtocolInterface to it
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
536 | |
|
36717
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
537 | /** |
|
37036
a8e12bcb0a74
Convert the new .h files for this branch for gtk-doc
Ankit Vani <a@nevitus.org>
parents:
37034
diff
changeset
|
538 | * PurpleProtocolPrivacyIface: |
|
a8e12bcb0a74
Convert the new .h files for this branch for gtk-doc
Ankit Vani <a@nevitus.org>
parents:
37034
diff
changeset
|
539 | * |
|
36717
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
540 | * The protocol privacy interface. |
|
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
541 | * |
|
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
542 | * 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
|
543 | */ |
|
36718
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
544 | struct _PurpleProtocolPrivacyIface |
|
36717
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
545 | { |
|
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
546 | /*< private >*/ |
|
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
547 | GTypeInterface parent_iface; |
|
36563
5ecb9a6c4611
Added protocol.[ch] and moved PurpleProtocol and PurpleProtocolInterface to it
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
548 | |
|
37073
baf45dc13ffd
Fix some gtk-doc warnings in protocol(s).h (not all)
Ankit Vani <a@nevitus.org>
parents:
37062
diff
changeset
|
549 | /*< public >*/ |
|
36717
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
550 | void (*add_permit)(PurpleConnection *, const char *name); |
|
37086
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
551 | |
|
36717
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
552 | void (*add_deny)(PurpleConnection *, const char *name); |
|
37086
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
553 | |
|
36717
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
554 | void (*rem_permit)(PurpleConnection *, const char *name); |
|
37086
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
555 | |
|
36717
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
556 | void (*rem_deny)(PurpleConnection *, const char *name); |
|
37086
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
557 | |
|
36717
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
558 | void (*set_permit_deny)(PurpleConnection *); |
|
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
559 | }; |
|
36563
5ecb9a6c4611
Added protocol.[ch] and moved PurpleProtocol and PurpleProtocolInterface to it
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
560 | |
|
37092
3dca8b4caa7f
Move the HAS_IFACE and GET_IFACE macros after the iface structs
Ankit Vani <a@nevitus.org>
parents:
37091
diff
changeset
|
561 | #define PURPLE_PROTOCOL_HAS_PRIVACY_IFACE(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), PURPLE_TYPE_PROTOCOL_PRIVACY_IFACE)) |
|
3dca8b4caa7f
Move the HAS_IFACE and GET_IFACE macros after the iface structs
Ankit Vani <a@nevitus.org>
parents:
37091
diff
changeset
|
562 | #define PURPLE_PROTOCOL_GET_PRIVACY_IFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE((obj), PURPLE_TYPE_PROTOCOL_PRIVACY_IFACE, \ |
|
3dca8b4caa7f
Move the HAS_IFACE and GET_IFACE macros after the iface structs
Ankit Vani <a@nevitus.org>
parents:
37091
diff
changeset
|
563 | PurpleProtocolPrivacyIface)) |
|
3dca8b4caa7f
Move the HAS_IFACE and GET_IFACE macros after the iface structs
Ankit Vani <a@nevitus.org>
parents:
37091
diff
changeset
|
564 | |
|
36718
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
565 | #define PURPLE_TYPE_PROTOCOL_XFER_IFACE (purple_protocol_xfer_iface_get_type()) |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
566 | |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
567 | typedef struct _PurpleProtocolXferIface PurpleProtocolXferIface; |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
568 | |
|
36717
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
569 | /** |
|
37036
a8e12bcb0a74
Convert the new .h files for this branch for gtk-doc
Ankit Vani <a@nevitus.org>
parents:
37034
diff
changeset
|
570 | * PurpleProtocolXferIface: |
|
a8e12bcb0a74
Convert the new .h files for this branch for gtk-doc
Ankit Vani <a@nevitus.org>
parents:
37034
diff
changeset
|
571 | * |
|
36717
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
572 | * The protocol file transfer interface. |
|
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
573 | * |
|
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
574 | * This interface provides file transfer callbacks for the protocol. |
|
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
575 | */ |
|
36718
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
576 | struct _PurpleProtocolXferIface |
|
36717
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
577 | { |
|
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
578 | /*< private >*/ |
|
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
579 | GTypeInterface parent_iface; |
|
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
580 | |
|
37073
baf45dc13ffd
Fix some gtk-doc warnings in protocol(s).h (not all)
Ankit Vani <a@nevitus.org>
parents:
37062
diff
changeset
|
581 | /*< public >*/ |
|
36718
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
582 | gboolean (*can_receive)(PurpleConnection *, const char *who); |
|
37086
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
583 | |
|
36718
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
584 | void (*send)(PurpleConnection *, const char *who, |
|
36564
2d423b459d4b
Declared functions to call interface methods from PurpleProtocol * objects
Ankit Vani <a@nevitus.org>
parents:
36563
diff
changeset
|
585 | const char *filename); |
|
37086
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
586 | |
|
36563
5ecb9a6c4611
Added protocol.[ch] and moved PurpleProtocol and PurpleProtocolInterface to it
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
587 | PurpleXfer *(*new_xfer)(PurpleConnection *, const char *who); |
|
36717
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
588 | }; |
|
36563
5ecb9a6c4611
Added protocol.[ch] and moved PurpleProtocol and PurpleProtocolInterface to it
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
589 | |
|
37092
3dca8b4caa7f
Move the HAS_IFACE and GET_IFACE macros after the iface structs
Ankit Vani <a@nevitus.org>
parents:
37091
diff
changeset
|
590 | #define PURPLE_PROTOCOL_HAS_XFER_IFACE(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), PURPLE_TYPE_PROTOCOL_XFER_IFACE)) |
|
3dca8b4caa7f
Move the HAS_IFACE and GET_IFACE macros after the iface structs
Ankit Vani <a@nevitus.org>
parents:
37091
diff
changeset
|
591 | #define PURPLE_PROTOCOL_GET_XFER_IFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE((obj), PURPLE_TYPE_PROTOCOL_XFER_IFACE, \ |
|
3dca8b4caa7f
Move the HAS_IFACE and GET_IFACE macros after the iface structs
Ankit Vani <a@nevitus.org>
parents:
37091
diff
changeset
|
592 | PurpleProtocolXferIface)) |
|
3dca8b4caa7f
Move the HAS_IFACE and GET_IFACE macros after the iface structs
Ankit Vani <a@nevitus.org>
parents:
37091
diff
changeset
|
593 | |
|
36718
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
594 | #define PURPLE_TYPE_PROTOCOL_ROOMLIST_IFACE (purple_protocol_roomlist_iface_get_type()) |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
595 | |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
596 | typedef struct _PurpleProtocolRoomlistIface PurpleProtocolRoomlistIface; |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
597 | |
|
36717
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
598 | /** |
|
37036
a8e12bcb0a74
Convert the new .h files for this branch for gtk-doc
Ankit Vani <a@nevitus.org>
parents:
37034
diff
changeset
|
599 | * PurpleProtocolRoomlistIface: |
|
a8e12bcb0a74
Convert the new .h files for this branch for gtk-doc
Ankit Vani <a@nevitus.org>
parents:
37034
diff
changeset
|
600 | * |
|
36717
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
601 | * The protocol roomlist interface. |
|
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
602 | * |
|
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
603 | * This interface provides callbacks for room listing. |
|
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
604 | */ |
|
36718
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
605 | struct _PurpleProtocolRoomlistIface |
|
36717
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
606 | { |
|
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
607 | /*< private >*/ |
|
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
608 | GTypeInterface parent_iface; |
|
36563
5ecb9a6c4611
Added protocol.[ch] and moved PurpleProtocol and PurpleProtocolInterface to it
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
609 | |
|
37073
baf45dc13ffd
Fix some gtk-doc warnings in protocol(s).h (not all)
Ankit Vani <a@nevitus.org>
parents:
37062
diff
changeset
|
610 | /*< public >*/ |
|
36718
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
611 | PurpleRoomlist *(*get_list)(PurpleConnection *gc); |
|
37086
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
612 | |
|
36718
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
613 | void (*cancel)(PurpleRoomlist *list); |
|
37086
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
614 | |
|
36718
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
615 | void (*expand_category)(PurpleRoomlist *list, |
|
37086
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
616 | PurpleRoomlistRoom *category); |
|
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
617 | |
|
36563
5ecb9a6c4611
Added protocol.[ch] and moved PurpleProtocol and PurpleProtocolInterface to it
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
618 | /* room list serialize */ |
|
36718
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
619 | char *(*room_serialize)(PurpleRoomlistRoom *room); |
|
36717
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
620 | }; |
|
36563
5ecb9a6c4611
Added protocol.[ch] and moved PurpleProtocol and PurpleProtocolInterface to it
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
621 | |
|
37092
3dca8b4caa7f
Move the HAS_IFACE and GET_IFACE macros after the iface structs
Ankit Vani <a@nevitus.org>
parents:
37091
diff
changeset
|
622 | #define PURPLE_PROTOCOL_HAS_ROOMLIST_IFACE(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), PURPLE_TYPE_PROTOCOL_ROOMLIST_IFACE)) |
|
3dca8b4caa7f
Move the HAS_IFACE and GET_IFACE macros after the iface structs
Ankit Vani <a@nevitus.org>
parents:
37091
diff
changeset
|
623 | #define PURPLE_PROTOCOL_GET_ROOMLIST_IFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE((obj), PURPLE_TYPE_PROTOCOL_ROOMLIST_IFACE, \ |
|
3dca8b4caa7f
Move the HAS_IFACE and GET_IFACE macros after the iface structs
Ankit Vani <a@nevitus.org>
parents:
37091
diff
changeset
|
624 | PurpleProtocolRoomlistIface)) |
|
3dca8b4caa7f
Move the HAS_IFACE and GET_IFACE macros after the iface structs
Ankit Vani <a@nevitus.org>
parents:
37091
diff
changeset
|
625 | |
|
36718
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
626 | #define PURPLE_TYPE_PROTOCOL_ATTENTION_IFACE (purple_protocol_attention_iface_get_type()) |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
627 | |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
628 | typedef struct _PurpleProtocolAttentionIface PurpleProtocolAttentionIface; |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
629 | |
|
36717
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
630 | /** |
|
37036
a8e12bcb0a74
Convert the new .h files for this branch for gtk-doc
Ankit Vani <a@nevitus.org>
parents:
37034
diff
changeset
|
631 | * PurpleProtocolAttentionIface: |
|
a8e12bcb0a74
Convert the new .h files for this branch for gtk-doc
Ankit Vani <a@nevitus.org>
parents:
37034
diff
changeset
|
632 | * |
|
36717
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
633 | * The protocol attention interface. |
|
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
634 | * |
|
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
635 | * This interface provides attention API for sending and receiving |
|
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
636 | * zaps/nudges/buzzes etc. |
|
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
637 | */ |
|
36718
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
638 | struct _PurpleProtocolAttentionIface |
|
36717
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
639 | { |
|
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
640 | /*< private >*/ |
|
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
641 | GTypeInterface parent_iface; |
|
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
642 | |
|
37073
baf45dc13ffd
Fix some gtk-doc warnings in protocol(s).h (not all)
Ankit Vani <a@nevitus.org>
parents:
37062
diff
changeset
|
643 | /*< public >*/ |
|
36718
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
644 | gboolean (*send)(PurpleConnection *gc, const char *username, |
|
36564
2d423b459d4b
Declared functions to call interface methods from PurpleProtocol * objects
Ankit Vani <a@nevitus.org>
parents:
36563
diff
changeset
|
645 | guint type); |
|
37086
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
646 | |
|
36718
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
647 | GList *(*get_types)(PurpleAccount *acct); |
|
36717
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
648 | }; |
|
36563
5ecb9a6c4611
Added protocol.[ch] and moved PurpleProtocol and PurpleProtocolInterface to it
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
649 | |
|
37092
3dca8b4caa7f
Move the HAS_IFACE and GET_IFACE macros after the iface structs
Ankit Vani <a@nevitus.org>
parents:
37091
diff
changeset
|
650 | #define PURPLE_PROTOCOL_HAS_ATTENTION_IFACE(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), PURPLE_TYPE_PROTOCOL_ATTENTION_IFACE)) |
|
3dca8b4caa7f
Move the HAS_IFACE and GET_IFACE macros after the iface structs
Ankit Vani <a@nevitus.org>
parents:
37091
diff
changeset
|
651 | #define PURPLE_PROTOCOL_GET_ATTENTION_IFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE((obj), PURPLE_TYPE_PROTOCOL_ATTENTION_IFACE, \ |
|
3dca8b4caa7f
Move the HAS_IFACE and GET_IFACE macros after the iface structs
Ankit Vani <a@nevitus.org>
parents:
37091
diff
changeset
|
652 | PurpleProtocolAttentionIface)) |
|
3dca8b4caa7f
Move the HAS_IFACE and GET_IFACE macros after the iface structs
Ankit Vani <a@nevitus.org>
parents:
37091
diff
changeset
|
653 | |
|
36718
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
654 | #define PURPLE_TYPE_PROTOCOL_MEDIA_IFACE (purple_protocol_media_iface_get_type()) |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
655 | |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
656 | typedef struct _PurpleProtocolMediaIface PurpleProtocolMediaIface; |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
657 | |
|
36717
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
658 | /** |
|
37036
a8e12bcb0a74
Convert the new .h files for this branch for gtk-doc
Ankit Vani <a@nevitus.org>
parents:
37034
diff
changeset
|
659 | * PurpleProtocolMediaIface: |
|
37086
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
660 | * @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
|
661 | * <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
|
662 | * on. |
|
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
663 | * <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
|
664 | * <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
|
665 | * <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
|
666 | * (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
|
667 | * will be successfully created) |
|
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
668 | * @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
|
669 | * media session. |
|
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
670 | * <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
|
671 | * <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
|
672 | * <sbr/>Returns: The media caps the contact supports. |
|
37036
a8e12bcb0a74
Convert the new .h files for this branch for gtk-doc
Ankit Vani <a@nevitus.org>
parents:
37034
diff
changeset
|
673 | * |
|
36717
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
674 | * The protocol media interface. |
|
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
675 | * |
|
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
676 | * 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
|
677 | */ |
|
36718
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
678 | struct _PurpleProtocolMediaIface |
|
36717
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
679 | { |
|
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
680 | /*< private >*/ |
|
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
681 | GTypeInterface parent_iface; |
|
36563
5ecb9a6c4611
Added protocol.[ch] and moved PurpleProtocol and PurpleProtocolInterface to it
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
682 | |
|
37073
baf45dc13ffd
Fix some gtk-doc warnings in protocol(s).h (not all)
Ankit Vani <a@nevitus.org>
parents:
37062
diff
changeset
|
683 | /*< public >*/ |
|
36718
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
684 | 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
|
685 | PurpleMediaSessionType type); |
|
5ecb9a6c4611
Added protocol.[ch] and moved PurpleProtocol and PurpleProtocolInterface to it
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
686 | |
|
36718
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
687 | 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
|
688 | const char *who); |
|
36717
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
689 | }; |
|
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
690 | |
|
37092
3dca8b4caa7f
Move the HAS_IFACE and GET_IFACE macros after the iface structs
Ankit Vani <a@nevitus.org>
parents:
37091
diff
changeset
|
691 | #define PURPLE_PROTOCOL_HAS_MEDIA_IFACE(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), PURPLE_TYPE_PROTOCOL_MEDIA_IFACE)) |
|
3dca8b4caa7f
Move the HAS_IFACE and GET_IFACE macros after the iface structs
Ankit Vani <a@nevitus.org>
parents:
37091
diff
changeset
|
692 | #define PURPLE_PROTOCOL_GET_MEDIA_IFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE((obj), PURPLE_TYPE_PROTOCOL_MEDIA_IFACE, \ |
|
3dca8b4caa7f
Move the HAS_IFACE and GET_IFACE macros after the iface structs
Ankit Vani <a@nevitus.org>
parents:
37091
diff
changeset
|
693 | PurpleProtocolMediaIface)) |
|
3dca8b4caa7f
Move the HAS_IFACE and GET_IFACE macros after the iface structs
Ankit Vani <a@nevitus.org>
parents:
37091
diff
changeset
|
694 | |
|
36718
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
695 | #define PURPLE_TYPE_PROTOCOL_FACTORY_IFACE (purple_protocol_factory_iface_get_type()) |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
696 | |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
697 | typedef struct _PurpleProtocolFactoryIface PurpleProtocolFactoryIface; |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
698 | |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
699 | /** |
|
37036
a8e12bcb0a74
Convert the new .h files for this branch for gtk-doc
Ankit Vani <a@nevitus.org>
parents:
37034
diff
changeset
|
700 | * PurpleProtocolFactoryIface: |
|
37086
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
701 | * @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
|
702 | * inherits #PurpleConnection. |
|
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
703 | * @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
|
704 | * inherits #PurpleRoomlist. |
|
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
705 | * @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
|
706 | * inherits #PurpleWhiteboard. |
|
b78048ba0fbb
Convert protocol interfaces doc to gtk-doc format
Ankit Vani <a@nevitus.org>
parents:
37084
diff
changeset
|
707 | * @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
|
708 | * inherits #PurpleXfer. |
|
37036
a8e12bcb0a74
Convert the new .h files for this branch for gtk-doc
Ankit Vani <a@nevitus.org>
parents:
37034
diff
changeset
|
709 | * |
|
36717
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
710 | * The protocol factory interface. |
|
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
711 | * |
|
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
712 | * 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
|
713 | * subclasses of some purple objects. |
|
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
714 | */ |
|
36718
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
715 | struct _PurpleProtocolFactoryIface |
|
36717
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
716 | { |
|
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
717 | /*< private >*/ |
|
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
718 | GTypeInterface parent_iface; |
|
36563
5ecb9a6c4611
Added protocol.[ch] and moved PurpleProtocol and PurpleProtocolInterface to it
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
719 | |
|
37073
baf45dc13ffd
Fix some gtk-doc warnings in protocol(s).h (not all)
Ankit Vani <a@nevitus.org>
parents:
37062
diff
changeset
|
720 | /*< public >*/ |
|
36717
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
721 | PurpleConnection *(*connection_new)(PurpleProtocol *protocol, |
|
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
722 | PurpleAccount *account, |
|
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
723 | const char *password); |
|
36563
5ecb9a6c4611
Added protocol.[ch] and moved PurpleProtocol and PurpleProtocolInterface to it
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
724 | |
|
36717
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
725 | PurpleRoomlist *(*roomlist_new)(PurpleAccount *account); |
|
36583
0582190c9382
Merged soc.2013.gobjectification branch
Ankit Vani <a@nevitus.org>
parents:
36581
diff
changeset
|
726 | |
|
36717
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
727 | PurpleWhiteboard *(*whiteboard_new)(PurpleAccount *account, |
|
36718
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
728 | const char *who, int state); |
|
36717
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
729 | |
|
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
730 | PurpleXfer *(*xfer_new)(PurpleAccount *account, PurpleXferType type, |
|
6c4736862534
Split up PurpleProtocolInterface into 10 smaller interfaces
Ankit Vani <a@nevitus.org>
parents:
36716
diff
changeset
|
731 | const char *who); |
|
36563
5ecb9a6c4611
Added protocol.[ch] and moved PurpleProtocol and PurpleProtocolInterface to it
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
732 | }; |
|
5ecb9a6c4611
Added protocol.[ch] and moved PurpleProtocol and PurpleProtocolInterface to it
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
733 | |
|
37092
3dca8b4caa7f
Move the HAS_IFACE and GET_IFACE macros after the iface structs
Ankit Vani <a@nevitus.org>
parents:
37091
diff
changeset
|
734 | #define PURPLE_PROTOCOL_HAS_FACTORY_IFACE(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), PURPLE_TYPE_PROTOCOL_FACTORY_IFACE)) |
|
3dca8b4caa7f
Move the HAS_IFACE and GET_IFACE macros after the iface structs
Ankit Vani <a@nevitus.org>
parents:
37091
diff
changeset
|
735 | #define PURPLE_PROTOCOL_GET_FACTORY_IFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE((obj), PURPLE_TYPE_PROTOCOL_FACTORY_IFACE, \ |
|
3dca8b4caa7f
Move the HAS_IFACE and GET_IFACE macros after the iface structs
Ankit Vani <a@nevitus.org>
parents:
37091
diff
changeset
|
736 | PurpleProtocolFactoryIface)) |
|
3dca8b4caa7f
Move the HAS_IFACE and GET_IFACE macros after the iface structs
Ankit Vani <a@nevitus.org>
parents:
37091
diff
changeset
|
737 | |
|
36718
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
738 | /** |
|
37036
a8e12bcb0a74
Convert the new .h files for this branch for gtk-doc
Ankit Vani <a@nevitus.org>
parents:
37034
diff
changeset
|
739 | * PURPLE_PROTOCOL_IMPLEMENTS: |
|
a8e12bcb0a74
Convert the new .h files for this branch for gtk-doc
Ankit Vani <a@nevitus.org>
parents:
37034
diff
changeset
|
740 | * @protocol: The protocol in which to check |
| 37087 | 741 | * @IFACE: The interface name in caps. e.g. <literal>CLIENT_IFACE</literal> |
|
37036
a8e12bcb0a74
Convert the new .h files for this branch for gtk-doc
Ankit Vani <a@nevitus.org>
parents:
37034
diff
changeset
|
742 | * @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
|
743 | * |
|
a8e12bcb0a74
Convert the new .h files for this branch for gtk-doc
Ankit Vani <a@nevitus.org>
parents:
37034
diff
changeset
|
744 | * 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
|
745 | * %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
|
746 | */ |
|
36720
465f02116328
Refactored account, blistnodetypes, buddylist, connection to use the new protocol interfaces
Ankit Vani <a@nevitus.org>
parents:
36718
diff
changeset
|
747 | #define PURPLE_PROTOCOL_IMPLEMENTS(protocol, IFACE, func) \ |
|
465f02116328
Refactored account, blistnodetypes, buddylist, connection to use the new protocol interfaces
Ankit Vani <a@nevitus.org>
parents:
36718
diff
changeset
|
748 | (PURPLE_PROTOCOL_HAS_##IFACE(protocol) && \ |
|
465f02116328
Refactored account, blistnodetypes, buddylist, connection to use the new protocol interfaces
Ankit Vani <a@nevitus.org>
parents:
36718
diff
changeset
|
749 | PURPLE_PROTOCOL_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
|
750 | |
|
36563
5ecb9a6c4611
Added protocol.[ch] and moved PurpleProtocol and PurpleProtocolInterface to it
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
751 | G_BEGIN_DECLS |
|
5ecb9a6c4611
Added protocol.[ch] and moved PurpleProtocol and PurpleProtocolInterface to it
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
752 | |
|
5ecb9a6c4611
Added protocol.[ch] and moved PurpleProtocol and PurpleProtocolInterface to it
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
753 | /**************************************************************************/ |
|
37090
c45c70779582
Remove @name from new plugin and protocol stuff
Ankit Vani <a@nevitus.org>
parents:
37089
diff
changeset
|
754 | /* Protocol Object API */ |
|
36563
5ecb9a6c4611
Added protocol.[ch] and moved PurpleProtocol and PurpleProtocolInterface to it
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
755 | /**************************************************************************/ |
|
5ecb9a6c4611
Added protocol.[ch] and moved PurpleProtocol and PurpleProtocolInterface to it
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
756 | |
|
36617
be16459a68e9
Finished implementation of protocol object and interface stuff in protocol.[ch].
Ankit Vani <a@nevitus.org>
parents:
36613
diff
changeset
|
757 | /** |
|
37036
a8e12bcb0a74
Convert the new .h files for this branch for gtk-doc
Ankit Vani <a@nevitus.org>
parents:
37034
diff
changeset
|
758 | * 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
|
759 | * |
|
37073
baf45dc13ffd
Fix some gtk-doc warnings in protocol(s).h (not all)
Ankit Vani <a@nevitus.org>
parents:
37062
diff
changeset
|
760 | * 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
|
761 | */ |
|
5ecb9a6c4611
Added protocol.[ch] and moved PurpleProtocol and PurpleProtocolInterface to it
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
762 | 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
|
763 | |
|
36617
be16459a68e9
Finished implementation of protocol object and interface stuff in protocol.[ch].
Ankit Vani <a@nevitus.org>
parents:
36613
diff
changeset
|
764 | /** |
|
37036
a8e12bcb0a74
Convert the new .h files for this branch for gtk-doc
Ankit Vani <a@nevitus.org>
parents:
37034
diff
changeset
|
765 | * 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
|
766 | * @protocol: The protocol. |
|
36581
09d5842255a2
Added missing includes and functions to headers
Ankit Vani <a@nevitus.org>
parents:
36580
diff
changeset
|
767 | * |
|
37036
a8e12bcb0a74
Convert the new .h files for this branch for gtk-doc
Ankit Vani <a@nevitus.org>
parents:
37034
diff
changeset
|
768 | * Returns the ID of a protocol. |
|
36581
09d5842255a2
Added missing includes and functions to headers
Ankit Vani <a@nevitus.org>
parents:
36580
diff
changeset
|
769 | * |
|
37034
9d6765962b22
Initial replacements for this branch
Ankit Vani <a@nevitus.org>
parents:
37023
diff
changeset
|
770 | * Returns: The ID of the protocol. |
|
36581
09d5842255a2
Added missing includes and functions to headers
Ankit Vani <a@nevitus.org>
parents:
36580
diff
changeset
|
771 | */ |
|
09d5842255a2
Added missing includes and functions to headers
Ankit Vani <a@nevitus.org>
parents:
36580
diff
changeset
|
772 | 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
|
773 | |
|
36617
be16459a68e9
Finished implementation of protocol object and interface stuff in protocol.[ch].
Ankit Vani <a@nevitus.org>
parents:
36613
diff
changeset
|
774 | /** |
|
37036
a8e12bcb0a74
Convert the new .h files for this branch for gtk-doc
Ankit Vani <a@nevitus.org>
parents:
37034
diff
changeset
|
775 | * 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
|
776 | * @protocol: The protocol. |
|
36581
09d5842255a2
Added missing includes and functions to headers
Ankit Vani <a@nevitus.org>
parents:
36580
diff
changeset
|
777 | * |
|
37036
a8e12bcb0a74
Convert the new .h files for this branch for gtk-doc
Ankit Vani <a@nevitus.org>
parents:
37034
diff
changeset
|
778 | * 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
|
779 | * |
|
37034
9d6765962b22
Initial replacements for this branch
Ankit Vani <a@nevitus.org>
parents:
37023
diff
changeset
|
780 | * 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
|
781 | */ |
|
09d5842255a2
Added missing includes and functions to headers
Ankit Vani <a@nevitus.org>
parents:
36580
diff
changeset
|
782 | 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
|
783 | |
|
36617
be16459a68e9
Finished implementation of protocol object and interface stuff in protocol.[ch].
Ankit Vani <a@nevitus.org>
parents:
36613
diff
changeset
|
784 | /** |
|
37036
a8e12bcb0a74
Convert the new .h files for this branch for gtk-doc
Ankit Vani <a@nevitus.org>
parents:
37034
diff
changeset
|
785 | * 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
|
786 | * @protocol: The protocol. |
|
36581
09d5842255a2
Added missing includes and functions to headers
Ankit Vani <a@nevitus.org>
parents:
36580
diff
changeset
|
787 | * |
|
37036
a8e12bcb0a74
Convert the new .h files for this branch for gtk-doc
Ankit Vani <a@nevitus.org>
parents:
37034
diff
changeset
|
788 | * Returns the options of a protocol. |
|
36581
09d5842255a2
Added missing includes and functions to headers
Ankit Vani <a@nevitus.org>
parents:
36580
diff
changeset
|
789 | * |
|
37034
9d6765962b22
Initial replacements for this branch
Ankit Vani <a@nevitus.org>
parents:
37023
diff
changeset
|
790 | * Returns: The options of the protocol. |
|
36581
09d5842255a2
Added missing includes and functions to headers
Ankit Vani <a@nevitus.org>
parents:
36580
diff
changeset
|
791 | */ |
|
09d5842255a2
Added missing includes and functions to headers
Ankit Vani <a@nevitus.org>
parents:
36580
diff
changeset
|
792 | 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
|
793 | |
|
36617
be16459a68e9
Finished implementation of protocol object and interface stuff in protocol.[ch].
Ankit Vani <a@nevitus.org>
parents:
36613
diff
changeset
|
794 | /** |
|
37036
a8e12bcb0a74
Convert the new .h files for this branch for gtk-doc
Ankit Vani <a@nevitus.org>
parents:
37034
diff
changeset
|
795 | * 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
|
796 | * @protocol: The protocol. |
|
36581
09d5842255a2
Added missing includes and functions to headers
Ankit Vani <a@nevitus.org>
parents:
36580
diff
changeset
|
797 | * |
|
37036
a8e12bcb0a74
Convert the new .h files for this branch for gtk-doc
Ankit Vani <a@nevitus.org>
parents:
37034
diff
changeset
|
798 | * 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
|
799 | * |
|
37034
9d6765962b22
Initial replacements for this branch
Ankit Vani <a@nevitus.org>
parents:
37023
diff
changeset
|
800 | * Returns: The user splits of the protocol. |
|
36581
09d5842255a2
Added missing includes and functions to headers
Ankit Vani <a@nevitus.org>
parents:
36580
diff
changeset
|
801 | */ |
|
09d5842255a2
Added missing includes and functions to headers
Ankit Vani <a@nevitus.org>
parents:
36580
diff
changeset
|
802 | 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
|
803 | |
|
36617
be16459a68e9
Finished implementation of protocol object and interface stuff in protocol.[ch].
Ankit Vani <a@nevitus.org>
parents:
36613
diff
changeset
|
804 | /** |
|
37038
8832d14d7d0c
Rename 'protocol_options' field of PurpleProtocol to more appropriate 'account_options'
Ankit Vani <a@nevitus.org>
parents:
37036
diff
changeset
|
805 | * purple_protocol_get_account_options: |
|
37034
9d6765962b22
Initial replacements for this branch
Ankit Vani <a@nevitus.org>
parents:
37023
diff
changeset
|
806 | * @protocol: The protocol. |
|
36581
09d5842255a2
Added missing includes and functions to headers
Ankit Vani <a@nevitus.org>
parents:
36580
diff
changeset
|
807 | * |
|
37036
a8e12bcb0a74
Convert the new .h files for this branch for gtk-doc
Ankit Vani <a@nevitus.org>
parents:
37034
diff
changeset
|
808 | * 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
|
809 | * |
|
a8e12bcb0a74
Convert the new .h files for this branch for gtk-doc
Ankit Vani <a@nevitus.org>
parents:
37034
diff
changeset
|
810 | * Returns: The account options for the protocol. |
|
36581
09d5842255a2
Added missing includes and functions to headers
Ankit Vani <a@nevitus.org>
parents:
36580
diff
changeset
|
811 | */ |
|
37038
8832d14d7d0c
Rename 'protocol_options' field of PurpleProtocol to more appropriate 'account_options'
Ankit Vani <a@nevitus.org>
parents:
37036
diff
changeset
|
812 | 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
|
813 | |
|
36617
be16459a68e9
Finished implementation of protocol object and interface stuff in protocol.[ch].
Ankit Vani <a@nevitus.org>
parents:
36613
diff
changeset
|
814 | /** |
|
37036
a8e12bcb0a74
Convert the new .h files for this branch for gtk-doc
Ankit Vani <a@nevitus.org>
parents:
37034
diff
changeset
|
815 | * 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
|
816 | * @protocol: The protocol. |
|
36581
09d5842255a2
Added missing includes and functions to headers
Ankit Vani <a@nevitus.org>
parents:
36580
diff
changeset
|
817 | * |
|
37036
a8e12bcb0a74
Convert the new .h files for this branch for gtk-doc
Ankit Vani <a@nevitus.org>
parents:
37034
diff
changeset
|
818 | * 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
|
819 | * |
|
37034
9d6765962b22
Initial replacements for this branch
Ankit Vani <a@nevitus.org>
parents:
37023
diff
changeset
|
820 | * 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
|
821 | */ |
|
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
|
822 | 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
|
823 | |
|
36617
be16459a68e9
Finished implementation of protocol object and interface stuff in protocol.[ch].
Ankit Vani <a@nevitus.org>
parents:
36613
diff
changeset
|
824 | /** |
|
37036
a8e12bcb0a74
Convert the new .h files for this branch for gtk-doc
Ankit Vani <a@nevitus.org>
parents:
37034
diff
changeset
|
825 | * 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
|
826 | * @protocol: The protocol. |
|
36581
09d5842255a2
Added missing includes and functions to headers
Ankit Vani <a@nevitus.org>
parents:
36580
diff
changeset
|
827 | * |
|
37036
a8e12bcb0a74
Convert the new .h files for this branch for gtk-doc
Ankit Vani <a@nevitus.org>
parents:
37034
diff
changeset
|
828 | * 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
|
829 | * |
|
37034
9d6765962b22
Initial replacements for this branch
Ankit Vani <a@nevitus.org>
parents:
37023
diff
changeset
|
830 | * Returns: The whiteboard ops of the protocol. |
|
36581
09d5842255a2
Added missing includes and functions to headers
Ankit Vani <a@nevitus.org>
parents:
36580
diff
changeset
|
831 | */ |
|
36637
9b0109ae118d
Renamed some prpl stuff to protocol stuff.
Ankit Vani <a@nevitus.org>
parents:
36624
diff
changeset
|
832 | 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
|
833 | |
|
36686
9807e4acf281
Added PurpleProtocolOverrideFlags and purple_protocol_override()
Ankit Vani <a@nevitus.org>
parents:
36682
diff
changeset
|
834 | /** |
|
37036
a8e12bcb0a74
Convert the new .h files for this branch for gtk-doc
Ankit Vani <a@nevitus.org>
parents:
37034
diff
changeset
|
835 | * purple_protocol_override: |
|
a8e12bcb0a74
Convert the new .h files for this branch for gtk-doc
Ankit Vani <a@nevitus.org>
parents:
37034
diff
changeset
|
836 | * @protocol: The protocol instance. |
|
a8e12bcb0a74
Convert the new .h files for this branch for gtk-doc
Ankit Vani <a@nevitus.org>
parents:
37034
diff
changeset
|
837 | * @flags: What instance data to delete. |
|
a8e12bcb0a74
Convert the new .h files for this branch for gtk-doc
Ankit Vani <a@nevitus.org>
parents:
37034
diff
changeset
|
838 | * |
|
36686
9807e4acf281
Added PurpleProtocolOverrideFlags and purple_protocol_override()
Ankit Vani <a@nevitus.org>
parents:
36682
diff
changeset
|
839 | * Lets derived protocol types override the base type's instance data, such as |
|
9807e4acf281
Added PurpleProtocolOverrideFlags and purple_protocol_override()
Ankit Vani <a@nevitus.org>
parents:
36682
diff
changeset
|
840 | * protocol options, user splits, icon spec, etc. |
|
9807e4acf281
Added PurpleProtocolOverrideFlags and purple_protocol_override()
Ankit Vani <a@nevitus.org>
parents:
36682
diff
changeset
|
841 | * This function is called in the *_init() function of your derived protocol, |
|
9807e4acf281
Added PurpleProtocolOverrideFlags and purple_protocol_override()
Ankit Vani <a@nevitus.org>
parents:
36682
diff
changeset
|
842 | * to delete the parent type's data so you can define your own. |
|
9807e4acf281
Added PurpleProtocolOverrideFlags and purple_protocol_override()
Ankit Vani <a@nevitus.org>
parents:
36682
diff
changeset
|
843 | */ |
|
9807e4acf281
Added PurpleProtocolOverrideFlags and purple_protocol_override()
Ankit Vani <a@nevitus.org>
parents:
36682
diff
changeset
|
844 | void purple_protocol_override(PurpleProtocol *protocol, |
|
36718
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
845 | PurpleProtocolOverrideFlags flags); |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
846 | |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
847 | /**************************************************************************/ |
|
37090
c45c70779582
Remove @name from new plugin and protocol stuff
Ankit Vani <a@nevitus.org>
parents:
37089
diff
changeset
|
848 | /* Protocol Class API */ |
|
36718
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
849 | /**************************************************************************/ |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
850 | |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
851 | void purple_protocol_class_login(PurpleProtocol *, PurpleAccount *); |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
852 | |
|
36731
38de3f22e864
Renamed close_connection back to close
Ankit Vani <a@nevitus.org>
parents:
36722
diff
changeset
|
853 | void purple_protocol_class_close(PurpleProtocol *, PurpleConnection *); |
|
36718
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
854 | |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
855 | GList *purple_protocol_class_status_types(PurpleProtocol *, |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
856 | PurpleAccount *account); |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
857 | |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
858 | const char *purple_protocol_class_list_icon(PurpleProtocol *, |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
859 | PurpleAccount *account, PurpleBuddy *buddy); |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
860 | |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
861 | /**************************************************************************/ |
|
37090
c45c70779582
Remove @name from new plugin and protocol stuff
Ankit Vani <a@nevitus.org>
parents:
37089
diff
changeset
|
862 | /* Protocol Client Interface API */ |
|
36718
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
863 | /**************************************************************************/ |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
864 | |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
865 | /** |
|
37036
a8e12bcb0a74
Convert the new .h files for this branch for gtk-doc
Ankit Vani <a@nevitus.org>
parents:
37034
diff
changeset
|
866 | * 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
|
867 | * |
|
37073
baf45dc13ffd
Fix some gtk-doc warnings in protocol(s).h (not all)
Ankit Vani <a@nevitus.org>
parents:
37062
diff
changeset
|
868 | * Returns: The #GType for the protocol client interface. |
|
36718
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
869 | */ |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
870 | GType purple_protocol_client_iface_get_type(void); |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
871 | |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
872 | GList *purple_protocol_client_iface_get_actions(PurpleProtocol *, |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
873 | PurpleConnection *); |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
874 | |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
875 | const char *purple_protocol_client_iface_list_emblem(PurpleProtocol *, |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
876 | PurpleBuddy *buddy); |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
877 | |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
878 | char *purple_protocol_client_iface_status_text(PurpleProtocol *, |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
879 | PurpleBuddy *buddy); |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
880 | |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
881 | void purple_protocol_client_iface_tooltip_text(PurpleProtocol *, |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
882 | PurpleBuddy *buddy, PurpleNotifyUserInfo *user_info, gboolean full); |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
883 | |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
884 | GList *purple_protocol_client_iface_blist_node_menu(PurpleProtocol *, |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
885 | PurpleBlistNode *node); |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
886 | |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
887 | void purple_protocol_client_iface_buddy_free(PurpleProtocol *, PurpleBuddy *); |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
888 | |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
889 | void purple_protocol_client_iface_convo_closed(PurpleProtocol *, |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
890 | PurpleConnection *, const char *who); |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
891 | |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
892 | const char *purple_protocol_client_iface_normalize(PurpleProtocol *, |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
893 | const PurpleAccount *account, const char *who); |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
894 | |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
895 | PurpleChat *purple_protocol_client_iface_find_blist_chat(PurpleProtocol *, |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
896 | PurpleAccount *account, const char *name); |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
897 | |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
898 | gboolean purple_protocol_client_iface_offline_message(PurpleProtocol *, |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
899 | const PurpleBuddy *buddy); |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
900 | |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
901 | GHashTable *purple_protocol_client_iface_get_account_text_table(PurpleProtocol *, |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
902 | PurpleAccount *account); |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
903 | |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
904 | PurpleMood *purple_protocol_client_iface_get_moods(PurpleProtocol *, |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
905 | PurpleAccount *account); |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
906 | |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
907 | gssize purple_protocol_client_iface_get_max_message_size(PurpleProtocol *, |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
908 | PurpleConversation *conv); |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
909 | |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
910 | /**************************************************************************/ |
|
37090
c45c70779582
Remove @name from new plugin and protocol stuff
Ankit Vani <a@nevitus.org>
parents:
37089
diff
changeset
|
911 | /* Protocol Server Interface API */ |
|
36718
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
912 | /**************************************************************************/ |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
913 | |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
914 | /** |
|
37036
a8e12bcb0a74
Convert the new .h files for this branch for gtk-doc
Ankit Vani <a@nevitus.org>
parents:
37034
diff
changeset
|
915 | * 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
|
916 | * |
|
37073
baf45dc13ffd
Fix some gtk-doc warnings in protocol(s).h (not all)
Ankit Vani <a@nevitus.org>
parents:
37062
diff
changeset
|
917 | * 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
|
918 | */ |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
919 | GType purple_protocol_server_iface_get_type(void); |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
920 | |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
921 | void purple_protocol_server_iface_register_user(PurpleProtocol *, |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
922 | PurpleAccount *); |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
923 | |
|
37132
f4740b6e7525
Add (scope) annotation to callback parameters in plugins.h, protocol.h, protocols.h
Ankit Vani <a@nevitus.org>
parents:
37103
diff
changeset
|
924 | /** |
|
f4740b6e7525
Add (scope) annotation to callback parameters in plugins.h, protocol.h, protocols.h
Ankit Vani <a@nevitus.org>
parents:
37103
diff
changeset
|
925 | * 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
|
926 | * @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
|
927 | */ |
|
36718
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
928 | void purple_protocol_server_iface_unregister_user(PurpleProtocol *, |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
929 | PurpleAccount *, PurpleAccountUnregistrationCb cb, void *user_data); |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
930 | |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
931 | void purple_protocol_server_iface_set_info(PurpleProtocol *, PurpleConnection *, |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
932 | const char *info); |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
933 | |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
934 | void purple_protocol_server_iface_get_info(PurpleProtocol *, PurpleConnection *, |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
935 | const char *who); |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
936 | |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
937 | void purple_protocol_server_iface_set_status(PurpleProtocol *, |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
938 | PurpleAccount *account, PurpleStatus *status); |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
939 | |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
940 | void purple_protocol_server_iface_set_idle(PurpleProtocol *, PurpleConnection *, |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
941 | int idletime); |
|
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 | void purple_protocol_server_iface_change_passwd(PurpleProtocol *, |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
944 | PurpleConnection *, const char *old_pass, const char *new_pass); |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
945 | |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
946 | void purple_protocol_server_iface_add_buddy(PurpleProtocol *, |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
947 | PurpleConnection *pc, PurpleBuddy *buddy, PurpleGroup *group, |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
948 | const char *message); |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
949 | |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
950 | void purple_protocol_server_iface_add_buddies(PurpleProtocol *, |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
951 | PurpleConnection *pc, GList *buddies, GList *groups, |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
952 | const char *message); |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
953 | |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
954 | void purple_protocol_server_iface_remove_buddy(PurpleProtocol *, |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
955 | PurpleConnection *, PurpleBuddy *buddy, PurpleGroup *group); |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
956 | |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
957 | void purple_protocol_server_iface_remove_buddies(PurpleProtocol *, |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
958 | PurpleConnection *, GList *buddies, GList *groups); |
|
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 | void purple_protocol_server_iface_keepalive(PurpleProtocol *, |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
961 | PurpleConnection *); |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
962 | |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
963 | void purple_protocol_server_iface_alias_buddy(PurpleProtocol *, |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
964 | PurpleConnection *, const char *who, const char *alias); |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
965 | |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
966 | void purple_protocol_server_iface_group_buddy(PurpleProtocol *, |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
967 | PurpleConnection *, const char *who, const char *old_group, |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
968 | const char *new_group); |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
969 | |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
970 | void purple_protocol_server_iface_rename_group(PurpleProtocol *, |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
971 | PurpleConnection *, const char *old_name, PurpleGroup *group, |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
972 | GList *moved_buddies); |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
973 | |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
974 | void purple_protocol_server_iface_set_buddy_icon(PurpleProtocol *, |
| 37134 | 975 | PurpleConnection *, PurpleImage *img); |
|
36718
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
976 | |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
977 | void purple_protocol_server_iface_remove_group(PurpleProtocol *, |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
978 | PurpleConnection *gc, PurpleGroup *group); |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
979 | |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
980 | int purple_protocol_server_iface_send_raw(PurpleProtocol *, |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
981 | PurpleConnection *gc, const char *buf, int len); |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
982 | |
|
37132
f4740b6e7525
Add (scope) annotation to callback parameters in plugins.h, protocol.h, protocols.h
Ankit Vani <a@nevitus.org>
parents:
37103
diff
changeset
|
983 | /** |
|
f4740b6e7525
Add (scope) annotation to callback parameters in plugins.h, protocol.h, protocols.h
Ankit Vani <a@nevitus.org>
parents:
37103
diff
changeset
|
984 | * 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
|
985 | * @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
|
986 | * @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
|
987 | */ |
|
36718
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
988 | void purple_protocol_server_iface_set_public_alias(PurpleProtocol *, |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
989 | PurpleConnection *gc, const char *alias, |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
990 | PurpleSetPublicAliasSuccessCallback success_cb, |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
991 | PurpleSetPublicAliasFailureCallback failure_cb); |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
992 | |
|
37132
f4740b6e7525
Add (scope) annotation to callback parameters in plugins.h, protocol.h, protocols.h
Ankit Vani <a@nevitus.org>
parents:
37103
diff
changeset
|
993 | /** |
|
f4740b6e7525
Add (scope) annotation to callback parameters in plugins.h, protocol.h, protocols.h
Ankit Vani <a@nevitus.org>
parents:
37103
diff
changeset
|
994 | * 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
|
995 | * @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
|
996 | * @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
|
997 | */ |
|
36718
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
998 | void purple_protocol_server_iface_get_public_alias(PurpleProtocol *, |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
999 | PurpleConnection *gc, PurpleGetPublicAliasSuccessCallback success_cb, |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
1000 | PurpleGetPublicAliasFailureCallback failure_cb); |
|
36686
9807e4acf281
Added PurpleProtocolOverrideFlags and purple_protocol_override()
Ankit Vani <a@nevitus.org>
parents:
36682
diff
changeset
|
1001 | |
|
36566
029a5f652427
Moved all of protocol API to protocol.h
Ankit Vani <a@nevitus.org>
parents:
36564
diff
changeset
|
1002 | /**************************************************************************/ |
|
37090
c45c70779582
Remove @name from new plugin and protocol stuff
Ankit Vani <a@nevitus.org>
parents:
37089
diff
changeset
|
1003 | /* Protocol IM Interface API */ |
|
36718
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
1004 | /**************************************************************************/ |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
1005 | |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
1006 | /** |
|
37036
a8e12bcb0a74
Convert the new .h files for this branch for gtk-doc
Ankit Vani <a@nevitus.org>
parents:
37034
diff
changeset
|
1007 | * 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
|
1008 | * |
|
37073
baf45dc13ffd
Fix some gtk-doc warnings in protocol(s).h (not all)
Ankit Vani <a@nevitus.org>
parents:
37062
diff
changeset
|
1009 | * 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
|
1010 | */ |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
1011 | GType purple_protocol_im_iface_get_type(void); |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
1012 | |
|
36722
49872e1ec30e
Defined the new interface functions
Ankit Vani <a@nevitus.org>
parents:
36720
diff
changeset
|
1013 | int purple_protocol_im_iface_send(PurpleProtocol *, PurpleConnection *, |
|
36718
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
1014 | const char *who, const char *message, PurpleMessageFlags flags); |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
1015 | |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
1016 | unsigned int purple_protocol_im_iface_send_typing(PurpleProtocol *, |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
1017 | PurpleConnection *, const char *name, PurpleIMTypingState state); |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
1018 | |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
1019 | /**************************************************************************/ |
|
37090
c45c70779582
Remove @name from new plugin and protocol stuff
Ankit Vani <a@nevitus.org>
parents:
37089
diff
changeset
|
1020 | /* Protocol Chat Interface API */ |
|
36566
029a5f652427
Moved all of protocol API to protocol.h
Ankit Vani <a@nevitus.org>
parents:
36564
diff
changeset
|
1021 | /**************************************************************************/ |
|
36718
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
1022 | |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
1023 | /** |
|
37036
a8e12bcb0a74
Convert the new .h files for this branch for gtk-doc
Ankit Vani <a@nevitus.org>
parents:
37034
diff
changeset
|
1024 | * 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
|
1025 | * |
|
37073
baf45dc13ffd
Fix some gtk-doc warnings in protocol(s).h (not all)
Ankit Vani <a@nevitus.org>
parents:
37062
diff
changeset
|
1026 | * Returns: The #GType for the protocol chat interface. |
|
36718
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
1027 | */ |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
1028 | GType purple_protocol_chat_iface_get_type(void); |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
1029 | |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
1030 | GList *purple_protocol_chat_iface_info(PurpleProtocol *, |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
1031 | PurpleConnection *); |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
1032 | |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
1033 | GHashTable *purple_protocol_chat_iface_info_defaults(PurpleProtocol *, |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
1034 | PurpleConnection *, const char *chat_name); |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
1035 | |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
1036 | void purple_protocol_chat_iface_join(PurpleProtocol *, PurpleConnection *, |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
1037 | GHashTable *components); |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
1038 | |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
1039 | void purple_protocol_chat_iface_reject(PurpleProtocol *, |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
1040 | PurpleConnection *, GHashTable *components); |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
1041 | |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
1042 | char *purple_protocol_chat_iface_get_name(PurpleProtocol *, |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
1043 | GHashTable *components); |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
1044 | |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
1045 | void purple_protocol_chat_iface_invite(PurpleProtocol *, |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
1046 | PurpleConnection *, int id, const char *message, const char *who); |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
1047 | |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
1048 | void purple_protocol_chat_iface_leave(PurpleProtocol *, PurpleConnection *, |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
1049 | int id); |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
1050 | |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
1051 | void purple_protocol_chat_iface_whisper(PurpleProtocol *, |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
1052 | PurpleConnection *, int id, const char *who, const char *message); |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
1053 | |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
1054 | int purple_protocol_chat_iface_send(PurpleProtocol *, PurpleConnection *, |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
1055 | int id, const char *message, PurpleMessageFlags flags); |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
1056 | |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
1057 | char *purple_protocol_chat_iface_get_user_real_name(PurpleProtocol *, |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
1058 | PurpleConnection *gc, int id, const char *who); |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
1059 | |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
1060 | void purple_protocol_chat_iface_set_topic(PurpleProtocol *, |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
1061 | PurpleConnection *gc, int id, const char *topic); |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
1062 | |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
1063 | /**************************************************************************/ |
|
37090
c45c70779582
Remove @name from new plugin and protocol stuff
Ankit Vani <a@nevitus.org>
parents:
37089
diff
changeset
|
1064 | /* Protocol Privacy Interface API */ |
|
36718
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
1065 | /**************************************************************************/ |
|
36566
029a5f652427
Moved all of protocol API to protocol.h
Ankit Vani <a@nevitus.org>
parents:
36564
diff
changeset
|
1066 | |
|
36617
be16459a68e9
Finished implementation of protocol object and interface stuff in protocol.[ch].
Ankit Vani <a@nevitus.org>
parents:
36613
diff
changeset
|
1067 | /** |
|
37036
a8e12bcb0a74
Convert the new .h files for this branch for gtk-doc
Ankit Vani <a@nevitus.org>
parents:
37034
diff
changeset
|
1068 | * 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
|
1069 | * |
|
37073
baf45dc13ffd
Fix some gtk-doc warnings in protocol(s).h (not all)
Ankit Vani <a@nevitus.org>
parents:
37062
diff
changeset
|
1070 | * Returns: The #GType for the protocol privacy interface. |
|
36617
be16459a68e9
Finished implementation of protocol object and interface stuff in protocol.[ch].
Ankit Vani <a@nevitus.org>
parents:
36613
diff
changeset
|
1071 | */ |
|
36718
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
1072 | 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
|
1073 | |
|
36718
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
1074 | void purple_protocol_privacy_iface_add_permit(PurpleProtocol *, |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
1075 | PurpleConnection *, const char *name); |
|
36564
2d423b459d4b
Declared functions to call interface methods from PurpleProtocol * objects
Ankit Vani <a@nevitus.org>
parents:
36563
diff
changeset
|
1076 | |
|
36718
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
1077 | void purple_protocol_privacy_iface_add_deny(PurpleProtocol *, |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
1078 | PurpleConnection *, const char *name); |
|
36564
2d423b459d4b
Declared functions to call interface methods from PurpleProtocol * objects
Ankit Vani <a@nevitus.org>
parents:
36563
diff
changeset
|
1079 | |
|
36718
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
1080 | void purple_protocol_privacy_iface_rem_permit(PurpleProtocol *, |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
1081 | PurpleConnection *, const char *name); |
|
36564
2d423b459d4b
Declared functions to call interface methods from PurpleProtocol * objects
Ankit Vani <a@nevitus.org>
parents:
36563
diff
changeset
|
1082 | |
|
36718
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
1083 | void purple_protocol_privacy_iface_rem_deny(PurpleProtocol *, |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
1084 | PurpleConnection *, const char *name); |
|
36564
2d423b459d4b
Declared functions to call interface methods from PurpleProtocol * objects
Ankit Vani <a@nevitus.org>
parents:
36563
diff
changeset
|
1085 | |
|
36718
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
1086 | void purple_protocol_privacy_iface_set_permit_deny(PurpleProtocol *, |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
1087 | PurpleConnection *); |
|
36564
2d423b459d4b
Declared functions to call interface methods from PurpleProtocol * objects
Ankit Vani <a@nevitus.org>
parents:
36563
diff
changeset
|
1088 | |
|
36718
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
1089 | /**************************************************************************/ |
|
37090
c45c70779582
Remove @name from new plugin and protocol stuff
Ankit Vani <a@nevitus.org>
parents:
37089
diff
changeset
|
1090 | /* Protocol Xfer Interface API */ |
|
36718
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
1091 | /**************************************************************************/ |
|
36564
2d423b459d4b
Declared functions to call interface methods from PurpleProtocol * objects
Ankit Vani <a@nevitus.org>
parents:
36563
diff
changeset
|
1092 | |
|
36718
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
1093 | /** |
|
37036
a8e12bcb0a74
Convert the new .h files for this branch for gtk-doc
Ankit Vani <a@nevitus.org>
parents:
37034
diff
changeset
|
1094 | * purple_protocol_xfer_iface_get_type: |
|
a8e12bcb0a74
Convert the new .h files for this branch for gtk-doc
Ankit Vani <a@nevitus.org>
parents:
37034
diff
changeset
|
1095 | * |
|
37073
baf45dc13ffd
Fix some gtk-doc warnings in protocol(s).h (not all)
Ankit Vani <a@nevitus.org>
parents:
37062
diff
changeset
|
1096 | * Returns: The #GType for the protocol xfer interface. |
|
36718
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
1097 | */ |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
1098 | GType purple_protocol_xfer_iface_get_type(void); |
|
36564
2d423b459d4b
Declared functions to call interface methods from PurpleProtocol * objects
Ankit Vani <a@nevitus.org>
parents:
36563
diff
changeset
|
1099 | |
|
36718
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
1100 | gboolean purple_protocol_xfer_iface_can_receive(PurpleProtocol *, |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
1101 | PurpleConnection *, const char *who); |
|
36564
2d423b459d4b
Declared functions to call interface methods from PurpleProtocol * objects
Ankit Vani <a@nevitus.org>
parents:
36563
diff
changeset
|
1102 | |
|
36718
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
1103 | void purple_protocol_xfer_iface_send(PurpleProtocol *, PurpleConnection *, |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
1104 | const char *who, const char *filename); |
|
36564
2d423b459d4b
Declared functions to call interface methods from PurpleProtocol * objects
Ankit Vani <a@nevitus.org>
parents:
36563
diff
changeset
|
1105 | |
|
36718
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
1106 | PurpleXfer *purple_protocol_xfer_iface_new_xfer(PurpleProtocol *, |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
1107 | PurpleConnection *, const char *who); |
|
36564
2d423b459d4b
Declared functions to call interface methods from PurpleProtocol * objects
Ankit Vani <a@nevitus.org>
parents:
36563
diff
changeset
|
1108 | |
|
36718
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
1109 | /**************************************************************************/ |
|
37090
c45c70779582
Remove @name from new plugin and protocol stuff
Ankit Vani <a@nevitus.org>
parents:
37089
diff
changeset
|
1110 | /* Protocol Roomlist Interface API */ |
|
36718
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
1111 | /**************************************************************************/ |
|
36564
2d423b459d4b
Declared functions to call interface methods from PurpleProtocol * objects
Ankit Vani <a@nevitus.org>
parents:
36563
diff
changeset
|
1112 | |
|
36718
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
1113 | /** |
|
37036
a8e12bcb0a74
Convert the new .h files for this branch for gtk-doc
Ankit Vani <a@nevitus.org>
parents:
37034
diff
changeset
|
1114 | * purple_protocol_roomlist_iface_get_type: |
|
a8e12bcb0a74
Convert the new .h files for this branch for gtk-doc
Ankit Vani <a@nevitus.org>
parents:
37034
diff
changeset
|
1115 | * |
|
37073
baf45dc13ffd
Fix some gtk-doc warnings in protocol(s).h (not all)
Ankit Vani <a@nevitus.org>
parents:
37062
diff
changeset
|
1116 | * Returns: The #GType for the protocol roomlist interface. |
|
36718
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
1117 | */ |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
1118 | GType purple_protocol_roomlist_iface_get_type(void); |
|
36564
2d423b459d4b
Declared functions to call interface methods from PurpleProtocol * objects
Ankit Vani <a@nevitus.org>
parents:
36563
diff
changeset
|
1119 | |
|
36718
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
1120 | PurpleRoomlist *purple_protocol_roomlist_iface_get_list(PurpleProtocol *, |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
1121 | PurpleConnection *gc); |
|
36564
2d423b459d4b
Declared functions to call interface methods from PurpleProtocol * objects
Ankit Vani <a@nevitus.org>
parents:
36563
diff
changeset
|
1122 | |
|
36718
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
1123 | void purple_protocol_roomlist_iface_cancel(PurpleProtocol *, |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
1124 | PurpleRoomlist *list); |
|
36564
2d423b459d4b
Declared functions to call interface methods from PurpleProtocol * objects
Ankit Vani <a@nevitus.org>
parents:
36563
diff
changeset
|
1125 | |
|
36718
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
1126 | void purple_protocol_roomlist_iface_expand_category(PurpleProtocol *, |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
1127 | PurpleRoomlist *list, PurpleRoomlistRoom *category); |
|
36564
2d423b459d4b
Declared functions to call interface methods from PurpleProtocol * objects
Ankit Vani <a@nevitus.org>
parents:
36563
diff
changeset
|
1128 | |
|
36718
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
1129 | char *purple_protocol_roomlist_iface_room_serialize(PurpleProtocol *, |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
1130 | PurpleRoomlistRoom *room); |
|
36564
2d423b459d4b
Declared functions to call interface methods from PurpleProtocol * objects
Ankit Vani <a@nevitus.org>
parents:
36563
diff
changeset
|
1131 | |
|
36718
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
1132 | /**************************************************************************/ |
|
37090
c45c70779582
Remove @name from new plugin and protocol stuff
Ankit Vani <a@nevitus.org>
parents:
37089
diff
changeset
|
1133 | /* Protocol Attention Interface API */ |
|
36718
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
1134 | /**************************************************************************/ |
|
36564
2d423b459d4b
Declared functions to call interface methods from PurpleProtocol * objects
Ankit Vani <a@nevitus.org>
parents:
36563
diff
changeset
|
1135 | |
|
36718
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
1136 | /** |
|
37036
a8e12bcb0a74
Convert the new .h files for this branch for gtk-doc
Ankit Vani <a@nevitus.org>
parents:
37034
diff
changeset
|
1137 | * purple_protocol_attention_iface_get_type: |
|
a8e12bcb0a74
Convert the new .h files for this branch for gtk-doc
Ankit Vani <a@nevitus.org>
parents:
37034
diff
changeset
|
1138 | * |
|
37073
baf45dc13ffd
Fix some gtk-doc warnings in protocol(s).h (not all)
Ankit Vani <a@nevitus.org>
parents:
37062
diff
changeset
|
1139 | * Returns: The #GType for the protocol attention interface. |
|
36718
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
1140 | */ |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
1141 | GType purple_protocol_attention_iface_get_type(void); |
|
36564
2d423b459d4b
Declared functions to call interface methods from PurpleProtocol * objects
Ankit Vani <a@nevitus.org>
parents:
36563
diff
changeset
|
1142 | |
|
36718
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
1143 | gboolean purple_protocol_attention_iface_send(PurpleProtocol *, |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
1144 | PurpleConnection *gc, const char *username, guint type); |
|
36564
2d423b459d4b
Declared functions to call interface methods from PurpleProtocol * objects
Ankit Vani <a@nevitus.org>
parents:
36563
diff
changeset
|
1145 | |
|
36718
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
1146 | GList *purple_protocol_attention_iface_get_types(PurpleProtocol *, |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
1147 | PurpleAccount *acct); |
|
36564
2d423b459d4b
Declared functions to call interface methods from PurpleProtocol * objects
Ankit Vani <a@nevitus.org>
parents:
36563
diff
changeset
|
1148 | |
|
36718
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
1149 | /**************************************************************************/ |
|
37090
c45c70779582
Remove @name from new plugin and protocol stuff
Ankit Vani <a@nevitus.org>
parents:
37089
diff
changeset
|
1150 | /* Protocol Media Interface API */ |
|
36718
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
1151 | /**************************************************************************/ |
|
36564
2d423b459d4b
Declared functions to call interface methods from PurpleProtocol * objects
Ankit Vani <a@nevitus.org>
parents:
36563
diff
changeset
|
1152 | |
|
36718
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
1153 | /** |
|
37036
a8e12bcb0a74
Convert the new .h files for this branch for gtk-doc
Ankit Vani <a@nevitus.org>
parents:
37034
diff
changeset
|
1154 | * 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
|
1155 | * |
|
37073
baf45dc13ffd
Fix some gtk-doc warnings in protocol(s).h (not all)
Ankit Vani <a@nevitus.org>
parents:
37062
diff
changeset
|
1156 | * Returns: The #GType for the protocol media interface. |
|
36718
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
1157 | */ |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
1158 | 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
|
1159 | |
|
36718
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
1160 | gboolean purple_protocol_media_iface_initiate_session(PurpleProtocol *, |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
1161 | 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
|
1162 | |
|
36718
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
1163 | PurpleMediaCaps purple_protocol_media_iface_get_caps(PurpleProtocol *, |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
1164 | 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
|
1165 | |
|
36718
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
1166 | /**************************************************************************/ |
|
37090
c45c70779582
Remove @name from new plugin and protocol stuff
Ankit Vani <a@nevitus.org>
parents:
37089
diff
changeset
|
1167 | /* Protocol Factory Interface API */ |
|
36718
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
1168 | /**************************************************************************/ |
|
36564
2d423b459d4b
Declared functions to call interface methods from PurpleProtocol * objects
Ankit Vani <a@nevitus.org>
parents:
36563
diff
changeset
|
1169 | |
|
36718
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
1170 | /** |
|
37036
a8e12bcb0a74
Convert the new .h files for this branch for gtk-doc
Ankit Vani <a@nevitus.org>
parents:
37034
diff
changeset
|
1171 | * 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
|
1172 | * |
|
37073
baf45dc13ffd
Fix some gtk-doc warnings in protocol(s).h (not all)
Ankit Vani <a@nevitus.org>
parents:
37062
diff
changeset
|
1173 | * 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
|
1174 | */ |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
1175 | 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
|
1176 | |
|
36718
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
1177 | PurpleConnection *purple_protocol_factory_iface_connection_new(PurpleProtocol *, |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
1178 | 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
|
1179 | |
|
36718
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
1180 | PurpleRoomlist *purple_protocol_factory_iface_roomlist_new(PurpleProtocol *, |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
1181 | PurpleAccount *account); |
|
36564
2d423b459d4b
Declared functions to call interface methods from PurpleProtocol * objects
Ankit Vani <a@nevitus.org>
parents:
36563
diff
changeset
|
1182 | |
|
36718
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
1183 | PurpleWhiteboard *purple_protocol_factory_iface_whiteboard_new(PurpleProtocol *, |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
1184 | 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
|
1185 | |
|
36718
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
1186 | PurpleXfer *purple_protocol_factory_iface_xfer_new(PurpleProtocol *, |
|
24f9c085897a
Finished splitting up the protocol interface
Ankit Vani <a@nevitus.org>
parents:
36717
diff
changeset
|
1187 | PurpleAccount *account, PurpleXferType type, const char *who); |
|
36583
0582190c9382
Merged soc.2013.gobjectification branch
Ankit Vani <a@nevitus.org>
parents:
36581
diff
changeset
|
1188 | |
|
36563
5ecb9a6c4611
Added protocol.[ch] and moved PurpleProtocol and PurpleProtocolInterface to it
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
1189 | G_END_DECLS |
|
5ecb9a6c4611
Added protocol.[ch] and moved PurpleProtocol and PurpleProtocolInterface to it
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
1190 | |
|
5ecb9a6c4611
Added protocol.[ch] and moved PurpleProtocol and PurpleProtocolInterface to it
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
1191 | #endif /* _PROTOCOL_H_ */ |