Loading...
Searching...
No Matches
oscap_source_priv.h
/*
* Copyright 2014 Red Hat Inc., Durham, North Carolina.
* All Rights Reserved.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*
* Author:
* Šimon Lukašík
*/
#ifndef OSCAP_SOURCE_PRIV_H
#define OSCAP_SOURCE_PRIV_H
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include <libxml/parser.h>
#include <libxml/xmlreader.h>
#include "common/util.h"
#include "oscap.h"
#include "oscap_source.h"
struct oscap_source *oscap_source_new_take_memory(char *buffer, size_t size, const char *filepath);
struct oscap_source *oscap_source_new_from_xmlDoc(xmlDoc *doc, const char *filepath);
xmlTextReader *oscap_source_get_xmlTextReader(struct oscap_source *source);
xmlDoc *oscap_source_get_xmlDoc(struct oscap_source *source);
xmlDoc *oscap_source_pop_xmlDoc(struct oscap_source *source);
#endif
oscap.h
General OpenScap functions and types.
oscap_source
Definition oscap_source.c:66
oscap_source::oscap_source_get_xmlDoc
xmlDoc * oscap_source_get_xmlDoc(struct oscap_source *source)
Get a DOM representation of this resource.
Definition oscap_source.c:263
oscap_source::oscap_source_pop_xmlDoc
xmlDoc * oscap_source_pop_xmlDoc(struct oscap_source *source)
Get a DOM representation of this resource.
Definition oscap_source.c:338
oscap_source::filepath
char * filepath
Filepath (if originated from file).
Definition oscap_source.c:71
oscap_source::oscap_source_new_from_xmlDoc
struct oscap_source * oscap_source_new_from_xmlDoc(xmlDoc *doc, const char *filepath)
Build new oscap_source from existing xmlDoc.
Definition oscap_source.c:134
oscap_source::oscap_source_get_xmlTextReader
xmlTextReader * oscap_source_get_xmlTextReader(struct oscap_source *source)
Get an xmlTextReader assigned with this resource.
Definition oscap_source.c:176