| 1 |
/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */ |
| 2 |
/* mock-module.h: A test PKCS#11 module implementation |
| 3 |
|
| 4 |
Copyright (C) 2009 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_MODULE_H_ |
| 24 |
#define MOCK_MODULE_H_ |
| 25 |
|
| 26 |
#include <glib.h> |
| 27 |
|
| 28 |
#include "gkm/gkm-types.h" |
| 29 |
|
| 30 |
#include "pkcs11.h" |
| 31 |
|
| 32 |
void mock_module_leave (void); |
| 33 |
|
| 34 |
void mock_module_enter (void); |
| 35 |
|
| 36 |
GkmModule* mock_module_initialize_and_enter (void); |
| 37 |
|
| 38 |
void mock_module_leave_and_finalize (void); |
| 39 |
|
| 40 |
GkmSession* mock_module_open_session (gboolean writable); |
| 41 |
|
| 42 |
GkmObject* mock_module_object_new (GkmSession *session); |
| 43 |
|
| 44 |
#endif /* MOCK_MODULE_H_ */ |