Loading...
Searching...
No Matches
ds_sds_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_SDS_SESSION_H
#define DS_SDS_SESSION_H
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include "oscap.h"
#include "oscap_source.h"
#include "scap_ds.h"
#include "oscap_download_cb.h"
#include "oscap_export.h"
struct ds_sds_session;
OSCAP_API struct ds_sds_session *ds_sds_session_new_from_source(struct oscap_source *source);
OSCAP_API struct ds_sds_index *ds_sds_session_get_sds_idx(struct ds_sds_session *session);
OSCAP_API void ds_sds_session_free(struct ds_sds_session *sds_session);
OSCAP_API struct oscap_source *ds_sds_session_select_checklist(struct ds_sds_session *session, const char *datastream_id, const char *component_id, const char *benchmark_id);
OSCAP_API struct oscap_source *ds_sds_session_select_tailoring(struct ds_sds_session *session, const char *component_id);
OSCAP_API int ds_sds_session_set_datastream_id(struct ds_sds_session *session, const char *datastream_id);
OSCAP_API const char *ds_sds_session_get_datastream_id(const struct ds_sds_session *session);
OSCAP_API const char *ds_sds_session_get_checklist_id(const struct ds_sds_session *session);
OSCAP_API const char *ds_sds_session_get_checklist_uri(const struct ds_sds_session *session);
OSCAP_API struct oscap_source *ds_sds_session_get_component_by_href(struct ds_sds_session *session, const char *href);
OSCAP_API bool ds_sds_session_can_register_component(struct ds_sds_session *session, const char *container_name, const char *component_id);
OSCAP_API int ds_sds_session_register_component_with_dependencies(struct ds_sds_session *session, const char *container_name, const char *component_id, const char *target_filename);
OSCAP_API int ds_sds_session_dump_component_files(struct ds_sds_session *session);
OSCAP_API int ds_sds_session_set_target_dir(struct ds_sds_session *session, const char *target_dir);
OSCAP_API void ds_sds_session_reset(struct ds_sds_session *session);
OSCAP_API void ds_sds_session_configure_remote_resources(struct ds_sds_session *session, bool allowed, const char *local_files, download_progress_calllback_t callback);
#endif
oscap.h
General OpenScap functions and types.
scap_ds.h
Open-scap Data Stream interface.
ds_sds_index
Retrieves iterator over all components inside the <extended-components> element.
Definition sds_index.c:209
ds_sds_session
Definition ds_sds_session.c:45
ds_sds_session::source
struct oscap_source * source
Source DataStream raw representation.
Definition ds_sds_session.c:46
ds_sds_session::ds_sds_session_new_from_source
OSCAP_API struct ds_sds_session * ds_sds_session_new_from_source(struct oscap_source *source)
Create new ds_sds_session from existing oscap_source.
Definition ds_sds_session.c:67
oscap_source
Definition oscap_source.c:66