| 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 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 License for more details. |
| 15 |
* |
| 16 |
* You should have received a copy of the GNU Lesser General |
| 17 |
* License along with this program; if not, see |
| 18 |
* <http://www.gnu.org/licenses/>. |
| 19 |
*/ |
| 20 |
|
| 21 |
#ifndef __MOCK_LOCKED_OBJECT_H__ |
| 22 |
#define __MOCK_LOCKED_OBJECT_H__ |
| 23 |
|
| 24 |
#include <glib-object.h> |
| 25 |
|
| 26 |
#include "gkm/gkm-object.h" |
| 27 |
#include "gkm/gkm-types.h" |
| 28 |
|
| 29 |
#define MOCK_TYPE_LOCKED_OBJECT (mock_locked_object_get_type ()) |
| 30 |
#define MOCK_LOCKED_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), MOCK_TYPE_LOCKED_OBJECT, MockLockedObject)) |
| 31 |
#define MOCK_LOCKED_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), MOCK_TYPE_LOCKED_OBJECT, MockLockedObjectClass)) |
| 32 |
#define MOCK_IS_LOCKED_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), MOCK_TYPE_LOCKED_OBJECT)) |
| 33 |
#define MOCK_IS_LOCKED_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), MOCK_TYPE_LOCKED_OBJECT)) |
| 34 |
#define MOCK_LOCKED_OBJECT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), MOCK_TYPE_LOCKED_OBJECT, MockLockedObjectClass)) |
| 35 |
|
| 36 |
typedef struct _MockLockedObject MockLockedObject; |
| 37 |
typedef struct _MockLockedObjectClass MockLockedObjectClass; |
| 38 |
|
| 39 |
struct _MockLockedObject { |
| 40 |
GkmObject parent; |
| 41 |
}; |
| 42 |
|
| 43 |
struct _MockLockedObjectClass { |
| 44 |
GkmObjectClass parent_class; |
| 45 |
}; |
| 46 |
|
| 47 |
GType mock_locked_object_get_type (void); |
| 48 |
|
| 49 |
GkmObject* mock_locked_object_new (GkmModule *module, GkmManager *manager); |
| 50 |
|
| 51 |
#endif /* __MOCK_LOCKED_OBJECT_H__ */ |