Tue, 13 Aug 2024 03:03:05 -0500
Echo out pings and pongs as well as the RPL_ISUPPORT message
Testing Done:
Connected to a local ergo server and verified that the `RPL_ISUPPORT` message and `PING`s and `PONG`s were displayed in the status window.
Reviewed at https://reviews.imfreedom.org/r/3379/
|
42594
eddde70cedd8
Create a test for verifying license headers and correct the ones that were wrong
Gary Kramlich <grim@reaperworld.com>
parents:
42542
diff
changeset
|
1 | /* |
|
eddde70cedd8
Create a test for verifying license headers and correct the ones that were wrong
Gary Kramlich <grim@reaperworld.com>
parents:
42542
diff
changeset
|
2 | * Purple - Internet Messaging Library |
|
eddde70cedd8
Create a test for verifying license headers and correct the ones that were wrong
Gary Kramlich <grim@reaperworld.com>
parents:
42542
diff
changeset
|
3 | * Copyright (C) Pidgin Developers <devel@pidgin.im> |
| 5563 | 4 | * |
| 15884 | 5 | * Purple is the legal property of its developers, whose names are too numerous |
|
42594
eddde70cedd8
Create a test for verifying license headers and correct the ones that were wrong
Gary Kramlich <grim@reaperworld.com>
parents:
42542
diff
changeset
|
6 | * to list here. Please refer to the COPYRIGHT file distributed with this |
| 8046 | 7 | * source distribution. |
|
6460
fc288e7221ca
[gaim-migrate @ 6969]
Christian Hammond <chipx86@chipx86.com>
parents:
6393
diff
changeset
|
8 | * |
|
42594
eddde70cedd8
Create a test for verifying license headers and correct the ones that were wrong
Gary Kramlich <grim@reaperworld.com>
parents:
42542
diff
changeset
|
9 | * This library is free software; you can redistribute it and/or modify it |
|
eddde70cedd8
Create a test for verifying license headers and correct the ones that were wrong
Gary Kramlich <grim@reaperworld.com>
parents:
42542
diff
changeset
|
10 | * under the terms of the GNU General Public License as published by the Free |
|
eddde70cedd8
Create a test for verifying license headers and correct the ones that were wrong
Gary Kramlich <grim@reaperworld.com>
parents:
42542
diff
changeset
|
11 | * Software Foundation; either version 2 of the License, or (at your option) |
|
eddde70cedd8
Create a test for verifying license headers and correct the ones that were wrong
Gary Kramlich <grim@reaperworld.com>
parents:
42542
diff
changeset
|
12 | * any later version. |
| 5563 | 13 | * |
|
42594
eddde70cedd8
Create a test for verifying license headers and correct the ones that were wrong
Gary Kramlich <grim@reaperworld.com>
parents:
42542
diff
changeset
|
14 | * This library is distributed in the hope that it will be useful, but WITHOUT |
|
eddde70cedd8
Create a test for verifying license headers and correct the ones that were wrong
Gary Kramlich <grim@reaperworld.com>
parents:
42542
diff
changeset
|
15 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
|
eddde70cedd8
Create a test for verifying license headers and correct the ones that were wrong
Gary Kramlich <grim@reaperworld.com>
parents:
42542
diff
changeset
|
16 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for |
|
eddde70cedd8
Create a test for verifying license headers and correct the ones that were wrong
Gary Kramlich <grim@reaperworld.com>
parents:
42542
diff
changeset
|
17 | * more details. |
| 5563 | 18 | * |
|
42594
eddde70cedd8
Create a test for verifying license headers and correct the ones that were wrong
Gary Kramlich <grim@reaperworld.com>
parents:
42542
diff
changeset
|
19 | * You should have received a copy of the GNU General Public License along with |
|
eddde70cedd8
Create a test for verifying license headers and correct the ones that were wrong
Gary Kramlich <grim@reaperworld.com>
parents:
42542
diff
changeset
|
20 | * this library; if not, see <https://www.gnu.org/licenses/>. |
| 5563 | 21 | */ |
|
35487
494f09f7f331
Move section blocks inside inclusion guards -- otherwise g-ir-scanner yells
Ankit Vani <a@nevitus.org>
parents:
35486
diff
changeset
|
22 | |
|
40474
1341be8e3402
Make it so only libpurple can directly include libpurple header files.
Gary Kramlich <grim@reaperworld.com>
parents:
40369
diff
changeset
|
23 | #if !defined(PURPLE_GLOBAL_HEADER_INSIDE) && !defined(PURPLE_COMPILATION) |
|
1341be8e3402
Make it so only libpurple can directly include libpurple header files.
Gary Kramlich <grim@reaperworld.com>
parents:
40369
diff
changeset
|
24 | # error "only <purple.h> may be included directly" |
|
1341be8e3402
Make it so only libpurple can directly include libpurple header files.
Gary Kramlich <grim@reaperworld.com>
parents:
40369
diff
changeset
|
25 | #endif |
|
1341be8e3402
Make it so only libpurple can directly include libpurple header files.
Gary Kramlich <grim@reaperworld.com>
parents:
40369
diff
changeset
|
26 | |
|
39659
e4dfb99b0cef
Fix libpurple header guards using reserved names.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39549
diff
changeset
|
27 | #ifndef PURPLE_CONNECTION_H |
|
e4dfb99b0cef
Fix libpurple header guards using reserved names.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39549
diff
changeset
|
28 | #define PURPLE_CONNECTION_H |
|
35433
8dcae6cd6628
Add section blocks for account.h to connection.h
Ankit Vani <a@nevitus.org>
parents:
35419
diff
changeset
|
29 | |
|
37961
2ee4c67768f4
connection: Support PurpleConnectionError GErrors
Mike Ruprecht <cmaiku@gmail.com>
parents:
37959
diff
changeset
|
30 | #include <glib.h> |
|
41792
715d38814f5d
Make PurpleConnection derivable, which also means adding a private structure.
Gary Kramlich <grim@reaperworld.com>
parents:
41715
diff
changeset
|
31 | #include <glib-object.h> |
|
715d38814f5d
Make PurpleConnection derivable, which also means adding a private structure.
Gary Kramlich <grim@reaperworld.com>
parents:
41715
diff
changeset
|
32 | |
|
42387
d9350cda1556
Export symbols added for 3.0.0
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42344
diff
changeset
|
33 | #include "purpleversion.h" |
|
d9350cda1556
Export symbols added for 3.0.0
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42344
diff
changeset
|
34 | |
|
41792
715d38814f5d
Make PurpleConnection derivable, which also means adding a private structure.
Gary Kramlich <grim@reaperworld.com>
parents:
41715
diff
changeset
|
35 | G_BEGIN_DECLS |
|
37961
2ee4c67768f4
connection: Support PurpleConnectionError GErrors
Mike Ruprecht <cmaiku@gmail.com>
parents:
37959
diff
changeset
|
36 | |
|
39549
ee61762c3ebe
Use G_DECLARE* for PurpleConnection.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39433
diff
changeset
|
37 | #define PURPLE_TYPE_CONNECTION purple_connection_get_type() |
|
42391
090b03385984
Add Since and symbol visibility to new-in-3.0 things
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42387
diff
changeset
|
38 | |
|
090b03385984
Add Since and symbol visibility to new-in-3.0 things
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42387
diff
changeset
|
39 | PURPLE_AVAILABLE_IN_3_0 |
|
41792
715d38814f5d
Make PurpleConnection derivable, which also means adding a private structure.
Gary Kramlich <grim@reaperworld.com>
parents:
41715
diff
changeset
|
40 | G_DECLARE_DERIVABLE_TYPE(PurpleConnection, purple_connection, PURPLE, |
|
715d38814f5d
Make PurpleConnection derivable, which also means adding a private structure.
Gary Kramlich <grim@reaperworld.com>
parents:
41715
diff
changeset
|
41 | CONNECTION, GObject) |
| 5563 | 42 | |
|
40474
1341be8e3402
Make it so only libpurple can directly include libpurple header files.
Gary Kramlich <grim@reaperworld.com>
parents:
40369
diff
changeset
|
43 | /* 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
|
44 | * 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
|
45 | #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
|
46 | _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
|
47 | |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
48 | /** |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
49 | * PurpleConnectionState: |
|
41812
c3cd920261b6
Fix the namespace of the PurpleConnectionState enum constants
Gary Kramlich <grim@reaperworld.com>
parents:
41799
diff
changeset
|
50 | * @PURPLE_CONNECTION_STATE_DISCONNECTED: Disconnected |
|
c3cd920261b6
Fix the namespace of the PurpleConnectionState enum constants
Gary Kramlich <grim@reaperworld.com>
parents:
41799
diff
changeset
|
51 | * @PURPLE_CONNECTION_STATE_DISCONNECTING: Disconnecting |
|
c3cd920261b6
Fix the namespace of the PurpleConnectionState enum constants
Gary Kramlich <grim@reaperworld.com>
parents:
41799
diff
changeset
|
52 | * @PURPLE_CONNECTION_STATE_CONNECTED: Connected |
|
c3cd920261b6
Fix the namespace of the PurpleConnectionState enum constants
Gary Kramlich <grim@reaperworld.com>
parents:
41799
diff
changeset
|
53 | * @PURPLE_CONNECTION_STATE_CONNECTING: Connecting |
|
c3cd920261b6
Fix the namespace of the PurpleConnectionState enum constants
Gary Kramlich <grim@reaperworld.com>
parents:
41799
diff
changeset
|
54 | * |
|
c3cd920261b6
Fix the namespace of the PurpleConnectionState enum constants
Gary Kramlich <grim@reaperworld.com>
parents:
41799
diff
changeset
|
55 | * A representation of the state of a [class@Purple.Connection]. |
|
42413
9ca3a03253ca
Add Since and visibility tags to connections API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42394
diff
changeset
|
56 | * |
|
42612
d905313bc732
Remove the micro version from since tags for libpurple part 1
Gary Kramlich <grim@reaperworld.com>
parents:
42594
diff
changeset
|
57 | * Since: 2.0 |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
58 | */ |
|
41812
c3cd920261b6
Fix the namespace of the PurpleConnectionState enum constants
Gary Kramlich <grim@reaperworld.com>
parents:
41799
diff
changeset
|
59 | typedef enum { |
|
42413
9ca3a03253ca
Add Since and visibility tags to connections API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42394
diff
changeset
|
60 | PURPLE_CONNECTION_STATE_DISCONNECTED PURPLE_AVAILABLE_ENUMERATOR_IN_3_0 = 0, |
|
9ca3a03253ca
Add Since and visibility tags to connections API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42394
diff
changeset
|
61 | PURPLE_CONNECTION_STATE_DISCONNECTING PURPLE_AVAILABLE_ENUMERATOR_IN_3_0, |
|
9ca3a03253ca
Add Since and visibility tags to connections API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42394
diff
changeset
|
62 | PURPLE_CONNECTION_STATE_CONNECTED PURPLE_AVAILABLE_ENUMERATOR_IN_3_0, |
|
9ca3a03253ca
Add Since and visibility tags to connections API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42394
diff
changeset
|
63 | PURPLE_CONNECTION_STATE_CONNECTING PURPLE_AVAILABLE_ENUMERATOR_IN_3_0 |
| 15884 | 64 | } PurpleConnectionState; |
| 5563 | 65 | |
|
37961
2ee4c67768f4
connection: Support PurpleConnectionError GErrors
Mike Ruprecht <cmaiku@gmail.com>
parents:
37959
diff
changeset
|
66 | /** |
|
41156
268e57363246
Remove private data from PurpleConnection and fix up PURPLE_CONNECTION_ERROR
Gary Kramlich <grim@reaperworld.com>
parents:
41155
diff
changeset
|
67 | * PURPLE_CONNECTION_ERROR: |
|
37961
2ee4c67768f4
connection: Support PurpleConnectionError GErrors
Mike Ruprecht <cmaiku@gmail.com>
parents:
37959
diff
changeset
|
68 | * |
|
2ee4c67768f4
connection: Support PurpleConnectionError GErrors
Mike Ruprecht <cmaiku@gmail.com>
parents:
37959
diff
changeset
|
69 | * 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
|
70 | * 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
|
71 | * |
|
42612
d905313bc732
Remove the micro version from since tags for libpurple part 1
Gary Kramlich <grim@reaperworld.com>
parents:
42594
diff
changeset
|
72 | * Since: 3.0 |
|
37961
2ee4c67768f4
connection: Support PurpleConnectionError GErrors
Mike Ruprecht <cmaiku@gmail.com>
parents:
37959
diff
changeset
|
73 | */ |
|
42387
d9350cda1556
Export symbols added for 3.0.0
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42344
diff
changeset
|
74 | #define PURPLE_CONNECTION_ERROR \ |
|
d9350cda1556
Export symbols added for 3.0.0
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42344
diff
changeset
|
75 | g_quark_from_static_string("purple-connection-error") \ |
|
d9350cda1556
Export symbols added for 3.0.0
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42344
diff
changeset
|
76 | PURPLE_AVAILABLE_MACRO_IN_3_0 |
|
37961
2ee4c67768f4
connection: Support PurpleConnectionError GErrors
Mike Ruprecht <cmaiku@gmail.com>
parents:
37959
diff
changeset
|
77 | |
|
42344
c51d37734155
Rename account.[ch] to purpleaccount.[ch]
Gary Kramlich <grim@reaperworld.com>
parents:
42163
diff
changeset
|
78 | #include "purpleaccount.h" |
|
41714
318204db6284
Split PurpleConnectionErrorInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
41710
diff
changeset
|
79 | #include "purpleconnectionerrorinfo.h" |
|
41155
922c9e70900c
Rename protocol.[ch] to purpleprotocol.[ch]
Gary Kramlich <grim@reaperworld.com>
parents:
41034
diff
changeset
|
80 | #include "purpleprotocol.h" |
|
5944
f19df037ac58
[gaim-migrate @ 6385]
Christian Hammond <chipx86@chipx86.com>
parents:
5872
diff
changeset
|
81 | |
|
41792
715d38814f5d
Make PurpleConnection derivable, which also means adding a private structure.
Gary Kramlich <grim@reaperworld.com>
parents:
41715
diff
changeset
|
82 | struct _PurpleConnectionClass { |
|
715d38814f5d
Make PurpleConnection derivable, which also means adding a private structure.
Gary Kramlich <grim@reaperworld.com>
parents:
41715
diff
changeset
|
83 | /*< private >*/ |
|
715d38814f5d
Make PurpleConnection derivable, which also means adding a private structure.
Gary Kramlich <grim@reaperworld.com>
parents:
41715
diff
changeset
|
84 | GObjectClass parent; |
|
715d38814f5d
Make PurpleConnection derivable, which also means adding a private structure.
Gary Kramlich <grim@reaperworld.com>
parents:
41715
diff
changeset
|
85 | |
|
41869
7bd5bff547b4
Change the way accounts connect while keeping backwards compatibility
Gary Kramlich <grim@reaperworld.com>
parents:
41850
diff
changeset
|
86 | gboolean (*connect)(PurpleConnection *connection, GError **error); |
|
7bd5bff547b4
Change the way accounts connect while keeping backwards compatibility
Gary Kramlich <grim@reaperworld.com>
parents:
41850
diff
changeset
|
87 | gboolean (*disconnect)(PurpleConnection *connection, GError **error); |
|
7bd5bff547b4
Change the way accounts connect while keeping backwards compatibility
Gary Kramlich <grim@reaperworld.com>
parents:
41850
diff
changeset
|
88 | |
|
41792
715d38814f5d
Make PurpleConnection derivable, which also means adding a private structure.
Gary Kramlich <grim@reaperworld.com>
parents:
41715
diff
changeset
|
89 | /*< private >*/ |
|
715d38814f5d
Make PurpleConnection derivable, which also means adding a private structure.
Gary Kramlich <grim@reaperworld.com>
parents:
41715
diff
changeset
|
90 | gpointer reserved[8]; |
|
715d38814f5d
Make PurpleConnection derivable, which also means adding a private structure.
Gary Kramlich <grim@reaperworld.com>
parents:
41715
diff
changeset
|
91 | }; |
|
715d38814f5d
Make PurpleConnection derivable, which also means adding a private structure.
Gary Kramlich <grim@reaperworld.com>
parents:
41715
diff
changeset
|
92 | |
|
5944
f19df037ac58
[gaim-migrate @ 6385]
Christian Hammond <chipx86@chipx86.com>
parents:
5872
diff
changeset
|
93 | /**************************************************************************/ |
| 35472 | 94 | /* Connection API */ |
|
5944
f19df037ac58
[gaim-migrate @ 6385]
Christian Hammond <chipx86@chipx86.com>
parents:
5872
diff
changeset
|
95 | /**************************************************************************/ |
|
f19df037ac58
[gaim-migrate @ 6385]
Christian Hammond <chipx86@chipx86.com>
parents:
5872
diff
changeset
|
96 | |
| 6581 | 97 | /** |
|
41869
7bd5bff547b4
Change the way accounts connect while keeping backwards compatibility
Gary Kramlich <grim@reaperworld.com>
parents:
41850
diff
changeset
|
98 | * purple_connection_connect: |
|
7bd5bff547b4
Change the way accounts connect while keeping backwards compatibility
Gary Kramlich <grim@reaperworld.com>
parents:
41850
diff
changeset
|
99 | * @connection: The instance. |
|
41881
7e1dd7e9efbb
Fix error parameter annotations
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41869
diff
changeset
|
100 | * @error: Return address for a #GError, or %NULL. |
|
41869
7bd5bff547b4
Change the way accounts connect while keeping backwards compatibility
Gary Kramlich <grim@reaperworld.com>
parents:
41850
diff
changeset
|
101 | * |
|
7bd5bff547b4
Change the way accounts connect while keeping backwards compatibility
Gary Kramlich <grim@reaperworld.com>
parents:
41850
diff
changeset
|
102 | * Tells the connection to connect. This is done by calling the |
|
7bd5bff547b4
Change the way accounts connect while keeping backwards compatibility
Gary Kramlich <grim@reaperworld.com>
parents:
41850
diff
changeset
|
103 | * [vfunc@Purple.Connection.connect] function. State is managed by this |
|
7bd5bff547b4
Change the way accounts connect while keeping backwards compatibility
Gary Kramlich <grim@reaperworld.com>
parents:
41850
diff
changeset
|
104 | * function. |
|
7bd5bff547b4
Change the way accounts connect while keeping backwards compatibility
Gary Kramlich <grim@reaperworld.com>
parents:
41850
diff
changeset
|
105 | * |
|
7bd5bff547b4
Change the way accounts connect while keeping backwards compatibility
Gary Kramlich <grim@reaperworld.com>
parents:
41850
diff
changeset
|
106 | * Due to the asynchronous nature of network connections, the return value and |
|
7bd5bff547b4
Change the way accounts connect while keeping backwards compatibility
Gary Kramlich <grim@reaperworld.com>
parents:
41850
diff
changeset
|
107 | * @error are to be used to do some initial validation before a connection is |
|
7bd5bff547b4
Change the way accounts connect while keeping backwards compatibility
Gary Kramlich <grim@reaperworld.com>
parents:
41850
diff
changeset
|
108 | * actually attempted. |
|
7bd5bff547b4
Change the way accounts connect while keeping backwards compatibility
Gary Kramlich <grim@reaperworld.com>
parents:
41850
diff
changeset
|
109 | * |
|
7bd5bff547b4
Change the way accounts connect while keeping backwards compatibility
Gary Kramlich <grim@reaperworld.com>
parents:
41850
diff
changeset
|
110 | * Returns: %TRUE if the initial connection for @account was successful, |
|
7bd5bff547b4
Change the way accounts connect while keeping backwards compatibility
Gary Kramlich <grim@reaperworld.com>
parents:
41850
diff
changeset
|
111 | * otherwise %FALSE with @error possibly set. |
|
7bd5bff547b4
Change the way accounts connect while keeping backwards compatibility
Gary Kramlich <grim@reaperworld.com>
parents:
41850
diff
changeset
|
112 | * |
|
42612
d905313bc732
Remove the micro version from since tags for libpurple part 1
Gary Kramlich <grim@reaperworld.com>
parents:
42594
diff
changeset
|
113 | * Since: 3.0 |
|
41869
7bd5bff547b4
Change the way accounts connect while keeping backwards compatibility
Gary Kramlich <grim@reaperworld.com>
parents:
41850
diff
changeset
|
114 | */ |
|
42387
d9350cda1556
Export symbols added for 3.0.0
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42344
diff
changeset
|
115 | PURPLE_AVAILABLE_IN_3_0 |
|
41869
7bd5bff547b4
Change the way accounts connect while keeping backwards compatibility
Gary Kramlich <grim@reaperworld.com>
parents:
41850
diff
changeset
|
116 | gboolean purple_connection_connect(PurpleConnection *connection, GError **error); |
|
7bd5bff547b4
Change the way accounts connect while keeping backwards compatibility
Gary Kramlich <grim@reaperworld.com>
parents:
41850
diff
changeset
|
117 | |
|
7bd5bff547b4
Change the way accounts connect while keeping backwards compatibility
Gary Kramlich <grim@reaperworld.com>
parents:
41850
diff
changeset
|
118 | /** |
|
7bd5bff547b4
Change the way accounts connect while keeping backwards compatibility
Gary Kramlich <grim@reaperworld.com>
parents:
41850
diff
changeset
|
119 | * purple_connection_disconnect: |
|
7bd5bff547b4
Change the way accounts connect while keeping backwards compatibility
Gary Kramlich <grim@reaperworld.com>
parents:
41850
diff
changeset
|
120 | * @connection: The instance. |
|
41881
7e1dd7e9efbb
Fix error parameter annotations
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41869
diff
changeset
|
121 | * @error: Return address for a #GError, or %NULL. |
|
41869
7bd5bff547b4
Change the way accounts connect while keeping backwards compatibility
Gary Kramlich <grim@reaperworld.com>
parents:
41850
diff
changeset
|
122 | * |
|
7bd5bff547b4
Change the way accounts connect while keeping backwards compatibility
Gary Kramlich <grim@reaperworld.com>
parents:
41850
diff
changeset
|
123 | * Tells the connection to disconnect. This is done by calling the |
|
7bd5bff547b4
Change the way accounts connect while keeping backwards compatibility
Gary Kramlich <grim@reaperworld.com>
parents:
41850
diff
changeset
|
124 | * [vfunc@Purple.Connection.disconnect] function. State is managed by this |
|
7bd5bff547b4
Change the way accounts connect while keeping backwards compatibility
Gary Kramlich <grim@reaperworld.com>
parents:
41850
diff
changeset
|
125 | * function. |
|
7bd5bff547b4
Change the way accounts connect while keeping backwards compatibility
Gary Kramlich <grim@reaperworld.com>
parents:
41850
diff
changeset
|
126 | * |
|
7bd5bff547b4
Change the way accounts connect while keeping backwards compatibility
Gary Kramlich <grim@reaperworld.com>
parents:
41850
diff
changeset
|
127 | * Returns: %TRUE if the account was disconnected gracefully, otherwise %FALSE |
|
7bd5bff547b4
Change the way accounts connect while keeping backwards compatibility
Gary Kramlich <grim@reaperworld.com>
parents:
41850
diff
changeset
|
128 | * with @error possibly set. |
|
7bd5bff547b4
Change the way accounts connect while keeping backwards compatibility
Gary Kramlich <grim@reaperworld.com>
parents:
41850
diff
changeset
|
129 | * |
|
42612
d905313bc732
Remove the micro version from since tags for libpurple part 1
Gary Kramlich <grim@reaperworld.com>
parents:
42594
diff
changeset
|
130 | * Since: 3.0 |
|
41869
7bd5bff547b4
Change the way accounts connect while keeping backwards compatibility
Gary Kramlich <grim@reaperworld.com>
parents:
41850
diff
changeset
|
131 | */ |
|
42387
d9350cda1556
Export symbols added for 3.0.0
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42344
diff
changeset
|
132 | PURPLE_AVAILABLE_IN_3_0 |
|
41869
7bd5bff547b4
Change the way accounts connect while keeping backwards compatibility
Gary Kramlich <grim@reaperworld.com>
parents:
41850
diff
changeset
|
133 | gboolean purple_connection_disconnect(PurpleConnection *connection, GError **error); |
|
7bd5bff547b4
Change the way accounts connect while keeping backwards compatibility
Gary Kramlich <grim@reaperworld.com>
parents:
41850
diff
changeset
|
134 | |
|
7bd5bff547b4
Change the way accounts connect while keeping backwards compatibility
Gary Kramlich <grim@reaperworld.com>
parents:
41850
diff
changeset
|
135 | /** |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
136 | * purple_connection_set_state: |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
137 | * @gc: The connection. |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
138 | * @state: The connection state. |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
139 | * |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
140 | * 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
|
141 | * the state #PURPLE_CONNECTION_CONNECTED when the account is completely |
|
11718
90804d019837
[gaim-migrate @ 14009]
Mark Doliner <markdoliner@pidgin.im>
parents:
10758
diff
changeset
|
142 | * 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
|
143 | * 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
|
144 | * your status, then the account is online. |
|
42413
9ca3a03253ca
Add Since and visibility tags to connections API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42394
diff
changeset
|
145 | * |
|
42612
d905313bc732
Remove the micro version from since tags for libpurple part 1
Gary Kramlich <grim@reaperworld.com>
parents:
42594
diff
changeset
|
146 | * Since: 2.0 |
| 5563 | 147 | */ |
|
42413
9ca3a03253ca
Add Since and visibility tags to connections API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42394
diff
changeset
|
148 | PURPLE_AVAILABLE_IN_ALL |
| 15884 | 149 | void purple_connection_set_state(PurpleConnection *gc, PurpleConnectionState state); |
| 5563 | 150 | |
| 151 | /** | |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
152 | * purple_connection_set_display_name: |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35042
diff
changeset
|
153 | * @gc: The connection. |
|
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35042
diff
changeset
|
154 | * @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
|
155 | * |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
156 | * Sets the connection's displayed name. |
|
42413
9ca3a03253ca
Add Since and visibility tags to connections API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42394
diff
changeset
|
157 | * |
|
42612
d905313bc732
Remove the micro version from since tags for libpurple part 1
Gary Kramlich <grim@reaperworld.com>
parents:
42594
diff
changeset
|
158 | * Since: 2.0 |
| 5563 | 159 | */ |
|
42413
9ca3a03253ca
Add Since and visibility tags to connections API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42394
diff
changeset
|
160 | PURPLE_AVAILABLE_IN_ALL |
| 15884 | 161 | void purple_connection_set_display_name(PurpleConnection *gc, const char *name); |
| 5563 | 162 | |
| 163 | /** | |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
164 | * purple_connection_get_state: |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
165 | * @gc: The connection. |
| 5563 | 166 | * |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
167 | * Returns the connection state. |
| 5563 | 168 | * |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35042
diff
changeset
|
169 | * Returns: The connection state. |
|
42413
9ca3a03253ca
Add Since and visibility tags to connections API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42394
diff
changeset
|
170 | * |
|
42612
d905313bc732
Remove the micro version from since tags for libpurple part 1
Gary Kramlich <grim@reaperworld.com>
parents:
42594
diff
changeset
|
171 | * Since: 2.0 |
| 5563 | 172 | */ |
|
42413
9ca3a03253ca
Add Since and visibility tags to connections API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42394
diff
changeset
|
173 | PURPLE_AVAILABLE_IN_ALL |
|
39433
f033955d125a
Use G_DEFINE_TYPE_WITH_PRIVATE for PurpleConnection.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
38745
diff
changeset
|
174 | PurpleConnectionState purple_connection_get_state(PurpleConnection *gc); |
| 5563 | 175 | |
| 176 | /** | |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
177 | * PURPLE_CONNECTION_IS_CONNECTED: |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
178 | * |
|
9019
b9a333b36763
[gaim-migrate @ 9795]
Mark Doliner <markdoliner@pidgin.im>
parents:
8735
diff
changeset
|
179 | * Returns TRUE if the account is connected, otherwise returns FALSE. |
|
b9a333b36763
[gaim-migrate @ 9795]
Mark Doliner <markdoliner@pidgin.im>
parents:
8735
diff
changeset
|
180 | * |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35042
diff
changeset
|
181 | * Returns: TRUE if the account is connected, otherwise returns FALSE. |
|
42413
9ca3a03253ca
Add Since and visibility tags to connections API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42394
diff
changeset
|
182 | * |
|
42612
d905313bc732
Remove the micro version from since tags for libpurple part 1
Gary Kramlich <grim@reaperworld.com>
parents:
42594
diff
changeset
|
183 | * Since: 2.0 |
|
9019
b9a333b36763
[gaim-migrate @ 9795]
Mark Doliner <markdoliner@pidgin.im>
parents:
8735
diff
changeset
|
184 | */ |
| 15884 | 185 | #define PURPLE_CONNECTION_IS_CONNECTED(gc) \ |
|
41812
c3cd920261b6
Fix the namespace of the PurpleConnectionState enum constants
Gary Kramlich <grim@reaperworld.com>
parents:
41799
diff
changeset
|
186 | (purple_connection_get_state(gc) == PURPLE_CONNECTION_STATE_CONNECTED) |
|
9019
b9a333b36763
[gaim-migrate @ 9795]
Mark Doliner <markdoliner@pidgin.im>
parents:
8735
diff
changeset
|
187 | |
|
b9a333b36763
[gaim-migrate @ 9795]
Mark Doliner <markdoliner@pidgin.im>
parents:
8735
diff
changeset
|
188 | /** |
|
41300
fa932768f319
Add an ID property to PurpleConnection
Gary Kramlich <grim@reaperworld.com>
parents:
41200
diff
changeset
|
189 | * purple_connection_get_id: |
|
fa932768f319
Add an ID property to PurpleConnection
Gary Kramlich <grim@reaperworld.com>
parents:
41200
diff
changeset
|
190 | * @connection: The connection. |
|
fa932768f319
Add an ID property to PurpleConnection
Gary Kramlich <grim@reaperworld.com>
parents:
41200
diff
changeset
|
191 | * |
|
fa932768f319
Add an ID property to PurpleConnection
Gary Kramlich <grim@reaperworld.com>
parents:
41200
diff
changeset
|
192 | * Gets the identifier of the connection. |
|
fa932768f319
Add an ID property to PurpleConnection
Gary Kramlich <grim@reaperworld.com>
parents:
41200
diff
changeset
|
193 | * |
|
fa932768f319
Add an ID property to PurpleConnection
Gary Kramlich <grim@reaperworld.com>
parents:
41200
diff
changeset
|
194 | * Returns: The identifier of the connection. |
|
fa932768f319
Add an ID property to PurpleConnection
Gary Kramlich <grim@reaperworld.com>
parents:
41200
diff
changeset
|
195 | * |
|
42612
d905313bc732
Remove the micro version from since tags for libpurple part 1
Gary Kramlich <grim@reaperworld.com>
parents:
42594
diff
changeset
|
196 | * Since: 3.0 |
|
41300
fa932768f319
Add an ID property to PurpleConnection
Gary Kramlich <grim@reaperworld.com>
parents:
41200
diff
changeset
|
197 | */ |
|
42387
d9350cda1556
Export symbols added for 3.0.0
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42344
diff
changeset
|
198 | PURPLE_AVAILABLE_IN_3_0 |
|
41300
fa932768f319
Add an ID property to PurpleConnection
Gary Kramlich <grim@reaperworld.com>
parents:
41200
diff
changeset
|
199 | const gchar *purple_connection_get_id(PurpleConnection *connection); |
|
fa932768f319
Add an ID property to PurpleConnection
Gary Kramlich <grim@reaperworld.com>
parents:
41200
diff
changeset
|
200 | |
|
fa932768f319
Add an ID property to PurpleConnection
Gary Kramlich <grim@reaperworld.com>
parents:
41200
diff
changeset
|
201 | /** |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
202 | * purple_connection_get_account: |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
203 | * @gc: The connection. |
| 5563 | 204 | * |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
205 | * Returns the connection's account. |
| 5563 | 206 | * |
|
38745
f4376b1f4682
A ton more of introspection cleanups
Gary Kramlich <grim@reaperworld.com>
parents:
38716
diff
changeset
|
207 | * Returns: (transfer none): The connection's account. |
|
42413
9ca3a03253ca
Add Since and visibility tags to connections API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42394
diff
changeset
|
208 | * |
|
42612
d905313bc732
Remove the micro version from since tags for libpurple part 1
Gary Kramlich <grim@reaperworld.com>
parents:
42594
diff
changeset
|
209 | * Since: 2.0 |
| 5563 | 210 | */ |
|
42413
9ca3a03253ca
Add Since and visibility tags to connections API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42394
diff
changeset
|
211 | PURPLE_AVAILABLE_IN_ALL |
|
39433
f033955d125a
Use G_DEFINE_TYPE_WITH_PRIVATE for PurpleConnection.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
38745
diff
changeset
|
212 | PurpleAccount *purple_connection_get_account(PurpleConnection *gc); |
| 5563 | 213 | |
| 214 | /** | |
| 37040 | 215 | * 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
|
216 | * @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
|
217 | * |
| 37040 | 218 | * 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
|
219 | * |
|
38745
f4376b1f4682
A ton more of introspection cleanups
Gary Kramlich <grim@reaperworld.com>
parents:
38716
diff
changeset
|
220 | * Returns: (transfer none): The protocol. |
|
42391
090b03385984
Add Since and symbol visibility to new-in-3.0 things
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42387
diff
changeset
|
221 | * |
|
42612
d905313bc732
Remove the micro version from since tags for libpurple part 1
Gary Kramlich <grim@reaperworld.com>
parents:
42594
diff
changeset
|
222 | * Since: 3.0 |
|
22336
ac905bb0a8ec
Add accessor and update finch to not touch the internals of PurpleConnection.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
22277
diff
changeset
|
223 | */ |
|
42391
090b03385984
Add Since and symbol visibility to new-in-3.0 things
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42387
diff
changeset
|
224 | PURPLE_AVAILABLE_IN_3_0 |
|
39433
f033955d125a
Use G_DEFINE_TYPE_WITH_PRIVATE for PurpleConnection.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
38745
diff
changeset
|
225 | 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
|
226 | |
|
ac905bb0a8ec
Add accessor and update finch to not touch the internals of PurpleConnection.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
22277
diff
changeset
|
227 | /** |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
228 | * purple_connection_get_password: |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
229 | * @gc: The connection. |
|
10740
a1cb6b819a21
[gaim-migrate @ 12342]
Mark Doliner <markdoliner@pidgin.im>
parents:
10738
diff
changeset
|
230 | * |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
231 | * Returns the connection's password. |
|
10740
a1cb6b819a21
[gaim-migrate @ 12342]
Mark Doliner <markdoliner@pidgin.im>
parents:
10738
diff
changeset
|
232 | * |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35042
diff
changeset
|
233 | * Returns: The connection's password. |
|
42413
9ca3a03253ca
Add Since and visibility tags to connections API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42394
diff
changeset
|
234 | * |
|
42612
d905313bc732
Remove the micro version from since tags for libpurple part 1
Gary Kramlich <grim@reaperworld.com>
parents:
42594
diff
changeset
|
235 | * Since: 2.0 |
|
10740
a1cb6b819a21
[gaim-migrate @ 12342]
Mark Doliner <markdoliner@pidgin.im>
parents:
10738
diff
changeset
|
236 | */ |
|
42413
9ca3a03253ca
Add Since and visibility tags to connections API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42394
diff
changeset
|
237 | PURPLE_AVAILABLE_IN_ALL |
|
39433
f033955d125a
Use G_DEFINE_TYPE_WITH_PRIVATE for PurpleConnection.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
38745
diff
changeset
|
238 | const char *purple_connection_get_password(PurpleConnection *gc); |
|
10740
a1cb6b819a21
[gaim-migrate @ 12342]
Mark Doliner <markdoliner@pidgin.im>
parents:
10738
diff
changeset
|
239 | |
|
a1cb6b819a21
[gaim-migrate @ 12342]
Mark Doliner <markdoliner@pidgin.im>
parents:
10738
diff
changeset
|
240 | /** |
|
41850
7d551859bd94
Fix an issue where XMPP accounts weren't reading passwords from the credential manager
Gary Kramlich <grim@reaperworld.com>
parents:
41814
diff
changeset
|
241 | * purple_connection_set_password: |
|
7d551859bd94
Fix an issue where XMPP accounts weren't reading passwords from the credential manager
Gary Kramlich <grim@reaperworld.com>
parents:
41814
diff
changeset
|
242 | * @connection: The instance. |
|
7d551859bd94
Fix an issue where XMPP accounts weren't reading passwords from the credential manager
Gary Kramlich <grim@reaperworld.com>
parents:
41814
diff
changeset
|
243 | * @password: (nullable): The new password. |
|
7d551859bd94
Fix an issue where XMPP accounts weren't reading passwords from the credential manager
Gary Kramlich <grim@reaperworld.com>
parents:
41814
diff
changeset
|
244 | * |
|
7d551859bd94
Fix an issue where XMPP accounts weren't reading passwords from the credential manager
Gary Kramlich <grim@reaperworld.com>
parents:
41814
diff
changeset
|
245 | * Sets the password for @connection to @password. |
|
7d551859bd94
Fix an issue where XMPP accounts weren't reading passwords from the credential manager
Gary Kramlich <grim@reaperworld.com>
parents:
41814
diff
changeset
|
246 | * |
|
7d551859bd94
Fix an issue where XMPP accounts weren't reading passwords from the credential manager
Gary Kramlich <grim@reaperworld.com>
parents:
41814
diff
changeset
|
247 | * This will not change your password on the remote service. It just updates |
|
7d551859bd94
Fix an issue where XMPP accounts weren't reading passwords from the credential manager
Gary Kramlich <grim@reaperworld.com>
parents:
41814
diff
changeset
|
248 | * the password that the protocol should use when connecting. |
|
7d551859bd94
Fix an issue where XMPP accounts weren't reading passwords from the credential manager
Gary Kramlich <grim@reaperworld.com>
parents:
41814
diff
changeset
|
249 | * |
|
7d551859bd94
Fix an issue where XMPP accounts weren't reading passwords from the credential manager
Gary Kramlich <grim@reaperworld.com>
parents:
41814
diff
changeset
|
250 | * This is generally used by protocol plugins that support multiple |
|
7d551859bd94
Fix an issue where XMPP accounts weren't reading passwords from the credential manager
Gary Kramlich <grim@reaperworld.com>
parents:
41814
diff
changeset
|
251 | * authentication methods and need to prompt the user for a password. |
|
7d551859bd94
Fix an issue where XMPP accounts weren't reading passwords from the credential manager
Gary Kramlich <grim@reaperworld.com>
parents:
41814
diff
changeset
|
252 | * |
|
42612
d905313bc732
Remove the micro version from since tags for libpurple part 1
Gary Kramlich <grim@reaperworld.com>
parents:
42594
diff
changeset
|
253 | * Since: 3.0 |
|
41850
7d551859bd94
Fix an issue where XMPP accounts weren't reading passwords from the credential manager
Gary Kramlich <grim@reaperworld.com>
parents:
41814
diff
changeset
|
254 | */ |
|
42387
d9350cda1556
Export symbols added for 3.0.0
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42344
diff
changeset
|
255 | PURPLE_AVAILABLE_IN_3_0 |
|
41850
7d551859bd94
Fix an issue where XMPP accounts weren't reading passwords from the credential manager
Gary Kramlich <grim@reaperworld.com>
parents:
41814
diff
changeset
|
256 | void purple_connection_set_password(PurpleConnection *connection, const char *password); |
|
7d551859bd94
Fix an issue where XMPP accounts weren't reading passwords from the credential manager
Gary Kramlich <grim@reaperworld.com>
parents:
41814
diff
changeset
|
257 | |
|
7d551859bd94
Fix an issue where XMPP accounts weren't reading passwords from the credential manager
Gary Kramlich <grim@reaperworld.com>
parents:
41814
diff
changeset
|
258 | /** |
|
42542
1407a0aac0bf
Add a cancellable property to PurpleConnection and port IRCv3 to it
Gary Kramlich <grim@reaperworld.com>
parents:
42413
diff
changeset
|
259 | * purple_connection_get_cancellable: |
|
1407a0aac0bf
Add a cancellable property to PurpleConnection and port IRCv3 to it
Gary Kramlich <grim@reaperworld.com>
parents:
42413
diff
changeset
|
260 | * @connection: The instance. |
|
1407a0aac0bf
Add a cancellable property to PurpleConnection and port IRCv3 to it
Gary Kramlich <grim@reaperworld.com>
parents:
42413
diff
changeset
|
261 | * |
|
1407a0aac0bf
Add a cancellable property to PurpleConnection and port IRCv3 to it
Gary Kramlich <grim@reaperworld.com>
parents:
42413
diff
changeset
|
262 | * Gets the cancellable that should be used with @connection. |
|
1407a0aac0bf
Add a cancellable property to PurpleConnection and port IRCv3 to it
Gary Kramlich <grim@reaperworld.com>
parents:
42413
diff
changeset
|
263 | * |
|
1407a0aac0bf
Add a cancellable property to PurpleConnection and port IRCv3 to it
Gary Kramlich <grim@reaperworld.com>
parents:
42413
diff
changeset
|
264 | * Returns: (transfer none): The cancellable. |
|
1407a0aac0bf
Add a cancellable property to PurpleConnection and port IRCv3 to it
Gary Kramlich <grim@reaperworld.com>
parents:
42413
diff
changeset
|
265 | * |
|
42612
d905313bc732
Remove the micro version from since tags for libpurple part 1
Gary Kramlich <grim@reaperworld.com>
parents:
42594
diff
changeset
|
266 | * Since: 3.0 |
|
42542
1407a0aac0bf
Add a cancellable property to PurpleConnection and port IRCv3 to it
Gary Kramlich <grim@reaperworld.com>
parents:
42413
diff
changeset
|
267 | */ |
|
1407a0aac0bf
Add a cancellable property to PurpleConnection and port IRCv3 to it
Gary Kramlich <grim@reaperworld.com>
parents:
42413
diff
changeset
|
268 | PURPLE_AVAILABLE_IN_3_0 |
|
1407a0aac0bf
Add a cancellable property to PurpleConnection and port IRCv3 to it
Gary Kramlich <grim@reaperworld.com>
parents:
42413
diff
changeset
|
269 | GCancellable *purple_connection_get_cancellable(PurpleConnection *connection); |
|
1407a0aac0bf
Add a cancellable property to PurpleConnection and port IRCv3 to it
Gary Kramlich <grim@reaperworld.com>
parents:
42413
diff
changeset
|
270 | |
|
1407a0aac0bf
Add a cancellable property to PurpleConnection and port IRCv3 to it
Gary Kramlich <grim@reaperworld.com>
parents:
42413
diff
changeset
|
271 | /** |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
272 | * 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
|
273 | * @gc: The connection. |
| 5563 | 274 | * |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
275 | * Returns the connection's displayed name. |
| 5563 | 276 | * |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35042
diff
changeset
|
277 | * Returns: The connection's displayed name. |
|
42413
9ca3a03253ca
Add Since and visibility tags to connections API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42394
diff
changeset
|
278 | * |
|
42612
d905313bc732
Remove the micro version from since tags for libpurple part 1
Gary Kramlich <grim@reaperworld.com>
parents:
42594
diff
changeset
|
279 | * Since: 2.0 |
| 5563 | 280 | */ |
|
42413
9ca3a03253ca
Add Since and visibility tags to connections API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42394
diff
changeset
|
281 | PURPLE_AVAILABLE_IN_ALL |
|
39433
f033955d125a
Use G_DEFINE_TYPE_WITH_PRIVATE for PurpleConnection.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
38745
diff
changeset
|
282 | const char *purple_connection_get_display_name(PurpleConnection *gc); |
| 5563 | 283 | |
| 284 | /** | |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
285 | * purple_connection_error: |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35042
diff
changeset
|
286 | * @gc: the connection which is closing. |
|
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35042
diff
changeset
|
287 | * @reason: why the connection is closing. |
|
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35042
diff
changeset
|
288 | * @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
|
289 | * |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
290 | * 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
|
291 | * error. |
|
42413
9ca3a03253ca
Add Since and visibility tags to connections API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42394
diff
changeset
|
292 | * |
|
42612
d905313bc732
Remove the micro version from since tags for libpurple part 1
Gary Kramlich <grim@reaperworld.com>
parents:
42594
diff
changeset
|
293 | * Since: 2.0 |
|
20430
bb30dff3da21
Create PurpleConnectionUiOps.report_disconnect_reason and
Will Thompson <resiak@pidgin.im>
parents:
20429
diff
changeset
|
294 | */ |
|
42413
9ca3a03253ca
Add Since and visibility tags to connections API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42394
diff
changeset
|
295 | PURPLE_AVAILABLE_IN_ALL |
|
9ca3a03253ca
Add Since and visibility tags to connections API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42394
diff
changeset
|
296 | void purple_connection_error(PurpleConnection *gc, PurpleConnectionError reason, const char *description); |
|
20430
bb30dff3da21
Create PurpleConnectionUiOps.report_disconnect_reason and
Will Thompson <resiak@pidgin.im>
parents:
20429
diff
changeset
|
297 | |
|
20431
49979e453876
Create purple_connection_reason_is_fatal, which is basically a replacement for
Will Thompson <resiak@pidgin.im>
parents:
20430
diff
changeset
|
298 | /** |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
299 | * 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
|
300 | * @gc: The connection. |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
301 | * |
|
35042
c284eef5cd26
Added purple_connection_get_error_info()
Ankit Vani <a@nevitus.org>
parents:
35024
diff
changeset
|
302 | * 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
|
303 | * error exists. |
|
c284eef5cd26
Added purple_connection_get_error_info()
Ankit Vani <a@nevitus.org>
parents:
35024
diff
changeset
|
304 | * |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35042
diff
changeset
|
305 | * 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
|
306 | * 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
|
307 | * |
|
42612
d905313bc732
Remove the micro version from since tags for libpurple part 1
Gary Kramlich <grim@reaperworld.com>
parents:
42594
diff
changeset
|
308 | * Since: 3.0 |
|
35042
c284eef5cd26
Added purple_connection_get_error_info()
Ankit Vani <a@nevitus.org>
parents:
35024
diff
changeset
|
309 | */ |
|
42387
d9350cda1556
Export symbols added for 3.0.0
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42344
diff
changeset
|
310 | PURPLE_AVAILABLE_IN_3_0 |
|
42413
9ca3a03253ca
Add Since and visibility tags to connections API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42394
diff
changeset
|
311 | PurpleConnectionErrorInfo *purple_connection_get_error_info(PurpleConnection *gc); |
|
35042
c284eef5cd26
Added purple_connection_get_error_info()
Ankit Vani <a@nevitus.org>
parents:
35024
diff
changeset
|
312 | |
|
41794
37d49ac62792
Fix some minor issues with connection docs
Gary Kramlich <grim@reaperworld.com>
parents:
41792
diff
changeset
|
313 | /** |
|
37d49ac62792
Fix some minor issues with connection docs
Gary Kramlich <grim@reaperworld.com>
parents:
41792
diff
changeset
|
314 | * purple_connection_g_error: |
|
37d49ac62792
Fix some minor issues with connection docs
Gary Kramlich <grim@reaperworld.com>
parents:
41792
diff
changeset
|
315 | * @pc: Connection the error is associated with |
|
37666
08ec2e6e0174
libpurple: Add purple_connection_g_error() to simplify handling G_IO_ERRORs
Mike Ruprecht <cmaiku@gmail.com>
parents:
37148
diff
changeset
|
316 | * @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
|
317 | * |
|
41794
37d49ac62792
Fix some minor issues with connection docs
Gary Kramlich <grim@reaperworld.com>
parents:
41792
diff
changeset
|
318 | * Closes a connection similar to [method@Purple.Connection.error], but takes a |
|
37d49ac62792
Fix some minor issues with connection docs
Gary Kramlich <grim@reaperworld.com>
parents:
41792
diff
changeset
|
319 | * [type@GLib.Error] which is then converted to purple error codes. |
|
37666
08ec2e6e0174
libpurple: Add purple_connection_g_error() to simplify handling G_IO_ERRORs
Mike Ruprecht <cmaiku@gmail.com>
parents:
37148
diff
changeset
|
320 | * |
|
08ec2e6e0174
libpurple: Add purple_connection_g_error() to simplify handling G_IO_ERRORs
Mike Ruprecht <cmaiku@gmail.com>
parents:
37148
diff
changeset
|
321 | * 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
|
322 | * 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
|
323 | * 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
|
324 | * down a connection. If G_IO_ERROR_CANCELLED needs to be caught, |
|
41794
37d49ac62792
Fix some minor issues with connection docs
Gary Kramlich <grim@reaperworld.com>
parents:
41792
diff
changeset
|
325 | * do so with [method@GLib.Error.matches] prior to calling this function. |
|
37d49ac62792
Fix some minor issues with connection docs
Gary Kramlich <grim@reaperworld.com>
parents:
41792
diff
changeset
|
326 | * |
|
42612
d905313bc732
Remove the micro version from since tags for libpurple part 1
Gary Kramlich <grim@reaperworld.com>
parents:
42594
diff
changeset
|
327 | * Since: 3.0 |
|
37666
08ec2e6e0174
libpurple: Add purple_connection_g_error() to simplify handling G_IO_ERRORs
Mike Ruprecht <cmaiku@gmail.com>
parents:
37148
diff
changeset
|
328 | */ |
|
42387
d9350cda1556
Export symbols added for 3.0.0
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42344
diff
changeset
|
329 | PURPLE_AVAILABLE_IN_3_0 |
|
41794
37d49ac62792
Fix some minor issues with connection docs
Gary Kramlich <grim@reaperworld.com>
parents:
41792
diff
changeset
|
330 | void purple_connection_g_error(PurpleConnection *pc, 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
|
331 | |
|
41794
37d49ac62792
Fix some minor issues with connection docs
Gary Kramlich <grim@reaperworld.com>
parents:
41792
diff
changeset
|
332 | /** |
|
37d49ac62792
Fix some minor issues with connection docs
Gary Kramlich <grim@reaperworld.com>
parents:
41792
diff
changeset
|
333 | * purple_connection_take_error: |
|
37d49ac62792
Fix some minor issues with connection docs
Gary Kramlich <grim@reaperworld.com>
parents:
41792
diff
changeset
|
334 | * @pc: Connection the error is associated with |
|
41881
7e1dd7e9efbb
Fix error parameter annotations
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41869
diff
changeset
|
335 | * @error: Return address for a #GError, or %NULL. |
|
37959
e76677ed819c
connection: Add purple_connection_take_error()
Mike Ruprecht <cmaiku@gmail.com>
parents:
37958
diff
changeset
|
336 | * |
|
41794
37d49ac62792
Fix some minor issues with connection docs
Gary Kramlich <grim@reaperworld.com>
parents:
41792
diff
changeset
|
337 | * Closes a connection similar to [method@Purple.Connection.error], but takes a |
|
37d49ac62792
Fix some minor issues with connection docs
Gary Kramlich <grim@reaperworld.com>
parents:
41792
diff
changeset
|
338 | * [type@GLib.Error] which is then converted to purple error codes. |
|
37959
e76677ed819c
connection: Add purple_connection_take_error()
Mike Ruprecht <cmaiku@gmail.com>
parents:
37958
diff
changeset
|
339 | * |
|
41794
37d49ac62792
Fix some minor issues with connection docs
Gary Kramlich <grim@reaperworld.com>
parents:
41792
diff
changeset
|
340 | * This function is equivalent to [method@Purple.Connection.g_error], expect |
|
37d49ac62792
Fix some minor issues with connection docs
Gary Kramlich <grim@reaperworld.com>
parents:
41792
diff
changeset
|
341 | * that it takes ownership of the GError. |
|
37d49ac62792
Fix some minor issues with connection docs
Gary Kramlich <grim@reaperworld.com>
parents:
41792
diff
changeset
|
342 | * |
|
42612
d905313bc732
Remove the micro version from since tags for libpurple part 1
Gary Kramlich <grim@reaperworld.com>
parents:
42594
diff
changeset
|
343 | * Since: 3.0 |
|
37959
e76677ed819c
connection: Add purple_connection_take_error()
Mike Ruprecht <cmaiku@gmail.com>
parents:
37958
diff
changeset
|
344 | */ |
|
42387
d9350cda1556
Export symbols added for 3.0.0
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42344
diff
changeset
|
345 | PURPLE_AVAILABLE_IN_3_0 |
|
41794
37d49ac62792
Fix some minor issues with connection docs
Gary Kramlich <grim@reaperworld.com>
parents:
41792
diff
changeset
|
346 | void purple_connection_take_error(PurpleConnection *pc, GError *error); |
|
37959
e76677ed819c
connection: Add purple_connection_take_error()
Mike Ruprecht <cmaiku@gmail.com>
parents:
37958
diff
changeset
|
347 | |
|
20443
7487bb69ae76
Create purple_connection_ssl_error(), which converts a PurpleSslErrorType
Will Thompson <resiak@pidgin.im>
parents:
20442
diff
changeset
|
348 | /** |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
349 | * purple_connection_error_is_fatal: |
|
40245
056a71665e06
Add a bunch of missing docs.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
40215
diff
changeset
|
350 | * @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
|
351 | * |
|
20431
49979e453876
Create purple_connection_reason_is_fatal, which is basically a replacement for
Will Thompson <resiak@pidgin.im>
parents:
20430
diff
changeset
|
352 | * 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
|
353 | * 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
|
354 | * 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
|
355 | * |
|
21280
2db787ddddf8
Document that the char * parameter of purple_connection_error{,_reason} may
Will Thompson <resiak@pidgin.im>
parents:
21279
diff
changeset
|
356 | * 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
|
357 | * 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
|
358 | * 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
|
359 | * </code> is %FALSE. |
|
056a71665e06
Add a bunch of missing docs.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
40215
diff
changeset
|
360 | * |
|
056a71665e06
Add a bunch of missing docs.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
40215
diff
changeset
|
361 | * 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
|
362 | * 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
|
363 | * it up, so <code> |
|
056a71665e06
Add a bunch of missing docs.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
40215
diff
changeset
|
364 | * 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
|
365 | * </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
|
366 | * |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35042
diff
changeset
|
367 | * 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
|
368 | * %FALSE otherwise. |
|
42413
9ca3a03253ca
Add Since and visibility tags to connections API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42394
diff
changeset
|
369 | * |
|
42612
d905313bc732
Remove the micro version from since tags for libpurple part 1
Gary Kramlich <grim@reaperworld.com>
parents:
42594
diff
changeset
|
370 | * Since: 2.0 |
|
20431
49979e453876
Create purple_connection_reason_is_fatal, which is basically a replacement for
Will Thompson <resiak@pidgin.im>
parents:
20430
diff
changeset
|
371 | */ |
|
42413
9ca3a03253ca
Add Since and visibility tags to connections API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42394
diff
changeset
|
372 | PURPLE_AVAILABLE_IN_ALL |
|
9ca3a03253ca
Add Since and visibility tags to connections API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42394
diff
changeset
|
373 | gboolean 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
|
374 | |
|
5944
f19df037ac58
[gaim-migrate @ 6385]
Christian Hammond <chipx86@chipx86.com>
parents:
5872
diff
changeset
|
375 | /**************************************************************************/ |
| 35472 | 376 | /* Connections API */ |
|
5944
f19df037ac58
[gaim-migrate @ 6385]
Christian Hammond <chipx86@chipx86.com>
parents:
5872
diff
changeset
|
377 | /**************************************************************************/ |
|
f19df037ac58
[gaim-migrate @ 6385]
Christian Hammond <chipx86@chipx86.com>
parents:
5872
diff
changeset
|
378 | |
|
5564
1779a1bfbdb8
[gaim-migrate @ 5966]
Christian Hammond <chipx86@chipx86.com>
parents:
5563
diff
changeset
|
379 | /** |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
380 | * purple_connections_disconnect_all: |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
381 | * |
| 5563 | 382 | * Disconnects from all connections. |
|
42413
9ca3a03253ca
Add Since and visibility tags to connections API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42394
diff
changeset
|
383 | * |
|
42612
d905313bc732
Remove the micro version from since tags for libpurple part 1
Gary Kramlich <grim@reaperworld.com>
parents:
42594
diff
changeset
|
384 | * Since: 2.0 |
| 5563 | 385 | */ |
|
42413
9ca3a03253ca
Add Since and visibility tags to connections API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42394
diff
changeset
|
386 | PURPLE_AVAILABLE_IN_ALL |
| 15884 | 387 | void purple_connections_disconnect_all(void); |
| 5563 | 388 | |
| 389 | /** | |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
390 | * purple_connections_get_all: |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
391 | * |
|
10352
802e7ab5b838
[gaim-migrate @ 11569]
Mark Doliner <markdoliner@pidgin.im>
parents:
10272
diff
changeset
|
392 | * Returns a list of all active connections. This does not |
|
802e7ab5b838
[gaim-migrate @ 11569]
Mark Doliner <markdoliner@pidgin.im>
parents:
10272
diff
changeset
|
393 | * include connections that are in the process of connecting. |
| 5563 | 394 | * |
|
38716
b9bed228745a
Add many libpurple element-type annotations.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
37961
diff
changeset
|
395 | * 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
|
396 | * active connections. |
|
42413
9ca3a03253ca
Add Since and visibility tags to connections API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42394
diff
changeset
|
397 | * |
|
42612
d905313bc732
Remove the micro version from since tags for libpurple part 1
Gary Kramlich <grim@reaperworld.com>
parents:
42594
diff
changeset
|
398 | * Since: 2.0 |
| 5563 | 399 | */ |
|
42413
9ca3a03253ca
Add Since and visibility tags to connections API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42394
diff
changeset
|
400 | PURPLE_AVAILABLE_IN_ALL |
|
18122
9bf9970c1b6a
disapproval of revision '2d8ea56b90971e7851442d96b7d74ecb4f052126'
Richard Laager <rlaager@pidgin.im>
parents:
18121
diff
changeset
|
401 | GList *purple_connections_get_all(void); |
| 5563 | 402 | |
|
5564
1779a1bfbdb8
[gaim-migrate @ 5966]
Christian Hammond <chipx86@chipx86.com>
parents:
5563
diff
changeset
|
403 | /** |
|
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
|
404 | * 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
|
405 | * |
|
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
|
406 | * 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
|
407 | * |
|
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
|
408 | * Returns: %TRUE if at least one account is online. |
|
42391
090b03385984
Add Since and symbol visibility to new-in-3.0 things
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42387
diff
changeset
|
409 | * |
|
42612
d905313bc732
Remove the micro version from since tags for libpurple part 1
Gary Kramlich <grim@reaperworld.com>
parents:
42594
diff
changeset
|
410 | * Since: 3.0 |
|
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
|
411 | */ |
|
42391
090b03385984
Add Since and symbol visibility to new-in-3.0 things
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42387
diff
changeset
|
412 | PURPLE_AVAILABLE_IN_3_0 |
|
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
|
413 | 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
|
414 | |
| 5563 | 415 | /**************************************************************************/ |
| 35472 | 416 | /* Connections Subsystem */ |
|
6488
6a47a95e4dbb
[gaim-migrate @ 7002]
Christian Hammond <chipx86@chipx86.com>
parents:
6485
diff
changeset
|
417 | /**************************************************************************/ |
|
6a47a95e4dbb
[gaim-migrate @ 7002]
Christian Hammond <chipx86@chipx86.com>
parents:
6485
diff
changeset
|
418 | |
|
6a47a95e4dbb
[gaim-migrate @ 7002]
Christian Hammond <chipx86@chipx86.com>
parents:
6485
diff
changeset
|
419 | /** |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
420 | * purple_connections_init: |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
421 | * |
|
6488
6a47a95e4dbb
[gaim-migrate @ 7002]
Christian Hammond <chipx86@chipx86.com>
parents:
6485
diff
changeset
|
422 | * Initializes the connections subsystem. |
|
42413
9ca3a03253ca
Add Since and visibility tags to connections API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42394
diff
changeset
|
423 | * |
|
42612
d905313bc732
Remove the micro version from since tags for libpurple part 1
Gary Kramlich <grim@reaperworld.com>
parents:
42594
diff
changeset
|
424 | * Since: 2.0 |
|
6488
6a47a95e4dbb
[gaim-migrate @ 7002]
Christian Hammond <chipx86@chipx86.com>
parents:
6485
diff
changeset
|
425 | */ |
|
42413
9ca3a03253ca
Add Since and visibility tags to connections API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42394
diff
changeset
|
426 | PURPLE_AVAILABLE_IN_ALL |
| 15884 | 427 | void purple_connections_init(void); |
|
6488
6a47a95e4dbb
[gaim-migrate @ 7002]
Christian Hammond <chipx86@chipx86.com>
parents:
6485
diff
changeset
|
428 | |
|
6a47a95e4dbb
[gaim-migrate @ 7002]
Christian Hammond <chipx86@chipx86.com>
parents:
6485
diff
changeset
|
429 | /** |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
430 | * purple_connections_uninit: |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
431 | * |
|
6488
6a47a95e4dbb
[gaim-migrate @ 7002]
Christian Hammond <chipx86@chipx86.com>
parents:
6485
diff
changeset
|
432 | * Uninitializes the connections subsystem. |
|
42413
9ca3a03253ca
Add Since and visibility tags to connections API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42394
diff
changeset
|
433 | * |
|
42612
d905313bc732
Remove the micro version from since tags for libpurple part 1
Gary Kramlich <grim@reaperworld.com>
parents:
42594
diff
changeset
|
434 | * Since: 2.0 |
|
6488
6a47a95e4dbb
[gaim-migrate @ 7002]
Christian Hammond <chipx86@chipx86.com>
parents:
6485
diff
changeset
|
435 | */ |
|
42413
9ca3a03253ca
Add Since and visibility tags to connections API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42394
diff
changeset
|
436 | PURPLE_AVAILABLE_IN_ALL |
| 15884 | 437 | void purple_connections_uninit(void); |
|
6488
6a47a95e4dbb
[gaim-migrate @ 7002]
Christian Hammond <chipx86@chipx86.com>
parents:
6485
diff
changeset
|
438 | |
|
6a47a95e4dbb
[gaim-migrate @ 7002]
Christian Hammond <chipx86@chipx86.com>
parents:
6485
diff
changeset
|
439 | /** |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
440 | * purple_connections_get_handle: |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
441 | * |
|
6488
6a47a95e4dbb
[gaim-migrate @ 7002]
Christian Hammond <chipx86@chipx86.com>
parents:
6485
diff
changeset
|
442 | * Returns the handle to the connections subsystem. |
|
6a47a95e4dbb
[gaim-migrate @ 7002]
Christian Hammond <chipx86@chipx86.com>
parents:
6485
diff
changeset
|
443 | * |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35042
diff
changeset
|
444 | * Returns: The connections subsystem handle. |
|
42413
9ca3a03253ca
Add Since and visibility tags to connections API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42394
diff
changeset
|
445 | * |
|
42612
d905313bc732
Remove the micro version from since tags for libpurple part 1
Gary Kramlich <grim@reaperworld.com>
parents:
42594
diff
changeset
|
446 | * Since: 2.0 |
|
6488
6a47a95e4dbb
[gaim-migrate @ 7002]
Christian Hammond <chipx86@chipx86.com>
parents:
6485
diff
changeset
|
447 | */ |
|
42413
9ca3a03253ca
Add Since and visibility tags to connections API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42394
diff
changeset
|
448 | PURPLE_AVAILABLE_IN_ALL |
| 15884 | 449 | void *purple_connections_get_handle(void); |
|
6488
6a47a95e4dbb
[gaim-migrate @ 7002]
Christian Hammond <chipx86@chipx86.com>
parents:
6485
diff
changeset
|
450 | |
|
32787
7072f190d6ad
Use G_BEGIN/END_DECLS in public libpurple files. This was
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32687
diff
changeset
|
451 | G_END_DECLS |
|
5944
f19df037ac58
[gaim-migrate @ 6385]
Christian Hammond <chipx86@chipx86.com>
parents:
5872
diff
changeset
|
452 | |
|
39659
e4dfb99b0cef
Fix libpurple header guards using reserved names.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39549
diff
changeset
|
453 | #endif /* PURPLE_CONNECTION_H */ |