Estonian ID Card C-library
libdigidoc
DigiDocDfExtract.h
1
#ifndef __DIGIDOC_DF_EXTRACT_H__
2
#define __DIGIDOC_DF_EXTRACT_H__
3
//==================================================
4
// FILE: DigiDocDfExtract.h
5
// PROJECT: Digi Doc
6
// DESCRIPTION: Digi Doc functions for extracting <DataFile> contents
7
// AUTHOR: Veiko Sinivee, S|E|B IT Partner Estonia
8
//==================================================
9
// Copyright (C) AS Sertifitseerimiskeskus
10
// This library is free software; you can redistribute it and/or
11
// modify it under the terms of the GNU Lesser General Public
12
// License as published by the Free Software Foundation; either
13
// version 2.1 of the License, or (at your option) any later version.
14
// This library is distributed in the hope that it will be useful,
15
// but WITHOUT ANY WARRANTY; without even the implied warranty of
16
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17
// Lesser General Public License for more details.
18
// GNU Lesser General Public Licence is available at
19
// http://www.gnu.org/copyleft/lesser.html
20
//==========< HISTORY >=============================
21
// 03.03.2008 Veiko Sinivee
22
// Creation
23
//==================================================
24
25
#include <libdigidoc/DigiDocDefs.h>
26
27
#ifdef __cplusplus
28
extern
"C"
{
29
#endif
30
31
//--------------------------------------------------
32
// Reads in signed XML document and extracts the desired data file
33
// pSigDoc - signed document object if exists. Can be NULL
34
// szFileName - digidoc filename
35
// szDataFileName - name of the file where to store embedded data.
36
// szDocId - DataFile Id atribute value
37
// szCharset - convert DataFile content to charset
38
//--------------------------------------------------
39
EXP_OPTION
int
ddocExtractDataFile(
SignedDoc
* pSigDoc,
const
char
* szFileName,
40
const
char
* szDataFileName,
const
char
* szDocId,
41
const
char
* szCharset);
42
43
#ifdef __cplusplus
44
}
45
#endif
46
47
48
#endif
SignedDoc_st
Definition:
DigiDocObj.h:177
Generated on Wed Apr 25 2018 13:52:12 for Estonian ID Card C-library by
1.8.17