Page Menu
Home
GnuPG
Search
Configure Global Search
Log In
Files
F23020667
writer.h
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Size
1 KB
Subscribers
None
writer.h
View Options
/* writer.h - internal definitions for the writer object.
* Copyright (C) 2001, 2010, 2012 g10 Code GmbH
*
* This file is part of KSBA.
*
* KSBA is free software; you can redistribute it and/or modify
* it under the terms of either
*
* - the GNU Lesser General Public License as published by the Free
* Software Foundation; either version 3 of the License, or (at
* your option) any later version.
*
* or
*
* - the GNU General Public License as published by the Free
* Software Foundation; either version 2 of the License, or (at
* your option) any later version.
*
* or both in parallel, as here.
*
* KSBA is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
* or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public
* License for more details.
*
* You should have received a copies of the GNU General Public License
* and the GNU Lesser General Public License along with this program;
* if not, see <http://www.gnu.org/licenses/>.
*/
#ifndef WRITER_H
#define WRITER_H 1
#include
<stdio.h>
enum
writer_type
{
WRITER_TYPE_NONE
=
0
,
WRITER_TYPE_FD
,
WRITER_TYPE_FILE
,
WRITER_TYPE_CB
,
WRITER_TYPE_MEM
};
struct
ksba_writer_s
{
int
error
;
unsigned
long
nwritten
;
enum
writer_type
type
;
int
ndef_is_open
;
gpg_error_t
(
*
filter
)(
void
*
,
const
void
*
,
size_t
,
size_t
*
,
void
*
,
size_t
,
size_t
*
);
void
*
filter_arg
;
union
{
int
fd
;
/* for WRITER_TYPE_FD */
FILE
*
file
;
/* for WRITER_TYPE_FILE */
struct
{
int
(
*
fnc
)(
void
*
,
const
void
*
,
size_t
);
void
*
value
;
}
cb
;
/* for WRITER_TYPE_CB */
struct
{
unsigned
char
*
buffer
;
size_t
size
;
}
mem
;
/* for WRITER_TYPE_MEM */
}
u
;
void
(
*
notify_cb
)(
void
*
,
ksba_writer_t
);
void
*
notify_cb_value
;
};
#endif
/*WRITER_H*/
File Metadata
Details
Attached
Mime Type
text/x-c
Expires
Mon, May 12, 6:32 PM (1 d, 16 h)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
5d/94/b82f9b88c316465e4de0c7324fd1
Attached To
rK libksba
Event Timeline
Log In to Comment