modify to get errno using vconf_notify_key_changed 89/63289/1 accepted/tizen/common/20160324.084237 accepted/tizen/common/20160325.134913 accepted/tizen/ivi/20160324.131645 accepted/tizen/mobile/20160324.132922 accepted/tizen/tv/20160324.132743 accepted/tizen/wearable/20160324.132707 submit/tizen/20160323.065638 submit/tizen/20160323.235918
authorJiwoong Im <jiwoong.im@samsung.com>
Wed, 23 Mar 2016 05:28:10 +0000 (14:28 +0900)
committerJiwoong Im <jiwoong.im@samsung.com>
Wed, 23 Mar 2016 05:32:59 +0000 (14:32 +0900)
- modify to get errno by vconf_get_ext_errno,
  if vconf_notify_key_changed returns error.

Change-Id: Ia748405b413296ad8978e2eb59a7608b11cd5b33
Signed-off-by: Jiwoong Im <jiwoong.im@samsung.com>
vconf-compat/vconf.c

index 89d3c55..caebeb5 100644 (file)
@@ -402,6 +402,7 @@ EXPORT int vconf_notify_key_changed(const char *key, vconf_callback_fn cb,
 {
        int r;
        struct noti *noti;
+       last_result = false;
 
        if (!key || !cb) {
                errno = EINVAL;
@@ -420,6 +421,9 @@ EXPORT int vconf_notify_key_changed(const char *key, vconf_callback_fn cb,
 
        _close();
 
+       if (r == 0)
+               last_result = true;
+
        return r;
 }