summaryrefslogtreecommitdiff
path: root/src/gcrypt-module.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/gcrypt-module.h')
-rw-r--r--src/gcrypt-module.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/gcrypt-module.h b/src/gcrypt-module.h
index 39d39c86..e717b70c 100644
--- a/src/gcrypt-module.h
+++ b/src/gcrypt-module.h
@@ -32,6 +32,13 @@ extern "C" {
#endif
#endif
+/* The interfaces using the module system reserve a certain range of
+ IDs for application use. These IDs are not valid within Libgcrypt
+ but Libgcrypt makes sure never to allocate such a module ID. */
+#define GCRY_MODULE_ID_USER 1024
+#define GCRY_MODULE_ID_USER_LAST 4095
+
+
/* This type represents a `module'. */
typedef struct gcry_module *gcry_module_t;