summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2017-02-17 17:10:44 +0100
committerThomas Haller <thaller@redhat.com>2017-02-17 19:51:53 +0100
commitc79e84368ae6e80279d9cb5971bbd84857a8227a (patch)
treee89ed7b2fd9c46aa6940c86d75bce1622e5e7ffe
parentfe6204ffc71f62c1667d0eba56f3a22d6aa9bbbd (diff)
downloadNetworkManager-c79e84368ae6e80279d9cb5971bbd84857a8227a.tar.gz
all: add new "shared/nm-setting-metadata.h" file
"shared/nm-setting-metadata.h" will contain data structures to handle NM setting properties in a generic way. For now, this is internal API, but shared between libnm-core (which extends to libnm, NetworkManager, device-plugins, settings-plugins), and nmcli. Related: https://bugzilla.gnome.org/show_bug.cgi?id=732292
-rw-r--r--Makefile.am6
-rw-r--r--shared/nm-setting-metadata.c25
-rw-r--r--shared/nm-setting-metadata.h25
3 files changed, 56 insertions, 0 deletions
diff --git a/Makefile.am b/Makefile.am
index 0376dca4c0..11f9ce8292 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -409,6 +409,7 @@ libnm_core_lib_h_pub_mkenums = \
libnm-core/nm-core-enum-types.h
libnm_core_lib_h_priv = \
shared/nm-utils/nm-shared-utils.h \
+ shared/nm-setting-metadata.h \
libnm-core/crypto.h \
libnm-core/nm-connection-private.h \
libnm-core/nm-core-internal.h \
@@ -420,6 +421,7 @@ libnm_core_lib_h_priv = \
libnm-core/nm-utils-private.h
libnm_core_lib_c_real = \
shared/nm-utils/nm-shared-utils.c \
+ shared/nm-setting-metadata.c \
libnm-core/crypto.c \
libnm-core/nm-connection.c \
libnm-core/nm-dbus-utils.c \
@@ -2993,6 +2995,10 @@ if BUILD_NMCLI
bin_PROGRAMS += clients/cli/nmcli
clients_cli_nmcli_SOURCES = \
+ \
+ shared/nm-setting-metadata.c \
+ shared/nm-setting-metadata.h \
+ \
clients/cli/agent.c \
clients/cli/agent.h \
clients/cli/common.c \
diff --git a/shared/nm-setting-metadata.c b/shared/nm-setting-metadata.c
new file mode 100644
index 0000000000..9487187355
--- /dev/null
+++ b/shared/nm-setting-metadata.c
@@ -0,0 +1,25 @@
+/* -*- Mode: C; tab-width: 4; indent-tabs-mode: t; c-basic-offset: 4 -*- */
+
+/*
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the
+ * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
+ * Boston, MA 02110-1301 USA.
+ *
+ * Copyright 2017 Red Hat, Inc.
+ */
+
+#include "nm-default.h"
+
+#include "nm-setting-metadata.h"
+
diff --git a/shared/nm-setting-metadata.h b/shared/nm-setting-metadata.h
new file mode 100644
index 0000000000..181debbb5c
--- /dev/null
+++ b/shared/nm-setting-metadata.h
@@ -0,0 +1,25 @@
+/* -*- Mode: C; tab-width: 4; indent-tabs-mode: t; c-basic-offset: 4 -*- */
+
+/*
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the
+ * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
+ * Boston, MA 02110-1301 USA.
+ *
+ * Copyright 2017 Red Hat, Inc.
+ */
+
+#ifndef __NM_SETTING_METADATA_H__
+#define __NM_SETTING_METADATA_H__
+
+#endif /* __NM_SETTING_METADATA_H__ */