Debian Codegraph @

pkcs11/secret-store/gkm-secret-compat.h

raw
1 /*
2 * gnome-keyring
3 *
4 * Copyright (C) 2009 Stefan Walter
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU Lesser General Public License as
8 * published by the Free Software Foundation; either version 2.1 of
9 * the License, or (at your option) any later version.
10 *
11 * This program is distributed in the hope that it will be useful, but
12 * WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Lesser General Public License for more details.
15 *
16 * You should have received a copy of the GNU Lesser General Public
17 * License along with this program; if not, see
18 * <http://www.gnu.org/licenses/>.
19 */
20
21 #ifndef __GKM_SECRET_COMPAT_H__
22 #define __GKM_SECRET_COMPAT_H__
23
24 #include <glib.h>
25
26 typedef enum {
27 GKM_SECRET_ACCESS_READ = 1 << 0,
28 GKM_SECRET_ACCESS_WRITE = 1 << 1,
29 GKM_SECRET_ACCESS_REMOVE = 1 << 2
30 } GkmSecretAccessType;
31
32 typedef struct _GkmSecretAccess {
33 char *display_name;
34 char *pathname;
35 GkmSecretAccessType types_allowed;
36 } GkmSecretAccess;
37
38 void gkm_secret_compat_access_free (gpointer ac);
39
40 void gkm_secret_compat_acl_free (gpointer acl);
41
42 guint gkm_secret_compat_parse_item_type (const gchar *value);
43
44 const gchar* gkm_secret_compat_format_item_type (guint value);
45
46 #endif /* __GKM_SECRET_COMPAT_H__ */