DPM APIs modification: SIM ID support 82/102182/1 accepted/tizen/3.0/common/20161206.125337 accepted/tizen/3.0/ivi/20161205.234442 accepted/tizen/3.0/mobile/20161205.234300 accepted/tizen/3.0/wearable/20161205.234414 submit/tizen_3.0/20161205.022357
authorKyeonghun Lee <kh9090.lee@samsung.com>
Mon, 5 Dec 2016 07:00:51 +0000 (16:00 +0900)
committerKyeonghun Lee <kh9090.lee@samsung.com>
Mon, 5 Dec 2016 07:00:51 +0000 (16:00 +0900)
Change-Id: I4d895319ce92b9658431aa8129371cd8f7902571
Signed-off-by: Kyeonghun Lee <kh9090.lee@samsung.com>
framework/MsgDPMUtils.cpp

index 1d4d6ca..c9562c1 100644 (file)
@@ -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;