summaryrefslogtreecommitdiff
path: root/clients/tui
diff options
context:
space:
mode:
authorDan Winship <danw@redhat.com>2015-04-06 16:42:31 -0400
committerDan Winship <danw@redhat.com>2015-07-24 13:25:47 -0400
commit3452ee2a0e3d04a324e7b9cd153323a353d5c182 (patch)
treef87c48e6b2d2777ee893f9d6aeabd95ee97bd8ca /clients/tui
parentdd0e19895532504e6de615d18a761457ec685b58 (diff)
downloadNetworkManager-3452ee2a0e3d04a324e7b9cd153323a353d5c182.tar.gz
all: rename nm-glib-compat.h to nm-glib.h, use everywhere
Rather than randomly including one or more of <glib.h>, <glib-object.h>, and <gio/gio.h> everywhere (and forgetting to include "nm-glib-compat.h" most of the time), rename nm-glib-compat.h to nm-glib.h, include <gio/gio.h> from there, and then change all .c files in NM to include "nm-glib.h" rather than including the glib headers directly. (Public headers files still have to include the real glib headers, since nm-glib.h isn't installed...) Also, remove glib includes from header files that are already including a base object header file (which must itself already include the glib headers).
Diffstat (limited to 'clients/tui')
-rw-r--r--clients/tui/newt/nmt-newt-types.h4
-rw-r--r--clients/tui/newt/nmt-newt-utils.c2
-rw-r--r--clients/tui/newt/nmt-newt-utils.h3
-rw-r--r--clients/tui/nm-editor-bindings.c1
-rw-r--r--clients/tui/nmt-editor.c2
-rw-r--r--clients/tui/nmt-mac-entry.h1
-rw-r--r--clients/tui/nmt-page-bond.c2
-rw-r--r--clients/tui/nmt-page-bridge-port.c2
-rw-r--r--clients/tui/nmt-page-bridge.c2
-rw-r--r--clients/tui/nmt-page-dsl.c2
-rw-r--r--clients/tui/nmt-page-dsl.h1
-rw-r--r--clients/tui/nmt-page-ethernet.c2
-rw-r--r--clients/tui/nmt-page-infiniband.c2
-rw-r--r--clients/tui/nmt-page-ip4.c2
-rw-r--r--clients/tui/nmt-page-ip6.c2
-rw-r--r--clients/tui/nmt-page-ppp.c2
-rw-r--r--clients/tui/nmt-page-team-port.c2
-rw-r--r--clients/tui/nmt-page-team.c2
-rw-r--r--clients/tui/nmt-page-team.h1
-rw-r--r--clients/tui/nmt-page-vlan.c2
-rw-r--r--clients/tui/nmt-page-wifi.c2
-rw-r--r--clients/tui/nmt-route-editor.c2
-rw-r--r--clients/tui/nmt-utils.h2
-rw-r--r--clients/tui/nmtui.c2
-rw-r--r--clients/tui/vpn-helpers.c2
-rw-r--r--clients/tui/vpn-helpers.h3
26 files changed, 28 insertions, 24 deletions
diff --git a/clients/tui/newt/nmt-newt-types.h b/clients/tui/newt/nmt-newt-types.h
index 608f7ff6fa..775c3bc8ec 100644
--- a/clients/tui/newt/nmt-newt-types.h
+++ b/clients/tui/newt/nmt-newt-types.h
@@ -19,9 +19,9 @@
#ifndef NMT_NEWT_TYPES_H
#define NMT_NEWT_TYPES_H
-#include <glib-object.h>
#include <newt.h>
-#include "nm-glib-compat.h"
+
+#include "nm-glib.h"
G_BEGIN_DECLS
diff --git a/clients/tui/newt/nmt-newt-utils.c b/clients/tui/newt/nmt-newt-utils.c
index 70a65a8489..b405c9dbf9 100644
--- a/clients/tui/newt/nmt-newt-utils.c
+++ b/clients/tui/newt/nmt-newt-utils.c
@@ -30,7 +30,7 @@
#include <glib/gi18n-lib.h>
-#include "nm-glib-compat.h"
+#include "nm-glib.h"
#include "nmt-newt-utils.h"
static void
diff --git a/clients/tui/newt/nmt-newt-utils.h b/clients/tui/newt/nmt-newt-utils.h
index 3b37868a0d..7a3b677f51 100644
--- a/clients/tui/newt/nmt-newt-utils.h
+++ b/clients/tui/newt/nmt-newt-utils.h
@@ -20,7 +20,8 @@
#define NMT_NEWT_UTILS_H
#include <newt.h>
-#include <glib.h>
+
+#include "nm-glib.h"
G_BEGIN_DECLS
diff --git a/clients/tui/nm-editor-bindings.c b/clients/tui/nm-editor-bindings.c
index 9218c31f52..a21ed66672 100644
--- a/clients/tui/nm-editor-bindings.c
+++ b/clients/tui/nm-editor-bindings.c
@@ -33,7 +33,6 @@
#include <string.h>
#include "nm-editor-bindings.h"
-#include "nm-gvaluearray-compat.h"
static void
value_transform_string_int (const GValue *src_value,
diff --git a/clients/tui/nmt-editor.c b/clients/tui/nmt-editor.c
index abc9286637..a0c15343f3 100644
--- a/clients/tui/nmt-editor.c
+++ b/clients/tui/nmt-editor.c
@@ -27,10 +27,10 @@
#include "nmt-editor.h"
-#include <glib.h>
#include <glib/gi18n-lib.h>
#include <nm-utils.h>
+#include "nm-glib.h"
#include "nmtui.h"
#include "nm-editor-utils.h"
diff --git a/clients/tui/nmt-mac-entry.h b/clients/tui/nmt-mac-entry.h
index 2e3e6cd1f7..2852de8de1 100644
--- a/clients/tui/nmt-mac-entry.h
+++ b/clients/tui/nmt-mac-entry.h
@@ -19,6 +19,7 @@
#ifndef NMT_MAC_ENTRY_H
#define NMT_MAC_ENTRY_H
+#include "nm-glib.h"
#include "nm-utils.h"
#include "nmt-newt.h"
diff --git a/clients/tui/nmt-page-bond.c b/clients/tui/nmt-page-bond.c
index b043b513de..89e10cf539 100644
--- a/clients/tui/nmt-page-bond.c
+++ b/clients/tui/nmt-page-bond.c
@@ -27,9 +27,9 @@
#include "config.h"
-#include <glib.h>
#include <glib/gi18n-lib.h>
+#include "nm-glib.h"
#include "nmt-page-bond.h"
#include "nmt-address-list.h"
diff --git a/clients/tui/nmt-page-bridge-port.c b/clients/tui/nmt-page-bridge-port.c
index c9ef14ed86..ee18ba5fdd 100644
--- a/clients/tui/nmt-page-bridge-port.c
+++ b/clients/tui/nmt-page-bridge-port.c
@@ -23,9 +23,9 @@
#include "config.h"
-#include <glib.h>
#include <glib/gi18n-lib.h>
+#include "nm-glib.h"
#include "nmt-page-bridge-port.h"
G_DEFINE_TYPE (NmtPageBridgePort, nmt_page_bridge_port, NMT_TYPE_EDITOR_PAGE)
diff --git a/clients/tui/nmt-page-bridge.c b/clients/tui/nmt-page-bridge.c
index ee42d78339..84491b6a5f 100644
--- a/clients/tui/nmt-page-bridge.c
+++ b/clients/tui/nmt-page-bridge.c
@@ -23,9 +23,9 @@
#include "config.h"
-#include <glib.h>
#include <glib/gi18n-lib.h>
+#include "nm-glib.h"
#include "nmt-page-bridge.h"
#include "nmt-address-list.h"
diff --git a/clients/tui/nmt-page-dsl.c b/clients/tui/nmt-page-dsl.c
index 1d476aa01b..0b0f1b93e6 100644
--- a/clients/tui/nmt-page-dsl.c
+++ b/clients/tui/nmt-page-dsl.c
@@ -23,9 +23,9 @@
#include "config.h"
-#include <glib.h>
#include <glib/gi18n-lib.h>
+#include "nm-glib.h"
#include "nmt-page-dsl.h"
#include "nmt-page-ethernet.h"
#include "nmt-page-ppp.h"
diff --git a/clients/tui/nmt-page-dsl.h b/clients/tui/nmt-page-dsl.h
index b938ead238..8da0e05e91 100644
--- a/clients/tui/nmt-page-dsl.h
+++ b/clients/tui/nmt-page-dsl.h
@@ -19,6 +19,7 @@
#ifndef NMT_PAGE_DSL_H
#define NMT_PAGE_DSL_H
+#include "nm-glib.h"
#include "nmt-editor-page-device.h"
G_BEGIN_DECLS
diff --git a/clients/tui/nmt-page-ethernet.c b/clients/tui/nmt-page-ethernet.c
index cf4ef2c458..cec0491a6d 100644
--- a/clients/tui/nmt-page-ethernet.c
+++ b/clients/tui/nmt-page-ethernet.c
@@ -23,9 +23,9 @@
#include "config.h"
-#include <glib.h>
#include <glib/gi18n-lib.h>
+#include "nm-glib.h"
#include "nmt-page-ethernet.h"
#include "nmt-mac-entry.h"
#include "nmt-mtu-entry.h"
diff --git a/clients/tui/nmt-page-infiniband.c b/clients/tui/nmt-page-infiniband.c
index f39b0b84fd..ecc5dc311a 100644
--- a/clients/tui/nmt-page-infiniband.c
+++ b/clients/tui/nmt-page-infiniband.c
@@ -23,9 +23,9 @@
#include "config.h"
-#include <glib.h>
#include <glib/gi18n-lib.h>
+#include "nm-glib.h"
#include "nmt-page-infiniband.h"
#include "nmt-mtu-entry.h"
diff --git a/clients/tui/nmt-page-ip4.c b/clients/tui/nmt-page-ip4.c
index df3f0b6474..366a391973 100644
--- a/clients/tui/nmt-page-ip4.c
+++ b/clients/tui/nmt-page-ip4.c
@@ -25,9 +25,9 @@
#include <stdlib.h>
-#include <glib.h>
#include <glib/gi18n-lib.h>
+#include "nm-glib.h"
#include "nmt-page-ip4.h"
#include "nmt-ip-entry.h"
#include "nmt-address-list.h"
diff --git a/clients/tui/nmt-page-ip6.c b/clients/tui/nmt-page-ip6.c
index 1513dbfa08..ea8314d7f2 100644
--- a/clients/tui/nmt-page-ip6.c
+++ b/clients/tui/nmt-page-ip6.c
@@ -25,9 +25,9 @@
#include <stdlib.h>
-#include <glib.h>
#include <glib/gi18n-lib.h>
+#include "nm-glib.h"
#include "nmt-page-ip6.h"
#include "nmt-ip-entry.h"
#include "nmt-address-list.h"
diff --git a/clients/tui/nmt-page-ppp.c b/clients/tui/nmt-page-ppp.c
index cec36549dc..85690e4e67 100644
--- a/clients/tui/nmt-page-ppp.c
+++ b/clients/tui/nmt-page-ppp.c
@@ -25,9 +25,9 @@
#include <stdlib.h>
-#include <glib.h>
#include <glib/gi18n-lib.h>
+#include "nm-glib.h"
#include "nmt-page-ppp.h"
#include "nmt-newt-section.h"
#include "nmt-newt-separator.h"
diff --git a/clients/tui/nmt-page-team-port.c b/clients/tui/nmt-page-team-port.c
index 645dc9d37d..a571924ae1 100644
--- a/clients/tui/nmt-page-team-port.c
+++ b/clients/tui/nmt-page-team-port.c
@@ -23,9 +23,9 @@
#include "config.h"
-#include <glib.h>
#include <glib/gi18n-lib.h>
+#include "nm-glib.h"
#include "nmt-page-team-port.h"
G_DEFINE_TYPE (NmtPageTeamPort, nmt_page_team_port, NMT_TYPE_EDITOR_PAGE)
diff --git a/clients/tui/nmt-page-team.c b/clients/tui/nmt-page-team.c
index e520b02a3c..b7664943fd 100644
--- a/clients/tui/nmt-page-team.c
+++ b/clients/tui/nmt-page-team.c
@@ -23,9 +23,9 @@
#include "config.h"
-#include <glib.h>
#include <glib/gi18n-lib.h>
+#include "nm-glib.h"
#include "nmt-page-team.h"
#include "nmt-slave-list.h"
diff --git a/clients/tui/nmt-page-team.h b/clients/tui/nmt-page-team.h
index 2d8bf07ad7..95a0e454d3 100644
--- a/clients/tui/nmt-page-team.h
+++ b/clients/tui/nmt-page-team.h
@@ -19,6 +19,7 @@
#ifndef NMT_PAGE_TEAM_H
#define NMT_PAGE_TEAM_H
+#include "nm-glib.h"
#include "nmt-editor-page-device.h"
G_BEGIN_DECLS
diff --git a/clients/tui/nmt-page-vlan.c b/clients/tui/nmt-page-vlan.c
index 9b9c8f52af..fefb244b15 100644
--- a/clients/tui/nmt-page-vlan.c
+++ b/clients/tui/nmt-page-vlan.c
@@ -23,9 +23,9 @@
#include "config.h"
-#include <glib.h>
#include <glib/gi18n-lib.h>
+#include "nm-glib.h"
#include "nm-editor-bindings.h"
#include "nmt-page-vlan.h"
diff --git a/clients/tui/nmt-page-wifi.c b/clients/tui/nmt-page-wifi.c
index 9cd20abf32..cf593f0108 100644
--- a/clients/tui/nmt-page-wifi.c
+++ b/clients/tui/nmt-page-wifi.c
@@ -29,9 +29,9 @@
#include <stdlib.h>
-#include <glib.h>
#include <glib/gi18n-lib.h>
+#include "nm-glib.h"
#include "nmt-page-wifi.h"
#include "nmt-mac-entry.h"
#include "nmt-mtu-entry.h"
diff --git a/clients/tui/nmt-route-editor.c b/clients/tui/nmt-route-editor.c
index 77bbec76de..156f7ad085 100644
--- a/clients/tui/nmt-route-editor.c
+++ b/clients/tui/nmt-route-editor.c
@@ -27,9 +27,9 @@
#include "config.h"
-#include <glib.h>
#include <glib/gi18n-lib.h>
+#include "nm-glib.h"
#include "nmt-route-editor.h"
#include "nmt-route-table.h"
diff --git a/clients/tui/nmt-utils.h b/clients/tui/nmt-utils.h
index 7e24fcab19..cb7e632aae 100644
--- a/clients/tui/nmt-utils.h
+++ b/clients/tui/nmt-utils.h
@@ -19,7 +19,7 @@
#ifndef NMT_UTILS_H
#define NMT_UTILS_H
-#include <glib-object.h>
+#include "nm-glib.h"
G_BEGIN_DECLS
diff --git a/clients/tui/nmtui.c b/clients/tui/nmtui.c
index 0fac98ebc4..3519d5b9e0 100644
--- a/clients/tui/nmtui.c
+++ b/clients/tui/nmtui.c
@@ -30,11 +30,11 @@
#include <stdlib.h>
#include <string.h>
-#include <glib.h>
#include <glib/gi18n-lib.h>
#include <NetworkManager.h>
+#include "nm-glib.h"
#include "nmt-newt.h"
#include "nm-editor-bindings.h"
diff --git a/clients/tui/vpn-helpers.c b/clients/tui/vpn-helpers.c
index ab6469183c..be8f538463 100644
--- a/clients/tui/vpn-helpers.c
+++ b/clients/tui/vpn-helpers.c
@@ -31,7 +31,6 @@
#include "config.h"
#include <string.h>
-#include <glib.h>
#include <gmodule.h>
#include <glib/gi18n.h>
@@ -39,6 +38,7 @@
#include <nm-setting-connection.h>
#include <nm-setting-vpn.h>
+#include "nm-glib.h"
#include "vpn-helpers.h"
#define NM_VPN_API_SUBJECT_TO_CHANGE
diff --git a/clients/tui/vpn-helpers.h b/clients/tui/vpn-helpers.h
index 28019ca9c8..3bb26c6d76 100644
--- a/clients/tui/vpn-helpers.h
+++ b/clients/tui/vpn-helpers.h
@@ -19,12 +19,13 @@
#ifndef _VPN_HELPERS_H_
#define _VPN_HELPERS_H_
-#include <glib.h>
#include <nm-connection.h>
#define NM_VPN_API_SUBJECT_TO_CHANGE
#include <nm-vpn-plugin-ui-interface.h>
+#include "nm-glib.h"
+
GHashTable *vpn_get_plugins (GError **error);
NMVpnPluginUiInterface *vpn_get_plugin_by_service (const char *service);