4 * Copyright (C) 2008 Stefan Walter
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU Lesser General Public License as
8 * published by the Free Software Foundation; either version 2.1 of
9 * the License, or (at your option) any later version.
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 Public License for more details.
16 * You should have received a copy of the GNU Lesser General Public
17 * License along with this program; if not, write to the Free Software
18 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
22 #ifndef __GCR_SIMPLE_CERTIFICATE_H__
23 #define __GCR_SIMPLE_CERTIFICATE_H__
27 #include <glib-object.h>
31 #define GCR_TYPE_SIMPLE_CERTIFICATE (gcr_simple_certificate_get_type ())
32 #define GCR_SIMPLE_CERTIFICATE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GCR_TYPE_CERTIFICATE, GcrSimpleCertificate))
33 #define GCR_SIMPLE_CERTIFICATE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GCR_TYPE_CERTIFICATE, GcrSimpleCertificateClass))
34 #define GCR_IS_SIMPLE_CERTIFICATE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GCR_TYPE_CERTIFICATE))
35 #define GCR_IS_SIMPLE_CERTIFICATE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GCR_TYPE_CERTIFICATE))
36 #define GCR_SIMPLE_CERTIFICATE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GCR_TYPE_CERTIFICATE, GcrSimpleCertificateClass))
38 typedef struct _GcrSimpleCertificate GcrSimpleCertificate;
39 typedef struct _GcrSimpleCertificateClass GcrSimpleCertificateClass;
40 typedef struct _GcrSimpleCertificatePrivate GcrSimpleCertificatePrivate;
42 struct _GcrSimpleCertificate {
44 GcrSimpleCertificatePrivate *pv;
47 struct _GcrSimpleCertificateClass {
48 GObjectClass parent_class;
51 GType gcr_simple_certificate_get_type (void);
53 GcrCertificate* gcr_simple_certificate_new (gconstpointer data,
56 GcrCertificate* gcr_simple_certificate_new_static (gconstpointer data,
61 #endif /* __GCR_SIMPLE_CERTIFICATE_H__ */