23 #ifndef XCCDF_ELEMENTS_H_
24 #define XCCDF_ELEMENTS_H_
29 #include "common/util.h"
30 #include "common/elements.h"
32 #include <libxml/xmlreader.h>
48 char *xccdf_detect_version_priv(xmlTextReader *reader);
53 bool xccdf_is_supported_namespace(xmlNs *ns);
67 XCCDFE_RESULT_BENCHMARK,
72 XCCDFE_CHECK_CONTENT_REF,
102 XCCDFE_CPE2_PLATFORMSPEC,
103 XCCDFE_RESULT_PROFILE,
124 XCCDFE_TARGET_ADDRESS,
126 XCCDFE_TARGET_IDENTIFIER,
133 XCCDFE_BENCHMARK_REF = XCCDFE_RESULT_BENCHMARK,
138 xccdf_element_t xccdf_element_get(xmlTextReaderPtr reader);
140 #define XCCDF_ASSERT_ELEMENT(reader, element) do { if (xccdf_element_get(reader) != element) return false; } while(false)
145 XCCDFA_AUTHENTICATED,
165 XCCDFA_INTERFACEHINT,
175 XCCDFA_PARENTCONTEXT,
178 XCCDFA_PROHIBITCHANGES,
202 bool xccdf_attribute_has(xmlTextReaderPtr reader, xccdf_attribute_t attr);
203 const char *xccdf_attribute_get(xmlTextReaderPtr reader, xccdf_attribute_t attr);
204 char *xccdf_attribute_copy(xmlTextReaderPtr reader, xccdf_attribute_t attr);
205 bool xccdf_attribute_get_bool(xmlTextReaderPtr reader, xccdf_attribute_t attr);
206 int xccdf_attribute_get_int(xmlTextReaderPtr reader, xccdf_attribute_t attr);
207 float xccdf_attribute_get_float(xmlTextReaderPtr reader, xccdf_attribute_t attr);
211 void xccdf_print_depth(
int depth);
212 void xccdf_print_max(
const char *str,
int max,
const char *ellipsis);
213 void xccdf_print_max_text(
const struct oscap_text *txt,
int max,
const char *ellipsis);
214 void xccdf_print_textlist(
struct oscap_text_iterator *txt,
int depth,
int max,
const char *ellipsis);
216 xmlNs *lookup_xccdf_ns(xmlDoc *doc, xmlNode *parent,
const struct xccdf_version_info *version_info);
Define mapping between symbolic constant and its string representation.
Definition: util.h:309
Definition: XCCDF/elements.c:43
Internationalized string iterator.
Representation of internationalizable character strings.
Definition: text_priv.h:47