From 3a54d050985d6ef2067b025571910a8ccd3cbd57 Mon Sep 17 00:00:00 2001 From: Dan Winship Date: Wed, 30 Jul 2014 10:57:45 -0400 Subject: libnm-core: change all mac-address properties to G_TYPE_STRING Make all mac-address properties (including NMSettingBluetooth:bdaddr, NMSettingOlpcMesh:dhcp-anycast-addr, and NMSettingWireless:bssid) be strings, using _nm_setting_class_transform_property() to handle translating to/from binary form when dealing with D-Bus. Update everything accordingly for the change, and also add a test for transformed setting properties to test-general. --- libnm-core/nm-utils-private.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'libnm-core/nm-utils-private.h') diff --git a/libnm-core/nm-utils-private.h b/libnm-core/nm-utils-private.h index 0e7be21e28..580ced77f3 100644 --- a/libnm-core/nm-utils-private.h +++ b/libnm-core/nm-utils-private.h @@ -34,4 +34,9 @@ gboolean _nm_utils_gvalue_array_validate (GValueArray *elements, void _nm_value_transforms_register (void); +void _nm_utils_hwaddr_to_dbus (const GValue *prop_value, + GValue *dbus_value); +void _nm_utils_hwaddr_from_dbus (const GValue *dbus_value, + GValue *prop_value); + #endif -- cgit v1.2.1