2014-10-30 06:26:49 +01:00
|
|
|
/*
|
|
|
|
*
|
|
|
|
* Wireless daemon for Linux
|
|
|
|
*
|
|
|
|
* Copyright (C) 2013-2014 Intel Corporation. All rights reserved.
|
|
|
|
*
|
|
|
|
* This library is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
|
|
* License as published by the Free Software Foundation; either
|
|
|
|
* version 2.1 of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This library is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
* Lesser General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
|
|
* License along with this library; if not, write to the Free Software
|
|
|
|
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
#define uninitialized_var(x) x = x
|
2016-05-11 22:52:43 +02:00
|
|
|
|
2019-05-18 00:05:52 +02:00
|
|
|
struct l_genl;
|
2018-08-18 06:23:19 +02:00
|
|
|
struct l_genl_family;
|
2016-11-02 21:25:10 +01:00
|
|
|
|
|
|
|
const struct l_settings *iwd_get_config(void);
|
2019-05-18 00:05:52 +02:00
|
|
|
struct l_genl *iwd_get_genl(void);
|
2017-05-03 19:53:51 +02:00
|
|
|
|
2018-08-18 06:23:19 +02:00
|
|
|
void netdev_shutdown(void);
|
|
|
|
|
2019-10-11 21:29:26 +02:00
|
|
|
const char *iwd_get_iface_whitelist(void);
|
|
|
|
const char *iwd_get_iface_blacklist(void);
|
|
|
|
|
2019-10-11 21:29:28 +02:00
|
|
|
const char *iwd_get_phy_whitelist(void);
|
|
|
|
const char *iwd_get_phy_blacklist(void);
|
|
|
|
|
2019-05-19 19:57:45 +02:00
|
|
|
struct iwd_module_desc {
|
|
|
|
const char *name;
|
|
|
|
int (*init)(void);
|
|
|
|
void (*exit)(void);
|
|
|
|
bool active;
|
|
|
|
} __attribute__((aligned(8)));
|
|
|
|
|
2019-08-07 23:33:19 +02:00
|
|
|
struct iwd_module_depends {
|
|
|
|
const char *self;
|
|
|
|
const char *target;
|
|
|
|
};
|
|
|
|
|
2019-05-19 19:57:45 +02:00
|
|
|
#define IWD_MODULE(name, init, exit) \
|
|
|
|
static struct iwd_module_desc __iwd_module_ ## name \
|
|
|
|
__attribute__((used, section("__iwd_module"), aligned(8))) = {\
|
|
|
|
#name, init, exit \
|
|
|
|
};
|
2019-08-07 23:33:19 +02:00
|
|
|
|
|
|
|
#define IWD_MODULE_DEPENDS(name, dep) \
|
|
|
|
static struct iwd_module_depends \
|
|
|
|
__iwd_module__##name_##dep \
|
|
|
|
__attribute__((used, section("__iwd_module_dep"), \
|
|
|
|
aligned(8))) = { \
|
|
|
|
.self = #name, \
|
|
|
|
.target = #dep, \
|
|
|
|
};
|
|
|
|
|
|
|
|
int iwd_modules_init();
|
|
|
|
void iwd_modules_exit();
|