22 #ifndef DS_SDS_SESSION_H
23 #define DS_SDS_SESSION_H
30 #include "oscap_source.h"
32 #include "oscap_download_cb.h"
142 bool ds_sds_session_can_register_component(
struct ds_sds_session *session,
const char *container_name,
const char *component_id);
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)
Select Checklist (XCCDF presumably) from DataStream collection.
Definition: ds_sds_session.c:180
int ds_sds_session_dump_component_files(struct ds_sds_session *session)
Store cached component files to the disc.
Definition: ds_sds_session.c:329
General OpenScap functions and types.
const char * ds_sds_session_get_checklist_id(const struct ds_sds_session *session)
Return ID of currently selected component representing XCCDF within the DataStream.
Definition: ds_sds_session.c:162
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:66
int ds_sds_session_set_target_dir(struct ds_sds_session *session, const char *target_dir)
Set target directory for the component files.
Definition: ds_sds_session.c:131
void ds_sds_session_reset(struct ds_sds_session *session)
Reset session for further use.
Definition: ds_sds_session.c:92
Represents <data-stream-collection> element - the root element of each source datastream.
Definition: sds_index.c:215
int ds_sds_session_set_datastream_id(struct ds_sds_session *session, const char *datastream_id)
Set the ID of DataStream within collection to use.
Definition: ds_sds_session.c:144
char * ds_sds_session_get_html_guide(struct ds_sds_session *session, const char *profile_id)
Returns HTML representation of selected checklist in form of OpenSCAP guide.
Definition: ds_sds_session.c:344
struct oscap_source * source
Source DataStream raw representation.
Definition: ds_sds_session.c:48
void ds_sds_session_set_remote_resources(struct ds_sds_session *session, bool allowed, download_progress_calllback_t callback)
Set property of remote content.
Definition: ds_sds_session.c:323
Definition: oscap_source.c:62
struct oscap_source * ds_sds_session_get_component_by_href(struct ds_sds_session *session, const char *href)
Get component from Source DataStream by its href.
Definition: ds_sds_session.c:263
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)
Register component and its dependencies to internal cache.
Definition: ds_sds_session.c:287
Open-scap Data Stream interface.
const char * ds_sds_session_get_datastream_id(const struct ds_sds_session *session)
Return ID of currently selected DataStream within the DataStream collection.
Definition: ds_sds_session.c:157
struct oscap_source * ds_sds_session_select_tailoring(struct ds_sds_session *session, const char *component_id)
Select XCCDF Tailoring from DataStream collection.
Definition: ds_sds_session.c:221
Definition: ds_sds_session.c:47
struct ds_sds_index * ds_sds_session_get_sds_idx(struct ds_sds_session *session)
Get Source DataStream index.
Definition: ds_sds_session.c:101