| 1 | /** |
| 2 | * @file oval_parser_impl.h |
| 3 | * \brief Open Vulnerability and Assessment Language |
| 4 | * |
| 5 | * See more details at http://oval.mitre.org/ |
| 6 | */ |
| 7 | |
| 8 | /* |
| 9 | * Copyright 2009-2014 Red Hat Inc., Durham, North Carolina. |
| 10 | * All Rights Reserved. |
| 11 | * |
| 12 | * This library is free software; you can redistribute it and/or |
| 13 | * modify it under the terms of the GNU Lesser General Public |
| 14 | * License as published by the Free Software Foundation; either |
| 15 | * version 2.1 of the License, or (at your option) any later version. |
| 16 | * |
| 17 | * This library is distributed in the hope that it will be useful, |
| 18 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 19 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 20 | * Lesser General Public License for more details. |
| 21 | * |
| 22 | * You should have received a copy of the GNU Lesser General Public |
| 23 | * License along with this library; if not, write to the Free Software |
| 24 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
| 25 | * |
| 26 | * Authors: |
| 27 | * "David Niemoller" <[email protected]> |
| 28 | */ |
| 29 | |
| 30 | #ifndef OVAL_PARSER_H_ |
| 31 | #define OVAL_PARSER_H_cxx . . $ `src/OVAL/oval_parser_impl.h:31:9`! |
| 32 | |
| 33 | #include <libxml/xmlreader.h> |
| 34 | #include "public/oval_agent_api.h"cxx . . $ `<file>/src/OVAL/public/oval_agent_api.h`/ |
| 35 | #include "common/util.h"cxx . . $ `<file>/src/common/util.h`/ |
| 36 | |
| 37 | |
| 38 | #define OVAL_ROOT_ELM_DEFINITIONScxx . . $ `src/OVAL/oval_parser_impl.h:38:9`! "oval_definitions" |
| 39 | #define OVAL_ROOT_ELM_DIRECTIVEScxx . . $ `src/OVAL/oval_parser_impl.h:39:9`! "oval_directives" |
| 40 | #define OVAL_ROOT_ELM_RESULTScxx . . $ `src/OVAL/oval_parser_impl.h:40:9`! "oval_results" |
| 41 | #define OVAL_ROOT_ELM_SYSCHARScxx . . $ `src/OVAL/oval_parser_impl.h:41:9`! "oval_system_characteristics" |
| 42 | #define OVAL_ROOT_ELM_VARIABLEScxx . . $ `src/OVAL/oval_parser_impl.h:42:9`! "oval_variables" |
| 43 | |
| 44 | struct oval_parser_contextcxx . . $ oval_parser_context# { |
| 45 | struct oval_definition_modelcxx . . $ oval_definition_model# *definition_modelcxx . . $ oval_parser_context#definition_model.; |
| 46 | struct oval_syschar_modelcxx . . $ oval_syschar_model# *syschar_modelcxx . . $ oval_parser_context#syschar_model.; |
| 47 | struct oval_results_modelcxx . . $ oval_results_model# *results_modelcxx . . $ oval_parser_context#results_model.; |
| 48 | struct oval_variable_modelcxx . . $ oval_variable_model# *variable_modelcxx . . $ oval_parser_context#variable_model.; |
| 49 | struct oval_directives_modelcxx . . $ oval_directives_model# *directives_modelcxx . . $ oval_parser_context#directives_model.; |
| 50 | xmlTextReadercxx . . $ xmlTextReader# *readercxx . . $ oval_parser_context#reader.; |
| 51 | void *user_datacxx . . $ oval_parser_context#user_data.; |
| 52 | }; |
| 53 | |
| 54 | int oval_definition_model_parsecxx . . $ oval_definition_model_parse(b61d4daae99e998a).(xmlTextReaderPtrcxx . . $ xmlTextReaderPtr#, struct oval_parser_contextcxx . . $ oval_parser_context# *); |
| 55 | int oval_syschar_model_parsecxx . . $ oval_syschar_model_parse(b61d4daae99e998a).(xmlTextReaderPtrcxx . . $ xmlTextReaderPtr#, struct oval_parser_contextcxx . . $ oval_parser_context# *); |
| 56 | int oval_results_model_parsecxx . . $ oval_results_model_parse(b61d4daae99e998a).(xmlTextReaderPtrcxx . . $ xmlTextReaderPtr# , struct oval_parser_contextcxx . . $ oval_parser_context# *); |
| 57 | |
| 58 | int oval_parser_boolean_attributecxx . . $ oval_parser_boolean_attribute(a53adaee35698733).(xmlTextReaderPtrcxx . . $ xmlTextReaderPtr# reader, char *attname, int defval); |
| 59 | int oval_parser_int_attributecxx . . $ oval_parser_int_attribute(a53adaee35698733).(xmlTextReaderPtrcxx . . $ xmlTextReaderPtr# reader, char *attname, int defval); |
| 60 | |
| 61 | typedef int (*oval_xml_tag_parsercxx . . $ oval_xml_tag_parser#) (xmlTextReaderPtrcxx . . $ xmlTextReaderPtr#, struct oval_parser_contextcxx . . $ oval_parser_context# *, void *); |
| 62 | int oval_parser_parse_tagcxx . . $ oval_parser_parse_tag(4eaaf867ce26f59b).(xmlTextReaderPtrcxx . . $ xmlTextReaderPtr#, struct oval_parser_contextcxx . . $ oval_parser_context# *, oval_xml_tag_parsercxx . . $ oval_xml_tag_parser#, void *); |
| 63 | int oval_parser_skip_tagcxx . . $ oval_parser_skip_tag(b61d4daae99e998a).(xmlTextReaderPtrcxx . . $ xmlTextReaderPtr# reader, struct oval_parser_contextcxx . . $ oval_parser_context# *context); |
| 64 | |
| 65 | char *oval_determine_document_schema_version_privcxx . . $ oval_determine_document_schema_version_priv(87e9f2ea92df6ee9).(xmlTextReadercxx . . $ xmlTextReader# *reader, oscap_document_type_tcxx . . $ oscap_document_type_t# doc_type); |
| 66 | |
| 67 | |
| 68 | #endif /* OVAL_PARSER_H_ */ |