Sat, 11 Dec 2021 20:18:06 -0600
Remove unnecessary gtk-doc comments and move them where possible from libpurple/[a-c]*.h
Testing Done:
Compiled
Reviewed at https://reviews.imfreedom.org/r/1178/
|
20147
66f05a854eee
applied changes from 8a731bbd0197fbcc91a705c2d8f528154216defa
Richard Laager <rlaager@pidgin.im>
parents:
19897
diff
changeset
|
1 | /* purple |
| 5563 | 2 | * |
| 15884 | 3 | * Purple is the legal property of its developers, whose names are too numerous |
| 8046 | 4 | * to list here. Please refer to the COPYRIGHT file distributed with this |
| 5 | * source distribution. | |
|
6460
fc288e7221ca
[gaim-migrate @ 6969]
Christian Hammond <chipx86@chipx86.com>
parents:
6393
diff
changeset
|
6 | * |
| 5563 | 7 | * This program is free software; you can redistribute it and/or modify |
| 8 | * it under the terms of the GNU General Public License as published by | |
| 9 | * the Free Software Foundation; either version 2 of the License, or | |
| 10 | * (at your option) any later version. | |
| 11 | * | |
| 12 | * This program is distributed in the hope that it will be useful, | |
| 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
| 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
| 15 | * GNU General Public License for more details. | |
| 16 | * | |
| 17 | * You should have received a copy of the GNU General Public License | |
| 18 | * along with this program; if not, write to the Free Software | |
|
19859
71d37b57eff2
The FSF changed its address a while ago; our files were out of date.
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
19128
diff
changeset
|
19 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA |
| 5563 | 20 | */ |
|
35487
494f09f7f331
Move section blocks inside inclusion guards -- otherwise g-ir-scanner yells
Ankit Vani <a@nevitus.org>
parents:
35486
diff
changeset
|
21 | |
|
40474
1341be8e3402
Make it so only libpurple can directly include libpurple header files.
Gary Kramlich <grim@reaperworld.com>
parents:
40369
diff
changeset
|
22 | #if !defined(PURPLE_GLOBAL_HEADER_INSIDE) && !defined(PURPLE_COMPILATION) |
|
1341be8e3402
Make it so only libpurple can directly include libpurple header files.
Gary Kramlich <grim@reaperworld.com>
parents:
40369
diff
changeset
|
23 | # error "only <purple.h> may be included directly" |
|
1341be8e3402
Make it so only libpurple can directly include libpurple header files.
Gary Kramlich <grim@reaperworld.com>
parents:
40369
diff
changeset
|
24 | #endif |
|
1341be8e3402
Make it so only libpurple can directly include libpurple header files.
Gary Kramlich <grim@reaperworld.com>
parents:
40369
diff
changeset
|
25 | |
|
39659
e4dfb99b0cef
Fix libpurple header guards using reserved names.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39549
diff
changeset
|
26 | #ifndef PURPLE_CONNECTION_H |
|
e4dfb99b0cef
Fix libpurple header guards using reserved names.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39549
diff
changeset
|
27 | #define PURPLE_CONNECTION_H |
|
35433
8dcae6cd6628
Add section blocks for account.h to connection.h
Ankit Vani <a@nevitus.org>
parents:
35419
diff
changeset
|
28 | |
|
37961
2ee4c67768f4
connection: Support PurpleConnectionError GErrors
Mike Ruprecht <cmaiku@gmail.com>
parents:
37959
diff
changeset
|
29 | #include <glib.h> |
|
2ee4c67768f4
connection: Support PurpleConnectionError GErrors
Mike Ruprecht <cmaiku@gmail.com>
parents:
37959
diff
changeset
|
30 | |
|
40524
a3b1cde8d2d8
Add documentation for all PURPLE_TYPE_ functions as well as PURPLE_TUNE_ constants
Gary Kramlich <grim@reaperworld.com>
parents:
40474
diff
changeset
|
31 | /** |
|
a3b1cde8d2d8
Add documentation for all PURPLE_TYPE_ functions as well as PURPLE_TUNE_ constants
Gary Kramlich <grim@reaperworld.com>
parents:
40474
diff
changeset
|
32 | * PURPLE_TYPE_CONNECTION: |
|
a3b1cde8d2d8
Add documentation for all PURPLE_TYPE_ functions as well as PURPLE_TUNE_ constants
Gary Kramlich <grim@reaperworld.com>
parents:
40474
diff
changeset
|
33 | * |
|
a3b1cde8d2d8
Add documentation for all PURPLE_TYPE_ functions as well as PURPLE_TUNE_ constants
Gary Kramlich <grim@reaperworld.com>
parents:
40474
diff
changeset
|
34 | * The standard _get_type macro for #PurpleConnection. |
|
a3b1cde8d2d8
Add documentation for all PURPLE_TYPE_ functions as well as PURPLE_TUNE_ constants
Gary Kramlich <grim@reaperworld.com>
parents:
40474
diff
changeset
|
35 | */ |
|
39549
ee61762c3ebe
Use G_DECLARE* for PurpleConnection.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39433
diff
changeset
|
36 | #define PURPLE_TYPE_CONNECTION purple_connection_get_type() |
| 15884 | 37 | typedef struct _PurpleConnection PurpleConnection; |
| 5563 | 38 | |
|
40524
a3b1cde8d2d8
Add documentation for all PURPLE_TYPE_ functions as well as PURPLE_TUNE_ constants
Gary Kramlich <grim@reaperworld.com>
parents:
40474
diff
changeset
|
39 | /** |
|
a3b1cde8d2d8
Add documentation for all PURPLE_TYPE_ functions as well as PURPLE_TUNE_ constants
Gary Kramlich <grim@reaperworld.com>
parents:
40474
diff
changeset
|
40 | * PURPLE_TYPE_CONNECTION_UI_OPS: |
|
a3b1cde8d2d8
Add documentation for all PURPLE_TYPE_ functions as well as PURPLE_TUNE_ constants
Gary Kramlich <grim@reaperworld.com>
parents:
40474
diff
changeset
|
41 | * |
|
a3b1cde8d2d8
Add documentation for all PURPLE_TYPE_ functions as well as PURPLE_TUNE_ constants
Gary Kramlich <grim@reaperworld.com>
parents:
40474
diff
changeset
|
42 | * The standard _get_type macro for #PurpleConnectionUiOps. |
|
a3b1cde8d2d8
Add documentation for all PURPLE_TYPE_ functions as well as PURPLE_TUNE_ constants
Gary Kramlich <grim@reaperworld.com>
parents:
40474
diff
changeset
|
43 | */ |
| 35572 | 44 | #define PURPLE_TYPE_CONNECTION_UI_OPS (purple_connection_ui_ops_get_type()) |
|
35460
96946e21fce5
Fix some more gtk-doc warnings till dnssrv
Ankit Vani <a@nevitus.org>
parents:
35436
diff
changeset
|
45 | typedef struct _PurpleConnectionUiOps PurpleConnectionUiOps; |
|
96946e21fce5
Fix some more gtk-doc warnings till dnssrv
Ankit Vani <a@nevitus.org>
parents:
35436
diff
changeset
|
46 | |
|
40524
a3b1cde8d2d8
Add documentation for all PURPLE_TYPE_ functions as well as PURPLE_TUNE_ constants
Gary Kramlich <grim@reaperworld.com>
parents:
40474
diff
changeset
|
47 | /** |
|
a3b1cde8d2d8
Add documentation for all PURPLE_TYPE_ functions as well as PURPLE_TUNE_ constants
Gary Kramlich <grim@reaperworld.com>
parents:
40474
diff
changeset
|
48 | * PURPLE_TYPE_CONNECTION_ERROR_INFO: |
|
a3b1cde8d2d8
Add documentation for all PURPLE_TYPE_ functions as well as PURPLE_TUNE_ constants
Gary Kramlich <grim@reaperworld.com>
parents:
40474
diff
changeset
|
49 | * |
|
a3b1cde8d2d8
Add documentation for all PURPLE_TYPE_ functions as well as PURPLE_TUNE_ constants
Gary Kramlich <grim@reaperworld.com>
parents:
40474
diff
changeset
|
50 | * The standard _get_type macro for #PurpleConnectionErrorInfo. |
|
a3b1cde8d2d8
Add documentation for all PURPLE_TYPE_ functions as well as PURPLE_TUNE_ constants
Gary Kramlich <grim@reaperworld.com>
parents:
40474
diff
changeset
|
51 | */ |
| 35572 | 52 | #define PURPLE_TYPE_CONNECTION_ERROR_INFO (purple_connection_error_info_get_type()) |
|
35467
975ae62dd895
Fix cross-references and some other warnings
Ankit Vani <a@nevitus.org>
parents:
35460
diff
changeset
|
53 | typedef struct _PurpleConnectionErrorInfo PurpleConnectionErrorInfo; |
|
975ae62dd895
Fix cross-references and some other warnings
Ankit Vani <a@nevitus.org>
parents:
35460
diff
changeset
|
54 | |
|
40474
1341be8e3402
Make it so only libpurple can directly include libpurple header files.
Gary Kramlich <grim@reaperworld.com>
parents:
40369
diff
changeset
|
55 | /* This is meant to track use-after-free errors. |
|
1341be8e3402
Make it so only libpurple can directly include libpurple header files.
Gary Kramlich <grim@reaperworld.com>
parents:
40369
diff
changeset
|
56 | * TODO: it should be disabled in released code. */ |
|
1341be8e3402
Make it so only libpurple can directly include libpurple header files.
Gary Kramlich <grim@reaperworld.com>
parents:
40369
diff
changeset
|
57 | #define PURPLE_ASSERT_CONNECTION_IS_VALID(gc) \ |
|
1341be8e3402
Make it so only libpurple can directly include libpurple header files.
Gary Kramlich <grim@reaperworld.com>
parents:
40369
diff
changeset
|
58 | _purple_assert_connection_is_valid(gc, __FILE__, __LINE__) |
|
1341be8e3402
Make it so only libpurple can directly include libpurple header files.
Gary Kramlich <grim@reaperworld.com>
parents:
40369
diff
changeset
|
59 | |
|
1341be8e3402
Make it so only libpurple can directly include libpurple header files.
Gary Kramlich <grim@reaperworld.com>
parents:
40369
diff
changeset
|
60 | |
|
6622
277eb0b14653
[gaim-migrate @ 7146]
Robert McQueen <robot101@debian.org>
parents:
6605
diff
changeset
|
61 | /** |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
62 | * PurpleConnectionFlags: |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
63 | * @PURPLE_CONNECTION_FLAG_HTML: Connection sends/receives in 'HTML' |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
64 | * @PURPLE_CONNECTION_FLAG_NO_BGCOLOR: Connection does not send/receive |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
65 | * background colors |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
66 | * @PURPLE_CONNECTION_FLAG_AUTO_RESP: Send auto responses when away |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
67 | * @PURPLE_CONNECTION_FLAG_FORMATTING_WBFO: The text buffer must be formatted |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
68 | * as a whole |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
69 | * @PURPLE_CONNECTION_FLAG_NO_NEWLINES: No new lines are allowed in outgoing |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
70 | * messages |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
71 | * @PURPLE_CONNECTION_FLAG_NO_FONTSIZE: Connection does not send/receive font |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
72 | * sizes |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
73 | * @PURPLE_CONNECTION_FLAG_NO_URLDESC: Connection does not support descriptions |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
74 | * with links |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
75 | * @PURPLE_CONNECTION_FLAG_NO_IMAGES: Connection does not support sending of |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
76 | * images |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
77 | * @PURPLE_CONNECTION_FLAG_SUPPORT_MOODS: Connection supports setting moods |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
78 | * @PURPLE_CONNECTION_FLAG_SUPPORT_MOOD_MESSAGES: Connection supports setting |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
79 | * a message on moods |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
80 | * |
|
6622
277eb0b14653
[gaim-migrate @ 7146]
Robert McQueen <robot101@debian.org>
parents:
6605
diff
changeset
|
81 | * Flags to change behavior of the client for a given connection. |
|
277eb0b14653
[gaim-migrate @ 7146]
Robert McQueen <robot101@debian.org>
parents:
6605
diff
changeset
|
82 | */ |
|
34646
e7f4631e93f7
Begun adding GObject code to conversation sources
Ankit Vani <a@nevitus.org>
parents:
34645
diff
changeset
|
83 | typedef enum /*< flags >*/ |
|
6622
277eb0b14653
[gaim-migrate @ 7146]
Robert McQueen <robot101@debian.org>
parents:
6605
diff
changeset
|
84 | { |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
85 | PURPLE_CONNECTION_FLAG_HTML = 0x0001, |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
86 | PURPLE_CONNECTION_FLAG_NO_BGCOLOR = 0x0002, |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
87 | PURPLE_CONNECTION_FLAG_AUTO_RESP = 0x0004, |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
88 | PURPLE_CONNECTION_FLAG_FORMATTING_WBFO = 0x0008, |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
89 | PURPLE_CONNECTION_FLAG_NO_NEWLINES = 0x0010, |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
90 | PURPLE_CONNECTION_FLAG_NO_FONTSIZE = 0x0020, |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
91 | PURPLE_CONNECTION_FLAG_NO_URLDESC = 0x0040, |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
92 | PURPLE_CONNECTION_FLAG_NO_IMAGES = 0x0080, |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
93 | PURPLE_CONNECTION_FLAG_SUPPORT_MOODS = 0x0200, |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
94 | PURPLE_CONNECTION_FLAG_SUPPORT_MOOD_MESSAGES = 0x0400 |
| 15884 | 95 | } PurpleConnectionFlags; |
|
5872
754c63f29b77
[gaim-migrate @ 6304]
Christian Hammond <chipx86@chipx86.com>
parents:
5733
diff
changeset
|
96 | |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
97 | /** |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
98 | * PurpleConnectionState: |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
99 | * @PURPLE_CONNECTION_DISCONNECTED: Disconnected. |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
100 | * @PURPLE_CONNECTION_CONNECTED: Connected. |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
101 | * @PURPLE_CONNECTION_CONNECTING: Connecting. |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
102 | */ |
| 5563 | 103 | typedef enum |
| 104 | { | |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
105 | PURPLE_CONNECTION_DISCONNECTED = 0, |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
106 | PURPLE_CONNECTION_CONNECTED, |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
107 | PURPLE_CONNECTION_CONNECTING |
| 15884 | 108 | } PurpleConnectionState; |
| 5563 | 109 | |
|
37961
2ee4c67768f4
connection: Support PurpleConnectionError GErrors
Mike Ruprecht <cmaiku@gmail.com>
parents:
37959
diff
changeset
|
110 | /** |
|
41156
268e57363246
Remove private data from PurpleConnection and fix up PURPLE_CONNECTION_ERROR
Gary Kramlich <grim@reaperworld.com>
parents:
41155
diff
changeset
|
111 | * PURPLE_CONNECTION_ERROR: |
|
37961
2ee4c67768f4
connection: Support PurpleConnectionError GErrors
Mike Ruprecht <cmaiku@gmail.com>
parents:
37959
diff
changeset
|
112 | * |
|
2ee4c67768f4
connection: Support PurpleConnectionError GErrors
Mike Ruprecht <cmaiku@gmail.com>
parents:
37959
diff
changeset
|
113 | * Error domain for Purple connection errors. Errors in this domain will be |
|
2ee4c67768f4
connection: Support PurpleConnectionError GErrors
Mike Ruprecht <cmaiku@gmail.com>
parents:
37959
diff
changeset
|
114 | * from the #PurpleConnectionError enum. |
|
41156
268e57363246
Remove private data from PurpleConnection and fix up PURPLE_CONNECTION_ERROR
Gary Kramlich <grim@reaperworld.com>
parents:
41155
diff
changeset
|
115 | * |
|
268e57363246
Remove private data from PurpleConnection and fix up PURPLE_CONNECTION_ERROR
Gary Kramlich <grim@reaperworld.com>
parents:
41155
diff
changeset
|
116 | * Since: 3.0.0 |
|
37961
2ee4c67768f4
connection: Support PurpleConnectionError GErrors
Mike Ruprecht <cmaiku@gmail.com>
parents:
37959
diff
changeset
|
117 | */ |
|
41156
268e57363246
Remove private data from PurpleConnection and fix up PURPLE_CONNECTION_ERROR
Gary Kramlich <grim@reaperworld.com>
parents:
41155
diff
changeset
|
118 | #define PURPLE_CONNECTION_ERROR (g_quark_from_static_string("purple-connection-error")) |
|
37961
2ee4c67768f4
connection: Support PurpleConnectionError GErrors
Mike Ruprecht <cmaiku@gmail.com>
parents:
37959
diff
changeset
|
119 | |
|
25885
5b5e2ca316b2
Add @since 2.6.0 doxygen comments to some of our new functions, and
Mark Doliner <markdoliner@pidgin.im>
parents:
25119
diff
changeset
|
120 | /** |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
121 | * PurpleConnectionError: |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
122 | * @PURPLE_CONNECTION_ERROR_NETWORK_ERROR: There was an error sending or |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
123 | * receiving on the network socket, or there was some protocol error |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
124 | * (such as the server sending malformed data). |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
125 | * @PURPLE_CONNECTION_ERROR_INVALID_USERNAME: The username supplied was not |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
126 | * valid. |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
127 | * @PURPLE_CONNECTION_ERROR_AUTHENTICATION_FAILED: The username, password or |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
128 | * some other credential was incorrect. Use |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
129 | * #PURPLE_CONNECTION_ERROR_INVALID_USERNAME instead if the username |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
130 | * is known to be invalid. |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
131 | * @PURPLE_CONNECTION_ERROR_AUTHENTICATION_IMPOSSIBLE: libpurple doesn't speak |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
132 | * any of the authentication methods the server offered. |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
133 | * @PURPLE_CONNECTION_ERROR_NO_SSL_SUPPORT: libpurple was built without SSL |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
134 | * support, and the connection needs SSL. |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
135 | * @PURPLE_CONNECTION_ERROR_ENCRYPTION_ERROR: There was an error negotiating |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
136 | * SSL on this connection, or the server does not support encryption |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
137 | * but an account option was set to require it. |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
138 | * @PURPLE_CONNECTION_ERROR_NAME_IN_USE: Someone is already connected to the |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
139 | * server using the name you are trying to connect with. |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
140 | * @PURPLE_CONNECTION_ERROR_INVALID_SETTINGS: The username/server/other |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
141 | * preference for the account isn't valid. For instance, on IRC the |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
142 | * username cannot contain white space. This reason should not be used |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
143 | * for incorrect passwords etc: use |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
144 | * #PURPLE_CONNECTION_ERROR_AUTHENTICATION_FAILED for that. |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
145 | * @PURPLE_CONNECTION_ERROR_CERT_NOT_PROVIDED: The server did not provide a |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
146 | * SSL certificate. |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
147 | * @PURPLE_CONNECTION_ERROR_CERT_UNTRUSTED: The server's SSL certificate could |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
148 | * not be trusted. |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
149 | * @PURPLE_CONNECTION_ERROR_CERT_EXPIRED: The server's SSL certificate has |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
150 | * expired. |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
151 | * @PURPLE_CONNECTION_ERROR_CERT_NOT_ACTIVATED: The server's SSL certificate is |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
152 | * not yet valid. |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
153 | * @PURPLE_CONNECTION_ERROR_CERT_HOSTNAME_MISMATCH: The server's SSL |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
154 | * certificate did not match its hostname. |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
155 | * @PURPLE_CONNECTION_ERROR_CERT_FINGERPRINT_MISMATCH: The server's SSL |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
156 | * certificate does not have the expected fingerprint. |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
157 | * @PURPLE_CONNECTION_ERROR_CERT_SELF_SIGNED: The server's SSL certificate is |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
158 | * self-signed. |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
159 | * @PURPLE_CONNECTION_ERROR_CERT_OTHER_ERROR: There was some other error |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
160 | * validating the server's SSL certificate. |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
161 | * @PURPLE_CONNECTION_ERROR_OTHER_ERROR: Some other error occurred which fits |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
162 | * into none of the other categories. |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
163 | * |
|
25885
5b5e2ca316b2
Add @since 2.6.0 doxygen comments to some of our new functions, and
Mark Doliner <markdoliner@pidgin.im>
parents:
25119
diff
changeset
|
164 | * Possible errors that can cause a connection to be closed. |
|
21161
2ac0dff512ae
Add "@since 2.3.0" annotations to the new API, as advocated by rlaager.
Will Thompson <resiak@pidgin.im>
parents:
21157
diff
changeset
|
165 | */ |
|
20428
5526fe433c91
Create a PurpleDisconnectReason enum (which happens to be identical to
Will Thompson <resiak@pidgin.im>
parents:
19897
diff
changeset
|
166 | typedef enum |
|
5526fe433c91
Create a PurpleDisconnectReason enum (which happens to be identical to
Will Thompson <resiak@pidgin.im>
parents:
19897
diff
changeset
|
167 | { |
| 21279 | 168 | PURPLE_CONNECTION_ERROR_NETWORK_ERROR = 0, |
|
21507
ef776d77f325
Add PURPLE_CONNECTION_ERROR_{INVALID_USERNAME,INCORRECT_PASSWORD}, to be used
Will Thompson <resiak@pidgin.im>
parents:
21313
diff
changeset
|
169 | PURPLE_CONNECTION_ERROR_INVALID_USERNAME = 1, |
|
21509
e167cb01e146
I don't think that incorrect passwords can be helpfully distinguished from
Will Thompson <resiak@pidgin.im>
parents:
21507
diff
changeset
|
170 | PURPLE_CONNECTION_ERROR_AUTHENTICATION_FAILED = 2, |
|
e167cb01e146
I don't think that incorrect passwords can be helpfully distinguished from
Will Thompson <resiak@pidgin.im>
parents:
21507
diff
changeset
|
171 | PURPLE_CONNECTION_ERROR_AUTHENTICATION_IMPOSSIBLE = 3, |
|
e167cb01e146
I don't think that incorrect passwords can be helpfully distinguished from
Will Thompson <resiak@pidgin.im>
parents:
21507
diff
changeset
|
172 | PURPLE_CONNECTION_ERROR_NO_SSL_SUPPORT = 4, |
|
e167cb01e146
I don't think that incorrect passwords can be helpfully distinguished from
Will Thompson <resiak@pidgin.im>
parents:
21507
diff
changeset
|
173 | PURPLE_CONNECTION_ERROR_ENCRYPTION_ERROR = 5, |
|
e167cb01e146
I don't think that incorrect passwords can be helpfully distinguished from
Will Thompson <resiak@pidgin.im>
parents:
21507
diff
changeset
|
174 | PURPLE_CONNECTION_ERROR_NAME_IN_USE = 6, |
| 35473 | 175 | |
| 176 | /* TODO This reason really shouldn't be necessary. Usernames and | |
| 177 | * other account preferences should be validated when the | |
| 178 | * account is created. */ | |
|
21509
e167cb01e146
I don't think that incorrect passwords can be helpfully distinguished from
Will Thompson <resiak@pidgin.im>
parents:
21507
diff
changeset
|
179 | PURPLE_CONNECTION_ERROR_INVALID_SETTINGS = 7, |
| 35473 | 180 | |
|
21509
e167cb01e146
I don't think that incorrect passwords can be helpfully distinguished from
Will Thompson <resiak@pidgin.im>
parents:
21507
diff
changeset
|
181 | PURPLE_CONNECTION_ERROR_CERT_NOT_PROVIDED = 8, |
|
e167cb01e146
I don't think that incorrect passwords can be helpfully distinguished from
Will Thompson <resiak@pidgin.im>
parents:
21507
diff
changeset
|
182 | PURPLE_CONNECTION_ERROR_CERT_UNTRUSTED = 9, |
|
e167cb01e146
I don't think that incorrect passwords can be helpfully distinguished from
Will Thompson <resiak@pidgin.im>
parents:
21507
diff
changeset
|
183 | PURPLE_CONNECTION_ERROR_CERT_EXPIRED = 10, |
|
e167cb01e146
I don't think that incorrect passwords can be helpfully distinguished from
Will Thompson <resiak@pidgin.im>
parents:
21507
diff
changeset
|
184 | PURPLE_CONNECTION_ERROR_CERT_NOT_ACTIVATED = 11, |
|
e167cb01e146
I don't think that incorrect passwords can be helpfully distinguished from
Will Thompson <resiak@pidgin.im>
parents:
21507
diff
changeset
|
185 | PURPLE_CONNECTION_ERROR_CERT_HOSTNAME_MISMATCH = 12, |
|
e167cb01e146
I don't think that incorrect passwords can be helpfully distinguished from
Will Thompson <resiak@pidgin.im>
parents:
21507
diff
changeset
|
186 | PURPLE_CONNECTION_ERROR_CERT_FINGERPRINT_MISMATCH = 13, |
|
e167cb01e146
I don't think that incorrect passwords can be helpfully distinguished from
Will Thompson <resiak@pidgin.im>
parents:
21507
diff
changeset
|
187 | PURPLE_CONNECTION_ERROR_CERT_SELF_SIGNED = 14, |
|
e167cb01e146
I don't think that incorrect passwords can be helpfully distinguished from
Will Thompson <resiak@pidgin.im>
parents:
21507
diff
changeset
|
188 | PURPLE_CONNECTION_ERROR_CERT_OTHER_ERROR = 15, |
|
20429
0e840b026c82
Remove non-error PurpleDisconnectReasons, and add PURPLE_REASON_OTHER_ERROR
Will Thompson <resiak@pidgin.im>
parents:
20428
diff
changeset
|
189 | |
|
32157
39ba2e2492ee
Rename purple_connection_error_reason to purple_connection_error
Mark Doliner <markdoliner@pidgin.im>
parents:
32156
diff
changeset
|
190 | /* purple_connection_error() in connection.c uses the fact that |
|
21278
19f6ce8ee4ad
rlaager suggested using the last element of the PurpleDisconnectReason enum
Will Thompson <resiak@pidgin.im>
parents:
21161
diff
changeset
|
191 | * this is the last member of the enum when sanity-checking; if other |
|
19f6ce8ee4ad
rlaager suggested using the last element of the PurpleDisconnectReason enum
Will Thompson <resiak@pidgin.im>
parents:
21161
diff
changeset
|
192 | * reasons are added after it, the check must be updated. |
|
19f6ce8ee4ad
rlaager suggested using the last element of the PurpleDisconnectReason enum
Will Thompson <resiak@pidgin.im>
parents:
21161
diff
changeset
|
193 | */ |
|
21509
e167cb01e146
I don't think that incorrect passwords can be helpfully distinguished from
Will Thompson <resiak@pidgin.im>
parents:
21507
diff
changeset
|
194 | PURPLE_CONNECTION_ERROR_OTHER_ERROR = 16 |
| 21279 | 195 | } PurpleConnectionError; |
|
20428
5526fe433c91
Create a PurpleDisconnectReason enum (which happens to be identical to
Will Thompson <resiak@pidgin.im>
parents:
19897
diff
changeset
|
196 | |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
197 | /** |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
198 | * PurpleConnectionErrorInfo: |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
199 | * @type: The type of error. |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
200 | * @description: A localised, human-readable description of the error. |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
201 | * |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
202 | * Holds the type of an error along with its description. |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
203 | */ |
|
35467
975ae62dd895
Fix cross-references and some other warnings
Ankit Vani <a@nevitus.org>
parents:
35460
diff
changeset
|
204 | struct _PurpleConnectionErrorInfo |
|
21295
46659b1bf31f
PurpleConnectionErrorPair is a better name for struct { PurpleConnectionError;
Will Thompson <resiak@pidgin.im>
parents:
21281
diff
changeset
|
205 | { |
|
46659b1bf31f
PurpleConnectionErrorPair is a better name for struct { PurpleConnectionError;
Will Thompson <resiak@pidgin.im>
parents:
21281
diff
changeset
|
206 | PurpleConnectionError type; |
|
21313
151d5a5258a8
PurpleConnectionErrorInfo.description should not be const.
Will Thompson <resiak@pidgin.im>
parents:
21298
diff
changeset
|
207 | char *description; |
|
35467
975ae62dd895
Fix cross-references and some other warnings
Ankit Vani <a@nevitus.org>
parents:
35460
diff
changeset
|
208 | }; |
|
21295
46659b1bf31f
PurpleConnectionErrorPair is a better name for struct { PurpleConnectionError;
Will Thompson <resiak@pidgin.im>
parents:
21281
diff
changeset
|
209 | |
|
40347
1d7bfb35d82f
Move SSL connection error codes in connection.h.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
40245
diff
changeset
|
210 | /** |
|
1d7bfb35d82f
Move SSL connection error codes in connection.h.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
40245
diff
changeset
|
211 | * PurpleSslErrorType: |
|
1d7bfb35d82f
Move SSL connection error codes in connection.h.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
40245
diff
changeset
|
212 | * @PURPLE_SSL_HANDSHAKE_FAILED: The handshake failed |
|
1d7bfb35d82f
Move SSL connection error codes in connection.h.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
40245
diff
changeset
|
213 | * @PURPLE_SSL_CONNECT_FAILED: The connection failed |
|
1d7bfb35d82f
Move SSL connection error codes in connection.h.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
40245
diff
changeset
|
214 | * @PURPLE_SSL_CERTIFICATE_INVALID: The certificated is invalid |
|
1d7bfb35d82f
Move SSL connection error codes in connection.h.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
40245
diff
changeset
|
215 | * |
|
1d7bfb35d82f
Move SSL connection error codes in connection.h.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
40245
diff
changeset
|
216 | * Possible SSL errors. |
|
1d7bfb35d82f
Move SSL connection error codes in connection.h.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
40245
diff
changeset
|
217 | */ |
|
1d7bfb35d82f
Move SSL connection error codes in connection.h.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
40245
diff
changeset
|
218 | typedef enum |
|
1d7bfb35d82f
Move SSL connection error codes in connection.h.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
40245
diff
changeset
|
219 | { |
|
1d7bfb35d82f
Move SSL connection error codes in connection.h.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
40245
diff
changeset
|
220 | PURPLE_SSL_HANDSHAKE_FAILED = 1, |
|
1d7bfb35d82f
Move SSL connection error codes in connection.h.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
40245
diff
changeset
|
221 | PURPLE_SSL_CONNECT_FAILED = 2, |
|
1d7bfb35d82f
Move SSL connection error codes in connection.h.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
40245
diff
changeset
|
222 | PURPLE_SSL_CERTIFICATE_INVALID = 3 |
|
1d7bfb35d82f
Move SSL connection error codes in connection.h.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
40245
diff
changeset
|
223 | } PurpleSslErrorType; |
|
1d7bfb35d82f
Move SSL connection error codes in connection.h.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
40245
diff
changeset
|
224 | |
|
10021
5aa380278a15
[gaim-migrate @ 10946]
Mark Doliner <markdoliner@pidgin.im>
parents:
10008
diff
changeset
|
225 | #include <time.h> |
|
5aa380278a15
[gaim-migrate @ 10946]
Mark Doliner <markdoliner@pidgin.im>
parents:
10008
diff
changeset
|
226 | |
|
5944
f19df037ac58
[gaim-migrate @ 6385]
Christian Hammond <chipx86@chipx86.com>
parents:
5872
diff
changeset
|
227 | #include "account.h" |
|
41155
922c9e70900c
Rename protocol.[ch] to purpleprotocol.[ch]
Gary Kramlich <grim@reaperworld.com>
parents:
41034
diff
changeset
|
228 | #include "purpleprotocol.h" |
| 10400 | 229 | #include "status.h" |
|
5944
f19df037ac58
[gaim-migrate @ 6385]
Christian Hammond <chipx86@chipx86.com>
parents:
5872
diff
changeset
|
230 | |
|
25885
5b5e2ca316b2
Add @since 2.6.0 doxygen comments to some of our new functions, and
Mark Doliner <markdoliner@pidgin.im>
parents:
25119
diff
changeset
|
231 | /** |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
232 | * PurpleConnectionUiOps: |
|
35460
96946e21fce5
Fix some more gtk-doc warnings till dnssrv
Ankit Vani <a@nevitus.org>
parents:
35436
diff
changeset
|
233 | * @connect_progress: When an account is connecting, this operation is called to |
|
96946e21fce5
Fix some more gtk-doc warnings till dnssrv
Ankit Vani <a@nevitus.org>
parents:
35436
diff
changeset
|
234 | * notify the UI of what is happening, as well as which @step |
|
96946e21fce5
Fix some more gtk-doc warnings till dnssrv
Ankit Vani <a@nevitus.org>
parents:
35436
diff
changeset
|
235 | * out of @step_count has been reached (which might be |
|
96946e21fce5
Fix some more gtk-doc warnings till dnssrv
Ankit Vani <a@nevitus.org>
parents:
35436
diff
changeset
|
236 | * displayed as a progress bar). |
|
96946e21fce5
Fix some more gtk-doc warnings till dnssrv
Ankit Vani <a@nevitus.org>
parents:
35436
diff
changeset
|
237 | * <sbr/>See purple_connection_update_progress(). |
|
96946e21fce5
Fix some more gtk-doc warnings till dnssrv
Ankit Vani <a@nevitus.org>
parents:
35436
diff
changeset
|
238 | * @connected: Called when a connection is established (just before the |
|
96946e21fce5
Fix some more gtk-doc warnings till dnssrv
Ankit Vani <a@nevitus.org>
parents:
35436
diff
changeset
|
239 | * <link linkend="connections-signed-on"><literal>"signed-on"</literal></link> |
|
96946e21fce5
Fix some more gtk-doc warnings till dnssrv
Ankit Vani <a@nevitus.org>
parents:
35436
diff
changeset
|
240 | * signal). |
|
96946e21fce5
Fix some more gtk-doc warnings till dnssrv
Ankit Vani <a@nevitus.org>
parents:
35436
diff
changeset
|
241 | * @disconnected: Called when a connection is ended (between the |
|
96946e21fce5
Fix some more gtk-doc warnings till dnssrv
Ankit Vani <a@nevitus.org>
parents:
35436
diff
changeset
|
242 | * <link linkend="connections-signing-off"><literal>"signing-off"</literal></link> |
|
96946e21fce5
Fix some more gtk-doc warnings till dnssrv
Ankit Vani <a@nevitus.org>
parents:
35436
diff
changeset
|
243 | * and <link linkend="connections-signed-off"><literal>"signed-off"</literal></link> |
|
96946e21fce5
Fix some more gtk-doc warnings till dnssrv
Ankit Vani <a@nevitus.org>
parents:
35436
diff
changeset
|
244 | * signals). |
|
96946e21fce5
Fix some more gtk-doc warnings till dnssrv
Ankit Vani <a@nevitus.org>
parents:
35436
diff
changeset
|
245 | * @notice: Used to display connection-specific notices. (Pidgin's Gtk user |
|
96946e21fce5
Fix some more gtk-doc warnings till dnssrv
Ankit Vani <a@nevitus.org>
parents:
35436
diff
changeset
|
246 | * interface implements this as a no-op; purple_connection_notice(), |
|
96946e21fce5
Fix some more gtk-doc warnings till dnssrv
Ankit Vani <a@nevitus.org>
parents:
35436
diff
changeset
|
247 | * which uses this operation, is not used by any of the protocols |
|
96946e21fce5
Fix some more gtk-doc warnings till dnssrv
Ankit Vani <a@nevitus.org>
parents:
35436
diff
changeset
|
248 | * shipped with libpurple.) |
|
96946e21fce5
Fix some more gtk-doc warnings till dnssrv
Ankit Vani <a@nevitus.org>
parents:
35436
diff
changeset
|
249 | * @network_connected: Called when libpurple discovers that the computer's |
|
96946e21fce5
Fix some more gtk-doc warnings till dnssrv
Ankit Vani <a@nevitus.org>
parents:
35436
diff
changeset
|
250 | * network connection is active. On Linux, this uses |
|
96946e21fce5
Fix some more gtk-doc warnings till dnssrv
Ankit Vani <a@nevitus.org>
parents:
35436
diff
changeset
|
251 | * Network Manager if available; on Windows, it uses |
|
96946e21fce5
Fix some more gtk-doc warnings till dnssrv
Ankit Vani <a@nevitus.org>
parents:
35436
diff
changeset
|
252 | * Win32's network change notification infrastructure. |
|
96946e21fce5
Fix some more gtk-doc warnings till dnssrv
Ankit Vani <a@nevitus.org>
parents:
35436
diff
changeset
|
253 | * @network_disconnected: Called when libpurple discovers that the computer's |
|
96946e21fce5
Fix some more gtk-doc warnings till dnssrv
Ankit Vani <a@nevitus.org>
parents:
35436
diff
changeset
|
254 | * network connection has gone away. |
|
96946e21fce5
Fix some more gtk-doc warnings till dnssrv
Ankit Vani <a@nevitus.org>
parents:
35436
diff
changeset
|
255 | * @report_disconnect: Called when an error causes a connection to be |
|
96946e21fce5
Fix some more gtk-doc warnings till dnssrv
Ankit Vani <a@nevitus.org>
parents:
35436
diff
changeset
|
256 | * disconnected. Called before @disconnected. |
|
96946e21fce5
Fix some more gtk-doc warnings till dnssrv
Ankit Vani <a@nevitus.org>
parents:
35436
diff
changeset
|
257 | * <sbr/>See purple_connection_error(). |
|
96946e21fce5
Fix some more gtk-doc warnings till dnssrv
Ankit Vani <a@nevitus.org>
parents:
35436
diff
changeset
|
258 | * <sbr/>@reason: why the connection ended, if known, or |
|
96946e21fce5
Fix some more gtk-doc warnings till dnssrv
Ankit Vani <a@nevitus.org>
parents:
35436
diff
changeset
|
259 | * #PURPLE_CONNECTION_ERROR_OTHER_ERROR, if not. |
|
96946e21fce5
Fix some more gtk-doc warnings till dnssrv
Ankit Vani <a@nevitus.org>
parents:
35436
diff
changeset
|
260 | * <sbr/>@text: a localized message describing the |
|
96946e21fce5
Fix some more gtk-doc warnings till dnssrv
Ankit Vani <a@nevitus.org>
parents:
35436
diff
changeset
|
261 | * disconnection in more detail to the user. |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
262 | * |
|
25885
5b5e2ca316b2
Add @since 2.6.0 doxygen comments to some of our new functions, and
Mark Doliner <markdoliner@pidgin.im>
parents:
25119
diff
changeset
|
263 | * Connection UI operations. Used to notify the user of changes to |
|
5b5e2ca316b2
Add @since 2.6.0 doxygen comments to some of our new functions, and
Mark Doliner <markdoliner@pidgin.im>
parents:
25119
diff
changeset
|
264 | * connections, such as being disconnected, and to respond to the |
|
5b5e2ca316b2
Add @since 2.6.0 doxygen comments to some of our new functions, and
Mark Doliner <markdoliner@pidgin.im>
parents:
25119
diff
changeset
|
265 | * underlying network connection appearing and disappearing. UIs should |
|
5b5e2ca316b2
Add @since 2.6.0 doxygen comments to some of our new functions, and
Mark Doliner <markdoliner@pidgin.im>
parents:
25119
diff
changeset
|
266 | * call #purple_connections_set_ui_ops() with an instance of this struct. |
|
19128
871e26c75048
Document PurpleConnectionUiOps. (Does purple_connection_notice predate the
Will Thompson <resiak@pidgin.im>
parents:
18190
diff
changeset
|
267 | * |
|
35460
96946e21fce5
Fix some more gtk-doc warnings till dnssrv
Ankit Vani <a@nevitus.org>
parents:
35436
diff
changeset
|
268 | * See <link linkend="chapter-ui-ops">List of <literal>UiOps</literal> Structures</link> |
|
19128
871e26c75048
Document PurpleConnectionUiOps. (Does purple_connection_notice predate the
Will Thompson <resiak@pidgin.im>
parents:
18190
diff
changeset
|
269 | */ |
|
35460
96946e21fce5
Fix some more gtk-doc warnings till dnssrv
Ankit Vani <a@nevitus.org>
parents:
35436
diff
changeset
|
270 | struct _PurpleConnectionUiOps |
| 5563 | 271 | { |
|
19128
871e26c75048
Document PurpleConnectionUiOps. (Does purple_connection_notice predate the
Will Thompson <resiak@pidgin.im>
parents:
18190
diff
changeset
|
272 | void (*connect_progress)(PurpleConnection *gc, |
|
871e26c75048
Document PurpleConnectionUiOps. (Does purple_connection_notice predate the
Will Thompson <resiak@pidgin.im>
parents:
18190
diff
changeset
|
273 | const char *text, |
|
871e26c75048
Document PurpleConnectionUiOps. (Does purple_connection_notice predate the
Will Thompson <resiak@pidgin.im>
parents:
18190
diff
changeset
|
274 | size_t step, |
|
871e26c75048
Document PurpleConnectionUiOps. (Does purple_connection_notice predate the
Will Thompson <resiak@pidgin.im>
parents:
18190
diff
changeset
|
275 | size_t step_count); |
|
20430
bb30dff3da21
Create PurpleConnectionUiOps.report_disconnect_reason and
Will Thompson <resiak@pidgin.im>
parents:
20429
diff
changeset
|
276 | |
| 15884 | 277 | void (*connected)(PurpleConnection *gc); |
| 278 | void (*disconnected)(PurpleConnection *gc); | |
|
20430
bb30dff3da21
Create PurpleConnectionUiOps.report_disconnect_reason and
Will Thompson <resiak@pidgin.im>
parents:
20429
diff
changeset
|
279 | |
| 15884 | 280 | void (*notice)(PurpleConnection *gc, const char *text); |
|
20430
bb30dff3da21
Create PurpleConnectionUiOps.report_disconnect_reason and
Will Thompson <resiak@pidgin.im>
parents:
20429
diff
changeset
|
281 | |
|
22093
a5e784e3b6a7
Felipe Contreras, one of our older Crazy Pacth Writers, noticed that these
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
21511
diff
changeset
|
282 | void (*network_connected)(void); |
|
a5e784e3b6a7
Felipe Contreras, one of our older Crazy Pacth Writers, noticed that these
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
21511
diff
changeset
|
283 | void (*network_disconnected)(void); |
| 5563 | 284 | |
|
32153
121f15699f88
Rename the report_disconnect_reason cb function to report_disconnect
Mark Doliner <markdoliner@pidgin.im>
parents:
32152
diff
changeset
|
285 | void (*report_disconnect)(PurpleConnection *gc, |
|
121f15699f88
Rename the report_disconnect_reason cb function to report_disconnect
Mark Doliner <markdoliner@pidgin.im>
parents:
32152
diff
changeset
|
286 | PurpleConnectionError reason, |
|
121f15699f88
Rename the report_disconnect_reason cb function to report_disconnect
Mark Doliner <markdoliner@pidgin.im>
parents:
32152
diff
changeset
|
287 | const char *text); |
|
20430
bb30dff3da21
Create PurpleConnectionUiOps.report_disconnect_reason and
Will Thompson <resiak@pidgin.im>
parents:
20429
diff
changeset
|
288 | |
|
35024
eb3afb7643ce
Added /*< private >*/ for padding members, clean them up and add missing ones
Ankit Vani <a@nevitus.org>
parents:
34999
diff
changeset
|
289 | /*< private >*/ |
|
16743
1ce5ffe12e2a
Initial addition of padding for ui_ops and other class-like structs
Gary Kramlich <grim@reaperworld.com>
parents:
15884
diff
changeset
|
290 | void (*_purple_reserved1)(void); |
|
1ce5ffe12e2a
Initial addition of padding for ui_ops and other class-like structs
Gary Kramlich <grim@reaperworld.com>
parents:
15884
diff
changeset
|
291 | void (*_purple_reserved2)(void); |
|
1ce5ffe12e2a
Initial addition of padding for ui_ops and other class-like structs
Gary Kramlich <grim@reaperworld.com>
parents:
15884
diff
changeset
|
292 | void (*_purple_reserved3)(void); |
|
34885
f4b25d67224d
Added a padding member in PurpleConnectionUiOps
Ankit Vani <a@nevitus.org>
parents:
34884
diff
changeset
|
293 | void (*_purple_reserved4)(void); |
|
35460
96946e21fce5
Fix some more gtk-doc warnings till dnssrv
Ankit Vani <a@nevitus.org>
parents:
35436
diff
changeset
|
294 | }; |
| 5563 | 295 | |
|
32787
7072f190d6ad
Use G_BEGIN/END_DECLS in public libpurple files. This was
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32687
diff
changeset
|
296 | G_BEGIN_DECLS |
|
5944
f19df037ac58
[gaim-migrate @ 6385]
Christian Hammond <chipx86@chipx86.com>
parents:
5872
diff
changeset
|
297 | |
|
40474
1341be8e3402
Make it so only libpurple can directly include libpurple header files.
Gary Kramlich <grim@reaperworld.com>
parents:
40369
diff
changeset
|
298 | /****************************************************************************** |
|
1341be8e3402
Make it so only libpurple can directly include libpurple header files.
Gary Kramlich <grim@reaperworld.com>
parents:
40369
diff
changeset
|
299 | * To be deleted in the future |
|
1341be8e3402
Make it so only libpurple can directly include libpurple header files.
Gary Kramlich <grim@reaperworld.com>
parents:
40369
diff
changeset
|
300 | *****************************************************************************/ |
|
1341be8e3402
Make it so only libpurple can directly include libpurple header files.
Gary Kramlich <grim@reaperworld.com>
parents:
40369
diff
changeset
|
301 | void |
|
1341be8e3402
Make it so only libpurple can directly include libpurple header files.
Gary Kramlich <grim@reaperworld.com>
parents:
40369
diff
changeset
|
302 | _purple_assert_connection_is_valid(PurpleConnection *gc, |
|
1341be8e3402
Make it so only libpurple can directly include libpurple header files.
Gary Kramlich <grim@reaperworld.com>
parents:
40369
diff
changeset
|
303 | const gchar *file, int line); |
|
1341be8e3402
Make it so only libpurple can directly include libpurple header files.
Gary Kramlich <grim@reaperworld.com>
parents:
40369
diff
changeset
|
304 | |
|
5944
f19df037ac58
[gaim-migrate @ 6385]
Christian Hammond <chipx86@chipx86.com>
parents:
5872
diff
changeset
|
305 | /**************************************************************************/ |
| 35472 | 306 | /* Connection API */ |
|
5944
f19df037ac58
[gaim-migrate @ 6385]
Christian Hammond <chipx86@chipx86.com>
parents:
5872
diff
changeset
|
307 | /**************************************************************************/ |
|
f19df037ac58
[gaim-migrate @ 6385]
Christian Hammond <chipx86@chipx86.com>
parents:
5872
diff
changeset
|
308 | |
| 6581 | 309 | /** |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
310 | * purple_connection_get_type: |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
311 | * |
|
35460
96946e21fce5
Fix some more gtk-doc warnings till dnssrv
Ankit Vani <a@nevitus.org>
parents:
35436
diff
changeset
|
312 | * Returns: The #GType for the Connection object. |
|
34748
02efb47ea4f4
Added GObject boilerplate code for PurpleConnection
Ankit Vani <a@nevitus.org>
parents:
34746
diff
changeset
|
313 | */ |
|
39549
ee61762c3ebe
Use G_DECLARE* for PurpleConnection.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39433
diff
changeset
|
314 | G_DECLARE_FINAL_TYPE(PurpleConnection, purple_connection, PURPLE, CONNECTION, GObject) |
|
34748
02efb47ea4f4
Added GObject boilerplate code for PurpleConnection
Ankit Vani <a@nevitus.org>
parents:
34746
diff
changeset
|
315 | |
|
02efb47ea4f4
Added GObject boilerplate code for PurpleConnection
Ankit Vani <a@nevitus.org>
parents:
34746
diff
changeset
|
316 | /** |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
317 | * purple_connection_error_info_get_type: |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
318 | * |
|
35460
96946e21fce5
Fix some more gtk-doc warnings till dnssrv
Ankit Vani <a@nevitus.org>
parents:
35436
diff
changeset
|
319 | * Returns: The #GType for the #PurpleConnectionErrorInfo boxed structure. |
|
34753
b2c73469c1be
GObjectified the PurpleConnection source
Ankit Vani <a@nevitus.org>
parents:
34751
diff
changeset
|
320 | */ |
|
b2c73469c1be
GObjectified the PurpleConnection source
Ankit Vani <a@nevitus.org>
parents:
34751
diff
changeset
|
321 | GType purple_connection_error_info_get_type(void); |
|
b2c73469c1be
GObjectified the PurpleConnection source
Ankit Vani <a@nevitus.org>
parents:
34751
diff
changeset
|
322 | |
|
b2c73469c1be
GObjectified the PurpleConnection source
Ankit Vani <a@nevitus.org>
parents:
34751
diff
changeset
|
323 | /** |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
324 | * purple_connection_set_state: |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
325 | * @gc: The connection. |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
326 | * @state: The connection state. |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
327 | * |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
328 | * Sets the connection state. Protocols should call this and pass in |
|
34746
dc9c911dbd35
Started GObjectification of PurpleConnection.
Ankit Vani <a@nevitus.org>
parents:
34646
diff
changeset
|
329 | * the state #PURPLE_CONNECTION_CONNECTED when the account is completely |
|
11718
90804d019837
[gaim-migrate @ 14009]
Mark Doliner <markdoliner@pidgin.im>
parents:
10758
diff
changeset
|
330 | * signed on. What does it mean to be completely signed on? If |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
331 | * the core can call protocol's set_status, and it successfully changes |
|
11718
90804d019837
[gaim-migrate @ 14009]
Mark Doliner <markdoliner@pidgin.im>
parents:
10758
diff
changeset
|
332 | * your status, then the account is online. |
| 5563 | 333 | */ |
| 15884 | 334 | void purple_connection_set_state(PurpleConnection *gc, PurpleConnectionState state); |
| 5563 | 335 | |
| 336 | /** | |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
337 | * purple_connection_set_flags: |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35042
diff
changeset
|
338 | * @gc: The connection. |
|
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35042
diff
changeset
|
339 | * @flags: The flags. |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
340 | * |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
341 | * Sets the connection flags. |
|
40215
f7cf821e15de
Replace a bunch of entries in ChangeLog.API entries with Since annotations
Gary Kramlich <grim@reaperworld.com>
parents:
39659
diff
changeset
|
342 | * |
|
f7cf821e15de
Replace a bunch of entries in ChangeLog.API entries with Since annotations
Gary Kramlich <grim@reaperworld.com>
parents:
39659
diff
changeset
|
343 | * Since: 3.0.0 |
|
32678
01f6312a4a7b
On the way to hiding the PurpleConnection struct.
Andrew Victor <andrew.victor@mxit.com>
parents:
32604
diff
changeset
|
344 | */ |
|
01f6312a4a7b
On the way to hiding the PurpleConnection struct.
Andrew Victor <andrew.victor@mxit.com>
parents:
32604
diff
changeset
|
345 | void purple_connection_set_flags(PurpleConnection *gc, PurpleConnectionFlags flags); |
|
01f6312a4a7b
On the way to hiding the PurpleConnection struct.
Andrew Victor <andrew.victor@mxit.com>
parents:
32604
diff
changeset
|
346 | |
|
01f6312a4a7b
On the way to hiding the PurpleConnection struct.
Andrew Victor <andrew.victor@mxit.com>
parents:
32604
diff
changeset
|
347 | /** |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
348 | * purple_connection_set_display_name: |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35042
diff
changeset
|
349 | * @gc: The connection. |
|
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35042
diff
changeset
|
350 | * @name: The displayed name. |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
351 | * |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
352 | * Sets the connection's displayed name. |
| 5563 | 353 | */ |
| 15884 | 354 | void purple_connection_set_display_name(PurpleConnection *gc, const char *name); |
| 5563 | 355 | |
| 356 | /** | |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
357 | * purple_connection_set_protocol_data: |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35042
diff
changeset
|
358 | * @connection: The PurpleConnection. |
|
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35042
diff
changeset
|
359 | * @proto_data: The protocol data to set for the connection. |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
360 | * |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
361 | * Sets the protocol data for a connection. |
|
24937
3664132c36c8
Added purple_connection_set_protocol_data and purple_connection_get_protocol_data
Gary Kramlich <grim@reaperworld.com>
parents:
23517
diff
changeset
|
362 | */ |
|
3664132c36c8
Added purple_connection_set_protocol_data and purple_connection_get_protocol_data
Gary Kramlich <grim@reaperworld.com>
parents:
23517
diff
changeset
|
363 | void purple_connection_set_protocol_data(PurpleConnection *connection, void *proto_data); |
|
3664132c36c8
Added purple_connection_set_protocol_data and purple_connection_get_protocol_data
Gary Kramlich <grim@reaperworld.com>
parents:
23517
diff
changeset
|
364 | |
|
3664132c36c8
Added purple_connection_set_protocol_data and purple_connection_get_protocol_data
Gary Kramlich <grim@reaperworld.com>
parents:
23517
diff
changeset
|
365 | /** |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
366 | * purple_connection_get_state: |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
367 | * @gc: The connection. |
| 5563 | 368 | * |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
369 | * Returns the connection state. |
| 5563 | 370 | * |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35042
diff
changeset
|
371 | * Returns: The connection state. |
| 5563 | 372 | */ |
|
39433
f033955d125a
Use G_DEFINE_TYPE_WITH_PRIVATE for PurpleConnection.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
38745
diff
changeset
|
373 | PurpleConnectionState purple_connection_get_state(PurpleConnection *gc); |
| 5563 | 374 | |
| 375 | /** | |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
376 | * purple_connection_get_flags: |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
377 | * @gc: The connection. |
|
32678
01f6312a4a7b
On the way to hiding the PurpleConnection struct.
Andrew Victor <andrew.victor@mxit.com>
parents:
32604
diff
changeset
|
378 | * |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
379 | * Returns the connection flags. |
|
32678
01f6312a4a7b
On the way to hiding the PurpleConnection struct.
Andrew Victor <andrew.victor@mxit.com>
parents:
32604
diff
changeset
|
380 | * |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35042
diff
changeset
|
381 | * Returns: The connection flags. |
|
40215
f7cf821e15de
Replace a bunch of entries in ChangeLog.API entries with Since annotations
Gary Kramlich <grim@reaperworld.com>
parents:
39659
diff
changeset
|
382 | * |
|
f7cf821e15de
Replace a bunch of entries in ChangeLog.API entries with Since annotations
Gary Kramlich <grim@reaperworld.com>
parents:
39659
diff
changeset
|
383 | * Since: 3.0.0 |
|
32678
01f6312a4a7b
On the way to hiding the PurpleConnection struct.
Andrew Victor <andrew.victor@mxit.com>
parents:
32604
diff
changeset
|
384 | */ |
|
39433
f033955d125a
Use G_DEFINE_TYPE_WITH_PRIVATE for PurpleConnection.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
38745
diff
changeset
|
385 | PurpleConnectionFlags purple_connection_get_flags(PurpleConnection *gc); |
|
32678
01f6312a4a7b
On the way to hiding the PurpleConnection struct.
Andrew Victor <andrew.victor@mxit.com>
parents:
32604
diff
changeset
|
386 | |
|
01f6312a4a7b
On the way to hiding the PurpleConnection struct.
Andrew Victor <andrew.victor@mxit.com>
parents:
32604
diff
changeset
|
387 | /** |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
388 | * PURPLE_CONNECTION_IS_CONNECTED: |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
389 | * |
|
9019
b9a333b36763
[gaim-migrate @ 9795]
Mark Doliner <markdoliner@pidgin.im>
parents:
8735
diff
changeset
|
390 | * Returns TRUE if the account is connected, otherwise returns FALSE. |
|
b9a333b36763
[gaim-migrate @ 9795]
Mark Doliner <markdoliner@pidgin.im>
parents:
8735
diff
changeset
|
391 | * |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35042
diff
changeset
|
392 | * Returns: TRUE if the account is connected, otherwise returns FALSE. |
|
9019
b9a333b36763
[gaim-migrate @ 9795]
Mark Doliner <markdoliner@pidgin.im>
parents:
8735
diff
changeset
|
393 | */ |
| 15884 | 394 | #define PURPLE_CONNECTION_IS_CONNECTED(gc) \ |
|
34746
dc9c911dbd35
Started GObjectification of PurpleConnection.
Ankit Vani <a@nevitus.org>
parents:
34646
diff
changeset
|
395 | (purple_connection_get_state(gc) == PURPLE_CONNECTION_CONNECTED) |
|
9019
b9a333b36763
[gaim-migrate @ 9795]
Mark Doliner <markdoliner@pidgin.im>
parents:
8735
diff
changeset
|
396 | |
|
b9a333b36763
[gaim-migrate @ 9795]
Mark Doliner <markdoliner@pidgin.im>
parents:
8735
diff
changeset
|
397 | /** |
|
36067
df9f5de00ea2
PurpleSocket: fix a crash
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
35572
diff
changeset
|
398 | * purple_connection_is_disconnecting: |
|
40245
056a71665e06
Add a bunch of missing docs.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
40215
diff
changeset
|
399 | * @gc: The connection. |
|
36067
df9f5de00ea2
PurpleSocket: fix a crash
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
35572
diff
changeset
|
400 | * |
|
df9f5de00ea2
PurpleSocket: fix a crash
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
35572
diff
changeset
|
401 | * Checks, if connection is in disconnecting state. |
|
df9f5de00ea2
PurpleSocket: fix a crash
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
35572
diff
changeset
|
402 | * |
|
df9f5de00ea2
PurpleSocket: fix a crash
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
35572
diff
changeset
|
403 | * Returns: %TRUE, if the account is disconnecting. |
|
df9f5de00ea2
PurpleSocket: fix a crash
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
35572
diff
changeset
|
404 | */ |
|
df9f5de00ea2
PurpleSocket: fix a crash
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
35572
diff
changeset
|
405 | gboolean |
|
39433
f033955d125a
Use G_DEFINE_TYPE_WITH_PRIVATE for PurpleConnection.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
38745
diff
changeset
|
406 | purple_connection_is_disconnecting(PurpleConnection *gc); |
|
36067
df9f5de00ea2
PurpleSocket: fix a crash
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
35572
diff
changeset
|
407 | |
|
df9f5de00ea2
PurpleSocket: fix a crash
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
35572
diff
changeset
|
408 | /** |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
409 | * purple_connection_get_account: |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
410 | * @gc: The connection. |
| 5563 | 411 | * |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
412 | * Returns the connection's account. |
| 5563 | 413 | * |
|
38745
f4376b1f4682
A ton more of introspection cleanups
Gary Kramlich <grim@reaperworld.com>
parents:
38716
diff
changeset
|
414 | * Returns: (transfer none): The connection's account. |
| 5563 | 415 | */ |
|
39433
f033955d125a
Use G_DEFINE_TYPE_WITH_PRIVATE for PurpleConnection.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
38745
diff
changeset
|
416 | PurpleAccount *purple_connection_get_account(PurpleConnection *gc); |
| 5563 | 417 | |
| 418 | /** | |
| 37040 | 419 | * purple_connection_get_protocol: |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
420 | * @gc: The connection. |
|
22336
ac905bb0a8ec
Add accessor and update finch to not touch the internals of PurpleConnection.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
22277
diff
changeset
|
421 | * |
| 37040 | 422 | * Returns the protocol managing a connection. |
|
22336
ac905bb0a8ec
Add accessor and update finch to not touch the internals of PurpleConnection.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
22277
diff
changeset
|
423 | * |
|
38745
f4376b1f4682
A ton more of introspection cleanups
Gary Kramlich <grim@reaperworld.com>
parents:
38716
diff
changeset
|
424 | * Returns: (transfer none): The protocol. |
|
22336
ac905bb0a8ec
Add accessor and update finch to not touch the internals of PurpleConnection.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
22277
diff
changeset
|
425 | */ |
|
39433
f033955d125a
Use G_DEFINE_TYPE_WITH_PRIVATE for PurpleConnection.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
38745
diff
changeset
|
426 | PurpleProtocol *purple_connection_get_protocol(PurpleConnection *gc); |
|
22336
ac905bb0a8ec
Add accessor and update finch to not touch the internals of PurpleConnection.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
22277
diff
changeset
|
427 | |
|
ac905bb0a8ec
Add accessor and update finch to not touch the internals of PurpleConnection.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
22277
diff
changeset
|
428 | /** |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
429 | * purple_connection_get_password: |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
430 | * @gc: The connection. |
|
10740
a1cb6b819a21
[gaim-migrate @ 12342]
Mark Doliner <markdoliner@pidgin.im>
parents:
10738
diff
changeset
|
431 | * |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
432 | * Returns the connection's password. |
|
10740
a1cb6b819a21
[gaim-migrate @ 12342]
Mark Doliner <markdoliner@pidgin.im>
parents:
10738
diff
changeset
|
433 | * |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35042
diff
changeset
|
434 | * Returns: The connection's password. |
|
10740
a1cb6b819a21
[gaim-migrate @ 12342]
Mark Doliner <markdoliner@pidgin.im>
parents:
10738
diff
changeset
|
435 | */ |
|
39433
f033955d125a
Use G_DEFINE_TYPE_WITH_PRIVATE for PurpleConnection.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
38745
diff
changeset
|
436 | const char *purple_connection_get_password(PurpleConnection *gc); |
|
10740
a1cb6b819a21
[gaim-migrate @ 12342]
Mark Doliner <markdoliner@pidgin.im>
parents:
10738
diff
changeset
|
437 | |
|
a1cb6b819a21
[gaim-migrate @ 12342]
Mark Doliner <markdoliner@pidgin.im>
parents:
10738
diff
changeset
|
438 | /** |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
439 | * purple_connection_get_active_chats: |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
440 | * @gc: The connection. |
|
34750
826c1611ef90
Refactored protocols to use the initial GObject connection API.
Ankit Vani <a@nevitus.org>
parents:
34748
diff
changeset
|
441 | * |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
442 | * Returns a list of active chat conversations on a connection. |
|
34750
826c1611ef90
Refactored protocols to use the initial GObject connection API.
Ankit Vani <a@nevitus.org>
parents:
34748
diff
changeset
|
443 | * |
|
38716
b9bed228745a
Add many libpurple element-type annotations.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
37961
diff
changeset
|
444 | * Returns: (element-type PurpleChatConversation) (transfer none): The active |
|
b9bed228745a
Add many libpurple element-type annotations.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
37961
diff
changeset
|
445 | * chats on the connection. |
|
40215
f7cf821e15de
Replace a bunch of entries in ChangeLog.API entries with Since annotations
Gary Kramlich <grim@reaperworld.com>
parents:
39659
diff
changeset
|
446 | * |
|
f7cf821e15de
Replace a bunch of entries in ChangeLog.API entries with Since annotations
Gary Kramlich <grim@reaperworld.com>
parents:
39659
diff
changeset
|
447 | * Since: 3.0.0 |
|
34750
826c1611ef90
Refactored protocols to use the initial GObject connection API.
Ankit Vani <a@nevitus.org>
parents:
34748
diff
changeset
|
448 | */ |
|
39433
f033955d125a
Use G_DEFINE_TYPE_WITH_PRIVATE for PurpleConnection.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
38745
diff
changeset
|
449 | GSList *purple_connection_get_active_chats(PurpleConnection *gc); |
|
34750
826c1611ef90
Refactored protocols to use the initial GObject connection API.
Ankit Vani <a@nevitus.org>
parents:
34748
diff
changeset
|
450 | |
|
826c1611ef90
Refactored protocols to use the initial GObject connection API.
Ankit Vani <a@nevitus.org>
parents:
34748
diff
changeset
|
451 | /** |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
452 | * purple_connection_get_display_name: |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
453 | * @gc: The connection. |
| 5563 | 454 | * |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
455 | * Returns the connection's displayed name. |
| 5563 | 456 | * |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35042
diff
changeset
|
457 | * Returns: The connection's displayed name. |
| 5563 | 458 | */ |
|
39433
f033955d125a
Use G_DEFINE_TYPE_WITH_PRIVATE for PurpleConnection.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
38745
diff
changeset
|
459 | const char *purple_connection_get_display_name(PurpleConnection *gc); |
| 5563 | 460 | |
| 461 | /** | |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
462 | * purple_connection_get_protocol_data: |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
463 | * @gc: The PurpleConnection. |
|
24937
3664132c36c8
Added purple_connection_set_protocol_data and purple_connection_get_protocol_data
Gary Kramlich <grim@reaperworld.com>
parents:
23517
diff
changeset
|
464 | * |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
465 | * Gets the protocol data from a connection. |
|
24937
3664132c36c8
Added purple_connection_set_protocol_data and purple_connection_get_protocol_data
Gary Kramlich <grim@reaperworld.com>
parents:
23517
diff
changeset
|
466 | * |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35042
diff
changeset
|
467 | * Returns: The protocol data for the connection. |
|
24937
3664132c36c8
Added purple_connection_set_protocol_data and purple_connection_get_protocol_data
Gary Kramlich <grim@reaperworld.com>
parents:
23517
diff
changeset
|
468 | */ |
|
39433
f033955d125a
Use G_DEFINE_TYPE_WITH_PRIVATE for PurpleConnection.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
38745
diff
changeset
|
469 | void *purple_connection_get_protocol_data(PurpleConnection *gc); |
|
24937
3664132c36c8
Added purple_connection_set_protocol_data and purple_connection_get_protocol_data
Gary Kramlich <grim@reaperworld.com>
parents:
23517
diff
changeset
|
470 | |
|
3664132c36c8
Added purple_connection_set_protocol_data and purple_connection_get_protocol_data
Gary Kramlich <grim@reaperworld.com>
parents:
23517
diff
changeset
|
471 | /** |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
472 | * purple_connection_update_progress: |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35042
diff
changeset
|
473 | * @gc: The connection. |
|
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35042
diff
changeset
|
474 | * @text: Information on the current step. |
|
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35042
diff
changeset
|
475 | * @step: The current step. |
|
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35042
diff
changeset
|
476 | * @count: The total number of steps. |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
477 | * |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
478 | * Updates the connection progress. |
| 5563 | 479 | */ |
| 15884 | 480 | void purple_connection_update_progress(PurpleConnection *gc, const char *text, |
| 5563 | 481 | size_t step, size_t count); |
| 482 | ||
| 483 | /** | |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
484 | * purple_connection_notice: |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35042
diff
changeset
|
485 | * @gc: The connection. |
|
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35042
diff
changeset
|
486 | * @text: The notice text. |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
487 | * |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
488 | * Displays a connection-specific notice. |
|
5571
b709464f507e
[gaim-migrate @ 5973]
Christian Hammond <chipx86@chipx86.com>
parents:
5564
diff
changeset
|
489 | */ |
| 15884 | 490 | void purple_connection_notice(PurpleConnection *gc, const char *text); |
|
5571
b709464f507e
[gaim-migrate @ 5973]
Christian Hammond <chipx86@chipx86.com>
parents:
5564
diff
changeset
|
491 | |
|
b709464f507e
[gaim-migrate @ 5973]
Christian Hammond <chipx86@chipx86.com>
parents:
5564
diff
changeset
|
492 | /** |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
493 | * purple_connection_error: |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35042
diff
changeset
|
494 | * @gc: the connection which is closing. |
|
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35042
diff
changeset
|
495 | * @reason: why the connection is closing. |
|
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35042
diff
changeset
|
496 | * @description: a localized description of the error (not %NULL ). |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
497 | * |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
498 | * Closes a connection with an error and a human-readable description of the |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
499 | * error. |
|
20430
bb30dff3da21
Create PurpleConnectionUiOps.report_disconnect_reason and
Will Thompson <resiak@pidgin.im>
parents:
20429
diff
changeset
|
500 | */ |
|
bb30dff3da21
Create PurpleConnectionUiOps.report_disconnect_reason and
Will Thompson <resiak@pidgin.im>
parents:
20429
diff
changeset
|
501 | void |
|
32157
39ba2e2492ee
Rename purple_connection_error_reason to purple_connection_error
Mark Doliner <markdoliner@pidgin.im>
parents:
32156
diff
changeset
|
502 | purple_connection_error(PurpleConnection *gc, |
|
39ba2e2492ee
Rename purple_connection_error_reason to purple_connection_error
Mark Doliner <markdoliner@pidgin.im>
parents:
32156
diff
changeset
|
503 | PurpleConnectionError reason, |
|
39ba2e2492ee
Rename purple_connection_error_reason to purple_connection_error
Mark Doliner <markdoliner@pidgin.im>
parents:
32156
diff
changeset
|
504 | const char *description); |
|
20430
bb30dff3da21
Create PurpleConnectionUiOps.report_disconnect_reason and
Will Thompson <resiak@pidgin.im>
parents:
20429
diff
changeset
|
505 | |
|
20431
49979e453876
Create purple_connection_reason_is_fatal, which is basically a replacement for
Will Thompson <resiak@pidgin.im>
parents:
20430
diff
changeset
|
506 | /** |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
507 | * purple_connection_get_error_info: |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
508 | * @gc: The connection. |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
509 | * |
|
35042
c284eef5cd26
Added purple_connection_get_error_info()
Ankit Vani <a@nevitus.org>
parents:
35024
diff
changeset
|
510 | * Returns the #PurpleConnectionErrorInfo instance of a connection if an |
|
c284eef5cd26
Added purple_connection_get_error_info()
Ankit Vani <a@nevitus.org>
parents:
35024
diff
changeset
|
511 | * error exists. |
|
c284eef5cd26
Added purple_connection_get_error_info()
Ankit Vani <a@nevitus.org>
parents:
35024
diff
changeset
|
512 | * |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35042
diff
changeset
|
513 | * Returns: The #PurpleConnectionErrorInfo instance of the connection if an |
|
40215
f7cf821e15de
Replace a bunch of entries in ChangeLog.API entries with Since annotations
Gary Kramlich <grim@reaperworld.com>
parents:
39659
diff
changeset
|
514 | * error exists, %NULL otherwise. |
|
f7cf821e15de
Replace a bunch of entries in ChangeLog.API entries with Since annotations
Gary Kramlich <grim@reaperworld.com>
parents:
39659
diff
changeset
|
515 | * |
|
f7cf821e15de
Replace a bunch of entries in ChangeLog.API entries with Since annotations
Gary Kramlich <grim@reaperworld.com>
parents:
39659
diff
changeset
|
516 | * Since: 3.0.0 |
|
35042
c284eef5cd26
Added purple_connection_get_error_info()
Ankit Vani <a@nevitus.org>
parents:
35024
diff
changeset
|
517 | */ |
|
c284eef5cd26
Added purple_connection_get_error_info()
Ankit Vani <a@nevitus.org>
parents:
35024
diff
changeset
|
518 | PurpleConnectionErrorInfo * |
|
39433
f033955d125a
Use G_DEFINE_TYPE_WITH_PRIVATE for PurpleConnection.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
38745
diff
changeset
|
519 | purple_connection_get_error_info(PurpleConnection *gc); |
|
35042
c284eef5cd26
Added purple_connection_get_error_info()
Ankit Vani <a@nevitus.org>
parents:
35024
diff
changeset
|
520 | |
|
c284eef5cd26
Added purple_connection_get_error_info()
Ankit Vani <a@nevitus.org>
parents:
35024
diff
changeset
|
521 | /** |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
522 | * purple_connection_ssl_error: |
|
40245
056a71665e06
Add a bunch of missing docs.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
40215
diff
changeset
|
523 | * @gc: The connection. |
|
056a71665e06
Add a bunch of missing docs.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
40215
diff
changeset
|
524 | * @ssl_error: The SSL error type. |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
525 | * |
|
20443
7487bb69ae76
Create purple_connection_ssl_error(), which converts a PurpleSslErrorType
Will Thompson <resiak@pidgin.im>
parents:
20442
diff
changeset
|
526 | * Closes a connection due to an SSL error; this is basically a shortcut to |
| 21279 | 527 | * turning the #PurpleSslErrorType into a #PurpleConnectionError and a |
|
32157
39ba2e2492ee
Rename purple_connection_error_reason to purple_connection_error
Mark Doliner <markdoliner@pidgin.im>
parents:
32156
diff
changeset
|
528 | * human-readable string and then calling purple_connection_error(). |
|
20443
7487bb69ae76
Create purple_connection_ssl_error(), which converts a PurpleSslErrorType
Will Thompson <resiak@pidgin.im>
parents:
20442
diff
changeset
|
529 | */ |
|
7487bb69ae76
Create purple_connection_ssl_error(), which converts a PurpleSslErrorType
Will Thompson <resiak@pidgin.im>
parents:
20442
diff
changeset
|
530 | void |
|
7487bb69ae76
Create purple_connection_ssl_error(), which converts a PurpleSslErrorType
Will Thompson <resiak@pidgin.im>
parents:
20442
diff
changeset
|
531 | purple_connection_ssl_error (PurpleConnection *gc, |
|
7487bb69ae76
Create purple_connection_ssl_error(), which converts a PurpleSslErrorType
Will Thompson <resiak@pidgin.im>
parents:
20442
diff
changeset
|
532 | PurpleSslErrorType ssl_error); |
|
7487bb69ae76
Create purple_connection_ssl_error(), which converts a PurpleSslErrorType
Will Thompson <resiak@pidgin.im>
parents:
20442
diff
changeset
|
533 | |
|
37666
08ec2e6e0174
libpurple: Add purple_connection_g_error() to simplify handling G_IO_ERRORs
Mike Ruprecht <cmaiku@gmail.com>
parents:
37148
diff
changeset
|
534 | /* |
|
08ec2e6e0174
libpurple: Add purple_connection_g_error() to simplify handling G_IO_ERRORs
Mike Ruprecht <cmaiku@gmail.com>
parents:
37148
diff
changeset
|
535 | * purple_connection_g_error |
|
08ec2e6e0174
libpurple: Add purple_connection_g_error() to simplify handling G_IO_ERRORs
Mike Ruprecht <cmaiku@gmail.com>
parents:
37148
diff
changeset
|
536 | * @gc: Connection the error is associated with |
|
08ec2e6e0174
libpurple: Add purple_connection_g_error() to simplify handling G_IO_ERRORs
Mike Ruprecht <cmaiku@gmail.com>
parents:
37148
diff
changeset
|
537 | * @error: Error information |
|
08ec2e6e0174
libpurple: Add purple_connection_g_error() to simplify handling G_IO_ERRORs
Mike Ruprecht <cmaiku@gmail.com>
parents:
37148
diff
changeset
|
538 | * |
|
08ec2e6e0174
libpurple: Add purple_connection_g_error() to simplify handling G_IO_ERRORs
Mike Ruprecht <cmaiku@gmail.com>
parents:
37148
diff
changeset
|
539 | * Closes a connection similar to purple_connection_error(), but |
|
08ec2e6e0174
libpurple: Add purple_connection_g_error() to simplify handling G_IO_ERRORs
Mike Ruprecht <cmaiku@gmail.com>
parents:
37148
diff
changeset
|
540 | * takes a GError which is then converted to purple error codes. |
|
08ec2e6e0174
libpurple: Add purple_connection_g_error() to simplify handling G_IO_ERRORs
Mike Ruprecht <cmaiku@gmail.com>
parents:
37148
diff
changeset
|
541 | * |
|
08ec2e6e0174
libpurple: Add purple_connection_g_error() to simplify handling G_IO_ERRORs
Mike Ruprecht <cmaiku@gmail.com>
parents:
37148
diff
changeset
|
542 | * This function ignores G_IO_ERROR_CANCELLED, returning without |
|
08ec2e6e0174
libpurple: Add purple_connection_g_error() to simplify handling G_IO_ERRORs
Mike Ruprecht <cmaiku@gmail.com>
parents:
37148
diff
changeset
|
543 | * closing the connection. This can be used as a shortcut when |
|
08ec2e6e0174
libpurple: Add purple_connection_g_error() to simplify handling G_IO_ERRORs
Mike Ruprecht <cmaiku@gmail.com>
parents:
37148
diff
changeset
|
544 | * cancelling connections, as this is commonly done when shutting |
|
08ec2e6e0174
libpurple: Add purple_connection_g_error() to simplify handling G_IO_ERRORs
Mike Ruprecht <cmaiku@gmail.com>
parents:
37148
diff
changeset
|
545 | * down a connection. If G_IO_ERROR_CANCELLED needs to be caught, |
|
08ec2e6e0174
libpurple: Add purple_connection_g_error() to simplify handling G_IO_ERRORs
Mike Ruprecht <cmaiku@gmail.com>
parents:
37148
diff
changeset
|
546 | * do so with g_error_matches() prior to calling this function. |
|
08ec2e6e0174
libpurple: Add purple_connection_g_error() to simplify handling G_IO_ERRORs
Mike Ruprecht <cmaiku@gmail.com>
parents:
37148
diff
changeset
|
547 | */ |
|
08ec2e6e0174
libpurple: Add purple_connection_g_error() to simplify handling G_IO_ERRORs
Mike Ruprecht <cmaiku@gmail.com>
parents:
37148
diff
changeset
|
548 | void |
|
08ec2e6e0174
libpurple: Add purple_connection_g_error() to simplify handling G_IO_ERRORs
Mike Ruprecht <cmaiku@gmail.com>
parents:
37148
diff
changeset
|
549 | purple_connection_g_error(PurpleConnection *pc, |
|
37958
e03cbceed96a
connection: Drop description argument from purple_connection_g_error()
Mike Ruprecht <cmaiku@gmail.com>
parents:
37666
diff
changeset
|
550 | const GError *error); |
|
37666
08ec2e6e0174
libpurple: Add purple_connection_g_error() to simplify handling G_IO_ERRORs
Mike Ruprecht <cmaiku@gmail.com>
parents:
37148
diff
changeset
|
551 | |
|
37959
e76677ed819c
connection: Add purple_connection_take_error()
Mike Ruprecht <cmaiku@gmail.com>
parents:
37958
diff
changeset
|
552 | /* |
|
e76677ed819c
connection: Add purple_connection_take_error()
Mike Ruprecht <cmaiku@gmail.com>
parents:
37958
diff
changeset
|
553 | * purple_connection_take_error |
|
e76677ed819c
connection: Add purple_connection_take_error()
Mike Ruprecht <cmaiku@gmail.com>
parents:
37958
diff
changeset
|
554 | * @gc: Connection the error is associated with |
|
e76677ed819c
connection: Add purple_connection_take_error()
Mike Ruprecht <cmaiku@gmail.com>
parents:
37958
diff
changeset
|
555 | * @error: (transfer full): Error information |
|
e76677ed819c
connection: Add purple_connection_take_error()
Mike Ruprecht <cmaiku@gmail.com>
parents:
37958
diff
changeset
|
556 | * |
|
e76677ed819c
connection: Add purple_connection_take_error()
Mike Ruprecht <cmaiku@gmail.com>
parents:
37958
diff
changeset
|
557 | * Closes a connection similar to purple_connection_error(), but |
|
e76677ed819c
connection: Add purple_connection_take_error()
Mike Ruprecht <cmaiku@gmail.com>
parents:
37958
diff
changeset
|
558 | * takes a GError which is then converted to purple error codes. |
|
e76677ed819c
connection: Add purple_connection_take_error()
Mike Ruprecht <cmaiku@gmail.com>
parents:
37958
diff
changeset
|
559 | * |
|
e76677ed819c
connection: Add purple_connection_take_error()
Mike Ruprecht <cmaiku@gmail.com>
parents:
37958
diff
changeset
|
560 | * This function is equivalent to purple_connection_g_error(), |
|
e76677ed819c
connection: Add purple_connection_take_error()
Mike Ruprecht <cmaiku@gmail.com>
parents:
37958
diff
changeset
|
561 | * except that it takes ownership of the GError. |
|
e76677ed819c
connection: Add purple_connection_take_error()
Mike Ruprecht <cmaiku@gmail.com>
parents:
37958
diff
changeset
|
562 | */ |
|
e76677ed819c
connection: Add purple_connection_take_error()
Mike Ruprecht <cmaiku@gmail.com>
parents:
37958
diff
changeset
|
563 | void |
|
e76677ed819c
connection: Add purple_connection_take_error()
Mike Ruprecht <cmaiku@gmail.com>
parents:
37958
diff
changeset
|
564 | purple_connection_take_error(PurpleConnection *pc, |
|
e76677ed819c
connection: Add purple_connection_take_error()
Mike Ruprecht <cmaiku@gmail.com>
parents:
37958
diff
changeset
|
565 | GError *error); |
|
e76677ed819c
connection: Add purple_connection_take_error()
Mike Ruprecht <cmaiku@gmail.com>
parents:
37958
diff
changeset
|
566 | |
|
20443
7487bb69ae76
Create purple_connection_ssl_error(), which converts a PurpleSslErrorType
Will Thompson <resiak@pidgin.im>
parents:
20442
diff
changeset
|
567 | /** |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
568 | * purple_connection_error_is_fatal: |
|
40245
056a71665e06
Add a bunch of missing docs.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
40215
diff
changeset
|
569 | * @reason: The connection error to check. |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
570 | * |
|
20431
49979e453876
Create purple_connection_reason_is_fatal, which is basically a replacement for
Will Thompson <resiak@pidgin.im>
parents:
20430
diff
changeset
|
571 | * Reports whether a disconnection reason is fatal (in which case the account |
|
49979e453876
Create purple_connection_reason_is_fatal, which is basically a replacement for
Will Thompson <resiak@pidgin.im>
parents:
20430
diff
changeset
|
572 | * should probably not be automatically reconnected) or transient (so |
|
21149
160a0845b527
rlaager pointed out that purple_connection_error_reason should be setting
Will Thompson <resiak@pidgin.im>
parents:
21148
diff
changeset
|
573 | * auto-reconnection is a good idea). |
|
40245
056a71665e06
Add a bunch of missing docs.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
40215
diff
changeset
|
574 | * |
|
21280
2db787ddddf8
Document that the char * parameter of purple_connection_error{,_reason} may
Will Thompson <resiak@pidgin.im>
parents:
21279
diff
changeset
|
575 | * For instance, #PURPLE_CONNECTION_ERROR_NETWORK_ERROR is a temporary error, |
|
40245
056a71665e06
Add a bunch of missing docs.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
40215
diff
changeset
|
576 | * which might be caused by losing the network connection, so <code> |
|
056a71665e06
Add a bunch of missing docs.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
40215
diff
changeset
|
577 | * purple_connection_error_is_fatal(PURPLE_CONNECTION_ERROR_NETWORK_ERROR) |
|
056a71665e06
Add a bunch of missing docs.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
40215
diff
changeset
|
578 | * </code> is %FALSE. |
|
056a71665e06
Add a bunch of missing docs.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
40215
diff
changeset
|
579 | * |
|
056a71665e06
Add a bunch of missing docs.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
40215
diff
changeset
|
580 | * On the other hand, #PURPLE_CONNECTION_ERROR_AUTHENTICATION_FAILED probably |
|
056a71665e06
Add a bunch of missing docs.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
40215
diff
changeset
|
581 | * indicates a misconfiguration of the account which needs the user to go fix |
|
056a71665e06
Add a bunch of missing docs.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
40215
diff
changeset
|
582 | * it up, so <code> |
|
056a71665e06
Add a bunch of missing docs.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
40215
diff
changeset
|
583 | * purple_connection_error_is_fatal(PURPLE_CONNECTION_ERROR_AUTHENTICATION_FAILED) |
|
056a71665e06
Add a bunch of missing docs.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
40215
diff
changeset
|
584 | * </code> is %TRUE. |
|
20431
49979e453876
Create purple_connection_reason_is_fatal, which is basically a replacement for
Will Thompson <resiak@pidgin.im>
parents:
20430
diff
changeset
|
585 | * |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35042
diff
changeset
|
586 | * Returns: %TRUE if the account should not be automatically reconnected, and |
|
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35042
diff
changeset
|
587 | * %FALSE otherwise. |
|
20431
49979e453876
Create purple_connection_reason_is_fatal, which is basically a replacement for
Will Thompson <resiak@pidgin.im>
parents:
20430
diff
changeset
|
588 | */ |
|
49979e453876
Create purple_connection_reason_is_fatal, which is basically a replacement for
Will Thompson <resiak@pidgin.im>
parents:
20430
diff
changeset
|
589 | gboolean |
| 21279 | 590 | purple_connection_error_is_fatal (PurpleConnectionError reason); |
|
20431
49979e453876
Create purple_connection_reason_is_fatal, which is basically a replacement for
Will Thompson <resiak@pidgin.im>
parents:
20430
diff
changeset
|
591 | |
|
32679
fd936a0b84f7
Add a purple_connection_update_last_received() function to update the
Andrew Victor <andrew.victor@mxit.com>
parents:
32678
diff
changeset
|
592 | /** |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
593 | * purple_connection_update_last_received: |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
594 | * @gc: The connection. |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
595 | * |
|
32679
fd936a0b84f7
Add a purple_connection_update_last_received() function to update the
Andrew Victor <andrew.victor@mxit.com>
parents:
32678
diff
changeset
|
596 | * Indicate that a packet was received on the connection. |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
597 | * Set by the protocol to avoid sending unneeded keepalives. |
|
40215
f7cf821e15de
Replace a bunch of entries in ChangeLog.API entries with Since annotations
Gary Kramlich <grim@reaperworld.com>
parents:
39659
diff
changeset
|
598 | * |
|
f7cf821e15de
Replace a bunch of entries in ChangeLog.API entries with Since annotations
Gary Kramlich <grim@reaperworld.com>
parents:
39659
diff
changeset
|
599 | * Since: 3.0.0 |
|
32679
fd936a0b84f7
Add a purple_connection_update_last_received() function to update the
Andrew Victor <andrew.victor@mxit.com>
parents:
32678
diff
changeset
|
600 | */ |
|
fd936a0b84f7
Add a purple_connection_update_last_received() function to update the
Andrew Victor <andrew.victor@mxit.com>
parents:
32678
diff
changeset
|
601 | void purple_connection_update_last_received(PurpleConnection *gc); |
|
fd936a0b84f7
Add a purple_connection_update_last_received() function to update the
Andrew Victor <andrew.victor@mxit.com>
parents:
32678
diff
changeset
|
602 | |
|
5944
f19df037ac58
[gaim-migrate @ 6385]
Christian Hammond <chipx86@chipx86.com>
parents:
5872
diff
changeset
|
603 | /**************************************************************************/ |
| 35472 | 604 | /* Connections API */ |
|
5944
f19df037ac58
[gaim-migrate @ 6385]
Christian Hammond <chipx86@chipx86.com>
parents:
5872
diff
changeset
|
605 | /**************************************************************************/ |
|
f19df037ac58
[gaim-migrate @ 6385]
Christian Hammond <chipx86@chipx86.com>
parents:
5872
diff
changeset
|
606 | |
|
5564
1779a1bfbdb8
[gaim-migrate @ 5966]
Christian Hammond <chipx86@chipx86.com>
parents:
5563
diff
changeset
|
607 | /** |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
608 | * purple_connections_disconnect_all: |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
609 | * |
| 5563 | 610 | * Disconnects from all connections. |
| 611 | */ | |
| 15884 | 612 | void purple_connections_disconnect_all(void); |
| 5563 | 613 | |
| 614 | /** | |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
615 | * purple_connections_get_all: |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
616 | * |
|
10352
802e7ab5b838
[gaim-migrate @ 11569]
Mark Doliner <markdoliner@pidgin.im>
parents:
10272
diff
changeset
|
617 | * Returns a list of all active connections. This does not |
|
802e7ab5b838
[gaim-migrate @ 11569]
Mark Doliner <markdoliner@pidgin.im>
parents:
10272
diff
changeset
|
618 | * include connections that are in the process of connecting. |
| 5563 | 619 | * |
|
38716
b9bed228745a
Add many libpurple element-type annotations.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
37961
diff
changeset
|
620 | * Returns: (element-type PurpleConnection) (transfer none): A list of all |
|
b9bed228745a
Add many libpurple element-type annotations.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
37961
diff
changeset
|
621 | * active connections. |
| 5563 | 622 | */ |
|
18122
9bf9970c1b6a
disapproval of revision '2d8ea56b90971e7851442d96b7d74ecb4f052126'
Richard Laager <rlaager@pidgin.im>
parents:
18121
diff
changeset
|
623 | GList *purple_connections_get_all(void); |
| 5563 | 624 | |
|
5564
1779a1bfbdb8
[gaim-migrate @ 5966]
Christian Hammond <chipx86@chipx86.com>
parents:
5563
diff
changeset
|
625 | /** |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
626 | * purple_connections_get_connecting: |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
627 | * |
|
5564
1779a1bfbdb8
[gaim-migrate @ 5966]
Christian Hammond <chipx86@chipx86.com>
parents:
5563
diff
changeset
|
628 | * Returns a list of all connections in the process of connecting. |
|
1779a1bfbdb8
[gaim-migrate @ 5966]
Christian Hammond <chipx86@chipx86.com>
parents:
5563
diff
changeset
|
629 | * |
|
38716
b9bed228745a
Add many libpurple element-type annotations.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
37961
diff
changeset
|
630 | * Returns: (element-type PurpleConnection) (transfer none): A list of |
|
b9bed228745a
Add many libpurple element-type annotations.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
37961
diff
changeset
|
631 | * connecting connections. |
|
5564
1779a1bfbdb8
[gaim-migrate @ 5966]
Christian Hammond <chipx86@chipx86.com>
parents:
5563
diff
changeset
|
632 | */ |
|
18122
9bf9970c1b6a
disapproval of revision '2d8ea56b90971e7851442d96b7d74ecb4f052126'
Richard Laager <rlaager@pidgin.im>
parents:
18121
diff
changeset
|
633 | GList *purple_connections_get_connecting(void); |
|
5564
1779a1bfbdb8
[gaim-migrate @ 5966]
Christian Hammond <chipx86@chipx86.com>
parents:
5563
diff
changeset
|
634 | |
|
40369
41733d530d58
Add online and offline signals that are emitted when the first account goes and the last account go offline.
Gary Kramlich <grim@reaperworld.com>
parents:
40348
diff
changeset
|
635 | /** |
|
41733d530d58
Add online and offline signals that are emitted when the first account goes and the last account go offline.
Gary Kramlich <grim@reaperworld.com>
parents:
40348
diff
changeset
|
636 | * purple_connections_is_online: |
|
41733d530d58
Add online and offline signals that are emitted when the first account goes and the last account go offline.
Gary Kramlich <grim@reaperworld.com>
parents:
40348
diff
changeset
|
637 | * |
|
41733d530d58
Add online and offline signals that are emitted when the first account goes and the last account go offline.
Gary Kramlich <grim@reaperworld.com>
parents:
40348
diff
changeset
|
638 | * Checks if at least one account is online. |
|
41733d530d58
Add online and offline signals that are emitted when the first account goes and the last account go offline.
Gary Kramlich <grim@reaperworld.com>
parents:
40348
diff
changeset
|
639 | * |
|
41733d530d58
Add online and offline signals that are emitted when the first account goes and the last account go offline.
Gary Kramlich <grim@reaperworld.com>
parents:
40348
diff
changeset
|
640 | * Returns: %TRUE if at least one account is online. |
|
41733d530d58
Add online and offline signals that are emitted when the first account goes and the last account go offline.
Gary Kramlich <grim@reaperworld.com>
parents:
40348
diff
changeset
|
641 | */ |
|
41733d530d58
Add online and offline signals that are emitted when the first account goes and the last account go offline.
Gary Kramlich <grim@reaperworld.com>
parents:
40348
diff
changeset
|
642 | gboolean purple_connections_is_online(void); |
|
41733d530d58
Add online and offline signals that are emitted when the first account goes and the last account go offline.
Gary Kramlich <grim@reaperworld.com>
parents:
40348
diff
changeset
|
643 | |
| 5563 | 644 | /**************************************************************************/ |
| 35472 | 645 | /* UI Registration Functions */ |
| 5563 | 646 | /**************************************************************************/ |
| 647 | ||
| 648 | /** | |
| 35572 | 649 | * purple_connection_ui_ops_get_type: |
| 650 | * | |
| 651 | * Returns: The #GType for the #PurpleConnectionUiOps boxed structure. | |
| 652 | */ | |
| 653 | GType purple_connection_ui_ops_get_type(void); | |
| 654 | ||
| 655 | /** | |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
656 | * purple_connections_set_ui_ops: |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
657 | * @ops: The UI operations structure. |
| 5563 | 658 | * |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
659 | * Sets the UI operations structure to be used for connections. |
| 5563 | 660 | */ |
| 15884 | 661 | void purple_connections_set_ui_ops(PurpleConnectionUiOps *ops); |
| 5563 | 662 | |
| 663 | /** | |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
664 | * purple_connections_get_ui_ops: |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
665 | * |
| 5563 | 666 | * Returns the UI operations structure used for connections. |
| 667 | * | |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35042
diff
changeset
|
668 | * Returns: The UI operations structure in use. |
| 5563 | 669 | */ |
| 15884 | 670 | PurpleConnectionUiOps *purple_connections_get_ui_ops(void); |
| 5563 | 671 | |
|
6488
6a47a95e4dbb
[gaim-migrate @ 7002]
Christian Hammond <chipx86@chipx86.com>
parents:
6485
diff
changeset
|
672 | /**************************************************************************/ |
| 35472 | 673 | /* Connections Subsystem */ |
|
6488
6a47a95e4dbb
[gaim-migrate @ 7002]
Christian Hammond <chipx86@chipx86.com>
parents:
6485
diff
changeset
|
674 | /**************************************************************************/ |
|
6a47a95e4dbb
[gaim-migrate @ 7002]
Christian Hammond <chipx86@chipx86.com>
parents:
6485
diff
changeset
|
675 | |
|
6a47a95e4dbb
[gaim-migrate @ 7002]
Christian Hammond <chipx86@chipx86.com>
parents:
6485
diff
changeset
|
676 | /** |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
677 | * purple_connections_init: |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
678 | * |
|
6488
6a47a95e4dbb
[gaim-migrate @ 7002]
Christian Hammond <chipx86@chipx86.com>
parents:
6485
diff
changeset
|
679 | * Initializes the connections subsystem. |
|
6a47a95e4dbb
[gaim-migrate @ 7002]
Christian Hammond <chipx86@chipx86.com>
parents:
6485
diff
changeset
|
680 | */ |
| 15884 | 681 | void purple_connections_init(void); |
|
6488
6a47a95e4dbb
[gaim-migrate @ 7002]
Christian Hammond <chipx86@chipx86.com>
parents:
6485
diff
changeset
|
682 | |
|
6a47a95e4dbb
[gaim-migrate @ 7002]
Christian Hammond <chipx86@chipx86.com>
parents:
6485
diff
changeset
|
683 | /** |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
684 | * purple_connections_uninit: |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
685 | * |
|
6488
6a47a95e4dbb
[gaim-migrate @ 7002]
Christian Hammond <chipx86@chipx86.com>
parents:
6485
diff
changeset
|
686 | * Uninitializes the connections subsystem. |
|
6a47a95e4dbb
[gaim-migrate @ 7002]
Christian Hammond <chipx86@chipx86.com>
parents:
6485
diff
changeset
|
687 | */ |
| 15884 | 688 | void purple_connections_uninit(void); |
|
6488
6a47a95e4dbb
[gaim-migrate @ 7002]
Christian Hammond <chipx86@chipx86.com>
parents:
6485
diff
changeset
|
689 | |
|
6a47a95e4dbb
[gaim-migrate @ 7002]
Christian Hammond <chipx86@chipx86.com>
parents:
6485
diff
changeset
|
690 | /** |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
691 | * purple_connections_get_handle: |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
692 | * |
|
6488
6a47a95e4dbb
[gaim-migrate @ 7002]
Christian Hammond <chipx86@chipx86.com>
parents:
6485
diff
changeset
|
693 | * Returns the handle to the connections subsystem. |
|
6a47a95e4dbb
[gaim-migrate @ 7002]
Christian Hammond <chipx86@chipx86.com>
parents:
6485
diff
changeset
|
694 | * |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35042
diff
changeset
|
695 | * Returns: The connections subsystem handle. |
|
6488
6a47a95e4dbb
[gaim-migrate @ 7002]
Christian Hammond <chipx86@chipx86.com>
parents:
6485
diff
changeset
|
696 | */ |
| 15884 | 697 | void *purple_connections_get_handle(void); |
|
6488
6a47a95e4dbb
[gaim-migrate @ 7002]
Christian Hammond <chipx86@chipx86.com>
parents:
6485
diff
changeset
|
698 | |
|
6a47a95e4dbb
[gaim-migrate @ 7002]
Christian Hammond <chipx86@chipx86.com>
parents:
6485
diff
changeset
|
699 | |
|
32787
7072f190d6ad
Use G_BEGIN/END_DECLS in public libpurple files. This was
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32687
diff
changeset
|
700 | G_END_DECLS |
|
5944
f19df037ac58
[gaim-migrate @ 6385]
Christian Hammond <chipx86@chipx86.com>
parents:
5872
diff
changeset
|
701 | |
|
39659
e4dfb99b0cef
Fix libpurple header guards using reserved names.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39549
diff
changeset
|
702 | #endif /* PURPLE_CONNECTION_H */ |