diff options
author | Dan Winship <danw@gnome.org> | 2014-07-15 09:24:50 -0400 |
---|---|---|
committer | Dan Winship <danw@gnome.org> | 2014-07-15 09:44:54 -0400 |
commit | 7eb0288aa0c62f9feb2f2ad456ebde083f7284aa (patch) | |
tree | 7047d5085e45d0333a696a8eb5a5676d16792906 | |
parent | f352bfd2af77566e2fbb1902db807af82008af1d (diff) | |
download | NetworkManager-7eb0288aa0c62f9feb2f2ad456ebde083f7284aa.tar.gz |
libnm-util: move NetworkManager.h, etc, from include/ to here
NetworkManager.h, NetworkManagerVPN.h, and nm-version.h are part of
the libnm-util API, so move them to libnm-util.
include/ still contains headers that are strictly NM-internal (eg,
nm-glib-compat.h).
-rw-r--r-- | .gitignore | 3 | ||||
-rw-r--r-- | configure.ac | 2 | ||||
-rw-r--r-- | docs/libnm-glib/Makefile.am | 2 | ||||
-rw-r--r-- | docs/libnm-util/Makefile.am | 1 | ||||
-rw-r--r-- | examples/C/qt/Makefile.am | 4 | ||||
-rw-r--r-- | include/Makefile.am | 11 | ||||
-rw-r--r-- | libnm-util/Makefile.am | 11 | ||||
-rw-r--r-- | libnm-util/NetworkManager.h (renamed from include/NetworkManager.h) | 6 | ||||
-rw-r--r-- | libnm-util/NetworkManagerVPN.h (renamed from include/NetworkManagerVPN.h) | 6 | ||||
-rw-r--r-- | libnm-util/nm-version.h.in (renamed from include/nm-version.h.in) | 0 | ||||
-rw-r--r-- | src/ppp-manager/Makefile.am | 1 |
11 files changed, 24 insertions, 23 deletions
diff --git a/.gitignore b/.gitignore index 34d3c28f26..a1a417ecd7 100644 --- a/.gitignore +++ b/.gitignore @@ -85,8 +85,6 @@ valgrind-*.log /m4/wint_t.m4 /m4/xsize.m4 -/include/nm-version.h - /docs/libnm-glib/*.stamp /docs/libnm-glib/html/ /docs/libnm-glib/tmpl/ @@ -168,6 +166,7 @@ valgrind-*.log /test/libnm_glib_test /test/nm-online /test/nmtestdevices +/libnm-util/nm-version.h /libnm-util/nm-setting-docs.xml /libnm-util/test-crypto /libnm-util/tests/test-crypto diff --git a/configure.ac b/configure.ac index e3102d15da..7b1c1221a0 100644 --- a/configure.ac +++ b/configure.ac @@ -794,7 +794,6 @@ AM_CONDITIONAL(SETTING_DOCS_AVAILABLE, test "$build_setting_docs" = "yes" -o "$h AC_CONFIG_FILES([ Makefile include/Makefile -include/nm-version.h src/Makefile src/tests/Makefile src/config/tests/Makefile @@ -829,6 +828,7 @@ src/devices/wifi/Makefile src/devices/wifi/tests/Makefile src/devices/wwan/Makefile libnm-util/libnm-util.pc +libnm-util/nm-version.h libnm-util/Makefile libnm-util/tests/Makefile libnm-util/tests/certs/Makefile diff --git a/docs/libnm-glib/Makefile.am b/docs/libnm-glib/Makefile.am index c6c9edf8f4..98ce4483b4 100644 --- a/docs/libnm-glib/Makefile.am +++ b/docs/libnm-glib/Makefile.am @@ -70,8 +70,6 @@ extra_files = libnm-glib.png # CFLAGS and LDFLAGS for compiling scan program. Only needed # if $(DOC_MODULE).types is non-empty. GTKDOC_CFLAGS = \ - -I$(top_srcdir)/include \ - -I$(top_builddir)/include \ -I$(top_srcdir)/libnm-util \ -I$(top_builddir)/libnm-util \ -I$(top_srcdir)/libnm-glib \ diff --git a/docs/libnm-util/Makefile.am b/docs/libnm-util/Makefile.am index 45c746d97f..07bd2fe32e 100644 --- a/docs/libnm-util/Makefile.am +++ b/docs/libnm-util/Makefile.am @@ -50,7 +50,6 @@ extra_files = # CFLAGS and LDFLAGS for compiling scan program. Only needed # if $(DOC_MODULE).types is non-empty. GTKDOC_CFLAGS = \ - -I$(top_srcdir)/include \ -I$(top_srcdir)/libnm-util \ -DNM_VERSION_MAX_ALLOWED=NM_VERSION_NEXT_STABLE \ $(GLIB_CFLAGS) \ diff --git a/examples/C/qt/Makefile.am b/examples/C/qt/Makefile.am index 15b6bf4521..b9bd1f657a 100644 --- a/examples/C/qt/Makefile.am +++ b/examples/C/qt/Makefile.am @@ -1,6 +1,6 @@ AM_CPPFLAGS = \ - -I${top_srcdir}/include \ - -I${top_builddir}/include \ + -I${top_srcdir}/libnm-util \ + -I${top_builddir}/libnm-util \ $(DBUS_CFLAGS) \ $(QT_CFLAGS) diff --git a/include/Makefile.am b/include/Makefile.am index 087afe48f6..efc070354d 100644 --- a/include/Makefile.am +++ b/include/Makefile.am @@ -1,17 +1,6 @@ EXTRA_DIST = \ - NetworkManager.h \ - NetworkManagerVPN.h \ nm-dbus-glib-types.h \ nm-glib-compat.h \ nm-gvaluearray-compat.h \ nm-test-utils.h \ - nm-version.h.in \ nm-settings-flags.h - -NetworkManagerincludedir=$(includedir)/NetworkManager - -NetworkManagerinclude_HEADERS = \ - NetworkManager.h \ - NetworkManagerVPN.h \ - nm-version.h - diff --git a/libnm-util/Makefile.am b/libnm-util/Makefile.am index 064aca0082..cb08a14b4f 100644 --- a/libnm-util/Makefile.am +++ b/libnm-util/Makefile.am @@ -23,6 +23,8 @@ endif lib_LTLIBRARIES=libnm-util.la libnm_util_include_HEADERS = \ + NetworkManager.h \ + NetworkManagerVPN.h \ nm-connection.h \ nm-setting.h \ nm-setting-8021x.h \ @@ -52,7 +54,8 @@ libnm_util_include_HEADERS = \ nm-setting-wireless-security.h \ nm-setting-vpn.h \ nm-utils-enum-types.h \ - nm-utils.h + nm-utils.h \ + nm-version.h libnm_util_la_private_headers = \ crypto.h \ @@ -101,7 +104,7 @@ libnm_util_la_SOURCES = \ GLIB_GENERATED = nm-utils-enum-types.h nm-utils-enum-types.c BUILT_SOURCES = $(GLIB_GENERATED) -nm_utils_enum_types_sources = $(libnm_util_include_HEADERS) +nm_utils_enum_types_sources = $(filter-out NetworkManager%,$(libnm_util_include_HEADERS)) GLIB_MKENUMS_H_FLAGS = --identifier-prefix NM GLIB_MKENUMS_C_FLAGS = --identifier-prefix NM @@ -152,7 +155,7 @@ pkgconfig_DATA = libnm-util.pc DISTCLEANFILES = libnm-util.pc CLEANFILES = -EXTRA_DIST = libnm-util.pc.in libnm-util.ver +EXTRA_DIST = libnm-util.pc.in libnm-util.ver nm-version.h.in -include $(INTROSPECTION_MAKEFILE) INTROSPECTION_GIRS = @@ -160,7 +163,7 @@ INTROSPECTION_SCANNER_ARGS = --add-include-path=$(srcdir) INTROSPECTION_COMPILER_ARGS = --includedir=$(srcdir) if HAVE_INTROSPECTION -introspection_sources = $(libnm_util_include_HEADERS) $(libnm_util_la_csources) $(top_srcdir)/include/NetworkManager.h $(top_srcdir)/include/NetworkManagerVPN.h +introspection_sources = $(libnm_util_include_HEADERS) $(libnm_util_la_csources) NetworkManager-1.0.gir: libnm-util.la NetworkManager_1_0_gir_INCLUDES = GObject-2.0 DBusGLib-1.0 diff --git a/include/NetworkManager.h b/libnm-util/NetworkManager.h index 3fee1af00d..41c05c1167 100644 --- a/include/NetworkManager.h +++ b/libnm-util/NetworkManager.h @@ -20,6 +20,12 @@ * (C) Copyright 2004 - 2013 Red Hat, Inc. */ +/* Definitions related to NetworkManager's D-Bus interfaces. + * + * Note that although this header is installed as part of libnm-util, it is also + * used by some external code that does not link to libnm-util. + */ + #ifndef NETWORK_MANAGER_H #define NETWORK_MANAGER_H diff --git a/include/NetworkManagerVPN.h b/libnm-util/NetworkManagerVPN.h index 5997c99f9d..5850354536 100644 --- a/include/NetworkManagerVPN.h +++ b/libnm-util/NetworkManagerVPN.h @@ -19,6 +19,12 @@ * (C) Copyright 2004 Red Hat, Inc. */ +/* D-Bus-related definitions for NetworkManager VPN plugins. + * + * Note that although this header is installed as part of libnm-util, it is also + * used by some external code that does not link to libnm-util. + */ + #ifndef NETWORK_MANAGER_VPN_H #define NETWORK_MANAGER_VPN_H diff --git a/include/nm-version.h.in b/libnm-util/nm-version.h.in index e702ae8bb2..e702ae8bb2 100644 --- a/include/nm-version.h.in +++ b/libnm-util/nm-version.h.in diff --git a/src/ppp-manager/Makefile.am b/src/ppp-manager/Makefile.am index 46fc913880..06d8013955 100644 --- a/src/ppp-manager/Makefile.am +++ b/src/ppp-manager/Makefile.am @@ -3,6 +3,7 @@ if WITH_PPP AM_CPPFLAGS = \ -I${top_builddir}/include \ -I${top_srcdir}/include \ + -I${top_srcdir}/libnm-util \ -DG_LOG_DOMAIN=\""nm-pppd-plugin"\" \ -DNM_VERSION_MAX_ALLOWED=NM_VERSION_NEXT_STABLE \ $(DBUS_CFLAGS) \ |