I#27 - [IMAPx] Ignore DavMail's CR/LF in BODYSTRUCTURE response
[evolution-data-server.git] / src / libedataserver / e-secret-store.h
blobbbc3f1767d5dd69ff4d3626efb2f13c11852e484
1 /*
2 * Copyright (C) 2015 Red Hat, Inc. (www.redhat.com)
4 * This library is free software: you can redistribute it and/or modify it
5 * under the terms of the GNU Lesser General Public License as published by
6 * the Free Software Foundation.
8 * This library is distributed in the hope that it will be useful, but
9 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
10 * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License
11 * for more details.
13 * You should have received a copy of the GNU Lesser General Public License
14 * along with this library. If not, see <http://www.gnu.org/licenses/>.
18 #if !defined (__LIBEDATASERVER_H_INSIDE__) && !defined (LIBEDATASERVER_COMPILATION)
19 #error "Only <libedataserver/libedataserver.h> should be included directly."
20 #endif
22 #ifndef E_SECRET_STORE_H
23 #define E_SECRET_STORE_H
25 #include <glib.h>
26 #include <gio/gio.h>
28 G_BEGIN_DECLS
30 gboolean e_secret_store_store_sync (const gchar *uid,
31 const gchar *secret,
32 const gchar *label,
33 gboolean permanently,
34 GCancellable *cancellable,
35 GError **error);
37 gboolean e_secret_store_lookup_sync (const gchar *uid,
38 gchar **out_secret,
39 GCancellable *cancellable,
40 GError **error);
42 gboolean e_secret_store_delete_sync (const gchar *uid,
43 GCancellable *cancellable,
44 GError **error);
46 G_END_DECLS
48 #endif /* E_SECRET_STORE_H */