summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2017-04-10 21:40:19 +0200
committerThomas Haller <thaller@redhat.com>2017-04-12 14:12:20 +0200
commit6c2727af14f394000a35c5ee8ca23649683ba9ab (patch)
treef4a39ab97c863510ecbbf7cf8a0416ac48dd907b
parent88f100e176fe3036fc821ee4d8cfc5a5ccd61037 (diff)
downloadNetworkManager-6c2727af14f394000a35c5ee8ca23649683ba9ab.tar.gz
cli: add meta data for NMSettingGeneric
-rw-r--r--clients/common/nm-meta-setting-desc.c2
-rw-r--r--shared/nm-meta-setting.c5
-rw-r--r--shared/nm-meta-setting.h1
3 files changed, 8 insertions, 0 deletions
diff --git a/clients/common/nm-meta-setting-desc.c b/clients/common/nm-meta-setting-desc.c
index 8a35b6dbfb..e2f309ee95 100644
--- a/clients/common/nm-meta-setting-desc.c
+++ b/clients/common/nm-meta-setting-desc.c
@@ -7087,6 +7087,7 @@ static const NMMetaPropertyInfo property_infos_WIRELESS_SECURITY[] = {
#define SETTING_PRETTY_NAME_CONNECTION "General settings"
#define SETTING_PRETTY_NAME_DCB "DCB settings"
#define SETTING_PRETTY_NAME_DUMMY "Dummy settings"
+#define SETTING_PRETTY_NAME_GENERIC "Generic settings"
#define SETTING_PRETTY_NAME_GSM "GSM mobile broadband connection"
#define SETTING_PRETTY_NAME_INFINIBAND "InfiniBand connection"
#define SETTING_PRETTY_NAME_IP4_CONFIG "IPv4 protocol"
@@ -7136,6 +7137,7 @@ const NMMetaSettingInfoEditor nm_meta_setting_infos_editor[] = {
SETTING_INFO (CONNECTION),
SETTING_INFO (DCB),
SETTING_INFO_EMPTY (DUMMY),
+ SETTING_INFO_EMPTY (GENERIC),
SETTING_INFO (GSM),
SETTING_INFO (INFINIBAND),
SETTING_INFO (IP4_CONFIG),
diff --git a/shared/nm-meta-setting.c b/shared/nm-meta-setting.c
index 58bd3f1004..1294a24d98 100644
--- a/shared/nm-meta-setting.c
+++ b/shared/nm-meta-setting.c
@@ -190,6 +190,11 @@ const NMMetaSettingInfo nm_meta_setting_infos[] = {
.setting_name = N_ (NM_SETTING_DUMMY_SETTING_NAME),
.get_setting_gtype = nm_setting_dummy_get_type,
},
+ [NM_META_SETTING_TYPE_GENERIC] = {
+ .meta_type = NM_META_SETTING_TYPE_GENERIC,
+ .setting_name = N_ (NM_SETTING_GENERIC_SETTING_NAME),
+ .get_setting_gtype = nm_setting_generic_get_type,
+ },
[NM_META_SETTING_TYPE_GSM] = {
.meta_type = NM_META_SETTING_TYPE_GSM,
.setting_name = N_ (NM_SETTING_GSM_SETTING_NAME),
diff --git a/shared/nm-meta-setting.h b/shared/nm-meta-setting.h
index 3d78a85045..949a6920c6 100644
--- a/shared/nm-meta-setting.h
+++ b/shared/nm-meta-setting.h
@@ -66,6 +66,7 @@ typedef enum {
NM_META_SETTING_TYPE_CONNECTION,
NM_META_SETTING_TYPE_DCB,
NM_META_SETTING_TYPE_DUMMY,
+ NM_META_SETTING_TYPE_GENERIC,
NM_META_SETTING_TYPE_GSM,
NM_META_SETTING_TYPE_INFINIBAND,
NM_META_SETTING_TYPE_IP4_CONFIG,