minimal build
[platform/upstream/gcr.git] / gcr / gcr-simple-certificate.h
index 16a99ec..a9491f9 100644 (file)
  * 02111-1307, USA.
  */
 
-#if !defined (__GCR_H_INSIDE__) && !defined (GCR_COMPILATION)
-#error "Only <gcr/gcr.h> can be included directly."
+#if !defined (__GCR_INSIDE_HEADER__) && !defined (GCR_COMPILATION)
+#error "Only <gcr/gcr.h> or <gcr/gcr-base.h> can be included directly."
 #endif
 
 #ifndef __GCR_SIMPLE_CERTIFICATE_H__
 #define __GCR_SIMPLE_CERTIFICATE_H__
 
-#include "gcr.h"
-
 #include <glib-object.h>
 
+#include "gcr-certificate.h"
+
 G_BEGIN_DECLS
 
 #define GCR_TYPE_SIMPLE_CERTIFICATE               (gcr_simple_certificate_get_type ())
@@ -45,6 +45,8 @@ typedef struct _GcrSimpleCertificatePrivate GcrSimpleCertificatePrivate;
 
 struct _GcrSimpleCertificate {
        GObject parent;
+
+       /*< private >*/
        GcrSimpleCertificatePrivate *pv;
 };
 
@@ -54,10 +56,10 @@ struct _GcrSimpleCertificateClass {
 
 GType               gcr_simple_certificate_get_type               (void);
 
-GcrCertificate*     gcr_simple_certificate_new                    (gconstpointer data,
+GcrCertificate *    gcr_simple_certificate_new                    (const guchar *data,
                                                                    gsize n_data);
 
-GcrCertificate*     gcr_simple_certificate_new_static             (gconstpointer data,
+GcrCertificate *    gcr_simple_certificate_new_static             (const guchar *data,
                                                                    gsize n_data);
 
 G_END_DECLS