Thu, 15 Dec 2022 21:06:09 -0600
Add a settings property to PurpleCredentialProvider that is a GSettings object
Testing Done:
Ran the unit tests. However I didn't add this to the tests because adding a dummy settings object is more trouble than it's worth.
Reviewed at https://reviews.imfreedom.org/r/2145/
|
40548
42556c49e1e2
Add PurpleCredentialProvider as the first piece to replace the existing keyring api.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
1 | /* |
|
40651
8737840a09b7
Fix some file headers for the credential provider api
Gary Kramlich <grim@reaperworld.com>
parents:
40583
diff
changeset
|
2 | * Purple - Internet Messaging Library |
|
8737840a09b7
Fix some file headers for the credential provider api
Gary Kramlich <grim@reaperworld.com>
parents:
40583
diff
changeset
|
3 | * Copyright (C) Pidgin Developers <devel@pidgin.im> |
|
40548
42556c49e1e2
Add PurpleCredentialProvider as the first piece to replace the existing keyring api.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
4 | * |
|
42556c49e1e2
Add PurpleCredentialProvider as the first piece to replace the existing keyring api.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
5 | * This library is free software; you can redistribute it and/or |
|
42556c49e1e2
Add PurpleCredentialProvider as the first piece to replace the existing keyring api.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
6 | * modify it under the terms of the GNU Lesser General Public |
|
42556c49e1e2
Add PurpleCredentialProvider as the first piece to replace the existing keyring api.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
7 | * License as published by the Free Software Foundation; either |
|
42556c49e1e2
Add PurpleCredentialProvider as the first piece to replace the existing keyring api.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
8 | * version 2 of the License, or (at your option) any later version. |
|
42556c49e1e2
Add PurpleCredentialProvider as the first piece to replace the existing keyring api.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
9 | * |
|
42556c49e1e2
Add PurpleCredentialProvider as the first piece to replace the existing keyring api.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
10 | * This library is distributed in the hope that it will be useful, |
|
42556c49e1e2
Add PurpleCredentialProvider as the first piece to replace the existing keyring api.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
42556c49e1e2
Add PurpleCredentialProvider as the first piece to replace the existing keyring api.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
|
42556c49e1e2
Add PurpleCredentialProvider as the first piece to replace the existing keyring api.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
13 | * Lesser General Public License for more details. |
|
42556c49e1e2
Add PurpleCredentialProvider as the first piece to replace the existing keyring api.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
14 | * |
|
42556c49e1e2
Add PurpleCredentialProvider as the first piece to replace the existing keyring api.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
15 | * You should have received a copy of the GNU Lesser General Public |
|
42556c49e1e2
Add PurpleCredentialProvider as the first piece to replace the existing keyring api.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
16 | * License along with this library; if not, see <https://www.gnu.org/licenses/>. |
|
42556c49e1e2
Add PurpleCredentialProvider as the first piece to replace the existing keyring api.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
17 | */ |
|
42556c49e1e2
Add PurpleCredentialProvider as the first piece to replace the existing keyring api.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
18 | |
|
42556c49e1e2
Add PurpleCredentialProvider as the first piece to replace the existing keyring api.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
19 | #if !defined(PURPLE_GLOBAL_HEADER_INSIDE) && !defined(PURPLE_COMPILATION) |
|
42556c49e1e2
Add PurpleCredentialProvider as the first piece to replace the existing keyring api.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
20 | # error "only <purple.h> may be included directly" |
|
42556c49e1e2
Add PurpleCredentialProvider as the first piece to replace the existing keyring api.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
21 | #endif |
|
42556c49e1e2
Add PurpleCredentialProvider as the first piece to replace the existing keyring api.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
22 | |
|
42556c49e1e2
Add PurpleCredentialProvider as the first piece to replace the existing keyring api.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
23 | #ifndef PURPLE_CREDENTIAL_PROVIDER_H |
|
42556c49e1e2
Add PurpleCredentialProvider as the first piece to replace the existing keyring api.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
24 | #define PURPLE_CREDENTIAL_PROVIDER_H |
|
42556c49e1e2
Add PurpleCredentialProvider as the first piece to replace the existing keyring api.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
25 | |
|
42556c49e1e2
Add PurpleCredentialProvider as the first piece to replace the existing keyring api.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
26 | #include <glib.h> |
|
42556c49e1e2
Add PurpleCredentialProvider as the first piece to replace the existing keyring api.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
27 | #include <glib-object.h> |
|
42556c49e1e2
Add PurpleCredentialProvider as the first piece to replace the existing keyring api.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
28 | |
|
42556c49e1e2
Add PurpleCredentialProvider as the first piece to replace the existing keyring api.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
29 | #include "account.h" |
|
42556c49e1e2
Add PurpleCredentialProvider as the first piece to replace the existing keyring api.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
30 | #include "request.h" |
|
42556c49e1e2
Add PurpleCredentialProvider as the first piece to replace the existing keyring api.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
31 | |
|
42556c49e1e2
Add PurpleCredentialProvider as the first piece to replace the existing keyring api.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
32 | G_BEGIN_DECLS |
|
42556c49e1e2
Add PurpleCredentialProvider as the first piece to replace the existing keyring api.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
33 | |
|
42556c49e1e2
Add PurpleCredentialProvider as the first piece to replace the existing keyring api.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
34 | /** |
|
42556c49e1e2
Add PurpleCredentialProvider as the first piece to replace the existing keyring api.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
35 | * PURPLE_CREDENTIAL_PROVIDER_DOMAIN: |
|
42556c49e1e2
Add PurpleCredentialProvider as the first piece to replace the existing keyring api.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
36 | * |
|
42556c49e1e2
Add PurpleCredentialProvider as the first piece to replace the existing keyring api.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
37 | * A #GError domain for errors from #PurpleCredentialProviders. |
|
42556c49e1e2
Add PurpleCredentialProvider as the first piece to replace the existing keyring api.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
38 | * |
|
42556c49e1e2
Add PurpleCredentialProvider as the first piece to replace the existing keyring api.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
39 | * Since: 3.0.0 |
|
42556c49e1e2
Add PurpleCredentialProvider as the first piece to replace the existing keyring api.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
40 | */ |
|
42556c49e1e2
Add PurpleCredentialProvider as the first piece to replace the existing keyring api.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
41 | #define PURPLE_CREDENTIAL_PROVIDER_DOMAIN (g_quark_from_static_string("purple-credential-provider")) |
|
42556c49e1e2
Add PurpleCredentialProvider as the first piece to replace the existing keyring api.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
42 | |
|
42556c49e1e2
Add PurpleCredentialProvider as the first piece to replace the existing keyring api.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
43 | /** |
|
42556c49e1e2
Add PurpleCredentialProvider as the first piece to replace the existing keyring api.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
44 | * PurpleCredentialProvider: |
|
42556c49e1e2
Add PurpleCredentialProvider as the first piece to replace the existing keyring api.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
45 | * |
|
41207
d91e963b0a1c
Remove unnecessary gtk-doc comments and move them where possible from libpurple/purple[a-n]*.h
Gary Kramlich <grim@reaperworld.com>
parents:
41031
diff
changeset
|
46 | * #PurpleCredentialProvider is an abstract base class for implementing support |
|
d91e963b0a1c
Remove unnecessary gtk-doc comments and move them where possible from libpurple/purple[a-n]*.h
Gary Kramlich <grim@reaperworld.com>
parents:
41031
diff
changeset
|
47 | * for a specific password or keyring manager. At the time of this writing, |
|
d91e963b0a1c
Remove unnecessary gtk-doc comments and move them where possible from libpurple/purple[a-n]*.h
Gary Kramlich <grim@reaperworld.com>
parents:
41031
diff
changeset
|
48 | * libpurple ships with plugins for libsecret, macOS Keychain Access, KWallet, |
|
d91e963b0a1c
Remove unnecessary gtk-doc comments and move them where possible from libpurple/purple[a-n]*.h
Gary Kramlich <grim@reaperworld.com>
parents:
41031
diff
changeset
|
49 | * and the Windows Credentials store by subclassing #PurpleCredentialProvider. |
|
40548
42556c49e1e2
Add PurpleCredentialProvider as the first piece to replace the existing keyring api.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
50 | * |
|
42556c49e1e2
Add PurpleCredentialProvider as the first piece to replace the existing keyring api.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
51 | * Since: 3.0.0 |
|
42556c49e1e2
Add PurpleCredentialProvider as the first piece to replace the existing keyring api.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
52 | */ |
|
42556c49e1e2
Add PurpleCredentialProvider as the first piece to replace the existing keyring api.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
53 | |
|
42556c49e1e2
Add PurpleCredentialProvider as the first piece to replace the existing keyring api.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
54 | #define PURPLE_TYPE_CREDENTIAL_PROVIDER (purple_credential_provider_get_type()) |
|
42556c49e1e2
Add PurpleCredentialProvider as the first piece to replace the existing keyring api.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
55 | G_DECLARE_DERIVABLE_TYPE(PurpleCredentialProvider, purple_credential_provider, |
|
40561
569ab1326932
Fix a few issues with the CredentialProvider code that snuck past review
Gary Kramlich <grim@reaperworld.com>
parents:
40548
diff
changeset
|
56 | PURPLE, CREDENTIAL_PROVIDER, GObject) |
|
40548
42556c49e1e2
Add PurpleCredentialProvider as the first piece to replace the existing keyring api.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
57 | |
|
42556c49e1e2
Add PurpleCredentialProvider as the first piece to replace the existing keyring api.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
58 | /** |
|
42556c49e1e2
Add PurpleCredentialProvider as the first piece to replace the existing keyring api.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
59 | * PurpleCredentialProviderClass: |
|
40823
338bba38df77
Port the KWallet Keyring to the new CredentialProvider API.
Gary Kramlich <grim@reaperworld.com>
parents:
40790
diff
changeset
|
60 | * @activate: Called when the provider is made active. |
|
338bba38df77
Port the KWallet Keyring to the new CredentialProvider API.
Gary Kramlich <grim@reaperworld.com>
parents:
40790
diff
changeset
|
61 | * @deactivate: Called when another provider has been made active. |
|
40548
42556c49e1e2
Add PurpleCredentialProvider as the first piece to replace the existing keyring api.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
62 | * @read_password_async: Reads a password from the provider. |
|
42556c49e1e2
Add PurpleCredentialProvider as the first piece to replace the existing keyring api.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
63 | * @read_password_finish: Finishes reading a password. |
|
42556c49e1e2
Add PurpleCredentialProvider as the first piece to replace the existing keyring api.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
64 | * @write_password_async: Writes a password to the provider. |
|
42556c49e1e2
Add PurpleCredentialProvider as the first piece to replace the existing keyring api.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
65 | * @write_password_finish: Finishes writing a password. |
|
42556c49e1e2
Add PurpleCredentialProvider as the first piece to replace the existing keyring api.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
66 | * @clear_password_async: Clears a password from the provider. |
|
42556c49e1e2
Add PurpleCredentialProvider as the first piece to replace the existing keyring api.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
67 | * @clear_password_finish: Finishes clearing a password from the provider. |
|
42556c49e1e2
Add PurpleCredentialProvider as the first piece to replace the existing keyring api.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
68 | * |
|
42556c49e1e2
Add PurpleCredentialProvider as the first piece to replace the existing keyring api.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
69 | * #PurpleCredentialProviderClass defines the interface for interacting with |
|
42556c49e1e2
Add PurpleCredentialProvider as the first piece to replace the existing keyring api.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
70 | * credential providers like libsecret, kwallet, etc. |
|
42556c49e1e2
Add PurpleCredentialProvider as the first piece to replace the existing keyring api.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
71 | * |
|
42556c49e1e2
Add PurpleCredentialProvider as the first piece to replace the existing keyring api.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
72 | * Since: 3.0.0 |
|
42556c49e1e2
Add PurpleCredentialProvider as the first piece to replace the existing keyring api.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
73 | */ |
|
42556c49e1e2
Add PurpleCredentialProvider as the first piece to replace the existing keyring api.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
74 | struct _PurpleCredentialProviderClass { |
|
42556c49e1e2
Add PurpleCredentialProvider as the first piece to replace the existing keyring api.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
75 | /*< private >*/ |
|
42556c49e1e2
Add PurpleCredentialProvider as the first piece to replace the existing keyring api.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
76 | GObjectClass parent; |
|
42556c49e1e2
Add PurpleCredentialProvider as the first piece to replace the existing keyring api.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
77 | |
|
42556c49e1e2
Add PurpleCredentialProvider as the first piece to replace the existing keyring api.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
78 | /*< public >*/ |
|
40823
338bba38df77
Port the KWallet Keyring to the new CredentialProvider API.
Gary Kramlich <grim@reaperworld.com>
parents:
40790
diff
changeset
|
79 | void (*activate)(PurpleCredentialProvider *provider); |
|
338bba38df77
Port the KWallet Keyring to the new CredentialProvider API.
Gary Kramlich <grim@reaperworld.com>
parents:
40790
diff
changeset
|
80 | void (*deactivate)(PurpleCredentialProvider *provider); |
|
338bba38df77
Port the KWallet Keyring to the new CredentialProvider API.
Gary Kramlich <grim@reaperworld.com>
parents:
40790
diff
changeset
|
81 | |
|
40548
42556c49e1e2
Add PurpleCredentialProvider as the first piece to replace the existing keyring api.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
82 | void (*read_password_async)(PurpleCredentialProvider *provider, PurpleAccount *account, GCancellable *cancellable, GAsyncReadyCallback callback, gpointer data); |
|
40679
062a4574af3e
Remove the account parameter from purple_credential_provider_*_finish functions.
Gary Kramlich <grim@reaperworld.com>
parents:
40651
diff
changeset
|
83 | gchar *(*read_password_finish)(PurpleCredentialProvider *provider, GAsyncResult *result, GError **error); |
|
40548
42556c49e1e2
Add PurpleCredentialProvider as the first piece to replace the existing keyring api.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
84 | |
|
42556c49e1e2
Add PurpleCredentialProvider as the first piece to replace the existing keyring api.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
85 | void (*write_password_async)(PurpleCredentialProvider *provider, PurpleAccount *account, const gchar *password, GCancellable *cancellable, GAsyncReadyCallback callback, gpointer data); |
|
40679
062a4574af3e
Remove the account parameter from purple_credential_provider_*_finish functions.
Gary Kramlich <grim@reaperworld.com>
parents:
40651
diff
changeset
|
86 | gboolean (*write_password_finish)(PurpleCredentialProvider *provider, GAsyncResult *result, GError **error); |
|
40548
42556c49e1e2
Add PurpleCredentialProvider as the first piece to replace the existing keyring api.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
87 | |
|
42556c49e1e2
Add PurpleCredentialProvider as the first piece to replace the existing keyring api.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
88 | void (*clear_password_async)(PurpleCredentialProvider *provider, PurpleAccount *account, GCancellable *cancellable, GAsyncReadyCallback callback, gpointer data); |
|
40679
062a4574af3e
Remove the account parameter from purple_credential_provider_*_finish functions.
Gary Kramlich <grim@reaperworld.com>
parents:
40651
diff
changeset
|
89 | gboolean (*clear_password_finish)(PurpleCredentialProvider *provider, GAsyncResult *result, GError **error); |
|
40548
42556c49e1e2
Add PurpleCredentialProvider as the first piece to replace the existing keyring api.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
90 | |
|
42556c49e1e2
Add PurpleCredentialProvider as the first piece to replace the existing keyring api.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
91 | /*< private >*/ |
|
42556c49e1e2
Add PurpleCredentialProvider as the first piece to replace the existing keyring api.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
92 | |
|
42556c49e1e2
Add PurpleCredentialProvider as the first piece to replace the existing keyring api.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
93 | /* Some extra padding to play it safe. */ |
|
42556c49e1e2
Add PurpleCredentialProvider as the first piece to replace the existing keyring api.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
94 | gpointer reserved[8]; |
|
42556c49e1e2
Add PurpleCredentialProvider as the first piece to replace the existing keyring api.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
95 | }; |
|
42556c49e1e2
Add PurpleCredentialProvider as the first piece to replace the existing keyring api.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
96 | |
|
42556c49e1e2
Add PurpleCredentialProvider as the first piece to replace the existing keyring api.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
97 | /** |
|
42556c49e1e2
Add PurpleCredentialProvider as the first piece to replace the existing keyring api.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
98 | * purple_credential_provider_get_id: |
|
42556c49e1e2
Add PurpleCredentialProvider as the first piece to replace the existing keyring api.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
99 | * @provider: The #PurpleCredentialProvider instance. |
|
42556c49e1e2
Add PurpleCredentialProvider as the first piece to replace the existing keyring api.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
100 | * |
|
42556c49e1e2
Add PurpleCredentialProvider as the first piece to replace the existing keyring api.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
101 | * Gets the identifier of @provider. |
|
42556c49e1e2
Add PurpleCredentialProvider as the first piece to replace the existing keyring api.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
102 | * |
|
42556c49e1e2
Add PurpleCredentialProvider as the first piece to replace the existing keyring api.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
103 | * Returns: The identifier of @provider. |
|
42556c49e1e2
Add PurpleCredentialProvider as the first piece to replace the existing keyring api.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
104 | * |
|
42556c49e1e2
Add PurpleCredentialProvider as the first piece to replace the existing keyring api.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
105 | * Since: 3.0.0 |
|
42556c49e1e2
Add PurpleCredentialProvider as the first piece to replace the existing keyring api.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
106 | */ |
|
42556c49e1e2
Add PurpleCredentialProvider as the first piece to replace the existing keyring api.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
107 | const gchar *purple_credential_provider_get_id(PurpleCredentialProvider *provider); |
|
42556c49e1e2
Add PurpleCredentialProvider as the first piece to replace the existing keyring api.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
108 | |
|
42556c49e1e2
Add PurpleCredentialProvider as the first piece to replace the existing keyring api.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
109 | /** |
|
42556c49e1e2
Add PurpleCredentialProvider as the first piece to replace the existing keyring api.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
110 | * purple_credential_provider_get_name: |
|
42556c49e1e2
Add PurpleCredentialProvider as the first piece to replace the existing keyring api.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
111 | * @provider: The #PurpleCredentialProvider instance. |
|
42556c49e1e2
Add PurpleCredentialProvider as the first piece to replace the existing keyring api.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
112 | * |
|
42556c49e1e2
Add PurpleCredentialProvider as the first piece to replace the existing keyring api.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
113 | * Gets the name of @provider which can be show in user interfaces. |
|
42556c49e1e2
Add PurpleCredentialProvider as the first piece to replace the existing keyring api.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
114 | * |
|
42556c49e1e2
Add PurpleCredentialProvider as the first piece to replace the existing keyring api.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
115 | * Returns: The name of @provider. |
|
42556c49e1e2
Add PurpleCredentialProvider as the first piece to replace the existing keyring api.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
116 | * |
|
42556c49e1e2
Add PurpleCredentialProvider as the first piece to replace the existing keyring api.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
117 | * Since: 3.0.0 |
|
42556c49e1e2
Add PurpleCredentialProvider as the first piece to replace the existing keyring api.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
118 | */ |
|
42556c49e1e2
Add PurpleCredentialProvider as the first piece to replace the existing keyring api.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
119 | const gchar *purple_credential_provider_get_name(PurpleCredentialProvider *provider); |
|
42556c49e1e2
Add PurpleCredentialProvider as the first piece to replace the existing keyring api.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
120 | |
|
42556c49e1e2
Add PurpleCredentialProvider as the first piece to replace the existing keyring api.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
121 | /** |
|
40790
e92d5c060155
Add a description to PurpleCredentialProvider and show it in the preferences selector
Gary Kramlich <grim@reaperworld.com>
parents:
40748
diff
changeset
|
122 | * purple_credential_provider_get_description: |
|
e92d5c060155
Add a description to PurpleCredentialProvider and show it in the preferences selector
Gary Kramlich <grim@reaperworld.com>
parents:
40748
diff
changeset
|
123 | * @provider: The #PurpleCredentialProvider instance. |
|
e92d5c060155
Add a description to PurpleCredentialProvider and show it in the preferences selector
Gary Kramlich <grim@reaperworld.com>
parents:
40748
diff
changeset
|
124 | * |
|
e92d5c060155
Add a description to PurpleCredentialProvider and show it in the preferences selector
Gary Kramlich <grim@reaperworld.com>
parents:
40748
diff
changeset
|
125 | * Gets the description of @provider which can be displayed in user interfaces |
|
e92d5c060155
Add a description to PurpleCredentialProvider and show it in the preferences selector
Gary Kramlich <grim@reaperworld.com>
parents:
40748
diff
changeset
|
126 | * to help users figure out which provider to use. |
|
e92d5c060155
Add a description to PurpleCredentialProvider and show it in the preferences selector
Gary Kramlich <grim@reaperworld.com>
parents:
40748
diff
changeset
|
127 | * |
|
e92d5c060155
Add a description to PurpleCredentialProvider and show it in the preferences selector
Gary Kramlich <grim@reaperworld.com>
parents:
40748
diff
changeset
|
128 | * Returns: The description of @provider. |
|
e92d5c060155
Add a description to PurpleCredentialProvider and show it in the preferences selector
Gary Kramlich <grim@reaperworld.com>
parents:
40748
diff
changeset
|
129 | * |
|
e92d5c060155
Add a description to PurpleCredentialProvider and show it in the preferences selector
Gary Kramlich <grim@reaperworld.com>
parents:
40748
diff
changeset
|
130 | * Since: 3.0.0 |
|
e92d5c060155
Add a description to PurpleCredentialProvider and show it in the preferences selector
Gary Kramlich <grim@reaperworld.com>
parents:
40748
diff
changeset
|
131 | */ |
|
e92d5c060155
Add a description to PurpleCredentialProvider and show it in the preferences selector
Gary Kramlich <grim@reaperworld.com>
parents:
40748
diff
changeset
|
132 | const gchar *purple_credential_provider_get_description(PurpleCredentialProvider *provider); |
|
e92d5c060155
Add a description to PurpleCredentialProvider and show it in the preferences selector
Gary Kramlich <grim@reaperworld.com>
parents:
40748
diff
changeset
|
133 | |
|
e92d5c060155
Add a description to PurpleCredentialProvider and show it in the preferences selector
Gary Kramlich <grim@reaperworld.com>
parents:
40748
diff
changeset
|
134 | /** |
|
40548
42556c49e1e2
Add PurpleCredentialProvider as the first piece to replace the existing keyring api.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
135 | * purple_credential_provider_is_valid: |
|
42556c49e1e2
Add PurpleCredentialProvider as the first piece to replace the existing keyring api.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
136 | * @provider: The #PurpleCredentialProvider instance. |
|
41881
7e1dd7e9efbb
Fix error parameter annotations
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41746
diff
changeset
|
137 | * @error: Return address for a #GError, or %NULL. |
|
40548
42556c49e1e2
Add PurpleCredentialProvider as the first piece to replace the existing keyring api.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
138 | * |
|
42556c49e1e2
Add PurpleCredentialProvider as the first piece to replace the existing keyring api.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
139 | * Checks whether or not @provider is setup correctly. This is primarily meant |
|
40583
28964322556c
Add the new PurpleCredentialManager API
Gary Kramlich <grim@reaperworld.com>
parents:
40573
diff
changeset
|
140 | * for #purple_credential_provider_register_provider to call to avoid |
|
28964322556c
Add the new PurpleCredentialManager API
Gary Kramlich <grim@reaperworld.com>
parents:
40573
diff
changeset
|
141 | * programming errors, but can be used by anyone. |
|
40548
42556c49e1e2
Add PurpleCredentialProvider as the first piece to replace the existing keyring api.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
142 | * |
|
42556c49e1e2
Add PurpleCredentialProvider as the first piece to replace the existing keyring api.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
143 | * Returns: %FALSE on error, otherwise %TRUE. |
|
42556c49e1e2
Add PurpleCredentialProvider as the first piece to replace the existing keyring api.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
144 | * |
|
42556c49e1e2
Add PurpleCredentialProvider as the first piece to replace the existing keyring api.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
145 | * Since: 3.0.0 |
|
42556c49e1e2
Add PurpleCredentialProvider as the first piece to replace the existing keyring api.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
146 | */ |
|
42556c49e1e2
Add PurpleCredentialProvider as the first piece to replace the existing keyring api.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
147 | gboolean purple_credential_provider_is_valid(PurpleCredentialProvider *provider, GError **error); |
|
42556c49e1e2
Add PurpleCredentialProvider as the first piece to replace the existing keyring api.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
148 | |
|
42556c49e1e2
Add PurpleCredentialProvider as the first piece to replace the existing keyring api.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
149 | /** |
|
42556c49e1e2
Add PurpleCredentialProvider as the first piece to replace the existing keyring api.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
150 | * purple_credential_provider_read_password_async: |
|
42556c49e1e2
Add PurpleCredentialProvider as the first piece to replace the existing keyring api.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
151 | * @provider: The #PurpleCredentialProvider instance. |
|
42556c49e1e2
Add PurpleCredentialProvider as the first piece to replace the existing keyring api.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
152 | * @account: The #PurpleAccount whose password to read. |
|
40583
28964322556c
Add the new PurpleCredentialManager API
Gary Kramlich <grim@reaperworld.com>
parents:
40573
diff
changeset
|
153 | * @cancellable: (nullable): optional GCancellable object, %NULL to ignore. |
|
28964322556c
Add the new PurpleCredentialManager API
Gary Kramlich <grim@reaperworld.com>
parents:
40573
diff
changeset
|
154 | * @callback: (scope async): a #GAsyncReadyCallback to call when the request is |
|
28964322556c
Add the new PurpleCredentialManager API
Gary Kramlich <grim@reaperworld.com>
parents:
40573
diff
changeset
|
155 | * satisfied. |
|
40548
42556c49e1e2
Add PurpleCredentialProvider as the first piece to replace the existing keyring api.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
156 | * @data: User data to pass to @callback. |
|
42556c49e1e2
Add PurpleCredentialProvider as the first piece to replace the existing keyring api.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
157 | * |
|
42556c49e1e2
Add PurpleCredentialProvider as the first piece to replace the existing keyring api.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
158 | * Reads the password for @account from @provider. |
|
42556c49e1e2
Add PurpleCredentialProvider as the first piece to replace the existing keyring api.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
159 | * |
|
42556c49e1e2
Add PurpleCredentialProvider as the first piece to replace the existing keyring api.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
160 | * Since: 3.0.0 |
|
42556c49e1e2
Add PurpleCredentialProvider as the first piece to replace the existing keyring api.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
161 | */ |
|
42556c49e1e2
Add PurpleCredentialProvider as the first piece to replace the existing keyring api.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
162 | void purple_credential_provider_read_password_async(PurpleCredentialProvider *provider, PurpleAccount *account, GCancellable *cancellable, GAsyncReadyCallback callback, gpointer data); |
|
42556c49e1e2
Add PurpleCredentialProvider as the first piece to replace the existing keyring api.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
163 | |
|
42556c49e1e2
Add PurpleCredentialProvider as the first piece to replace the existing keyring api.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
164 | /** |
|
42556c49e1e2
Add PurpleCredentialProvider as the first piece to replace the existing keyring api.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
165 | * purple_credential_provider_read_password_finish: |
|
42556c49e1e2
Add PurpleCredentialProvider as the first piece to replace the existing keyring api.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
166 | * @provider: The #PurpleCredentialProvider instance. |
|
42556c49e1e2
Add PurpleCredentialProvider as the first piece to replace the existing keyring api.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
167 | * @result: The #GAsyncResult from the previous |
|
40573
ca0198d7ccdd
Some random documentation fixes
Gary Kramlich <grim@reaperworld.com>
parents:
40561
diff
changeset
|
168 | * purple_credential_provider_read_password_async() call. |
|
41881
7e1dd7e9efbb
Fix error parameter annotations
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41746
diff
changeset
|
169 | * @error: Return address for a #GError, or %NULL. |
|
40548
42556c49e1e2
Add PurpleCredentialProvider as the first piece to replace the existing keyring api.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
170 | * |
|
40573
ca0198d7ccdd
Some random documentation fixes
Gary Kramlich <grim@reaperworld.com>
parents:
40561
diff
changeset
|
171 | * Finishes a previous call to purple_credential_provider_read_password_async(). |
|
40548
42556c49e1e2
Add PurpleCredentialProvider as the first piece to replace the existing keyring api.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
172 | * |
|
42556c49e1e2
Add PurpleCredentialProvider as the first piece to replace the existing keyring api.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
173 | * Returns: (transfer full): The password or %NULL if successful, otherwise |
|
42556c49e1e2
Add PurpleCredentialProvider as the first piece to replace the existing keyring api.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
174 | * %NULL with @error set on failure. |
|
42556c49e1e2
Add PurpleCredentialProvider as the first piece to replace the existing keyring api.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
175 | * |
|
42556c49e1e2
Add PurpleCredentialProvider as the first piece to replace the existing keyring api.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
176 | * Since: 3.0.0 |
|
42556c49e1e2
Add PurpleCredentialProvider as the first piece to replace the existing keyring api.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
177 | */ |
|
40679
062a4574af3e
Remove the account parameter from purple_credential_provider_*_finish functions.
Gary Kramlich <grim@reaperworld.com>
parents:
40651
diff
changeset
|
178 | gchar *purple_credential_provider_read_password_finish(PurpleCredentialProvider *provider, GAsyncResult *result, GError **error); |
|
40548
42556c49e1e2
Add PurpleCredentialProvider as the first piece to replace the existing keyring api.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
179 | |
|
42556c49e1e2
Add PurpleCredentialProvider as the first piece to replace the existing keyring api.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
180 | /** |
|
42556c49e1e2
Add PurpleCredentialProvider as the first piece to replace the existing keyring api.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
181 | * purple_credential_provider_write_password_async: |
|
42556c49e1e2
Add PurpleCredentialProvider as the first piece to replace the existing keyring api.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
182 | * @provider: The #PurpleCredentialProvider instance. |
|
42556c49e1e2
Add PurpleCredentialProvider as the first piece to replace the existing keyring api.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
183 | * @account: The #PurpleAccount whose password to write. |
|
42556c49e1e2
Add PurpleCredentialProvider as the first piece to replace the existing keyring api.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
184 | * @password: The password to write. |
|
40583
28964322556c
Add the new PurpleCredentialManager API
Gary Kramlich <grim@reaperworld.com>
parents:
40573
diff
changeset
|
185 | * @cancellable: (nullable): optional GCancellable object, %NULL to ignore. |
|
40548
42556c49e1e2
Add PurpleCredentialProvider as the first piece to replace the existing keyring api.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
186 | * @callback: (scope async): a #GAsyncReadyCallback to call when the request is |
|
42556c49e1e2
Add PurpleCredentialProvider as the first piece to replace the existing keyring api.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
187 | * satisfied. |
|
42556c49e1e2
Add PurpleCredentialProvider as the first piece to replace the existing keyring api.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
188 | * @data: User data to pass to @callback. |
|
42556c49e1e2
Add PurpleCredentialProvider as the first piece to replace the existing keyring api.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
189 | * |
|
42556c49e1e2
Add PurpleCredentialProvider as the first piece to replace the existing keyring api.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
190 | * Writes @password for @account to @provider. |
|
42556c49e1e2
Add PurpleCredentialProvider as the first piece to replace the existing keyring api.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
191 | * |
|
42556c49e1e2
Add PurpleCredentialProvider as the first piece to replace the existing keyring api.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
192 | * Since: 3.0.0 |
|
42556c49e1e2
Add PurpleCredentialProvider as the first piece to replace the existing keyring api.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
193 | */ |
|
42556c49e1e2
Add PurpleCredentialProvider as the first piece to replace the existing keyring api.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
194 | void purple_credential_provider_write_password_async(PurpleCredentialProvider *provider, PurpleAccount *account, const gchar *password, GCancellable *cancellable, GAsyncReadyCallback callback, gpointer data); |
|
42556c49e1e2
Add PurpleCredentialProvider as the first piece to replace the existing keyring api.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
195 | |
|
42556c49e1e2
Add PurpleCredentialProvider as the first piece to replace the existing keyring api.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
196 | /** |
|
42556c49e1e2
Add PurpleCredentialProvider as the first piece to replace the existing keyring api.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
197 | * purple_credential_provider_write_password_finish: |
|
42556c49e1e2
Add PurpleCredentialProvider as the first piece to replace the existing keyring api.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
198 | * @provider: The #PurpleCredentialProvider instance. |
|
42556c49e1e2
Add PurpleCredentialProvider as the first piece to replace the existing keyring api.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
199 | * @result: The #GAsyncResult from the previous |
|
40573
ca0198d7ccdd
Some random documentation fixes
Gary Kramlich <grim@reaperworld.com>
parents:
40561
diff
changeset
|
200 | * purple_credential_provider_write_password_async() call. |
|
41881
7e1dd7e9efbb
Fix error parameter annotations
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41746
diff
changeset
|
201 | * @error: Return address for a #GError, or %NULL. |
|
40548
42556c49e1e2
Add PurpleCredentialProvider as the first piece to replace the existing keyring api.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
202 | * |
|
40573
ca0198d7ccdd
Some random documentation fixes
Gary Kramlich <grim@reaperworld.com>
parents:
40561
diff
changeset
|
203 | * Finishes a previous call to |
|
ca0198d7ccdd
Some random documentation fixes
Gary Kramlich <grim@reaperworld.com>
parents:
40561
diff
changeset
|
204 | * purple_credential_provider_write_password_async(). |
|
40548
42556c49e1e2
Add PurpleCredentialProvider as the first piece to replace the existing keyring api.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
205 | * |
|
42556c49e1e2
Add PurpleCredentialProvider as the first piece to replace the existing keyring api.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
206 | * Returns: %TRUE if the password was written successfully, otherwise %FALSE |
|
42556c49e1e2
Add PurpleCredentialProvider as the first piece to replace the existing keyring api.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
207 | * with @error set. |
|
42556c49e1e2
Add PurpleCredentialProvider as the first piece to replace the existing keyring api.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
208 | * |
|
42556c49e1e2
Add PurpleCredentialProvider as the first piece to replace the existing keyring api.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
209 | * Since: 3.0.0 |
|
42556c49e1e2
Add PurpleCredentialProvider as the first piece to replace the existing keyring api.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
210 | */ |
|
40679
062a4574af3e
Remove the account parameter from purple_credential_provider_*_finish functions.
Gary Kramlich <grim@reaperworld.com>
parents:
40651
diff
changeset
|
211 | gboolean purple_credential_provider_write_password_finish(PurpleCredentialProvider *provider, GAsyncResult *result, GError **error); |
|
40548
42556c49e1e2
Add PurpleCredentialProvider as the first piece to replace the existing keyring api.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
212 | |
|
42556c49e1e2
Add PurpleCredentialProvider as the first piece to replace the existing keyring api.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
213 | /** |
|
42556c49e1e2
Add PurpleCredentialProvider as the first piece to replace the existing keyring api.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
214 | * purple_credential_provider_clear_password_async: |
|
42556c49e1e2
Add PurpleCredentialProvider as the first piece to replace the existing keyring api.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
215 | * @provider: The #PurpleCredentialProvider instance. |
|
42556c49e1e2
Add PurpleCredentialProvider as the first piece to replace the existing keyring api.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
216 | * @account: The #PurpleAccount whose password to clear. |
|
42556c49e1e2
Add PurpleCredentialProvider as the first piece to replace the existing keyring api.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
217 | * @cancellable: (nullable): optional #GCancellable object, or %NULL to ignore. |
|
42556c49e1e2
Add PurpleCredentialProvider as the first piece to replace the existing keyring api.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
218 | * @callback: (scope async): a #GAsyncReadyCallback to call when the request is |
|
42556c49e1e2
Add PurpleCredentialProvider as the first piece to replace the existing keyring api.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
219 | * satisfied. |
|
42556c49e1e2
Add PurpleCredentialProvider as the first piece to replace the existing keyring api.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
220 | * @data: User data to pass to @callback. |
|
42556c49e1e2
Add PurpleCredentialProvider as the first piece to replace the existing keyring api.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
221 | * |
|
42556c49e1e2
Add PurpleCredentialProvider as the first piece to replace the existing keyring api.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
222 | * Clears the password for @account from @provider. |
|
42556c49e1e2
Add PurpleCredentialProvider as the first piece to replace the existing keyring api.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
223 | * |
|
42556c49e1e2
Add PurpleCredentialProvider as the first piece to replace the existing keyring api.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
224 | * Since: 3.0.0 |
|
42556c49e1e2
Add PurpleCredentialProvider as the first piece to replace the existing keyring api.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
225 | */ |
|
42556c49e1e2
Add PurpleCredentialProvider as the first piece to replace the existing keyring api.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
226 | void purple_credential_provider_clear_password_async(PurpleCredentialProvider *provider, PurpleAccount *account, GCancellable *cancellable, GAsyncReadyCallback callback, gpointer data); |
|
42556c49e1e2
Add PurpleCredentialProvider as the first piece to replace the existing keyring api.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
227 | |
|
42556c49e1e2
Add PurpleCredentialProvider as the first piece to replace the existing keyring api.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
228 | /** |
|
42556c49e1e2
Add PurpleCredentialProvider as the first piece to replace the existing keyring api.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
229 | * purple_credential_provider_clear_password_finish: |
|
42556c49e1e2
Add PurpleCredentialProvider as the first piece to replace the existing keyring api.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
230 | * @provider: The #PurpleCredentialProvider instance. |
|
42556c49e1e2
Add PurpleCredentialProvider as the first piece to replace the existing keyring api.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
231 | * @result: The #GAsyncResult from the previous |
|
40573
ca0198d7ccdd
Some random documentation fixes
Gary Kramlich <grim@reaperworld.com>
parents:
40561
diff
changeset
|
232 | * purple_credential_provider_clear_password_async() call. |
|
41881
7e1dd7e9efbb
Fix error parameter annotations
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41746
diff
changeset
|
233 | * @error: Return address for a #GError, or %NULL. |
|
40548
42556c49e1e2
Add PurpleCredentialProvider as the first piece to replace the existing keyring api.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
234 | * |
|
40573
ca0198d7ccdd
Some random documentation fixes
Gary Kramlich <grim@reaperworld.com>
parents:
40561
diff
changeset
|
235 | * Finishes a previous call to |
|
ca0198d7ccdd
Some random documentation fixes
Gary Kramlich <grim@reaperworld.com>
parents:
40561
diff
changeset
|
236 | * purple_credential_provider_clear_password_async(). |
|
40548
42556c49e1e2
Add PurpleCredentialProvider as the first piece to replace the existing keyring api.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
237 | * |
|
41031
2918459dbd63
Don't error out when trying to remove a password that isn't stored.
Gary Kramlich <grim@reaperworld.com>
parents:
41010
diff
changeset
|
238 | * Returns: %TRUE if the password didn't exist or was cleared successfully, |
|
2918459dbd63
Don't error out when trying to remove a password that isn't stored.
Gary Kramlich <grim@reaperworld.com>
parents:
41010
diff
changeset
|
239 | * otherwise %FALSE with @error set. |
|
40548
42556c49e1e2
Add PurpleCredentialProvider as the first piece to replace the existing keyring api.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
240 | * |
|
42556c49e1e2
Add PurpleCredentialProvider as the first piece to replace the existing keyring api.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
241 | * Since: 3.0.0 |
|
42556c49e1e2
Add PurpleCredentialProvider as the first piece to replace the existing keyring api.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
242 | */ |
|
40679
062a4574af3e
Remove the account parameter from purple_credential_provider_*_finish functions.
Gary Kramlich <grim@reaperworld.com>
parents:
40651
diff
changeset
|
243 | gboolean purple_credential_provider_clear_password_finish(PurpleCredentialProvider *provider, GAsyncResult *result, GError **error); |
|
40548
42556c49e1e2
Add PurpleCredentialProvider as the first piece to replace the existing keyring api.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
244 | |
|
41985
08b6b45431c9
Add a settings property to PurpleCredentialProvider that is a GSettings object
Gary Kramlich <grim@reaperworld.com>
parents:
41982
diff
changeset
|
245 | /** |
|
08b6b45431c9
Add a settings property to PurpleCredentialProvider that is a GSettings object
Gary Kramlich <grim@reaperworld.com>
parents:
41982
diff
changeset
|
246 | * purple_credential_provider_get_settings: |
|
08b6b45431c9
Add a settings property to PurpleCredentialProvider that is a GSettings object
Gary Kramlich <grim@reaperworld.com>
parents:
41982
diff
changeset
|
247 | * @provider: The instance. |
|
08b6b45431c9
Add a settings property to PurpleCredentialProvider that is a GSettings object
Gary Kramlich <grim@reaperworld.com>
parents:
41982
diff
changeset
|
248 | * |
|
08b6b45431c9
Add a settings property to PurpleCredentialProvider that is a GSettings object
Gary Kramlich <grim@reaperworld.com>
parents:
41982
diff
changeset
|
249 | * Gets the [class@Gio.Settings] that @provider provides. |
|
08b6b45431c9
Add a settings property to PurpleCredentialProvider that is a GSettings object
Gary Kramlich <grim@reaperworld.com>
parents:
41982
diff
changeset
|
250 | * |
|
08b6b45431c9
Add a settings property to PurpleCredentialProvider that is a GSettings object
Gary Kramlich <grim@reaperworld.com>
parents:
41982
diff
changeset
|
251 | * Returns: (transfer none): The settings for @provider or %NULL if @provider |
|
08b6b45431c9
Add a settings property to PurpleCredentialProvider that is a GSettings object
Gary Kramlich <grim@reaperworld.com>
parents:
41982
diff
changeset
|
252 | * doesn't have any settings. |
|
08b6b45431c9
Add a settings property to PurpleCredentialProvider that is a GSettings object
Gary Kramlich <grim@reaperworld.com>
parents:
41982
diff
changeset
|
253 | * |
|
08b6b45431c9
Add a settings property to PurpleCredentialProvider that is a GSettings object
Gary Kramlich <grim@reaperworld.com>
parents:
41982
diff
changeset
|
254 | * Since: 3.0.0 |
|
08b6b45431c9
Add a settings property to PurpleCredentialProvider that is a GSettings object
Gary Kramlich <grim@reaperworld.com>
parents:
41982
diff
changeset
|
255 | */ |
|
08b6b45431c9
Add a settings property to PurpleCredentialProvider that is a GSettings object
Gary Kramlich <grim@reaperworld.com>
parents:
41982
diff
changeset
|
256 | GSettings *purple_credential_provider_get_settings(PurpleCredentialProvider *provider); |
|
08b6b45431c9
Add a settings property to PurpleCredentialProvider that is a GSettings object
Gary Kramlich <grim@reaperworld.com>
parents:
41982
diff
changeset
|
257 | |
|
40548
42556c49e1e2
Add PurpleCredentialProvider as the first piece to replace the existing keyring api.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
258 | G_END_DECLS |
|
42556c49e1e2
Add PurpleCredentialProvider as the first piece to replace the existing keyring api.
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
259 | |
|
41746
e1d8d70679d5
Fix a bunch of header guard comments
Gary Kramlich <grim@reaperworld.com>
parents:
41686
diff
changeset
|
260 | #endif /* PURPLE_CREDENTIAL_PROVIDER_H */ |