modules.h 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. /**
  2. * @file modules.h
  3. * @author Ambroz Bizjak <ambrop7@gmail.com>
  4. *
  5. * @section LICENSE
  6. *
  7. * This file is part of BadVPN.
  8. *
  9. * BadVPN is free software: you can redistribute it and/or modify
  10. * it under the terms of the GNU General Public License version 2
  11. * as published by the Free Software Foundation.
  12. *
  13. * BadVPN is distributed in the hope that it will be useful,
  14. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  15. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  16. * GNU General Public License for more details.
  17. *
  18. * You should have received a copy of the GNU General Public License along
  19. * with this program; if not, write to the Free Software Foundation, Inc.,
  20. * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
  21. */
  22. #ifndef BADVPN_NCD_MODULES_MODULES_H
  23. #define BADVPN_NCD_MODULES_MODULES_H
  24. #include <stddef.h>
  25. #include <ncd/NCDModule.h>
  26. extern const struct NCDModuleGroup ncdmodule_var;
  27. extern const struct NCDModuleGroup ncdmodule_list;
  28. extern const struct NCDModuleGroup ncdmodule_depend;
  29. extern const struct NCDModuleGroup ncdmodule_multidepend;
  30. extern const struct NCDModuleGroup ncdmodule_concat;
  31. extern const struct NCDModuleGroup ncdmodule_concatlist;
  32. extern const struct NCDModuleGroup ncdmodule_if;
  33. extern const struct NCDModuleGroup ncdmodule_strcmp;
  34. extern const struct NCDModuleGroup ncdmodule_logical;
  35. extern const struct NCDModuleGroup ncdmodule_ip_in_network;
  36. extern const struct NCDModuleGroup ncdmodule_run;
  37. extern const struct NCDModuleGroup ncdmodule_net_backend_physical;
  38. extern const struct NCDModuleGroup ncdmodule_net_backend_waitdevice;
  39. extern const struct NCDModuleGroup ncdmodule_net_backend_badvpn;
  40. extern const struct NCDModuleGroup ncdmodule_net_backend_wpa_supplicant;
  41. extern const struct NCDModuleGroup ncdmodule_net_backend_rfkill;
  42. extern const struct NCDModuleGroup ncdmodule_net_dns;
  43. extern const struct NCDModuleGroup ncdmodule_net_iptables;
  44. extern const struct NCDModuleGroup ncdmodule_net_ipv4_addr;
  45. extern const struct NCDModuleGroup ncdmodule_net_ipv4_route;
  46. extern const struct NCDModuleGroup ncdmodule_net_ipv4_dhcp;
  47. static const struct NCDModuleGroup *ncd_modules[] = {
  48. &ncdmodule_var,
  49. &ncdmodule_list,
  50. &ncdmodule_depend,
  51. &ncdmodule_multidepend,
  52. &ncdmodule_concat,
  53. &ncdmodule_concatlist,
  54. &ncdmodule_if,
  55. &ncdmodule_strcmp,
  56. &ncdmodule_logical,
  57. &ncdmodule_ip_in_network,
  58. &ncdmodule_run,
  59. &ncdmodule_net_backend_physical,
  60. &ncdmodule_net_backend_waitdevice,
  61. &ncdmodule_net_backend_badvpn,
  62. &ncdmodule_net_backend_wpa_supplicant,
  63. &ncdmodule_net_backend_rfkill,
  64. &ncdmodule_net_dns,
  65. &ncdmodule_net_iptables,
  66. &ncdmodule_net_ipv4_addr,
  67. &ncdmodule_net_ipv4_route,
  68. &ncdmodule_net_ipv4_dhcp,
  69. NULL
  70. };
  71. #endif