| 1 |
/* |
| 2 |
* gnome-keyring |
| 3 |
* |
| 4 |
* Copyright (C) 2010 Stefan Walter |
| 5 |
* Copyright (C) 2010 Collabora Ltd |
| 6 |
* |
| 7 |
* This program is free software; you can redistribute it and/or modify |
| 8 |
* it under the terms of the GNU Lesser General Public License as |
| 9 |
* published by the Free Software Foundation; either version 2.1 of |
| 10 |
* the License, or (at your option) any later version. |
| 11 |
* |
| 12 |
* This program is distributed in the hope that it will be useful, but |
| 13 |
* WITHOUT ANY WARRANTY; without even the implied warranty of |
| 14 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 15 |
* Lesser General Public License for more details. |
| 16 |
* |
| 17 |
* You should have received a copy of the GNU Lesser General Public |
| 18 |
* License along with this program; if not, see |
| 19 |
* <http://www.gnu.org/licenses/>. |
| 20 |
*/ |
| 21 |
|
| 22 |
#ifndef __GKM_ASSERTION_H__ |
| 23 |
#define __GKM_ASSERTION_H__ |
| 24 |
|
| 25 |
#include <glib-object.h> |
| 26 |
|
| 27 |
#include "gkm-object.h" |
| 28 |
#include "gkm-types.h" |
| 29 |
|
| 30 |
#define GKM_FACTORY_ASSERTION (gkm_assertion_get_factory ()) |
| 31 |
#define GKM_TYPE_ASSERTION (gkm_assertion_get_type ()) |
| 32 |
#define GKM_ASSERTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GKM_TYPE_ASSERTION, GkmAssertion)) |
| 33 |
#define GKM_ASSERTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GKM_TYPE_ASSERTION, GkmAssertionClass)) |
| 34 |
#define GKM_IS_ASSERTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GKM_TYPE_ASSERTION)) |
| 35 |
#define GKM_IS_ASSERTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GKM_TYPE_ASSERTION)) |
| 36 |
#define GKM_ASSERTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GKM_TYPE_ASSERTION, GkmAssertionClass)) |
| 37 |
|
| 38 |
typedef struct _GkmAssertionClass GkmAssertionClass; |
| 39 |
typedef struct _GkmAssertionPrivate GkmAssertionPrivate; |
| 40 |
|
| 41 |
struct _GkmAssertion { |
| 42 |
GkmObject parent; |
| 43 |
GkmAssertionPrivate *pv; |
| 44 |
}; |
| 45 |
|
| 46 |
struct _GkmAssertionClass { |
| 47 |
GkmObjectClass parent_class; |
| 48 |
}; |
| 49 |
|
| 50 |
GType gkm_assertion_get_type (void); |
| 51 |
|
| 52 |
GkmAssertion* gkm_assertion_new (GkmTrust *trust, |
| 53 |
gulong trust_type, |
| 54 |
const gchar *purpose, |
| 55 |
const gchar *remote); |
| 56 |
|
| 57 |
const gchar* gkm_assertion_get_purpose (GkmAssertion *self); |
| 58 |
|
| 59 |
const gchar* gkm_assertion_get_peer (GkmAssertion *self); |
| 60 |
|
| 61 |
gulong gkm_assertion_get_trust_type (GkmAssertion *self); |
| 62 |
|
| 63 |
GkmTrust* gkm_assertion_get_trust_object (GkmAssertion *self); |
| 64 |
|
| 65 |
#endif /* __GKM_ASSERTION_H__ */ |