blob: 3b05111bdda3a99e5ca5667dcb81f5acefeed1b1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
#include "e.h"
EINTERN void wireless_gadget_init(void);
EINTERN void wireless_gadget_shutdown(void);
EINTERN void connman_init(void);
EINTERN void connman_shutdown(void);
EINTERN Eldbus_Connection *dbus_conn;
E_API E_Module_Api e_modapi =
{
E_MODULE_API_VERSION,
"Wireless"
};
E_API void *
e_modapi_init(E_Module *m)
{
if (!E_EFL_VERSION_MINIMUM(1, 17, 99)) return NULL;
dbus_conn = eldbus_connection_get(ELDBUS_CONNECTION_TYPE_SYSTEM);
connman_init();
wireless_gadget_init();
return m;
}
E_API int
e_modapi_shutdown(E_Module *m EINA_UNUSED)
{
wireless_gadget_shutdown();
connman_shutdown();
E_FREE_FUNC(dbus_conn, eldbus_connection_unref);
return 1;
}
|