| 1 | #ifndef OSCAP_PROBE_OPTION_H |
| 2 | #define OSCAP_PROBE_OPTION_H |
| 3 | |
| 4 | #define PROBEOPT_VARREF_HANDLING 0 |
| 5 | #define PROBEOPT_RESULT_CACHING 1 |
| 6 | |
| 7 | #define PROBE_OPTION_SET 0 |
| 8 | #define PROBE_OPTION_GET 1 |
| 9 | |
| 10 | #include <stddef.h> |
| 11 | #include <stdarg.h> |
| 12 | #include "common/util.h" |
| 13 | |
| 14 | typedef struct { |
| 15 | int option; |
| 16 | int (*handler)(int, int, va_list); |
| 17 | } probe_option_t; |
| 18 | |
| 19 | extern size_t OSCAP_GSYM(probe_optdef_count); |
| 20 | extern probe_option_t *OSCAP_GSYM(probe_optdef); |
| 21 | |
| 22 | int probe_setoption(int option, ...); |
| 23 | int probe_getoption(int option, ...); |
| 24 | |
| 25 | #endif /* OSCAP_PROBE_OPTION_H */ |