Debian Codegraph @

pkcs11/xdg-store/mock-xdg-module.h

raw
1 /* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */
2 /* test-xdg-module.h: A test PKCS#11 module implementation
3
4 Copyright (C) 2010 Stefan Walter
5
6 The Gnome Keyring Library is free software; you can redistribute it and/or
7 modify it under the terms of the GNU Library General Public License as
8 published by the Free Software Foundation; either version 2 of the
9 License, or (at your option) any later version.
10
11 The Gnome Keyring Library is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 Library General Public License for more details.
15
16 You should have received a copy of the GNU Library General Public
17 License along with the Gnome Library; see the file COPYING.LIB. If not,
18 <http://www.gnu.org/licenses/>.
19
20 Author: Stef Walter <[email protected]>
21 */
22
23 #ifndef MOCK_XDG_MODULE_H_
24 #define MOCK_XDG_MODULE_H_
25
26 #include <glib.h>
27
28 #include "gkm/gkm-test.h"
29 #include "gkm/gkm-types.h"
30
31 #include "pkcs11.h"
32
33 void mock_xdg_module_leave (void);
34
35 void mock_xdg_module_enter (void);
36
37 GkmModule* mock_xdg_module_initialize_and_enter (void);
38
39 void mock_xdg_module_leave_and_finalize (void);
40
41 GkmSession* mock_xdg_module_open_session (gboolean writable);
42
43 void mock_xdg_module_empty_file (const gchar *name);
44
45 void mock_xdg_module_touch_file (const gchar *name,
46 gint future);
47
48 void mock_xdg_module_remove_file (const gchar *name);
49
50 #endif /* MOCK_XDG_MODULE_H_ */