diff options
-rw-r--r-- | CMakeLists.txt | 1 | ||||
-rw-r--r-- | include/mobile/sync_manager.h | 10 | ||||
-rw-r--r-- | include/sync_adapter.h | 4 | ||||
-rw-r--r-- | include/wearable/sync_manager.h | 10 |
4 files changed, 13 insertions, 12 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index ea761b5..cc18e86 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -15,6 +15,7 @@ CMAKE_MINIMUM_REQUIRED(VERSION 2.6) PROJECT("sync-manager") +ADD_DEFINITIONS("-fvisibility=hidden") IF(NOT DEFINED PACKAGE_NAME) SET(PACKAGE_NAME "sync-manager") diff --git a/include/mobile/sync_manager.h b/include/mobile/sync_manager.h index b7c0a19..c8c1344 100644 --- a/include/mobile/sync_manager.h +++ b/include/mobile/sync_manager.h @@ -173,7 +173,7 @@ typedef bool (*sync_manager_sync_job_cb)(account_h account, const char *sync_job * @see sync_manager_remove_sync_job() * @see sync_option_e */ -int sync_manager_on_demand_sync_job(account_h account, const char *sync_job_name, sync_option_e sync_option, bundle *sync_job_user_data, int *sync_job_id); +__attribute__ ((visibility("default"))) int sync_manager_on_demand_sync_job(account_h account, const char *sync_job_name, sync_option_e sync_option, bundle *sync_job_user_data, int *sync_job_id); /** @@ -208,7 +208,7 @@ int sync_manager_on_demand_sync_job(account_h account, const char *sync_job_name * @see sync_option_e * @see sync_period_e */ -int sync_manager_add_periodic_sync_job(account_h account, const char *sync_job_name, sync_period_e sync_period, sync_option_e sync_option, bundle *sync_job_user_data, int *sync_job_id); +__attribute__ ((visibility("default"))) int sync_manager_add_periodic_sync_job(account_h account, const char *sync_job_name, sync_period_e sync_period, sync_option_e sync_option, bundle *sync_job_user_data, int *sync_job_id); /** @@ -243,7 +243,7 @@ int sync_manager_add_periodic_sync_job(account_h account, const char *sync_job_n * @see sync_manager_remove_sync_job() * @see sync_option_e */ -int sync_manager_add_data_change_sync_job(account_h account, const char *sync_capability, sync_option_e sync_option, bundle *sync_job_user_data, int *sync_job_id); +__attribute__ ((visibility("default"))) int sync_manager_add_data_change_sync_job(account_h account, const char *sync_capability, sync_option_e sync_option, bundle *sync_job_user_data, int *sync_job_id); /** @@ -270,7 +270,7 @@ int sync_manager_add_data_change_sync_job(account_h account, const char *sync_ca * @see sync_manager_add_periodic_sync_job() * @see sync_manager_add_data_change_sync_job() */ -int sync_manager_remove_sync_job(int sync_job_id); +__attribute__ ((visibility("default"))) int sync_manager_remove_sync_job(int sync_job_id); /** @@ -297,7 +297,7 @@ int sync_manager_remove_sync_job(int sync_job_id); * @see sync_manager_add_periodic_sync_job() * @see sync_manager_add_data_change_sync_job() */ -int sync_manager_foreach_sync_job(sync_manager_sync_job_cb sync_job_cb, void *user_data); +__attribute__ ((visibility("default"))) int sync_manager_foreach_sync_job(sync_manager_sync_job_cb sync_job_cb, void *user_data); /* End of Sync Manager APIs */ diff --git a/include/sync_adapter.h b/include/sync_adapter.h index 9db3bfc..0b3a146 100644 --- a/include/sync_adapter.h +++ b/include/sync_adapter.h @@ -114,7 +114,7 @@ typedef void (*sync_adapter_cancel_sync_cb)(account_h account, const char *sync_ * @see sync_adapter_cancel_sync_cb() * @see sync_adapter_unset_callbacks() */ -int sync_adapter_set_callbacks(sync_adapter_start_sync_cb on_start_cb, sync_adapter_cancel_sync_cb on_cancel_cb); +__attribute__ ((visibility("default"))) int sync_adapter_set_callbacks(sync_adapter_start_sync_cb on_start_cb, sync_adapter_cancel_sync_cb on_cancel_cb); /** @@ -134,7 +134,7 @@ int sync_adapter_set_callbacks(sync_adapter_start_sync_cb on_start_cb, sync_adap * @see sync_adapter_cancel_sync_cb() * @see sync_adapter_set_callbacks() */ -int sync_adapter_unset_callbacks(void); +__attribute__ ((visibility("default"))) int sync_adapter_unset_callbacks(void); /* End of Sync Adapter APIs */ diff --git a/include/wearable/sync_manager.h b/include/wearable/sync_manager.h index f230502..2d64490 100644 --- a/include/wearable/sync_manager.h +++ b/include/wearable/sync_manager.h @@ -164,7 +164,7 @@ typedef bool (*sync_manager_sync_job_cb)(account_h account, const char *sync_job * @see sync_manager_remove_sync_job() * @see sync_option_e */ -int sync_manager_on_demand_sync_job(account_h account, const char *sync_job_name, sync_option_e sync_option, bundle *sync_job_user_data, int *sync_job_id); +__attribute__ ((visibility("default"))) int sync_manager_on_demand_sync_job(account_h account, const char *sync_job_name, sync_option_e sync_option, bundle *sync_job_user_data, int *sync_job_id); /** @@ -199,7 +199,7 @@ int sync_manager_on_demand_sync_job(account_h account, const char *sync_job_name * @see sync_option_e * @see sync_period_e */ -int sync_manager_add_periodic_sync_job(account_h account, const char *sync_job_name, sync_period_e sync_period, sync_option_e sync_option, bundle *sync_job_user_data, int *sync_job_id); +__attribute__ ((visibility("default"))) int sync_manager_add_periodic_sync_job(account_h account, const char *sync_job_name, sync_period_e sync_period, sync_option_e sync_option, bundle *sync_job_user_data, int *sync_job_id); /** @@ -232,7 +232,7 @@ int sync_manager_add_periodic_sync_job(account_h account, const char *sync_job_n * @see sync_manager_remove_sync_job() * @see sync_option_e */ -int sync_manager_add_data_change_sync_job(account_h account, const char *sync_capability, sync_option_e sync_option, bundle *sync_job_user_data, int *sync_job_id); +__attribute__ ((visibility("default"))) int sync_manager_add_data_change_sync_job(account_h account, const char *sync_capability, sync_option_e sync_option, bundle *sync_job_user_data, int *sync_job_id); /** @@ -259,7 +259,7 @@ int sync_manager_add_data_change_sync_job(account_h account, const char *sync_ca * @see sync_manager_add_periodic_sync_job() * @see sync_manager_add_data_change_sync_job() */ -int sync_manager_remove_sync_job(int sync_job_id); +__attribute__ ((visibility("default"))) int sync_manager_remove_sync_job(int sync_job_id); /** @@ -286,7 +286,7 @@ int sync_manager_remove_sync_job(int sync_job_id); * @see sync_manager_add_periodic_sync_job() * @see sync_manager_add_data_change_sync_job() */ -int sync_manager_foreach_sync_job(sync_manager_sync_job_cb sync_job_cb, void *user_data); +__attribute__ ((visibility("default"))) int sync_manager_foreach_sync_job(sync_manager_sync_job_cb sync_job_cb, void *user_data); /* End of Sync Manager APIs */ |