gcr: Complete documentation
[platform/upstream/gcr.git] / gcr / gcr-simple-certificate.h
1 /*
2  * gnome-keyring
3  *
4  * Copyright (C) 2008 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 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.
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 Public License for more details.
15  *
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
19  * 02111-1307, USA.
20  */
21
22 #if !defined (__GCR_H_INSIDE__) && !defined (GCR_COMPILATION)
23 #error "Only <gcr/gcr.h> can be included directly."
24 #endif
25
26 #ifndef __GCR_SIMPLE_CERTIFICATE_H__
27 #define __GCR_SIMPLE_CERTIFICATE_H__
28
29 #include "gcr.h"
30
31 #include <glib-object.h>
32
33 G_BEGIN_DECLS
34
35 #define GCR_TYPE_SIMPLE_CERTIFICATE               (gcr_simple_certificate_get_type ())
36 #define GCR_SIMPLE_CERTIFICATE(obj)               (G_TYPE_CHECK_INSTANCE_CAST ((obj), GCR_TYPE_SIMPLE_CERTIFICATE, GcrSimpleCertificate))
37 #define GCR_SIMPLE_CERTIFICATE_CLASS(klass)       (G_TYPE_CHECK_CLASS_CAST ((klass), GCR_TYPE_SIMPLE_CERTIFICATE, GcrSimpleCertificateClass))
38 #define GCR_IS_SIMPLE_CERTIFICATE(obj)            (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GCR_TYPE_SIMPLE_CERTIFICATE))
39 #define GCR_IS_SIMPLE_CERTIFICATE_CLASS(klass)    (G_TYPE_CHECK_CLASS_TYPE ((klass), GCR_TYPE_SIMPLE_CERTIFICATE))
40 #define GCR_SIMPLE_CERTIFICATE_GET_CLASS(obj)     (G_TYPE_INSTANCE_GET_CLASS ((obj), GCR_TYPE_SIMPLE_CERTIFICATE, GcrSimpleCertificateClass))
41
42 typedef struct _GcrSimpleCertificate GcrSimpleCertificate;
43 typedef struct _GcrSimpleCertificateClass GcrSimpleCertificateClass;
44 typedef struct _GcrSimpleCertificatePrivate GcrSimpleCertificatePrivate;
45
46 struct _GcrSimpleCertificate {
47         GObject parent;
48
49         /*< private >*/
50         GcrSimpleCertificatePrivate *pv;
51 };
52
53 struct _GcrSimpleCertificateClass {
54         GObjectClass parent_class;
55 };
56
57 GType               gcr_simple_certificate_get_type               (void);
58
59 GcrCertificate*     gcr_simple_certificate_new                    (gconstpointer data,
60                                                                    gsize n_data);
61
62 GcrCertificate*     gcr_simple_certificate_new_static             (gconstpointer data,
63                                                                    gsize n_data);
64
65 G_END_DECLS
66
67 #endif /* __GCR_SIMPLE_CERTIFICATE_H__ */