/** * @file modules.h * @author Ambroz Bizjak * * @section LICENSE * * This file is part of BadVPN. * * BadVPN is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 * as published by the Free Software Foundation. * * BadVPN 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 General Public License for more details. * * You should have received a copy of the GNU General Public License along * with this program; if not, write to the Free Software Foundation, Inc., * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ #ifndef BADVPN_NCD_MODULES_MODULES_H #define BADVPN_NCD_MODULES_MODULES_H #include #include extern const struct NCDModuleGroup ncdmodule_var; extern const struct NCDModuleGroup ncdmodule_list; extern const struct NCDModuleGroup ncdmodule_depend; extern const struct NCDModuleGroup ncdmodule_multidepend; extern const struct NCDModuleGroup ncdmodule_dynamic_depend; extern const struct NCDModuleGroup ncdmodule_concat; extern const struct NCDModuleGroup ncdmodule_concatv; extern const struct NCDModuleGroup ncdmodule_if; extern const struct NCDModuleGroup ncdmodule_strcmp; extern const struct NCDModuleGroup ncdmodule_regex_match; extern const struct NCDModuleGroup ncdmodule_logical; extern const struct NCDModuleGroup ncdmodule_sleep; extern const struct NCDModuleGroup ncdmodule_print; extern const struct NCDModuleGroup ncdmodule_blocker; extern const struct NCDModuleGroup ncdmodule_ip_in_network; extern const struct NCDModuleGroup ncdmodule_run; extern const struct NCDModuleGroup ncdmodule_runonce; extern const struct NCDModuleGroup ncdmodule_daemon; extern const struct NCDModuleGroup ncdmodule_spawn; extern const struct NCDModuleGroup ncdmodule_call; extern const struct NCDModuleGroup ncdmodule_imperative; extern const struct NCDModuleGroup ncdmodule_ref; extern const struct NCDModuleGroup ncdmodule_index; extern const struct NCDModuleGroup ncdmodule_alias; extern const struct NCDModuleGroup ncdmodule_process_manager; extern const struct NCDModuleGroup ncdmodule_ondemand; extern const struct NCDModuleGroup ncdmodule_foreach; extern const struct NCDModuleGroup ncdmodule_choose; extern const struct NCDModuleGroup ncdmodule_net_backend_waitdevice; extern const struct NCDModuleGroup ncdmodule_net_backend_waitlink; extern const struct NCDModuleGroup ncdmodule_net_backend_badvpn; extern const struct NCDModuleGroup ncdmodule_net_backend_wpa_supplicant; #ifdef BADVPN_USE_LINUX_RFKILL extern const struct NCDModuleGroup ncdmodule_net_backend_rfkill; #endif extern const struct NCDModuleGroup ncdmodule_net_up; extern const struct NCDModuleGroup ncdmodule_net_dns; extern const struct NCDModuleGroup ncdmodule_net_iptables; extern const struct NCDModuleGroup ncdmodule_net_ipv4_addr; extern const struct NCDModuleGroup ncdmodule_net_ipv4_route; extern const struct NCDModuleGroup ncdmodule_net_ipv4_dhcp; extern const struct NCDModuleGroup ncdmodule_net_ipv4_arp_probe; extern const struct NCDModuleGroup ncdmodule_net_watch_interfaces; extern const struct NCDModuleGroup ncdmodule_sys_watch_input; extern const struct NCDModuleGroup ncdmodule_sys_watch_usb; #ifdef BADVPN_USE_LINUX_INPUT extern const struct NCDModuleGroup ncdmodule_sys_evdev; #endif #ifdef BADVPN_USE_INOTIFY extern const struct NCDModuleGroup ncdmodule_sys_watch_directory; #endif static const struct NCDModuleGroup *ncd_modules[] = { &ncdmodule_var, &ncdmodule_list, &ncdmodule_depend, &ncdmodule_multidepend, &ncdmodule_dynamic_depend, &ncdmodule_concat, &ncdmodule_concatv, &ncdmodule_if, &ncdmodule_strcmp, &ncdmodule_regex_match, &ncdmodule_logical, &ncdmodule_sleep, &ncdmodule_print, &ncdmodule_blocker, &ncdmodule_ip_in_network, &ncdmodule_run, &ncdmodule_runonce, &ncdmodule_daemon, &ncdmodule_spawn, &ncdmodule_call, &ncdmodule_imperative, &ncdmodule_ref, &ncdmodule_index, &ncdmodule_alias, &ncdmodule_process_manager, &ncdmodule_ondemand, &ncdmodule_foreach, &ncdmodule_choose, &ncdmodule_net_backend_waitdevice, &ncdmodule_net_backend_waitlink, &ncdmodule_net_backend_badvpn, &ncdmodule_net_backend_wpa_supplicant, #ifdef BADVPN_USE_LINUX_RFKILL &ncdmodule_net_backend_rfkill, #endif &ncdmodule_net_up, &ncdmodule_net_dns, &ncdmodule_net_iptables, &ncdmodule_net_ipv4_addr, &ncdmodule_net_ipv4_route, &ncdmodule_net_ipv4_dhcp, &ncdmodule_net_ipv4_arp_probe, &ncdmodule_net_watch_interfaces, &ncdmodule_sys_watch_input, &ncdmodule_sys_watch_usb, #ifdef BADVPN_USE_LINUX_INPUT &ncdmodule_sys_evdev, #endif #ifdef BADVPN_USE_INOTIFY &ncdmodule_sys_watch_directory, #endif NULL }; #endif