| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131 |
- /**
- * @file modules.h
- * @author Ambroz Bizjak <ambrop7@gmail.com>
- *
- * @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 <stddef.h>
- #include <ncd/NCDModule.h>
- 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_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_spawn;
- extern const struct NCDModuleGroup ncdmodule_call;
- 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_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_spawn,
- &ncdmodule_call,
- &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
|