diff options
author | Thomas Haller <thaller@redhat.com> | 2019-01-28 12:39:38 +0100 |
---|---|---|
committer | Thomas Haller <thaller@redhat.com> | 2019-02-01 17:02:57 +0100 |
commit | 0420fa1f2c176f5044ff4c17703f5775c43f5804 (patch) | |
tree | bec83dfbfc4e00f0542be4e1294c9e29ac8863f1 /libnm-core | |
parent | c8204377d6fce857461b014fc89f51dd427ff45f (diff) | |
download | NetworkManager-0420fa1f2c176f5044ff4c17703f5775c43f5804.tar.gz |
wifi-p2p: rename files for consistent Wi-Fi P2P naming
We named the types inconsistently:
- "p2p-wireless" ("libnm-core/nm-setting-p2p-wireless.h")
- "p2p" ("libnm/nm-p2p-peer.h")
- "p2p-wifi" ("src/devices/wifi/nm-device-p2p-wifi.h")
It seems to me, "libnm/nm-p2p-peer.h" should be qualified with a "Wi-Fi"
specific name. It's not just peer-to-peer, it's Wi-Fi P2P.
Yes, there is an inconsistency now, because there is already
"libnm/nm-access-point.h".
It seems to me (from looking at the internet), that the name "Wi-Fi P2P"
is more common than "P2P Wi-Fi" -- although both are used. There is also
the name "Wi-Fi Direct". But it's not clear which name should be
preferred here, so stick to "Wi-Fi P2P".
In this first commit only rename the files. The following commit will
rename the content.
Diffstat (limited to 'libnm-core')
-rw-r--r-- | libnm-core/meson.build | 4 | ||||
-rw-r--r-- | libnm-core/nm-core-enum-types.c.template | 4 | ||||
-rw-r--r-- | libnm-core/nm-core-internal.h | 8 | ||||
-rw-r--r-- | libnm-core/nm-setting-wifi-p2p.c (renamed from libnm-core/nm-setting-p2p-wireless.c) | 4 | ||||
-rw-r--r-- | libnm-core/nm-setting-wifi-p2p.h (renamed from libnm-core/nm-setting-p2p-wireless.h) | 0 |
5 files changed, 10 insertions, 10 deletions
diff --git a/libnm-core/meson.build b/libnm-core/meson.build index e615b3451e..89b8746e39 100644 --- a/libnm-core/meson.build +++ b/libnm-core/meson.build @@ -32,7 +32,6 @@ libnm_core_headers = files( 'nm-setting-ovs-interface.h', 'nm-setting-ovs-patch.h', 'nm-setting-ovs-port.h', - 'nm-setting-p2p-wireless.h', 'nm-setting-ppp.h', 'nm-setting-pppoe.h', 'nm-setting-proxy.h', @@ -46,6 +45,7 @@ libnm_core_headers = files( 'nm-setting-vlan.h', 'nm-setting-vpn.h', 'nm-setting-vxlan.h', + 'nm-setting-wifi-p2p.h', 'nm-setting-wimax.h', 'nm-setting-wired.h', 'nm-setting-wireless-security.h', @@ -88,7 +88,6 @@ libnm_core_settings_sources = files( 'nm-setting-ovs-interface.c', 'nm-setting-ovs-patch.c', 'nm-setting-ovs-port.c', - 'nm-setting-p2p-wireless.c', 'nm-setting-ppp.c', 'nm-setting-pppoe.c', 'nm-setting-proxy.c', @@ -102,6 +101,7 @@ libnm_core_settings_sources = files( 'nm-setting-vlan.c', 'nm-setting-vpn.c', 'nm-setting-vxlan.c', + 'nm-setting-wifi-p2p.c', 'nm-setting-wimax.c', 'nm-setting-wired.c', 'nm-setting-wireless-security.c', diff --git a/libnm-core/nm-core-enum-types.c.template b/libnm-core/nm-core-enum-types.c.template index 0edb97dcc7..2cef0307a1 100644 --- a/libnm-core/nm-core-enum-types.c.template +++ b/libnm-core/nm-core-enum-types.c.template @@ -4,7 +4,6 @@ #include "nm-core-enum-types.h" #include "nm-default.h" -#include "nm-version-macros.h" #include "nm-connection.h" #include "nm-core-types.h" #include "nm-dbus-interface.h" @@ -33,7 +32,6 @@ #include "nm-setting-ovs-interface.h" #include "nm-setting-ovs-patch.h" #include "nm-setting-ovs-port.h" -#include "nm-setting-p2p-wireless.h" #include "nm-setting-ppp.h" #include "nm-setting-pppoe.h" #include "nm-setting-proxy.h" @@ -45,6 +43,7 @@ #include "nm-setting-vlan.h" #include "nm-setting-vpn.h" #include "nm-setting-vxlan.h" +#include "nm-setting-wifi-p2p.h" #include "nm-setting-wimax.h" #include "nm-setting-wired.h" #include "nm-setting-wireless-security.h" @@ -53,6 +52,7 @@ #include "nm-setting.h" #include "nm-simple-connection.h" #include "nm-utils.h" +#include "nm-version-macros.h" #include "nm-version.h" #include "nm-vpn-dbus-interface.h" #include "nm-vpn-editor-plugin.h" diff --git a/libnm-core/nm-core-internal.h b/libnm-core/nm-core-internal.h index f73d728b7d..b3d664dcea 100644 --- a/libnm-core/nm-core-internal.h +++ b/libnm-core/nm-core-internal.h @@ -37,6 +37,8 @@ #include "nm-connection.h" #include "nm-core-enum-types.h" +#include "nm-core-types-internal.h" +#include "nm-meta-setting.h" #include "nm-setting-6lowpan.h" #include "nm-setting-8021x.h" #include "nm-setting-adsl.h" @@ -52,7 +54,6 @@ #include "nm-setting-gsm.h" #include "nm-setting-infiniband.h" #include "nm-setting-ip-tunnel.h" -#include "nm-setting-proxy.h" #include "nm-setting-ip4-config.h" #include "nm-setting-ip6-config.h" #include "nm-setting-macsec.h" @@ -63,9 +64,9 @@ #include "nm-setting-ovs-interface.h" #include "nm-setting-ovs-patch.h" #include "nm-setting-ovs-port.h" -#include "nm-setting-p2p-wireless.h" #include "nm-setting-ppp.h" #include "nm-setting-pppoe.h" +#include "nm-setting-proxy.h" #include "nm-setting-serial.h" #include "nm-setting-sriov.h" #include "nm-setting-tc-config.h" @@ -75,6 +76,7 @@ #include "nm-setting-vlan.h" #include "nm-setting-vpn.h" #include "nm-setting-vxlan.h" +#include "nm-setting-wifi-p2p.h" #include "nm-setting-wimax.h" #include "nm-setting-wired.h" #include "nm-setting-wireless-security.h" @@ -84,9 +86,7 @@ #include "nm-simple-connection.h" #include "nm-utils.h" #include "nm-vpn-dbus-interface.h" -#include "nm-core-types-internal.h" #include "nm-vpn-editor-plugin.h" -#include "nm-meta-setting.h" /* IEEE 802.1D-1998 timer values */ #define NM_BR_MIN_HELLO_TIME 1 diff --git a/libnm-core/nm-setting-p2p-wireless.c b/libnm-core/nm-setting-wifi-p2p.c index 8188cab5d2..4c679a99d6 100644 --- a/libnm-core/nm-setting-p2p-wireless.c +++ b/libnm-core/nm-setting-wifi-p2p.c @@ -19,7 +19,7 @@ #include "nm-default.h" -#include "nm-setting-p2p-wireless.h" +#include "nm-setting-wifi-p2p.h" #include <string.h> #include <net/ethernet.h> @@ -30,7 +30,7 @@ #include "nm-setting-private.h" /** - * SECTION:nm-setting-p2p-wireless + * SECTION:nm-setting-wifi-p2p * @short_description: Describes connection properties for 802.11 Wi-Fi P2P networks * * The #NMSettingP2PWireless object is a #NMSetting subclass that describes properties diff --git a/libnm-core/nm-setting-p2p-wireless.h b/libnm-core/nm-setting-wifi-p2p.h index 09ac934e31..09ac934e31 100644 --- a/libnm-core/nm-setting-p2p-wireless.h +++ b/libnm-core/nm-setting-wifi-p2p.h |