Main Page   Modules   Data Structures   File List   Data Fields   Globals  

libdrc.h

Go to the documentation of this file.
00001 /*
00002  * libdrc.h
00003  * Created on 14 Mar 2005
00004  * Authors:
00005  *    Wesley Leggette <wleggette@kaylix.net>
00006  * 
00007  * 
00008  * 
00009  * libdarc
00010  * 
00011  * 
00012  * This program is free software; you can redistribute it and/or modify
00013  * it under the terms of the GNU General Public License as published by
00014  * the Free Software Foundation; either version 2 of the License, or
00015  * (at your option) any later version.
00016  *
00017  * This program is distributed in the hope that it will be useful,
00018  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00019  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00020  * GNU General Public License for more details.
00021  *
00022  * You should have received a copy of the GNU General Public License
00023  * along with this program; if not, write to the Free Software
00024  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00025  * 
00026  * $Id: libdrc_8h-source.html 708 2005-03-21 12:30:37Z leggwes $
00027  */
00028 
00035 #ifndef LIBDRC_H
00036 #define LIBDRC_H
00037 
00038 #include "libdarc.h"
00039 
00040 NAMESPACE_LIBDAR_START
00041 
00042 #ifdef __cplusplus
00043 extern "C"
00044 {
00045 #endif
00046 
00047 
00048 struct _dar_drc;
00049 typedef struct _dar_drc dar_drc;
00050 
00051 
00079 DLLIMPORT dar_drc *dar_drc_parse_xml_file( const char* filename, 
00080                 const char* dtdfilepath, dar_sup_exception* exception );
00081 
00096 DLLIMPORT dar_drc *dar_drc_parse_xml_memory( const char* buffer, int size,
00097                 const char* dtdfilepath, dar_sup_exception* exception );
00098 
00108 DLLIMPORT bool dar_drc_write_xml_file( const char* filename,
00109                 dar_sup_exception* exception );
00110 
00121 DLLIMPORT char* dar_drc_write_xml_memory( dar_sup_exception* exception );
00122 
00123 
00149 DLLIMPORT dar_drc *dar_drc_create( dar_drc* reference,
00150                 dar_sup_spec* spec, dar_sup_storage* storage,
00151                 dar_sup_flags* flags );
00152         
00153 
00154 
00163 DLLIMPORT dar_sup_spec *dar_drc_get_spec( dar_drc* ref );
00164 
00173 DLLIMPORT dar_sup_storage *dar_drc_get_storage( dar_drc* ref );
00174 
00183 DLLIMPORT dar_sup_flags *dar_drc_get_flags( dar_drc* ref );
00184 
00200 DLLIMPORT char* dar_drc_get_passphrase( dar_drc* ref );
00201 
00218 DLLIMPORT bool dar_drc_set_passphrase( dar_drc* ref, char* passphrase );
00219 
00220 
00221 
00222 
00223 
00236 DLLIMPORT bool dar_drc_has_reference(dar_drc* ref);
00237 
00251 DLLIMPORT dar_archive* dar_drc_open_reference( dar_user_interaction_struct dialog,
00252                 dar_drc* ref, dar_sup_exception* exception );
00253 
00266 DLLIMPORT char* dar_drc_get_reference_passphrase( dar_drc* ref );
00267 
00279 DLLIMPORT bool dar_drc_set_reference_passphrase( dar_drc* ref, char* passphrase );
00280 
00281 
00289 DLLIMPORT void dar_drc_destroy( dar_drc *ref );
00290 
00291 
00294 #ifdef __cplusplus
00295 }
00296 #endif
00297 
00298 
00299 
00300 
00301 NAMESPACE_LIBDAR_END
00302 
00303 #endif /* !LIBDRC_H */