Go to the documentation of this file.
38 #include "reference.h"
65 #define OSCAP_FOREACH_GENERIC(itype, vtype, val, init_val, code) \
67 struct itype##_iterator *val##_iter = (init_val); \
69 while (itype##_iterator_has_more(val##_iter)) { \
70 val = itype##_iterator_next(val##_iter); \
73 itype##_iterator_free(val##_iter); \
84 #define OSCAP_FOREACH(type, val, init_val, code) \
85 OSCAP_FOREACH_GENERIC(type, struct type *, val, init_val, code)
94 #define OSCAP_FOREACH_STR(val, init_val, code) \
95 OSCAP_FOREACH_GENERIC(oscap_string, const char *, val, init_val, code)
108 #define OSCAP_FOR_GENERIC(itype, vtype, val, init_val) \
109 vtype val = NULL; struct itype##_iterator *val##_iter = (init_val); \
110 while (itype##_iterator_has_more(val##_iter) \
111 ? (val = itype##_iterator_next(val##_iter), true) \
112 : (itype##_iterator_free(val##_iter), val##_iter = NULL, false))
121 #define OSCAP_FOR(type, val, init_val) OSCAP_FOR_GENERIC(type, struct type *, val, init_val)
129 #define OSCAP_FOR_STR(val, init_val) OSCAP_FOR_GENERIC(oscap_string, const char *, val, init_val)
236 int oscap_apply_xslt(
const char *xmlfile,
const char *xsltfile,
const char *outfile,
const char **params);
251 int oscap_apply_xslt_var(
const char *xmlfile,
const char *xsltfile,
const char *outfile,
const char **params,
const char *pathvar,
const char *defpath);