modules.h 3.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  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_concatv;
  32. extern const struct NCDModuleGroup ncdmodule_concatlist;
  33. extern const struct NCDModuleGroup ncdmodule_if;
  34. extern const struct NCDModuleGroup ncdmodule_strcmp;
  35. extern const struct NCDModuleGroup ncdmodule_logical;
  36. extern const struct NCDModuleGroup ncdmodule_sleep;
  37. extern const struct NCDModuleGroup ncdmodule_print;
  38. extern const struct NCDModuleGroup ncdmodule_ip_in_network;
  39. extern const struct NCDModuleGroup ncdmodule_run;
  40. extern const struct NCDModuleGroup ncdmodule_net_backend_waitdevice;
  41. extern const struct NCDModuleGroup ncdmodule_net_backend_waitlink;
  42. extern const struct NCDModuleGroup ncdmodule_net_backend_badvpn;
  43. extern const struct NCDModuleGroup ncdmodule_net_backend_wpa_supplicant;
  44. #ifdef BADVPN_USE_LINUX_RFKILL
  45. extern const struct NCDModuleGroup ncdmodule_net_backend_rfkill;
  46. #endif
  47. extern const struct NCDModuleGroup ncdmodule_net_up;
  48. extern const struct NCDModuleGroup ncdmodule_net_dns;
  49. extern const struct NCDModuleGroup ncdmodule_net_iptables;
  50. extern const struct NCDModuleGroup ncdmodule_net_ipv4_addr;
  51. extern const struct NCDModuleGroup ncdmodule_net_ipv4_route;
  52. extern const struct NCDModuleGroup ncdmodule_net_ipv4_dhcp;
  53. static const struct NCDModuleGroup *ncd_modules[] = {
  54. &ncdmodule_var,
  55. &ncdmodule_list,
  56. &ncdmodule_depend,
  57. &ncdmodule_multidepend,
  58. &ncdmodule_concat,
  59. &ncdmodule_concatv,
  60. &ncdmodule_concatlist,
  61. &ncdmodule_if,
  62. &ncdmodule_strcmp,
  63. &ncdmodule_logical,
  64. &ncdmodule_sleep,
  65. &ncdmodule_print,
  66. &ncdmodule_ip_in_network,
  67. &ncdmodule_run,
  68. &ncdmodule_net_backend_waitdevice,
  69. &ncdmodule_net_backend_waitlink,
  70. &ncdmodule_net_backend_badvpn,
  71. &ncdmodule_net_backend_wpa_supplicant,
  72. #ifdef BADVPN_USE_LINUX_RFKILL
  73. &ncdmodule_net_backend_rfkill,
  74. #endif
  75. &ncdmodule_net_up,
  76. &ncdmodule_net_dns,
  77. &ncdmodule_net_iptables,
  78. &ncdmodule_net_ipv4_addr,
  79. &ncdmodule_net_ipv4_route,
  80. &ncdmodule_net_ipv4_dhcp,
  81. NULL
  82. };
  83. #endif