Open SCAP Library

ds_sds_session_priv.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  *
00020  */
00021 #ifndef OSCAP_DS_SDS_SESSION_PRIV_H
00022 #define OSCAP_DS_SDS_SESSION_PRIV_H
00023 
00024 #ifdef HAVE_CONFIG_H
00025 #include <config.h>
00026 #endif
00027 
00028 #include "common/public/oscap.h"
00029 #include "common/util.h"
00030 #include "DS/public/scap_ds.h"
00031 #include "DS/public/ds_sds_session.h"
00032 #include <libxml/tree.h>
00033 
00034 OSCAP_HIDDEN_START;
00035 
00036 xmlNode *ds_sds_session_get_selected_datastream(struct ds_sds_session *session);
00037 xmlDoc *ds_sds_session_get_xmlDoc(struct ds_sds_session *session);
00038 int ds_sds_session_register_component_source(struct ds_sds_session *session, const char *relative_filepath, struct oscap_source *component);
00039 const char *ds_sds_session_get_target_dir(struct ds_sds_session *session);
00040 struct oscap_htable *ds_sds_session_get_component_sources(struct ds_sds_session *session);
00041 const char *ds_sds_session_get_readable_origin(const struct ds_sds_session *session);
00042 bool ds_sds_session_fetch_remote_resources(struct ds_sds_session *session);
00043 download_progress_calllback_t ds_sds_session_remote_resources_progress(struct ds_sds_session *session);
00044 
00045 void download_progress_empty_calllback(bool warning, const char * format, ...);
00046 OSCAP_HIDDEN_END;
00047 #endif
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines