aboutsummaryrefslogtreecommitdiffstats
path: root/src/assuan.h.in
diff options
context:
space:
mode:
Diffstat (limited to 'src/assuan.h.in')
-rw-r--r--src/assuan.h.in14
1 files changed, 13 insertions, 1 deletions
diff --git a/src/assuan.h.in b/src/assuan.h.in
index 69a6a9c..089415c 100644
--- a/src/assuan.h.in
+++ b/src/assuan.h.in
@@ -1,6 +1,6 @@
/* assuan.h - Definitions for the Assuan IPC library -*- c -*-
Copyright (C) 2001, 2002, 2003, 2005, 2007, 2008, 2009, 2010,
- 2011 Free Software Foundation, Inc.
+ 2011, 2013 Free Software Foundation, Inc.
This file is part of Assuan.
@@ -51,6 +51,15 @@ extern "C"
#endif
#endif
+/* The version of this header should match the one of the library. Do
+ not use this symbol in your application; use assuan_check_version
+ instead. */
+#define ASSUAN_VERSION @version@
+
+/* The version number of this header. It may be used to handle minor
+ API incompatibilities. */
+#define ASSUAN_VERSION_NUMBER @version-number@
+
/* Check for compiler features. */
#if __GNUC__
@@ -102,6 +111,9 @@ typedef struct assuan_malloc_hooks *assuan_malloc_hooks_t;
typedef int (*assuan_log_cb_t) (assuan_context_t ctx, void *hook,
unsigned int cat, const char *msg);
+/* Return or check the version number. */
+const char *assuan_check_version (const char *req_version);
+
/* Set the default gpg error source. */
void assuan_set_gpg_err_source (gpg_err_source_t errsource);