device: Move device_init/device_exit to iwd.h

This commit is contained in:
Denis Kenzior 2018-08-14 14:11:52 -05:00
parent 47beec30f9
commit 1f512ff85c
4 changed files with 4 additions and 7 deletions

View File

@ -2757,7 +2757,7 @@ bool device_init(void)
return true;
}
bool device_exit(void)
void device_exit(void)
{
if (!l_queue_isempty(device_list))
l_warn("device_list isn't empty!");
@ -2768,6 +2768,4 @@ bool device_exit(void)
watchlist_destroy(&device_watches);
l_dbus_unregister_interface(dbus_get_bus(), IWD_DEVICE_INTERFACE);
return true;
}

View File

@ -90,6 +90,3 @@ int device_disconnect(struct device *device);
struct device *device_create(struct wiphy *wiphy, struct netdev *netdev);
void device_remove(struct device *device);
bool device_init(void);
bool device_exit(void);

View File

@ -43,3 +43,6 @@ bool wsc_exit();
bool known_networks_init(void);
void known_networks_exit(void);
bool device_init(void);
void device_exit(void);

View File

@ -35,7 +35,6 @@
#include "src/iwd.h"
#include "src/netdev.h"
#include "src/device.h"
#include "src/wiphy.h"
#include "src/dbus.h"
#include "src/eap.h"