diff options
author | Thomas Haller <thaller@redhat.com> | 2018-03-13 10:14:06 +0100 |
---|---|---|
committer | Thomas Haller <thaller@redhat.com> | 2018-03-13 11:29:18 +0100 |
commit | 57ab9fd60fc9ec3ab7bc3fcef40b1f003d614162 (patch) | |
tree | 6a1e175ab577236f566de1993a8a20ca87fb31a9 /src/nm-ip6-config.c | |
parent | 1e535789cfd8dbc94da1e4f6393d27ccc2a209fc (diff) | |
download | NetworkManager-57ab9fd60fc9ec3ab7bc3fcef40b1f003d614162.tar.gz |
core/dbus: rework creating numbered D-Bus export path by putting counter into class
I dislike the static hash table to cache the integer counter for
numbered paths. Let's instead cache the counter at the class instance
itself -- since the class contains the information how the export
path should be exported.
However, we cannot use a plain integer field inside the class structure,
because the class is copied between derived classes. For example,
NMDeviceEthernet and NMDeviceBridge both get a copy of the NMDeviceClass
instance. Hence, the class doesn't contain the counter directly, but
a pointer to one counter that can be shared between sibling classes.
Diffstat (limited to 'src/nm-ip6-config.c')
-rw-r--r-- | src/nm-ip6-config.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nm-ip6-config.c b/src/nm-ip6-config.c index 184c318c4f..883e8e00fa 100644 --- a/src/nm-ip6-config.c +++ b/src/nm-ip6-config.c @@ -2800,7 +2800,7 @@ nm_ip6_config_class_init (NMIP6ConfigClass *config_class) GObjectClass *object_class = G_OBJECT_CLASS (config_class); NMDBusObjectClass *dbus_object_class = NM_DBUS_OBJECT_CLASS (config_class); - dbus_object_class->export_path = NM_EXPORT_PATH_NUMBERED (NM_DBUS_PATH"/IP6Config"); + dbus_object_class->export_path = NM_DBUS_EXPORT_PATH_NUMBERED (NM_DBUS_PATH"/IP6Config"); dbus_object_class->interface_infos = NM_DBUS_INTERFACE_INFOS (&interface_info_ip6_config); object_class->get_property = get_property; |