summaryrefslogtreecommitdiff
path: root/module/p11-unity.h
diff options
context:
space:
mode:
authorStef Walter <stefw@collabora.co.uk>2011-01-22 16:34:29 -0600
committerStef Walter <stefw@collabora.co.uk>2011-01-22 16:34:29 -0600
commit492c2ff7c191e5df75140a47e4e43fa25fd16023 (patch)
tree42666bd02b932d90188725b3a8d856ccc61112e2 /module/p11-unity.h
parentc2a5aaf7baf4bcc006674a1938205f93028b8ab0 (diff)
Rework public library API so that we can initialize arbitrary
modules.
Diffstat (limited to 'module/p11-unity.h')
-rw-r--r--module/p11-unity.h21
1 files changed, 11 insertions, 10 deletions
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__ */