| 1 | /* libsecret - GLib wrapper for Secret Service |
| 2 | * |
| 3 | * Copyright 2012 Stef Walter |
| 4 | * |
| 5 | * This program is free software: you can redistribute it and/or modify |
| 6 | * it under the terms of the GNU Lesser General Public License as published |
| 7 | * by the Free Software Foundation; either version 2.1 of the licence or (at |
| 8 | * your option) any later version. |
| 9 | * |
| 10 | * See the included COPYING file for more information. |
| 11 | * |
| 12 | * Author: Stef Walter <stefw@gnome.org> |
| 13 | */ |
| 14 | |
| 15 | #if !defined (__SECRET_INSIDE_HEADER__) && !defined (SECRET_COMPILATION) |
| 16 | #error "Only <libsecret/secret.h> can be included directly." |
| 17 | #endif |
| 18 | |
| 19 | #ifndef __SECRET_SCHEMAS_H__ |
| 20 | #define __SECRET_SCHEMAS_H__ |
| 21 | |
| 22 | #include <glib.h> |
| 23 | |
| 24 | #include "secret-schema.h" |
| 25 | |
| 26 | G_BEGIN_DECLS |
| 27 | |
| 28 | /* |
| 29 | * A note or password stored manually by the user. |
| 30 | */ |
| 31 | extern const SecretSchema * SECRET_SCHEMA_NOTE; |
| 32 | |
| 33 | /* |
| 34 | * This schema is here for compatibility with libgnome-keyring's network |
| 35 | * password functions. |
| 36 | */ |
| 37 | |
| 38 | extern const SecretSchema * SECRET_SCHEMA_COMPAT_NETWORK; |
| 39 | |
| 40 | /** |
| 41 | * SecretSchemaType: |
| 42 | * @SECRET_SCHEMA_TYPE_NOTE: Personal passwords; see %SECRET_SCHEMA_NOTE |
| 43 | * @SECRET_SCHEMA_TYPE_COMPAT_NETWORK: Network passwords from older |
| 44 | * libgnome-keyring storage; see %SECRET_SCHEMA_COMPAT_NETWORK |
| 45 | * |
| 46 | * Different types of schemas for storing secrets, intended for use with |
| 47 | * secret_get_schema(). |
| 48 | * |
| 49 | * Since: 0.18.6 |
| 50 | */ |
| 51 | typedef enum |
| 52 | { |
| 53 | SECRET_SCHEMA_TYPE_NOTE, |
| 54 | SECRET_SCHEMA_TYPE_COMPAT_NETWORK, |
| 55 | } SecretSchemaType; |
| 56 | |
| 57 | const SecretSchema *secret_get_schema (SecretSchemaType type); |
| 58 | |
| 59 | G_END_DECLS |
| 60 | |
| 61 | #endif /* __SECRET_SCHEMAS_H___ */ |
| 62 | |