aboutsummaryrefslogtreecommitdiffstats
path: root/src/BluetoothAdapter.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/BluetoothAdapter.cpp')
-rw-r--r--src/BluetoothAdapter.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/BluetoothAdapter.cpp b/src/BluetoothAdapter.cpp
index c3844320..5e89e782 100644
--- a/src/BluetoothAdapter.cpp
+++ b/src/BluetoothAdapter.cpp
@@ -221,12 +221,12 @@ bool BluetoothAdapter::set_discovery_filter (std::vector<BluetoothUUID> uuids,
if (uuids.size() > 0)
{
- GVariantBuilder *builder = g_variant_builder_new(G_VARIANT_TYPE("a(s)"));
+ GVariantBuilder *builder = g_variant_builder_new(G_VARIANT_TYPE("as"));
for (std::vector<BluetoothUUID>::iterator i = uuids.begin(); i != uuids.end(); ++i)
- g_variant_builder_add(builder, "(s)", (*i).get_string().c_str());
+ g_variant_builder_add(builder, "s", (*i).get_string().c_str());
- GVariant *uuids_variant = g_variant_new("a(s)", builder);
+ GVariant *uuids_variant = g_variant_new("as", builder);
g_variant_builder_unref(builder);
g_variant_dict_insert_value(&dict, "UUIDs", uuids_variant);
}