aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--gpgme/Makefile.am3
-rw-r--r--gpgme/gpgme-memory.h36
-rw-r--r--gpgme/gpgme-types.h38
-rw-r--r--gpgme/gpgme.h9
4 files changed, 85 insertions, 1 deletions
diff --git a/gpgme/Makefile.am b/gpgme/Makefile.am
index 32f2191f..ba044b65 100644
--- a/gpgme/Makefile.am
+++ b/gpgme/Makefile.am
@@ -13,7 +13,10 @@ libgpgme_la_INCLUDES = -I$(top_srcdir)/lib
libgpgme_la_SOURCES = \
gpgme.h \
+ gpgme-types.h gpgme-memory.h \
gpgme.c
+
+
diff --git a/gpgme/gpgme-memory.h b/gpgme/gpgme-memory.h
new file mode 100644
index 00000000..76ff3880
--- /dev/null
+++ b/gpgme/gpgme-memory.h
@@ -0,0 +1,36 @@
+/* gpgme-memory.h
+ * Copyright (C) 2000 Werner Koch (dd9jn)
+ *
+ * This file is part of GPGME.
+ *
+ * GPGME is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * GPGME is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
+ */
+
+#ifndef GPGME_MEMORY_H
+#define GPGME_MEMORY_H
+
+void *xmalloc ( size_t n );
+void *xtrymalloc (size_t n );
+void *xcalloc ( size_t n, size_t m );
+void *xtrycalloc (size_t n, size_t m );
+void *xrealloc (void *p, size_t n);
+void *xtryrealloc (void *p, size_t n);
+void xfree ( void *a );
+
+#endif /* GPGME_MEMORY_H */
+
+
+
+
diff --git a/gpgme/gpgme-types.h b/gpgme/gpgme-types.h
new file mode 100644
index 00000000..e20e758c
--- /dev/null
+++ b/gpgme/gpgme-types.h
@@ -0,0 +1,38 @@
+/* gpgme-types.h - GnuPG Made Easy
+ * Copyright (C) 2000 Werner Koch (dd9jn)
+ *
+ * This file is part of GPGME.
+ *
+ * GPGME is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * GPGME is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
+ */
+
+#ifndef GPGME_TYPES_H
+#define GPGME_TYPES_H
+
+#include "gpgme.h"
+
+struct gpgme_context_s {
+ int initialized;
+};
+
+
+
+
+#endif /* GPGME_TYPES_H */
+
+
+
+
+
diff --git a/gpgme/gpgme.h b/gpgme/gpgme.h
index 4969c8e6..eaabd4e3 100644
--- a/gpgme/gpgme.h
+++ b/gpgme/gpgme.h
@@ -21,9 +21,16 @@
#ifndef GPGME_H
#define GPGME_H
#ifdef __cplusplus
-extern "C" {
+extern "C" {
+#if 0 /* just to make Emacs auto-indent happy */
+}
+#endif
#endif
+struct gpgme_context_s;
+typedef struct gpgme_context_s *GPGME;
+
+
#ifdef __cplusplus