summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2015-06-01 13:42:08 +0200
committerThomas Haller <thaller@redhat.com>2015-06-01 14:47:08 +0200
commitb8b1a01d9614c1f9da78fd44efbbf6f3431e0885 (patch)
treefb0d717509396c59bbc9c0802a674bc404b8c2d5
parentdce00f0d1087098cd4b2f27bbb9905e1d6c450d9 (diff)
downloadNetworkManager-b8b1a01d9614c1f9da78fd44efbbf6f3431e0885.tar.gz
build: rename file "include/nm-utils-internal.h" to "nm-macros-internal.h"
We already have "nm-utils*.h" and "NetworkManagerUtils.h" headers. Rename "include/nm-utils-internal.h" to "nm-macros-internal.h". I think that name is better, because this file is header-only, internal, and repository-wide. Also, it will never contain non-header-only declarations because there is no backing object file under "include/". It will only contain macros and inline functions.
-rw-r--r--clients/cli/settings.c2
-rw-r--r--include/Makefile.am2
-rw-r--r--include/nm-macros-internal.h (renamed from include/nm-utils-internal.h)6
-rw-r--r--include/nm-test-utils.h2
-rw-r--r--libnm-core/nm-keyfile-reader.c2
-rw-r--r--libnm-core/nm-setting-8021x.c2
-rw-r--r--libnm-core/nm-utils.c2
-rw-r--r--libnm-core/tests/test-keyfile.c2
-rw-r--r--libnm-util/nm-setting-8021x.c2
-rw-r--r--libnm-util/nm-utils.c2
-rw-r--r--src/dhcp-manager/nm-dhcp-dhclient-utils.c2
-rw-r--r--src/dhcp-manager/tests/test-dhcp-dhclient.c2
-rw-r--r--src/nm-logging.h2
-rw-r--r--src/settings/plugins/ifcfg-rh/utils.c2
14 files changed, 16 insertions, 16 deletions
diff --git a/clients/cli/settings.c b/clients/cli/settings.c
index 99d64a33b6..8ae1b7f7c3 100644
--- a/clients/cli/settings.c
+++ b/clients/cli/settings.c
@@ -29,7 +29,7 @@
#include "common.h"
#include "settings.h"
#include "nm-glib-compat.h"
-#include "nm-utils-internal.h"
+#include "nm-macros-internal.h"
/* Forward declarations */
static char *wep_key_type_to_string (NMWepKeyType type);
diff --git a/include/Makefile.am b/include/Makefile.am
index 6e84a5b63a..ff7eac8c27 100644
--- a/include/Makefile.am
+++ b/include/Makefile.am
@@ -4,6 +4,6 @@ EXTRA_DIST = \
nm-glib-compat.h \
nm-gvaluearray-compat.h \
nm-test-utils.h \
- nm-utils-internal.h
+ nm-macros-internal.h
CLEANFILES=nm-version.h
diff --git a/include/nm-utils-internal.h b/include/nm-macros-internal.h
index 82c89dcc63..d510445f32 100644
--- a/include/nm-utils-internal.h
+++ b/include/nm-macros-internal.h
@@ -19,8 +19,8 @@
* (C) Copyright 2014 Red Hat, Inc.
*/
-#ifndef __NM_UTILS_INTERNAL_H__
-#define __NM_UTILS_INTERNAL_H__
+#ifndef __NM_MACROS_INTERNAL_H__
+#define __NM_MACROS_INTERNAL_H__
#include <glib.h>
@@ -191,4 +191,4 @@ nm_clear_g_source (guint *id)
/*****************************************************************************/
-#endif
+#endif /* __NM_MACROS_INTERNAL_H__ */
diff --git a/include/nm-test-utils.h b/include/nm-test-utils.h
index 3b5b946281..d666366098 100644
--- a/include/nm-test-utils.h
+++ b/include/nm-test-utils.h
@@ -92,7 +92,7 @@
#include <errno.h>
#include "nm-utils.h"
-#include "nm-utils-internal.h"
+#include "nm-macros-internal.h"
#include "nm-glib-compat.h"
#include "gsystem-local-alloc.h"
diff --git a/libnm-core/nm-keyfile-reader.c b/libnm-core/nm-keyfile-reader.c
index 4887e52486..7e2a8c123d 100644
--- a/libnm-core/nm-keyfile-reader.c
+++ b/libnm-core/nm-keyfile-reader.c
@@ -31,7 +31,7 @@
#include <glib/gi18n-lib.h>
#include "nm-core-internal.h"
-#include "nm-utils-internal.h"
+#include "nm-macros-internal.h"
#include "gsystem-local-alloc.h"
#include "nm-glib-compat.h"
#include "nm-keyfile-internal.h"
diff --git a/libnm-core/nm-setting-8021x.c b/libnm-core/nm-setting-8021x.c
index f355c18e70..8024624a2d 100644
--- a/libnm-core/nm-setting-8021x.c
+++ b/libnm-core/nm-setting-8021x.c
@@ -31,7 +31,7 @@
#include "nm-utils-private.h"
#include "nm-setting-private.h"
#include "nm-core-enum-types.h"
-#include "nm-utils-internal.h"
+#include "nm-macros-internal.h"
#include "gsystem-local-alloc.h"
/**
diff --git a/libnm-core/nm-utils.c b/libnm-core/nm-utils.c
index 12cdffb18d..bca343b9f0 100644
--- a/libnm-core/nm-utils.c
+++ b/libnm-core/nm-utils.c
@@ -37,7 +37,7 @@
#include "nm-setting-private.h"
#include "crypto.h"
#include "gsystem-local-alloc.h"
-#include "nm-utils-internal.h"
+#include "nm-macros-internal.h"
#include "nm-setting-bond.h"
#include "nm-setting-bridge.h"
diff --git a/libnm-core/tests/test-keyfile.c b/libnm-core/tests/test-keyfile.c
index 0f0548ad85..28d659f985 100644
--- a/libnm-core/tests/test-keyfile.c
+++ b/libnm-core/tests/test-keyfile.c
@@ -21,7 +21,7 @@
#include "config.h"
-#include "nm-utils-internal.h"
+#include "nm-macros-internal.h"
#include "nm-keyfile-utils.h"
#include "nm-keyfile-internal.h"
diff --git a/libnm-util/nm-setting-8021x.c b/libnm-util/nm-setting-8021x.c
index 1dc768c210..678d70ab71 100644
--- a/libnm-util/nm-setting-8021x.c
+++ b/libnm-util/nm-setting-8021x.c
@@ -33,7 +33,7 @@
#include "crypto.h"
#include "nm-utils-private.h"
#include "nm-setting-private.h"
-#include "nm-utils-internal.h"
+#include "nm-macros-internal.h"
/**
* SECTION:nm-setting-8021x
diff --git a/libnm-util/nm-utils.c b/libnm-util/nm-utils.c
index 022fa70f0e..d0c2ca31f8 100644
--- a/libnm-util/nm-utils.c
+++ b/libnm-util/nm-utils.c
@@ -37,7 +37,7 @@
#include "nm-dbus-glib-types.h"
#include "nm-setting-private.h"
#include "crypto.h"
-#include "nm-utils-internal.h"
+#include "nm-macros-internal.h"
/* Embed the commit id in the build binary */
static const char *const __nm_git_sha = STRLEN (NM_GIT_SHA) > 0 ? "NM_GIT_SHA:"NM_GIT_SHA : "";
diff --git a/src/dhcp-manager/nm-dhcp-dhclient-utils.c b/src/dhcp-manager/nm-dhcp-dhclient-utils.c
index 213d33a6a5..cec6d1350b 100644
--- a/src/dhcp-manager/nm-dhcp-dhclient-utils.c
+++ b/src/dhcp-manager/nm-dhcp-dhclient-utils.c
@@ -32,7 +32,7 @@
#include "nm-platform.h"
#include "NetworkManagerUtils.h"
#include "gsystem-local-alloc.h"
-#include "nm-utils-internal.h"
+#include "nm-macros-internal.h"
#define CLIENTID_TAG "send dhcp-client-identifier"
diff --git a/src/dhcp-manager/tests/test-dhcp-dhclient.c b/src/dhcp-manager/tests/test-dhcp-dhclient.c
index ffbc8360c7..df5eed341d 100644
--- a/src/dhcp-manager/tests/test-dhcp-dhclient.c
+++ b/src/dhcp-manager/tests/test-dhcp-dhclient.c
@@ -32,7 +32,7 @@
#include "nm-utils.h"
#include "nm-ip4-config.h"
#include "nm-platform.h"
-#include "nm-utils-internal.h"
+#include "nm-macros-internal.h"
#include "nm-logging.h"
#include "nm-test-utils.h"
diff --git a/src/nm-logging.h b/src/nm-logging.h
index be453a20b7..d02e16528f 100644
--- a/src/nm-logging.h
+++ b/src/nm-logging.h
@@ -29,7 +29,7 @@
#include <glib.h>
#include <glib-object.h>
-#include "nm-utils-internal.h"
+#include "nm-macros-internal.h"
/* Log domains */
typedef enum { /*< skip >*/
diff --git a/src/settings/plugins/ifcfg-rh/utils.c b/src/settings/plugins/ifcfg-rh/utils.c
index c57f2cfedf..87f4aba3e5 100644
--- a/src/settings/plugins/ifcfg-rh/utils.c
+++ b/src/settings/plugins/ifcfg-rh/utils.c
@@ -25,7 +25,7 @@
#include <string.h>
#include "nm-core-internal.h"
-#include "nm-utils-internal.h"
+#include "nm-macros-internal.h"
#include "NetworkManagerUtils.h"
#include "utils.h"