[network-manager-openvpn/th/tmp] build: move copied shared files to separate directory
- From: Thomas Haller <thaller src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [network-manager-openvpn/th/tmp] build: move copied shared files to separate directory
- Date: Fri, 13 May 2016 15:57:35 +0000 (UTC)
commit 6e7a31b1c67a471ffd4c2061fe12b012431024ef
Author: Thomas Haller <thaller redhat com>
Date: Fri May 13 17:41:20 2016 +0200
build: move copied shared files to separate directory
Some of the shared files are copied as-is from NetworkManager's
repository or between VPN plugins. Those files are special, in that
they are not supposed to be edited locally, without considering that
they are used in other projects.
Move them to a separate sub-directory, to make the nature of these
files clearer.
properties/import-export.c | 2 +-
properties/nm-openvpn-editor-plugin.c | 2 +-
properties/tests/test-import-export.c | 2 +-
shared/Makefile.am | 18 +++++++++---------
shared/README | 16 ++++++++--------
shared/nm-default.h | 7 ++++---
shared/{ => nm-utils}/gsystem-local-alloc.h | 0
shared/{ => nm-utils}/nm-glib.h | 0
shared/{ => nm-utils}/nm-macros-internal.h | 0
shared/{ => nm-utils}/nm-shared-utils.c | 0
shared/{ => nm-utils}/nm-shared-utils.h | 0
shared/{ => nm-utils}/nm-test-utils.h | 0
shared/{ => nm-vpn}/nm-vpn-plugin-utils.c | 0
shared/{ => nm-vpn}/nm-vpn-plugin-utils.h | 0
14 files changed, 24 insertions(+), 23 deletions(-)
---
diff --git a/properties/import-export.c b/properties/import-export.c
index 59d4b51..5f1da2a 100644
--- a/properties/import-export.c
+++ b/properties/import-export.c
@@ -35,7 +35,7 @@
#include <stdio.h>
#include "utils.h"
-#include "nm-shared-utils.h"
+#include "nm-utils/nm-shared-utils.h"
#define INLINE_BLOB_CA "ca"
diff --git a/properties/nm-openvpn-editor-plugin.c b/properties/nm-openvpn-editor-plugin.c
index b5e980c..7c1e59c 100644
--- a/properties/nm-openvpn-editor-plugin.c
+++ b/properties/nm-openvpn-editor-plugin.c
@@ -36,7 +36,7 @@
#ifdef NM_VPN_OLD
#include "nm-openvpn-editor.h"
#else
-#include "nm-vpn-plugin-utils.h"
+#include "nm-vpn/nm-vpn-plugin-utils.h"
#endif
#include "import-export.h"
diff --git a/properties/tests/test-import-export.c b/properties/tests/test-import-export.c
index c5d515e..936662c 100644
--- a/properties/tests/test-import-export.c
+++ b/properties/tests/test-import-export.c
@@ -31,7 +31,7 @@
#include "import-export.h"
#include "utils.h"
-#include "nm-test-utils.h"
+#include "nm-utils/nm-test-utils.h"
#define SRCDIR TEST_SRCDIR"/conf"
#define TMPDIR TEST_BUILDDIR"/conf-tmp"
diff --git a/shared/Makefile.am b/shared/Makefile.am
index 273e656..22d36c4 100644
--- a/shared/Makefile.am
+++ b/shared/Makefile.am
@@ -6,8 +6,8 @@ noinst_LTLIBRARIES += libnm-openvpn-shared.la
endif
shared_sources = \
- nm-shared-utils.c \
- nm-shared-utils.h \
+ nm-utils/nm-shared-utils.c \
+ nm-utils/nm-shared-utils.h \
utils.c \
utils.h \
nm-service-defines.h
@@ -44,8 +44,8 @@ libnm_vpn_editor_utils_shared_la_CPPFLAGS = \
-I$(top_srcdir)/shared
libnm_vpn_editor_utils_shared_la_SOURCES = \
- nm-vpn-plugin-utils.c \
- nm-vpn-plugin-utils.h
+ nm-vpn/nm-vpn-plugin-utils.c \
+ nm-vpn/nm-vpn-plugin-utils.h
libnm_vpn_editor_utils_shared_la_LIBADD = \
$(LIBNM_LIBS) \
@@ -54,9 +54,9 @@ libnm_vpn_editor_utils_shared_la_LIBADD = \
###############################################################################
EXTRA_DIST = \
- gsystem-local-alloc.h \
- nm-default.h \
- nm-glib.h \
- nm-macros-internal.h \
- nm-test-utils.h
+ nm-utils/gsystem-local-alloc.h \
+ nm-utils/nm-glib.h \
+ nm-utils/nm-macros-internal.h \
+ nm-utils/nm-test-utils.h \
+ nm-default.h
diff --git a/shared/README b/shared/README
index eaf4409..e7a2dff 100644
--- a/shared/README
+++ b/shared/README
@@ -2,18 +2,18 @@ The files in the "shared/" directory are supposed to be shared
across NetworkManager related projects (reuse-by-copying).
(1) the files
- shared/gsystem-local-alloc.h
- shared/nm-glib.h
- shared/nm-macros-internal.h
- shared/nm-shared-utils.c
- shared/nm-shared-utils.h
- shared/nm-test-utils.h
+ shared/nm-utils/gsystem-local-alloc.h
+ shared/nm-utils/nm-glib.h
+ shared/nm-utils/nm-macros-internal.h
+ shared/nm-utils/nm-shared-utils.c
+ shared/nm-utils/nm-shared-utils.h
+ shared/nm-utils/nm-test-utils.h
are copied as-is from NetworkManager
https://cgit.freedesktop.org/NetworkManager/NetworkManager/tree/shared?id=9770024f63b85da604f1134a8bc8dc968278dcd1
2) the files
- shared/nm-vpn-plugin-utils.c
- shared/nm-vpn-plugin-utils.h
+ shared/nm-vpn/nm-vpn-plugin-utils.c
+ shared/nm-vpn/nm-vpn-plugin-utils.h
are copied as-is from nm-openvpn
https://git.gnome.org/browse/network-manager-openvpn/tree/shared?id=3d0ac3ca94b4bf24f77306cef5a95172ddaf5fc4
diff --git a/shared/nm-default.h b/shared/nm-default.h
index c9eabb9..139dc74 100644
--- a/shared/nm-default.h
+++ b/shared/nm-default.h
@@ -42,10 +42,11 @@
/* always include these headers for our internal source files. */
-#include "nm-glib.h"
+#include "nm-utils/nm-glib.h"
+#include "nm-utils/gsystem-local-alloc.h"
+#include "nm-utils/nm-macros-internal.h"
+
#include "nm-version.h"
-#include "gsystem-local-alloc.h"
-#include "nm-macros-internal.h"
#include "nm-service-defines.h"
/*****************************************************************************/
diff --git a/shared/gsystem-local-alloc.h b/shared/nm-utils/gsystem-local-alloc.h
similarity index 100%
rename from shared/gsystem-local-alloc.h
rename to shared/nm-utils/gsystem-local-alloc.h
diff --git a/shared/nm-glib.h b/shared/nm-utils/nm-glib.h
similarity index 100%
rename from shared/nm-glib.h
rename to shared/nm-utils/nm-glib.h
diff --git a/shared/nm-macros-internal.h b/shared/nm-utils/nm-macros-internal.h
similarity index 100%
rename from shared/nm-macros-internal.h
rename to shared/nm-utils/nm-macros-internal.h
diff --git a/shared/nm-shared-utils.c b/shared/nm-utils/nm-shared-utils.c
similarity index 100%
rename from shared/nm-shared-utils.c
rename to shared/nm-utils/nm-shared-utils.c
diff --git a/shared/nm-shared-utils.h b/shared/nm-utils/nm-shared-utils.h
similarity index 100%
rename from shared/nm-shared-utils.h
rename to shared/nm-utils/nm-shared-utils.h
diff --git a/shared/nm-test-utils.h b/shared/nm-utils/nm-test-utils.h
similarity index 100%
rename from shared/nm-test-utils.h
rename to shared/nm-utils/nm-test-utils.h
diff --git a/shared/nm-vpn-plugin-utils.c b/shared/nm-vpn/nm-vpn-plugin-utils.c
similarity index 100%
rename from shared/nm-vpn-plugin-utils.c
rename to shared/nm-vpn/nm-vpn-plugin-utils.c
diff --git a/shared/nm-vpn-plugin-utils.h b/shared/nm-vpn/nm-vpn-plugin-utils.h
similarity index 100%
rename from shared/nm-vpn-plugin-utils.h
rename to shared/nm-vpn/nm-vpn-plugin-utils.h
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]