From: Kyeonghun Lee Date: Mon, 5 Dec 2016 07:00:51 +0000 (+0900) Subject: DPM APIs modification: SIM ID support X-Git-Tag: submit/tizen_3.0/20161205.022357 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Ftags%2Fsubmit%2Ftizen_3.0%2F20161205.022357;p=platform%2Fcore%2Fmessaging%2Fmsg-service.git DPM APIs modification: SIM ID support Change-Id: I4d895319ce92b9658431aa8129371cd8f7902571 Signed-off-by: Kyeonghun Lee --- diff --git a/framework/MsgDPMUtils.cpp b/framework/MsgDPMUtils.cpp index 1d4d6ca..c9562c1 100644 --- a/framework/MsgDPMUtils.cpp +++ b/framework/MsgDPMUtils.cpp @@ -39,7 +39,7 @@ static void dpm_sms_policy_changed_callback(const char* name, const char* object int ret = 0; int state = 0; - ret = dpm_restriction_get_messaging_state(dpm_handle, &state); + ret = dpm_restriction_get_messaging_state(dpm_handle, "sim1", &state); if (ret != DPM_ERROR_NONE) { MSG_ERR("dpm_restriction_get_messaging_state failed [%d]", ret); return; @@ -80,7 +80,7 @@ void __get_dpm_policy() int ret = 0; int state = 0; - ret = dpm_restriction_get_messaging_state(dpm_handle, &state); + ret = dpm_restriction_get_messaging_state(dpm_handle, "sim1", &state); if (ret != DPM_ERROR_NONE) { MSG_ERR("dpm_restriction_get_messaging_state failed [%d]", ret); return;