dbus: Do not include libdbus dbus/dbus.h into dbus_{old,new}.h

These header files are included outside the dbus subdirectory and there
is not really any need to force the libdbus dbus/dbus.h header file to
be included into these files.
This commit is contained in:
Jouni Malinen 2010-01-01 18:20:05 +02:00
parent 36b5c6871c
commit bad0dc3c0c
6 changed files with 4 additions and 7 deletions

View file

@ -83,8 +83,6 @@ struct wpas_dbus_callbacks {
#ifdef CONFIG_CTRL_IFACE_DBUS_NEW #ifdef CONFIG_CTRL_IFACE_DBUS_NEW
#include <dbus/dbus.h>
#define WPAS_DBUS_OBJECT_PATH_MAX 150 #define WPAS_DBUS_OBJECT_PATH_MAX 150
#define WPAS_DBUS_NEW_SERVICE "fi.w1.wpa_supplicant1" #define WPAS_DBUS_NEW_SERVICE "fi.w1.wpa_supplicant1"

View file

@ -13,6 +13,7 @@
*/ */
#include "includes.h" #include "includes.h"
#include <dbus/dbus.h>
#include "common.h" #include "common.h"
#include "eloop.h" #include "eloop.h"

View file

@ -19,8 +19,6 @@ struct wps_credential;
#ifdef CONFIG_CTRL_IFACE_DBUS #ifdef CONFIG_CTRL_IFACE_DBUS
#include <dbus/dbus.h>
#define WPAS_DBUS_OBJECT_PATH_MAX 150 #define WPAS_DBUS_OBJECT_PATH_MAX 150
#define WPAS_DBUS_SERVICE "fi.epitest.hostap.WPASupplicant" #define WPAS_DBUS_SERVICE "fi.epitest.hostap.WPASupplicant"
@ -99,9 +97,6 @@ const char *wpa_supplicant_get_dbus_path(struct wpa_supplicant *wpa_s);
struct wpa_supplicant * wpa_supplicant_get_iface_by_dbus_path( struct wpa_supplicant * wpa_supplicant_get_iface_by_dbus_path(
struct wpa_global *global, const char *path); struct wpa_global *global, const char *path);
DBusMessage * wpas_dbus_new_invalid_iface_error(DBusMessage *message);
DBusMessage * wpas_dbus_new_invalid_network_error(DBusMessage *message);
#else /* CONFIG_CTRL_IFACE_DBUS */ #else /* CONFIG_CTRL_IFACE_DBUS */
static inline void static inline void

View file

@ -13,6 +13,7 @@
*/ */
#include "includes.h" #include "includes.h"
#include <dbus/dbus.h>
#include "common.h" #include "common.h"
#include "eap_peer/eap_methods.h" #include "eap_peer/eap_methods.h"

View file

@ -16,6 +16,7 @@
#define CTRL_IFACE_DBUS_HANDLERS_H #define CTRL_IFACE_DBUS_HANDLERS_H
DBusMessage * wpas_dbus_new_invalid_iface_error(DBusMessage *message); DBusMessage * wpas_dbus_new_invalid_iface_error(DBusMessage *message);
DBusMessage * wpas_dbus_new_invalid_network_error(DBusMessage *message);
DBusMessage * wpas_dbus_global_add_interface(DBusMessage *message, DBusMessage * wpas_dbus_global_add_interface(DBusMessage *message,
struct wpa_global *global); struct wpa_global *global);

View file

@ -13,6 +13,7 @@
*/ */
#include "includes.h" #include "includes.h"
#include <dbus/dbus.h>
#include "common.h" #include "common.h"
#include "../config.h" #include "../config.h"