summaryrefslogtreecommitdiff
path: root/p11-kit/p11-kit.h
diff options
context:
space:
mode:
authorStef Walter <stefw@collabora.co.uk>2011-03-31 18:37:31 +0200
committerStef Walter <stefw@collabora.co.uk>2011-03-31 18:37:31 +0200
commit579d40eff31c7a17cc4e4f07d26c6189619fee31 (patch)
treefcb97fc78bfaefdd488ca170ec2725a4b66a2811 /p11-kit/p11-kit.h
parentcf988aa7858d249887ea0818301c7211bb3cab38 (diff)
downloadp11-kit-579d40eff31c7a17cc4e4f07d26c6189619fee31.tar.gz
Add C++ header guards, and require API instability acknowledgement.
Diffstat (limited to 'p11-kit/p11-kit.h')
-rw-r--r--p11-kit/p11-kit.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/p11-kit/p11-kit.h b/p11-kit/p11-kit.h
index b035f56..b3de330 100644
--- a/p11-kit/p11-kit.h
+++ b/p11-kit/p11-kit.h
@@ -35,8 +35,21 @@
#ifndef __P11_KIT_H__
#define __P11_KIT_H__
+/*
+ * To use this API, you need to be prepared for changes to the API,
+ * and add the C flag: -DP11_KIT_API_SUBJECT_TO_CHANGE
+ */
+
+#ifndef P11_KIT_API_SUBJECT_TO_CHANGE
+#error "This API has not yet reached stability."
+#endif
+
#include "pkcs11.h"
+#ifdef __cplusplus
+extern "C" {
+#endif
+
CK_RV p11_kit_initialize_registered (void);
CK_RV p11_kit_finalize_registered (void);
@@ -56,4 +69,8 @@ CK_RV p11_kit_finalize_module (CK_FUNCTION_LIST_PTR
const char* p11_kit_strerror (CK_RV rv);
+#ifdef __cplusplus
+} /* extern "C" */
+#endif
+
#endif /* __P11_KIT_H__ */