+
+int _net_dbus_get_vconf_value(network_info_t *network_info,
+ const char *key, const char *type, int *ret, int *int_value, char **str_value)
+{
+ __NETWORK_FUNC_ENTER__;
+
+ net_err_t ret_error = NET_ERR_NONE;
+ GVariant *message = NULL;
+ GVariant *params = NULL;
+
+ params = g_variant_new("(ss)", key, type);
+ message = _net_invoke_dbus_method(network_info,
+ NETCONFIG_SERVICE, NETCONFIG_NETWORK_PATH,
+ NETCONFIG_NETWORK_INTERFACE, "RequestVconfValue", params, &ret_error);
+
+ if (message == NULL) {
+ NETWORK_LOG(NETWORK_ERROR, "Failed to get vconf value, key: %s", key);
+ __NETWORK_FUNC_EXIT__;
+ return ret_error;
+ }
+
+ g_variant_get(message, "(iis)", ret, int_value, str_value);
+
+ NETWORK_LOG(NETWORK_HIGH, "Vconf key: %s, type: %s, ret: %d, int_value: %d, str_value: %s",
+ key, type, *ret, *int_value, *str_value);
+
+ g_variant_unref(message);
+
+ __NETWORK_FUNC_EXIT__;
+ return ret_error;
+}