diff options
author | Stef Walter <stefw@collabora.co.uk> | 2011-05-30 14:17:44 +0200 |
---|---|---|
committer | Stef Walter <stefw@collabora.co.uk> | 2011-05-30 14:18:59 +0200 |
commit | 6f1e963901ca7aff7af6bec376af00f892cbb9ca (patch) | |
tree | d39acfb715809adb3a53282ef3d24f47e0fc91f4 | |
parent | 82ca953733a651216125608d5ca7f9aa8005095e (diff) |
GNU style definitions in uri.h as well as normal.
-rw-r--r-- | p11-kit/uri.h | 26 |
1 files changed, 14 insertions, 12 deletions
diff --git a/p11-kit/uri.h b/p11-kit/uri.h index 2c8d2d8..ceb1f4b 100644 --- a/p11-kit/uri.h +++ b/p11-kit/uri.h @@ -50,18 +50,6 @@ extern "C" { #endif -/* - * If the caller is using the PKCS#11 GNU calling convention, then we cater - * to that here. - */ -#ifdef CRYPTOKI_GNU -typedef struct ck_info *CK_INFO_PTR; -typedef struct ck_token_info *CK_TOKEN_INFO_PTR; -typedef ck_attribute_type_t CK_ATTRIBUTE_TYPE; -typedef struct ck_attribute *CK_ATTRIBUTE_PTR; -typedef unsigned long int CK_ULONG; -#endif - #define P11_KIT_URI_SCHEME "pkcs11:" #define P11_KIT_URI_SCHEME_LEN 7 @@ -92,6 +80,20 @@ typedef enum { P11_KIT_URI_FOR_ANY = 0x0000FFFF, } P11KitUriType; +/* + * If the caller is using the PKCS#11 GNU calling convention, then we cater + * to that here. + */ +#ifdef CRYPTOKI_GNU +typedef struct ck_info *CK_INFO_PTR; +typedef struct ck_token_info *CK_TOKEN_INFO_PTR; +typedef ck_attribute_type_t CK_ATTRIBUTE_TYPE; +typedef struct ck_attribute *CK_ATTRIBUTE_PTR; +typedef unsigned long int CK_ULONG; +typedef P11KitUriType p11_kit_uri_type_t; +typedef P11KitUriResult p11_kit_uri_result_t; +#endif + typedef struct p11_kit_uri P11KitUri; CK_INFO_PTR p11_kit_uri_get_module_info (P11KitUri *uri); |