]> git.0d.be Git - empathy.git/blob - libempathy-gtk/gcr-simple-certificate.h
Merge branch 'sasl'
[empathy.git] / libempathy-gtk / gcr-simple-certificate.h
1 /* 
2  * gnome-keyring
3  * 
4  * Copyright (C) 2008 Stefan Walter
5  *
6  * This file is copied from the gnome-keyring gcr library, which can be
7  * found at git://git.gnome.org/gnome-keyring
8  * 
9  * This program is free software; you can redistribute it and/or modify 
10  * it under the terms of the GNU Lesser General Public License as
11  * published by the Free Software Foundation; either version 2.1 of
12  * the License, or (at your option) any later version.
13  *  
14  * This program is distributed in the hope that it will be useful, but
15  * WITHOUT ANY WARRANTY; without even the implied warranty of
16  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
17  * Lesser General Public License for more details.
18  *  
19  * You should have received a copy of the GNU Lesser General Public
20  * License along with this program; if not, write to the Free Software
21  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
22  * 02111-1307, USA.  
23  */
24
25 #ifndef __GCR_SIMPLE_CERTIFICATE_H__
26 #define __GCR_SIMPLE_CERTIFICATE_H__
27
28 #include <gcr/gcr.h>
29
30 #include <glib-object.h>
31
32 G_BEGIN_DECLS
33
34 #define GCR_TYPE_SIMPLE_CERTIFICATE               (gcr_simple_certificate_get_type ())
35 #define GCR_SIMPLE_CERTIFICATE(obj)               (G_TYPE_CHECK_INSTANCE_CAST ((obj), GCR_TYPE_CERTIFICATE, GcrSimpleCertificate))
36 #define GCR_SIMPLE_CERTIFICATE_CLASS(klass)       (G_TYPE_CHECK_CLASS_CAST ((klass), GCR_TYPE_CERTIFICATE, GcrSimpleCertificateClass))
37 #define GCR_IS_SIMPLE_CERTIFICATE(obj)            (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GCR_TYPE_CERTIFICATE))
38 #define GCR_IS_SIMPLE_CERTIFICATE_CLASS(klass)    (G_TYPE_CHECK_CLASS_TYPE ((klass), GCR_TYPE_CERTIFICATE))
39 #define GCR_SIMPLE_CERTIFICATE_GET_CLASS(obj)     (G_TYPE_INSTANCE_GET_CLASS ((obj), GCR_TYPE_CERTIFICATE, GcrSimpleCertificateClass))
40
41 typedef struct _GcrSimpleCertificate GcrSimpleCertificate;
42 typedef struct _GcrSimpleCertificateClass GcrSimpleCertificateClass;
43 typedef struct _GcrSimpleCertificatePrivate GcrSimpleCertificatePrivate;
44
45 struct _GcrSimpleCertificate {
46         GObject parent;
47         GcrSimpleCertificatePrivate *pv;
48 };
49
50 struct _GcrSimpleCertificateClass {
51         GObjectClass parent_class;
52 };
53
54 GType               gcr_simple_certificate_get_type               (void);
55
56 GcrCertificate*     gcr_simple_certificate_new                    (const guchar *data,
57                                                                    gsize n_data);
58
59 G_END_DECLS
60
61 #endif /* __GCR_SIMPLE_CERTIFICATE_H__ */