Blame apache2/msc_xml.h

Packit 284210
/*
Packit 284210
* ModSecurity for Apache 2.x, http://www.modsecurity.org/
Packit 284210
* Copyright (c) 2004-2013 Trustwave Holdings, Inc. (http://www.trustwave.com/)
Packit 284210
*
Packit 284210
* You may not use this file except in compliance with
Packit 284210
* the License.  You may obtain a copy of the License at
Packit 284210
*
Packit 284210
*     http://www.apache.org/licenses/LICENSE-2.0
Packit 284210
*
Packit 284210
* If any of the files related to licensing are missing or if you have any
Packit 284210
* other questions related to licensing please contact Trustwave Holdings, Inc.
Packit 284210
* directly using the email address security@modsecurity.org.
Packit 284210
*/
Packit 284210
Packit 284210
#ifndef _MSC_XML_H_
Packit 284210
#define _MSC_XML_H_
Packit 284210
Packit 284210
typedef struct xml_data xml_data;
Packit 284210
Packit 284210
#include "modsecurity.h"
Packit 284210
#include <libxml/xmlschemas.h>
Packit 284210
#include <libxml/xpath.h>
Packit 284210
Packit 284210
/* Structures */
Packit 284210
Packit 284210
struct xml_data {
Packit 284210
    xmlSAXHandler           *sax_handler;
Packit 284210
    xmlParserCtxtPtr        parsing_ctx;
Packit 284210
    xmlDocPtr               doc;
Packit 284210
Packit 284210
    unsigned int            well_formed;
Packit 284210
};
Packit 284210
Packit 284210
/* Functions */
Packit 284210
Packit 284210
int DSOLOCAL xml_init(modsec_rec *msr, char **error_msg);
Packit 284210
Packit 284210
int DSOLOCAL xml_process_chunk(modsec_rec *msr, const char *buf,
Packit 284210
    unsigned int size, char **error_msg);
Packit 284210
Packit 284210
int DSOLOCAL xml_complete(modsec_rec *msr, char **error_msg);
Packit 284210
Packit 284210
apr_status_t DSOLOCAL xml_cleanup(modsec_rec *msr);
Packit 284210
Packit 284210
#endif