From: Kyeonghun Lee Date: Mon, 5 Dec 2016 07:00:51 +0000 (+0900) Subject: DPM APIs modification: SIM ID support X-Git-Tag: accepted/tizen/3.0/common/20161206.125337^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d967d54ec9a0381e72a2a35f92fa0d3cdb65b6a6;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;