summaryrefslogtreecommitdiff
path: root/src/persistence_client_library_custom_loader.c
diff options
context:
space:
mode:
authorIngo Huerner <ingo.huerner@xse.de>2014-02-14 11:45:27 +0100
committerIngo Huerner <ingo.huerner@xse.de>2014-02-14 11:45:27 +0100
commit1e26a9ac5535b2cfac6cb74d20ef09d46e2846f3 (patch)
tree236d6e1f13fab23b8c25a1542176b4ac7583b150 /src/persistence_client_library_custom_loader.c
parente0bb5aa03610f6002a7f093753d8aad3ad4c257c (diff)
downloadpersistence-client-library-1e26a9ac5535b2cfac6cb74d20ef09d46e2846f3.tar.gz
Updated plugin interface
Diffstat (limited to 'src/persistence_client_library_custom_loader.c')
-rw-r--r--src/persistence_client_library_custom_loader.c21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/persistence_client_library_custom_loader.c b/src/persistence_client_library_custom_loader.c
index 14c48ca..4f6e5fe 100644
--- a/src/persistence_client_library_custom_loader.c
+++ b/src/persistence_client_library_custom_loader.c
@@ -355,6 +355,27 @@ int load_custom_library(PersistenceCustomLibs_e customLib, Pers_custom_functs_s
{
DLT_LOG(gDLTContext, DLT_LOG_ERROR, DLT_STRING("load_custom_library - error:"), DLT_STRING(error));
}
+
+ // initialize plugin (non blocking)
+ *(void **) (&customFuncts->custom_plugin_init_async) = dlsym(handle, "plugin_init_async");
+ if ((error = dlerror()) != NULL)
+ {
+ DLT_LOG(gDLTContext, DLT_LOG_ERROR, DLT_STRING("load_custom_library - error:"), DLT_STRING(error));
+ }
+
+ // clear all data
+ *(void **) (&customFuncts->custom_plugin_clear_all_data) = dlsym(handle, "plugin_clear_all_data");
+ if ((error = dlerror()) != NULL)
+ {
+ DLT_LOG(gDLTContext, DLT_LOG_ERROR, DLT_STRING("load_custom_library - error:"), DLT_STRING(error));
+ }
+
+ // sync data
+ *(void **) (&customFuncts->custom_plugin_sync) = dlsym(handle, "plugin_sync");
+ if ((error = dlerror()) != NULL)
+ {
+ DLT_LOG(gDLTContext, DLT_LOG_ERROR, DLT_STRING("load_custom_library - error:"), DLT_STRING(error));
+ }
}
else
{