Parcourir la source

dbus: Remove the confusing "ctrl_iface_" prefix from file names

The D-Bus interface does not really have anything to do with the
wpa_supplicant ctrl_iface interface and as such, this prefix in
dbus files is both confusing and unnecessarily. Make the file names
shorter by removing this prefix.
Jouni Malinen il y a 15 ans
Parent
commit
a206a29a54

+ 3 - 3
wpa_supplicant/Makefile

@@ -1028,7 +1028,7 @@ endif
 
 ifdef CONFIG_CTRL_IFACE_DBUS
 DBUS_CFLAGS += -DCONFIG_CTRL_IFACE_DBUS -DDBUS_API_SUBJECT_TO_CHANGE
-DBUS_OBJS += dbus/ctrl_iface_dbus.o dbus/ctrl_iface_dbus_handlers.o
+DBUS_OBJS += dbus/dbus.o dbus/dbus_handlers.o
 ifdef CONFIG_WPS
 DBUS_OBJS += dbus/dbus_handlers_wps.o
 endif
@@ -1056,8 +1056,8 @@ endif
 ifdef CONFIG_CTRL_IFACE_DBUS_NEW
 DBUS_CFLAGS += -DCONFIG_CTRL_IFACE_DBUS_NEW
 DBUS_OBJS ?= dbus/dbus_dict_helpers.o
-DBUS_OBJS += dbus/ctrl_iface_dbus_new_helpers.o
-DBUS_OBJS += dbus/ctrl_iface_dbus_new.o dbus/ctrl_iface_dbus_new_handlers.o
+DBUS_OBJS += dbus/dbus_new_helpers.o
+DBUS_OBJS += dbus/dbus_new.o dbus/dbus_new_handlers.o
 ifdef CONFIG_WPS
 DBUS_OBJS += dbus/dbus_new_handlers_wps.o
 endif

+ 5 - 5
wpa_supplicant/dbus/Makefile

@@ -64,11 +64,11 @@ DBUS_INCLUDE += -DDBUS_VERSION_MINOR=$(DBUS_VERSION_MINOR)
 CFLAGS += $(DBUS_INCLUDE)
 
 LIB_OBJS= \
-	ctrl_iface_dbus.o \
-	ctrl_iface_dbus_handlers.o \
-	ctrl_iface_dbus_new.o \
-	ctrl_iface_dbus_new_handlers.o \
-	ctrl_iface_dbus_new_helpers.o \
+	dbus.o \
+	dbus_handlers.o \
+	dbus_new.o \
+	dbus_new_handlers.o \
+	dbus_new_helpers.o \
 	dbus_dict_helpers.o
 
 ifdef CONFIG_WPS

+ 4 - 4
wpa_supplicant/dbus/ctrl_iface_dbus.c → wpa_supplicant/dbus/dbus.c

@@ -16,12 +16,12 @@
 
 #include "common.h"
 #include "eloop.h"
-#include "../config.h"
-#include "../wpa_supplicant_i.h"
 #include "drivers/driver.h"
 #include "wps/wps.h"
-#include "ctrl_iface_dbus.h"
-#include "ctrl_iface_dbus_handlers.h"
+#include "../config.h"
+#include "../wpa_supplicant_i.h"
+#include "dbus.h"
+#include "dbus_handlers.h"
 
 #define _DBUS_VERSION (DBUS_VERSION_MAJOR << 8 | DBUS_VERSION_MINOR)
 #define DBUS_VER(major, minor) ((major) << 8 | (minor))

+ 0 - 0
wpa_supplicant/dbus/ctrl_iface_dbus.h → wpa_supplicant/dbus/dbus.h


+ 7 - 7
wpa_supplicant/dbus/ctrl_iface_dbus_handlers.c → wpa_supplicant/dbus/dbus_handlers.c

@@ -15,18 +15,18 @@
 #include "includes.h"
 
 #include "common.h"
+#include "eap_peer/eap_methods.h"
+#include "common/ieee802_11_defs.h"
+#include "eapol_supp/eapol_supp_sm.h"
+#include "rsn_supp/wpa.h"
 #include "../config.h"
 #include "../wpa_supplicant_i.h"
 #include "../driver_i.h"
-#include "ctrl_iface_dbus.h"
-#include "ctrl_iface_dbus_handlers.h"
 #include "../notify.h"
-#include "eap_peer/eap_methods.h"
-#include "dbus_dict_helpers.h"
-#include "common/ieee802_11_defs.h"
 #include "../wpas_glue.h"
