diff --git a/src/libnm-core-impl/gen-metadata-nm-settings-libnm-core.c b/src/libnm-core-impl/gen-metadata-nm-settings-libnm-core.c index 8f5b0ede27..2d4f4406cb 100644 --- a/src/libnm-core-impl/gen-metadata-nm-settings-libnm-core.c +++ b/src/libnm-core-impl/gen-metadata-nm-settings-libnm-core.c @@ -59,7 +59,11 @@ main(int argc, char *argv[]) " NetworkManager. Whether and how it is represented in nmcli or keyfile, may differ.\n" " The XML however aims to provide information for various backends.\n" "\n" - " Attributes:\n" + " Attributes:\n" + " \"name\": the name of the setting.\n" + " \"gtype\": the typename of the NMSetting class in libnm.\n" + "\n" + " Attributes:\n" " \"name\": the name of the property.\n" " \"is-deprecated\": whether this property is deprecated.\n" " \"is-secret\": whether this property is a secret.\n" @@ -85,7 +89,10 @@ main(int argc, char *argv[]) g_print("%ssetting_name)); - g_print(" >\n"); + g_print("\n%sgtype=%s", + _indent_level(INDENT + 9), + _xml_escape_attr(&sbuf1, g_type_name(gtype))); + g_print("\n%s>\n", _indent_level(INDENT + 9)); for (prop_idx = 0; prop_idx < sis->property_infos_len; prop_idx++) { const NMSettInfoProperty *sip = &sis->property_infos[prop_idx]; diff --git a/src/libnm-core-impl/gen-metadata-nm-settings-libnm-core.xml.in b/src/libnm-core-impl/gen-metadata-nm-settings-libnm-core.xml.in index 0b8853e611..3fce88347d 100644 --- a/src/libnm-core-impl/gen-metadata-nm-settings-libnm-core.xml.in +++ b/src/libnm-core-impl/gen-metadata-nm-settings-libnm-core.xml.in @@ -19,7 +19,11 @@ NetworkManager. Whether and how it is represented in nmcli or keyfile, may differ. The XML however aims to provide information for various backends. - Attributes: + Attributes: + "name": the name of the setting. + "gtype": the typename of the NMSetting class in libnm. + + Attributes: "name": the name of the property. "is-deprecated": whether this property is deprecated. "is-secret": whether this property is a secret. @@ -33,7 +37,9 @@ is the GParamSpec.value_type of the property. --> - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + @@ -1282,7 +1332,9 @@ dbus-type="aa{sv}" /> - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - +