From d967d54ec9a0381e72a2a35f92fa0d3cdb65b6a6 Mon Sep 17 00:00:00 2001 From: Kyeonghun Lee Date: Mon, 5 Dec 2016 16:00:51 +0900 Subject: [PATCH] DPM APIs modification: SIM ID support Change-Id: I4d895319ce92b9658431aa8129371cd8f7902571 Signed-off-by: Kyeonghun Lee --- framework/MsgDPMUtils.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; -- 2.7.4