diff options
Diffstat (limited to 'p11-kit/p11-kit-uri.h')
-rw-r--r-- | p11-kit/p11-kit-uri.h | 23 |
1 files changed, 20 insertions, 3 deletions
diff --git a/p11-kit/p11-kit-uri.h b/p11-kit/p11-kit-uri.h index a3e52ed..f5bf3d5 100644 --- a/p11-kit/p11-kit-uri.h +++ b/p11-kit/p11-kit-uri.h @@ -32,10 +32,23 @@ * Author: Stef Walter <stefw@collabora.co.uk> */ +#ifndef P11_KIT_URI_H +#define P11_KIT_URI_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" -#ifndef __P11_KIT_URI_H__ -#define __P11_KIT_URI_H__ +#ifdef __cplusplus +extern "C" { +#endif #define P11_KIT_URI_SCHEME "pkcs11:" #define P11_KIT_URI_SCHEME_LEN 7 @@ -102,4 +115,8 @@ int p11_kit_uri_parse (const char *string, void p11_kit_uri_free (P11KitUri *uri); -#endif /* __P11_KIT_URI_H__ */ +#ifdef __cplusplus +} /* extern "C" */ +#endif + +#endif /* P11_KIT_URI_H */ |