Loading...
Searching...
No Matches
ds_rds_session.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 DS_RDS_SESSION_H
#define DS_RDS_SESSION_H
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include "oscap.h"
#include "oscap_source.h"
#include "scap_ds.h"
#include "oscap_export.h"
struct ds_rds_session;
OSCAP_API struct ds_rds_session *ds_rds_session_new_from_source(struct oscap_source *source);
OSCAP_API void ds_rds_session_free(struct ds_rds_session *rds_session);
OSCAP_API struct rds_index *ds_rds_session_get_rds_idx(struct ds_rds_session *session);
OSCAP_API int ds_rds_session_set_target_dir(struct ds_rds_session *session, const char *target_dir);
OSCAP_API int ds_rds_session_dump_component_files(struct ds_rds_session *session);
OSCAP_API struct oscap_source *ds_rds_session_select_report(struct ds_rds_session *session, const char *report_id);
OSCAP_API struct oscap_source *ds_rds_session_select_report_request(struct ds_rds_session *session, const char *report_request_id);
OSCAP_API int ds_rds_session_replace_report_with_source(struct ds_rds_session *session, struct oscap_source *source);
#endif
oscap.h
General OpenScap functions and types.
scap_ds.h
Open-scap Data Stream interface.
ds_rds_session
Definition ds_rds_session.c:41
ds_rds_session::ds_rds_session_new_from_source
OSCAP_API struct ds_rds_session * ds_rds_session_new_from_source(struct oscap_source *source)
Create new ds_rds_session from existing oscap_source.
Definition ds_rds_session.c:49
ds_rds_session::ds_rds_session_free
OSCAP_API void ds_rds_session_free(struct ds_rds_session *rds_session)
Dispose ds_rds_session structure.
Definition ds_rds_session.c:62
ds_rds_session::source
struct oscap_source * source
Result DataStream raw representation.
Definition ds_rds_session.c:42
oscap_source
Definition oscap_source.c:66
rds_index
Represents <asset-report-collection> element - the root element of each result datastream in Asset Re...
Definition rds_index.c:40