Branch data Line data Source code
1 : : /* libsecret - GLib wrapper for Secret Service 2 : : * 3 : : * Copyright 2019 Red Hat, Inc. 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: Daiki Ueno 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_FILE_COLLECTION_H__ 20 : : #define __SECRET_FILE_COLLECTION_H__ 21 : : 22 : : #include "secret-file-item.h" 23 : : #include "secret-value.h" 24 : : 25 : : G_BEGIN_DECLS 26 : : 27 : : #define SECRET_TYPE_FILE_COLLECTION (secret_file_collection_get_type ()) 28 : 90 : G_DECLARE_FINAL_TYPE (SecretFileCollection, secret_file_collection, SECRET, FILE_COLLECTION, GObject) 29 : : 30 : : gboolean secret_file_collection_replace (SecretFileCollection *self, 31 : : GHashTable *attributes, 32 : : const gchar *label, 33 : : SecretValue *value, 34 : : GError **error); 35 : : GList *secret_file_collection_search (SecretFileCollection *self, 36 : : GHashTable *attributes); 37 : : gboolean secret_file_collection_clear (SecretFileCollection *self, 38 : : GHashTable *attributes, 39 : : GError **error); 40 : : void secret_file_collection_write (SecretFileCollection *self, 41 : : GCancellable *cancellable, 42 : : GAsyncReadyCallback callback, 43 : : gpointer user_data); 44 : : gboolean secret_file_collection_write_finish 45 : : (SecretFileCollection *self, 46 : : GAsyncResult *result, 47 : : GError **error); 48 : : 49 : : SecretFileItem *_secret_file_item_decrypt 50 : : (GVariant *encrypted, 51 : : SecretFileCollection *collection, 52 : : GError **error); 53 : : 54 : : G_END_DECLS 55 : : 56 : : #endif /* __SECRET_FILE_COLLECTION_H__ */