about summary refs log tree commit diff
path: root/src/libnm-core-intern
diff options
context:
space:
mode:
authorMichael Biebl <biebl@debian.org>2024-02-22 17:22:03 +0100
committerMichael Biebl <biebl@debian.org>2024-02-22 17:22:03 +0100
commitee7b97d8af11fb1c2cbcd4df0deb298ff906fa8b (patch)
treeb0978e9f3ed4e2e9b727844e57637783ca47a8ef /src/libnm-core-intern
parentd8ad0e3c21e712308cf070716acc421adfabd7d3 (diff)
parentbba2e4b4de668db525cbfdfc35292e5a0b51671a (diff)
Update upstream source from tag 'upstream/1.46.0'
Update to upstream version '1.46.0'
with Debian dir 8c30a24f4e6f4278d9943aef82e6ae63c4528df5
Diffstat (limited to 'src/libnm-core-intern')
-rw-r--r--src/libnm-core-intern/nm-core-internal.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/libnm-core-intern/nm-core-internal.h b/src/libnm-core-intern/nm-core-internal.h
index dedc90b2..3903467d 100644
--- a/src/libnm-core-intern/nm-core-internal.h
+++ b/src/libnm-core-intern/nm-core-internal.h
@@ -800,7 +800,13 @@ struct _NMSettInfoProperty {
                                const NMSettInfoProperty *property_info,
                                NMSetting                *setting,
                                const char               *src);
-    } direct_set_fcn;
+
+        /* We implement %NM_VALUE_TYPE_ENUM properties as integer GObject properties
+        * because using real enum triggers glib assertions when passing newer values to
+        * clients with old libnm. This defines the enum type that the direct_property of
+        * type %NM_VALUE_TYPE_ENUM will use. */
+        GType enum_gtype;
+    } direct_data;
 
     /* For direct properties, this is the param_spec that also should be
      * notified on changes. */