diff options
author | Oleg Zhurakivskyy <oleg.zhurakivskyy@intel.com> | 2014-06-17 14:26:43 +0300 |
---|---|---|
committer | Oleg Zhurakivskyy <oleg.zhurakivskyy@intel.com> | 2014-06-17 14:26:43 +0300 |
commit | 0a22839a2d9869e237cca7b9d67f901211e54ffa (patch) | |
tree | b61efbdfa152d36f8c0313f877ecfb1d90e467a7 /lib/neardal.c | |
parent | f1af64cdc5da71ed0f768ae66994a8af2f64754b (diff) | |
download | neardal-0a22839a2d9869e237cca7b9d67f901211e54ffa.tar.gz neardal-0a22839a2d9869e237cca7b9d67f901211e54ffa.tar.bz2 neardal-0a22839a2d9869e237cca7b9d67f901211e54ffa.zip |
Set adapter's property.
Diffstat (limited to 'lib/neardal.c')
-rw-r--r-- | lib/neardal.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/neardal.c b/lib/neardal.c index 8b24ec7..539f443 100644 --- a/lib/neardal.c +++ b/lib/neardal.c @@ -516,18 +516,19 @@ errorCode_t neardal_set_adapter_property(const char *adpName, case NEARD_ADP_PROP_POWERED: propKey = "Powered"; variantTmp = g_variant_new_boolean(GPOINTER_TO_UINT(value)); + g_variant_ref_sink(variantTmp); break; default: break; } propValue = g_variant_new_variant(variantTmp); + g_variant_ref_sink(propValue); NEARDAL_TRACE_LOG("Sending:\n%s=%s\n", propKey, g_variant_print(propValue, TRUE)); - org_neard_adapter_call_set_property_sync(adpProp->proxy, propKey, - propValue, NULL, - &neardalMgr.gerror); + properties_call_set_sync(adpProp->props, "org.neard.Adapter", + propKey, propValue, 0, &neardalMgr.gerror); if (neardalMgr.gerror == NULL) err = NEARDAL_SUCCESS; |