#include "bt-service-device.h"
#include "bt-service-audio.h"
-#ifdef TIZEN_FEATURE_BT_DPM
+#ifdef TIZEN_DPM_ENABLE
#include "bt-service-dpm.h"
#endif
BT_DBG("+");
-#ifdef TIZEN_FEATURE_BT_DPM
+#ifdef TIZEN_DPM_ENABLE
if (_bt_dpm_get_bluetooth_pairing_state() == DPM_RESTRICTED) {
BT_ERR("Not allow to pair the device");
gap_agent_reply_confirmation(agent, GAP_AGENT_REJECT, NULL);
GVariant *tmp_value;
BT_DBG("+");
-#ifdef TIZEN_FEATURE_BT_DPM
+#ifdef TIZEN_DPM_ENABLE
if (_bt_dpm_get_bluetooth_pairing_state() == DPM_RESTRICTED) {
BT_ERR("Not allow to pair the device");
gap_agent_reply_confirmation(agent, GAP_AGENT_REJECT, NULL);
GVariant *tmp_value;
BT_DBG("+ passkey[%.6d]", passkey);
-#ifdef TIZEN_FEATURE_BT_DPM
+#ifdef TIZEN_DPM_ENABLE
if (_bt_dpm_get_bluetooth_pairing_state() == DPM_RESTRICTED) {
BT_ERR("Not allow to pair the device");
gap_agent_reply_confirmation(agent, GAP_AGENT_REJECT, NULL);
rewind(fp);
buffer = g_malloc0(sizeof(char) * size);
- /* Fix : NULL_RETURNS */
- if (buffer == NULL) {
- BT_ERR("Fail to allocate memory");
- fclose(fp);
- return FALSE;
- }
result = fread((char *)buffer, 1, size, fp);
fclose(fp);
if (result != size) {