Open SCAP Library
scap_ds.h
Go to the documentation of this file.
1 
10 /*
11  * Copyright 2012 Red Hat Inc., Durham, North Carolina.
12  * All Rights Reserved.
13  *
14  * This library is free software; you can redistribute it and/or
15  * modify it under the terms of the GNU Lesser General Public
16  * License as published by the Free Software Foundation; either
17  * version 2.1 of the License, or (at your option) any later version.
18  *
19  * This library is distributed in the hope that it will be useful,
20  * but WITHOUT ANY WARRANTY; without even the implied warranty of
21  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
22  * Lesser General Public License for more details.
23  *
24  * You should have received a copy of the GNU Lesser General Public
25  * License along with this library; if not, write to the Free Software
26  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
27  *
28  * Authors:
29  * Martin Preisler <mpreisle@redhat.com>
30  */
31 
32 #ifndef OPENSCAP_DS_H
33 #define OPENSCAP_DS_H
34 
35 #include "oscap.h"
36 
69 int ds_sds_decompose(const char* input_file, const char* id, const char* xccdf_id,
70  const char* target_dir, const char* target_filename);
71 
87 int ds_sds_decompose_custom(const char* input_file, const char* id, const char* target_dir,
88  const char* container_name, const char* component_id, const char* target_filename);
89 
105 int ds_sds_compose_from_xccdf(const char* xccdf_file, const char* target_datastream);
106 
123 int ds_sds_compose_add_component(const char *target_datastream, const char *datastream_id, const char *new_component, bool extended);
124 
147 int ds_rds_create(const char* sds_file, const char* xccdf_result_file,
148  const char** oval_result_files, const char* target_file);
149 
166 struct ds_stream_index;
167 
171 void ds_stream_index_free(struct ds_stream_index* s);
172 
178 const char* ds_stream_index_get_id(struct ds_stream_index* s);
179 
185 const char* ds_stream_index_get_timestamp(struct ds_stream_index* s);
186 
192 const char* ds_stream_index_get_version(struct ds_stream_index* s);
193 
200 
207 
214 
221 
233 struct ds_sds_index;
234 
236 struct ds_sds_index* ds_sds_index_new(void);
238 void ds_sds_index_free(struct ds_sds_index* s);
239 
245 struct ds_stream_index* ds_sds_index_get_stream(struct ds_sds_index* s, const char* stream_id);
246 
253 
259 struct ds_sds_index *ds_sds_index_import(const char* file);
260 
271  const char** datastream_id, const char** component_id);
272 
278 
285 
286 /************************************************************/
289 #endif
290