From 794761a71e5eaa63959b1768f3271df9f0b8fdb3 Mon Sep 17 00:00:00 2001 From: Jaemin Ryu Date: Mon, 27 Jun 2016 14:36:45 +0900 Subject: [PATCH] Export device-policy-manager handle APIs Change-Id: I339d8e53c19e61343518e10adf6a955da910c0e4 Signed-off-by: Jaemin Ryu --- libs/dpm/client-handle.cpp | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/libs/dpm/client-handle.cpp b/libs/dpm/client-handle.cpp index 3e9cec5..e375e74 100644 --- a/libs/dpm/client-handle.cpp +++ b/libs/dpm/client-handle.cpp @@ -101,7 +101,7 @@ int dpm_context_remove_signal_cb(dpm_context_h handle, int callback_id) return context.unsubscribeSignal(callback_id); } -device_policy_manager_h dpm_manager_create(void) +EXPORT_API device_policy_manager_h dpm_manager_create(void) { DevicePolicyContext* client = new(std::nothrow) DevicePolicyContext(); @@ -115,7 +115,7 @@ device_policy_manager_h dpm_manager_create(void) return reinterpret_cast(client); } -int dpm_manager_destroy(device_policy_manager_h handle) +EXPORT_API int dpm_manager_destroy(device_policy_manager_h handle) { assert(handle); @@ -124,11 +124,11 @@ int dpm_manager_destroy(device_policy_manager_h handle) return 0; } -int dpm_add_policy_changed_cb(device_policy_manager_h handle, - const char* name, - dpm_policy_changed_cb callback, - void* user_data, - int* id) +EXPORT_API int dpm_add_policy_changed_cb(device_policy_manager_h handle, + const char* name, + dpm_policy_changed_cb callback, + void* user_data, + int* id) { assert(handle); @@ -142,7 +142,7 @@ int dpm_add_policy_changed_cb(device_policy_manager_h handle, return 0; } -int dpm_remove_policy_changed_cb(device_policy_manager_h handle, int id) +EXPORT_API int dpm_remove_policy_changed_cb(device_policy_manager_h handle, int id) { assert(handle); @@ -152,8 +152,8 @@ int dpm_remove_policy_changed_cb(device_policy_manager_h handle, int id) return 0; } -int dpm_add_signal_cb(device_policy_manager_h handle, const char* signal, - dpm_signal_cb callback, void* user_data, int* id) +EXPORT_API int dpm_add_signal_cb(device_policy_manager_h handle, const char* signal, + dpm_signal_cb callback, void* user_data, int* id) { RET_ON_FAILURE(handle, DPM_ERROR_INVALID_PARAMETER); RET_ON_FAILURE(signal, DPM_ERROR_INVALID_PARAMETER); @@ -169,7 +169,7 @@ int dpm_add_signal_cb(device_policy_manager_h handle, const char* signal, return 0; } -int dpm_remove_signal_cb(device_policy_manager_h handle, int id) +EXPORT_API int dpm_remove_signal_cb(device_policy_manager_h handle, int id) { RET_ON_FAILURE(handle, DPM_ERROR_INVALID_PARAMETER); RET_ON_FAILURE(id >= 0, DPM_ERROR_INVALID_PARAMETER); -- 2.7.4