-#include "eapol_supp/eapol_supp_sm.h"
-#include "rsn_supp/wpa.h"
+#include "dbus.h"
+#include "dbus_handlers.h"
+#include "dbus_dict_helpers.h"
 
 extern int wpa_debug_level;
 extern int wpa_debug_show_keys;

+ 0 - 0
wpa_supplicant/dbus/ctrl_iface_dbus_handlers.h → wpa_supplicant/dbus/dbus_handlers.h


+ 2 - 2
wpa_supplicant/dbus/dbus_handlers_wps.c

@@ -18,8 +18,8 @@
 #include "../config.h"
 #include "../wpa_supplicant_i.h"
 #include "../wps_supplicant.h"
-#include "ctrl_iface_dbus.h"
-#include "ctrl_iface_dbus_handlers.h"
+#include "dbus.h"
+#include "dbus_handlers.h"
 
 /**
  * wpas_dbus_iface_wps_pbc - Request credentials using WPS PBC method

+ 5 - 5
wpa_supplicant/dbus/ctrl_iface_dbus_new.c → wpa_supplicant/dbus/dbus_new.c

@@ -16,14 +16,14 @@
 #include "includes.h"
 
 #include "common.h"
-#include "../config.h"
-#include "../wpa_supplicant_i.h"
 #include "drivers/driver.h"
 #include "wps/wps.h"
-#include "ctrl_iface_dbus_new_helpers.h"
+#include "../config.h"
+#include "../wpa_supplicant_i.h"
+#include "dbus_new_helpers.h"
 #include "dbus_dict_helpers.h"
-#include "ctrl_iface_dbus_new.h"
-#include "ctrl_iface_dbus_new_handlers.h"
+#include "dbus_new.h"
+#include "dbus_new_handlers.h"
 
 /**
  * wpas_dbus_set_path - Assign a dbus path to an interface

+ 0 - 0
wpa_supplicant/dbus/ctrl_iface_dbus_new.h → wpa_supplicant/dbus/dbus_new.h


+ 7 - 7
wpa_supplicant/dbus/ctrl_iface_dbus_new_handlers.c → wpa_supplicant/dbus/dbus_new_handlers.c

@@ -16,18 +16,18 @@
 #include "includes.h"
 
 #include "common.h"
+#include "common/ieee802_11_defs.h"
+#include "eap_peer/eap_methods.h"
+#include "eapol_supp/eapol_supp_sm.h"
 #include "../config.h"
 #include "../wpa_supplicant_i.h"
 #include "../driver_i.h"
-#include "ctrl_iface_dbus_new_helpers.h"
-#include "ctrl_iface_dbus_new.h"
-#include "ctrl_iface_dbus_new_handlers.h"
 #include "../notify.h"
-#include "eap_peer/eap_methods.h"
-#include "dbus_dict_helpers.h"
-#include "common/ieee802_11_defs.h"
 #include "../wpas_glue.h"
-#include "eapol_supp/eapol_supp_sm.h"
+#include "dbus_new_helpers.h"
+#include "dbus_new.h"
+#include "dbus_new_handlers.h"
+#include "dbus_dict_helpers.h"
 
 extern int wpa_debug_level;
 extern int wpa_debug_show_keys;

+ 0 - 0
wpa_supplicant/dbus/ctrl_iface_dbus_new_handlers.h → wpa_supplicant/dbus/dbus_new_handlers.h


+ 3 - 3
wpa_supplicant/dbus/dbus_new_handlers_wps.c

@@ -19,9 +19,9 @@
 #include "../config.h"
 #include "../wpa_supplicant_i.h"
 #include "../wps_supplicant.h"
-#include "ctrl_iface_dbus_new_helpers.h"
-#include "ctrl_iface_dbus_new.h"
-#include "ctrl_iface_dbus_new_handlers.h"
+#include "dbus_new_helpers.h"
+#include "dbus_new.h"
+#include "dbus_new_handlers.h"
 #include "dbus_dict_helpers.h"
 
 /**

+ 1 - 1
wpa_supplicant/dbus/ctrl_iface_dbus_new_helpers.c → wpa_supplicant/dbus/dbus_new_helpers.c

@@ -17,7 +17,7 @@
 
 #include "common.h"
 #include "eloop.h"
-#include "ctrl_iface_dbus_new_helpers.h"
+#include "dbus_new_helpers.h"
 
 /**
  * struct wpa_dbus_method_desc - DBus method description

+ 0 - 0
wpa_supplicant/dbus/ctrl_iface_dbus_new_helpers.h → wpa_supplicant/dbus/dbus_new_helpers.h