modules.h 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  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_concat;
  30. extern const struct NCDModuleGroup ncdmodule_if;
  31. extern const struct NCDModuleGroup ncdmodule_strcmp;
  32. extern const struct NCDModuleGroup ncdmodule_net_backend_physical;
  33. extern const struct NCDModuleGroup ncdmodule_net_backend_badvpn;
  34. extern const struct NCDModuleGroup ncdmodule_net_dns;
  35. extern const struct NCDModuleGroup ncdmodule_net_iptables;
  36. extern const struct NCDModuleGroup ncdmodule_net_ipv4_addr;
  37. extern const struct NCDModuleGroup ncdmodule_net_ipv4_route;
  38. extern const struct NCDModuleGroup ncdmodule_net_ipv4_dhcp;
  39. static const struct NCDModuleGroup *ncd_modules[] = {
  40. &ncdmodule_var,
  41. &ncdmodule_list,
  42. &ncdmodule_depend,
  43. &ncdmodule_concat,
  44. &ncdmodule_if,
  45. &ncdmodule_strcmp,
  46. &ncdmodule_net_backend_physical,
  47. &ncdmodule_net_backend_badvpn,
  48. &ncdmodule_net_dns,
  49. &ncdmodule_net_iptables,
  50. &ncdmodule_net_ipv4_addr,
  51. &ncdmodule_net_ipv4_route,
  52. &ncdmodule_net_ipv4_dhcp,
  53. NULL
  54. };
  55. #endif