GError* error = NULL;
GVariant *reply = NULL;
bool wifi_direct_enable;
- bool val;
+ gboolean val;
int res = 0;
if (g_client_info.is_registered == TRUE) {
GError* error = NULL;
GVariant *reply = NULL;
int ret = WIFI_DIRECT_ERROR_NONE;
- bool val;
+ gboolean val;
if (g_client_info.is_registered == false) {
WDC_LOGE("Client is NOT registered");
GError* error = NULL;
GVariant *reply = NULL;
int ret = WIFI_DIRECT_ERROR_NONE;
- bool val;
+ gboolean val;
if (g_client_info.is_registered == false) {
WDC_LOGE("Client is NOT registered");
GError* error = NULL;
GVariant *reply = NULL;
+ gboolean val;
int ret = WIFI_DIRECT_ERROR_NONE;
if (g_client_info.is_registered == false) {
if (ret != WIFI_DIRECT_ERROR_NONE)
return ret;
- g_variant_get(reply, "(b)", discoverable);
+ g_variant_get(reply, "(b)", &val);
+ *discoverable = val;
WDC_LOGD("Discoverable = [%s]", *discoverable ? "Yes" : "No");
WDC_LOGD("%s() SUCCESS", __func__);
GError* error = NULL;
GVariant *reply = NULL;
int ret = WIFI_DIRECT_ERROR_NONE;
+ gboolean val;
if (g_client_info.is_registered == false) {
WDC_LOGE("Client is NOT registered");
if (ret != WIFI_DIRECT_ERROR_NONE)
return ret;
- g_variant_get(reply, "(b)", listen_only);
+ g_variant_get(reply, "(b)", &val);
+ *listen_only = val;
WDC_LOGD("Is listen only = [%s]", *listen_only ? "Yes" : "No");
WDC_LOGD("%s() SUCCESS", __func__);
GError* error = NULL;
GVariant *reply = NULL;
int ret = WIFI_DIRECT_ERROR_NONE;
- bool val;
+ gboolean val;
if (g_client_info.is_registered == false) {
WDC_LOGE("Client is NOT registered");