From 492c2ff7c191e5df75140a47e4e43fa25fd16023 Mon Sep 17 00:00:00 2001 From: Stef Walter Date: Sat, 22 Jan 2011 16:34:29 -0600 Subject: Rework public library API so that we can initialize arbitrary modules. --- module/p11-unity.h | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) (limited to 'module/p11-unity.h') diff --git a/module/p11-unity.h b/module/p11-unity.h index 52855f3..6ba0c10 100644 --- a/module/p11-unity.h +++ b/module/p11-unity.h @@ -35,22 +35,23 @@ #ifndef __P11_UNITY_H__ #define __P11_UNITY_H__ -CK_RV p11_unity_initialize (void); +CK_RV p11_unity_initialize_registered (void); -CK_RV p11_unity_finalize (void); +CK_RV p11_unity_finalize_registered (void); -char** p11_unity_module_names (void); +char** p11_unity_registered_names (void); -void p11_unity_free_names (char **module_names); +CK_FUNCTION_LIST_PTR p11_unity_registered_module (const char *module_name); -CK_FUNCTION_LIST_PTR p11_unity_module_functions (const char *module_name); +void p11_unity_free_names (char **module_names); -int p11_unity_module_add (const char *module_name, - CK_FUNCTION_LIST_PTR module); +char* p11_unity_registered_option (const char *module_name, + const char *field); -int p11_unity_module_remove (const char *module_name); +CK_RV p11_unity_initialize_module (CK_FUNCTION_LIST_PTR module, + CK_C_INITIALIZE_ARGS_PTR init_args); -char* p11_unity_config_get_option (const char *module_name, - const char *field); +CK_RV p11_unity_finalize_module (CK_FUNCTION_LIST_PTR module, + CK_VOID_PTR reserved); #endif /* __P11_UNITY_H__ */ -- cgit v1.2.3