platform: add NM_PLATFORM_NETNS_SUPPORT_DEFAULT

This commit is contained in:
Thomas Haller
2016-04-07 12:22:44 +02:00
parent 45a9a6b30b
commit d6b3081f7b
2 changed files with 3 additions and 1 deletions

View File

@@ -4261,7 +4261,7 @@ nm_platform_class_init (NMPlatformClass *platform_class)
g_object_class_install_property
(object_class, PROP_NETNS_SUPPORT,
g_param_spec_boolean (NM_PLATFORM_NETNS_SUPPORT, "", "",
FALSE,
NM_PLATFORM_NETNS_SUPPORT_DEFAULT,
G_PARAM_WRITABLE |
G_PARAM_CONSTRUCT_ONLY |
G_PARAM_STATIC_STRINGS));

View File

@@ -40,6 +40,8 @@
#define NM_IS_PLATFORM_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), NM_TYPE_PLATFORM))
#define NM_PLATFORM_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), NM_TYPE_PLATFORM, NMPlatformClass))
#define NM_PLATFORM_NETNS_SUPPORT_DEFAULT FALSE
/******************************************************************/
#define NM_PLATFORM_NETNS_SUPPORT "netns-support"