#include <pthread.h>
#include <vconf.h>
#include <pkgmgr_installer_info.h>
+#include <system_info.h>
#include <dbg.h>
#include <account-private.h>
#include "account_private_client.h"
#define ACCOUNT_FEATURE "http://tizen.org/feature/account"
+
+#define CHECK_ACCOUNT_SUPPORTED(feature_name) \
+do { \
+ bool is_supported = false; \
+ if (!system_info_get_platform_bool(feature_name, &is_supported)) { \
+ if (is_supported == false) { \
+ LOGE("[%s] feature is disabled", feature_name); \
+ return ACCOUNT_ERROR_NOT_SUPPORTED; \
+ } \
+ } else { \
+ LOGE("Error - Feature getting from System Info"); \
+ return ACCOUNT_ERROR_OPERATION_FAIL; \
+ } \
+} while (0)
+
#define ACCOUNT_DB_OPEN_READONLY 0
#define ACCOUNT_DB_OPEN_READWRITE 1