conftest.h 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. /*
  2. * Copyright (C) 2010 Martin Willi
  3. * Copyright (C) 2010 revosec AG
  4. *
  5. * This program is free software; you can redistribute it and/or modify it
  6. * under the terms of the GNU General Public License as published by the
  7. * Free Software Foundation; either version 2 of the License, or (at your
  8. * option) any later version. See <http://www.fsf.org/copyleft/gpl.txt>.
  9. *
  10. * This program is distributed in the hope that it will be useful, but
  11. * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
  12. * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
  13. * for more details.
  14. */
  15. /**
  16. * @defgroup conftest conftest
  17. */
  18. #ifndef CONFTEST_H_
  19. #define CONFTEST_H_
  20. #include <library.h>
  21. #include <daemon.h>
  22. #include <credentials/sets/mem_cred.h>
  23. #include "config.h"
  24. #include "actions.h"
  25. typedef struct conftest_t conftest_t;
  26. /**
  27. * Global conftest variables.
  28. */
  29. struct conftest_t {
  30. /**
  31. * Merged suite/test configuration
  32. */
  33. settings_t *test;
  34. /**
  35. * Directory containing suite files
  36. */
  37. char *suite_dir;
  38. /**
  39. * Credentials loaded from configuration
  40. */
  41. mem_cred_t *creds;
  42. /**
  43. * Configurations loaded from config
  44. */
  45. config_t *config;
  46. /**
  47. * Loaded hooks
  48. */
  49. linked_list_t *hooks;
  50. /**
  51. * Action handling
  52. */
  53. actions_t *actions;
  54. /**
  55. * Test specific loggers
  56. */
  57. linked_list_t *loggers;
  58. };
  59. /**
  60. * Conftest globals
  61. */
  62. extern conftest_t *conftest;
  63. #endif /** CONFTEST_H_ */