Open SCAP Library

ds_rds_session.h

00001 /*
00002  * Copyright 2014 Red Hat Inc., Durham, North Carolina.
00003  * All Rights Reserved.
00004  *
00005  * This library is free software; you can redistribute it and/or
00006  * modify it under the terms of the GNU Lesser General Public
00007  * License as published by the Free Software Foundation; either
00008  * version 2.1 of the License, or (at your option) any later version.
00009  *
00010  * This library is distributed in the hope that it will be useful,
00011  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00012  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00013  * Lesser General Public License for more details.
00014  *
00015  * You should have received a copy of the GNU Lesser General Public
00016  * License along with this library; if not, write to the Free Software
00017  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00018  *
00019  * Author:
00020  *     Šimon Lukašík
00021  */
00022 #ifndef DS_RDS_SESSION_H
00023 #define DS_RDS_SESSION_H
00024 
00025 #ifdef HAVE_CONFIG_H
00026 #include <config.h>
00027 #endif
00028 
00029 #include "oscap.h"
00030 #include "oscap_source.h"
00031 #include "scap_ds.h"
00032 
00040 struct ds_rds_session;
00041 
00050 struct ds_rds_session *ds_rds_session_new_from_source(struct oscap_source *source);
00051 
00057 void ds_rds_session_free(struct ds_rds_session *rds_session);
00058 
00065 struct rds_index *ds_rds_session_get_rds_idx(struct ds_rds_session *session);
00066 
00074 int ds_rds_session_set_target_dir(struct ds_rds_session *session, const char *target_dir);
00075 
00082 int ds_rds_session_dump_component_files(struct ds_rds_session *session);
00083 
00092 struct oscap_source *ds_rds_session_select_report(struct ds_rds_session *session, const char *report_id);
00093 
00103 struct oscap_source *ds_rds_session_select_report_request(struct ds_rds_session *session, const char *report_request_id);
00104 
00114 int ds_rds_session_replace_report_with_source(struct ds_rds_session *session, struct oscap_source *source);
00115 
00122 char *ds_rds_session_get_html_report(struct ds_rds_session *rds_session);
00123 
00124 #endif
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines