2002-10-09 12:26:00 +00:00
|
|
|
|
/* data.h - Internal data object abstraction interface.
|
2005-10-01 02:33:35 +00:00
|
|
|
|
Copyright (C) 2002, 2004, 2005 g10 Code GmbH
|
2012-09-25 13:29:49 +00:00
|
|
|
|
|
2002-12-06 22:06:25 +00:00
|
|
|
|
This file is part of GPGME.
|
2012-09-25 13:29:49 +00:00
|
|
|
|
|
2002-12-06 22:06:25 +00:00
|
|
|
|
GPGME is free software; you can redistribute it and/or modify it
|
2004-12-07 Marcus Brinkmann <marcus@g10code.de>
* README: Refer to COPYING.LESSER and "each file" instead of
COPYING.
* COPYING.LESSER: New file.
* gpgme.spec.in (%doc): Add COPYING.LESSER.
* acinclude.m4, configure.ac, Makefile.am: Change license to LGPL
2.1 or later.
* TODO: Add copyright notice.
* README.CVS: Likewise.
assuan/
2004-12-07 Marcus Brinkmann <marcus@g10code.de>
* README.1st: Add copyright notice.
doc/
2004-12-07 Marcus Brinkmann <marcus@g10code.de>
* Makefile.am: Change license to LGPL.
(gpgme_TEXINFOS): Replace gpl.texi with lesser.texi.
* gpgme.texi: Change license to LGPL (also for documentation of
GPGME's license).
* lesser.texi: New file.
* gpl.texi: File removed.
gpgme/
2004-12-07 Marcus Brinkmann <marcus@g10code.de>
* putc_unlocked.c, funopen.c: I just claim copyright on these
files and change their license to LGPL, because they are totally
trivial wrapper functions.
* isascii.c: Change copyright notice to the one from ctype/ctype.h
in the GNU C Library (CVS Head 2004-10-10), where isascii is
defined as a macro doing exactly the same as the function in this
file.
* memrchr.c: Update from the GNU C Library (CVS Head 2001-07-06).
* stpcpy.c: Update from the GNU C Library (CVS Head 2004-10-10).
* ath.c, ath-compat.c, ath.h, ath-pth.c, ath-pth-compat.c,
ath-pthread.c, ath-pthread-compat.c, context.h, conversion.c,
data.c, data-compat.c, data-fd.c, data.h, data-mem.c,
data-stream.c, data-user.c, debug.c, debug.h, decrypt.c,
decrypt-verify.c, delete.c, edit.c, encrypt.c, encrypt-sign.c,
engine-backend.h, engine.c, engine-gpgsm.c, engine.h, error.c,
export.c, genkey.c, get-env.c, gpgme.c, gpgme.h, import.c, io.h,
key.c, keylist.c, mkstatus, Makefile.am, ops.h, op-support.c,
passphrase.c, posix-io.c, posix-sema.c, posix-util.c, progress.c,
rungpg.c, sema.h, sign.c, signers.c, trust-item.c, trustlist.c,
util.h, verify.c, version.c, w32-io.c, w32-sema.c, w32-util.c,
wait.c, wait-global.c, wait.h, wait-private.c, wait-user.c: Change
license to LGPL.
tests/
2004-12-07 Marcus Brinkmann <marcus@g10code.de>
* gpg/mkdemodirs: Add copyright notice.
* gpgsm/Makefile.am, gpgsm/t-support.h, gpgsm/t-decrypt.c,
gpgsm/t-encrypt.c, gpgsm/t-export.c, gpgsm/t-genkey.c,
gpgsm/t-import.c, gpgsm/t-keylist.c, gpgsm/t-sign.c,
gpgsm/t-verify.c, gpg/Makefile.am, gpg/t-decrypt.c,
gpg/t-decrypt-verify.c, gpg/t-edit.c, gpg/t-encrypt.c,
gpg/t-encrypt-sign.c, gpg/t-encrypt-sym.c, gpg/t-eventloop.c,
gpg/t-export.c, gpg/t-genkey.c, gpg/t-import.c, gpg/t-keylist.c,
gpg/t-keylist-sig.c, gpg/t-sign.c, gpg/t-signers.c,
gpg/t-support.h, gpg/t-thread1.c, gpg/t-trustlist.c,
gpg/t-verify.c, Makefile.am, t-data.c, t-engine-info.c,
t-version.c: Change license to LGPL.
2004-12-07 21:13:39 +00:00
|
|
|
|
under the terms of the GNU Lesser General Public License as
|
|
|
|
|
published by the Free Software Foundation; either version 2.1 of
|
|
|
|
|
the License, or (at your option) any later version.
|
2012-09-25 13:29:49 +00:00
|
|
|
|
|
2002-12-06 22:06:25 +00:00
|
|
|
|
GPGME 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
|
2004-12-07 Marcus Brinkmann <marcus@g10code.de>
* README: Refer to COPYING.LESSER and "each file" instead of
COPYING.
* COPYING.LESSER: New file.
* gpgme.spec.in (%doc): Add COPYING.LESSER.
* acinclude.m4, configure.ac, Makefile.am: Change license to LGPL
2.1 or later.
* TODO: Add copyright notice.
* README.CVS: Likewise.
assuan/
2004-12-07 Marcus Brinkmann <marcus@g10code.de>
* README.1st: Add copyright notice.
doc/
2004-12-07 Marcus Brinkmann <marcus@g10code.de>
* Makefile.am: Change license to LGPL.
(gpgme_TEXINFOS): Replace gpl.texi with lesser.texi.
* gpgme.texi: Change license to LGPL (also for documentation of
GPGME's license).
* lesser.texi: New file.
* gpl.texi: File removed.
gpgme/
2004-12-07 Marcus Brinkmann <marcus@g10code.de>
* putc_unlocked.c, funopen.c: I just claim copyright on these
files and change their license to LGPL, because they are totally
trivial wrapper functions.
* isascii.c: Change copyright notice to the one from ctype/ctype.h
in the GNU C Library (CVS Head 2004-10-10), where isascii is
defined as a macro doing exactly the same as the function in this
file.
* memrchr.c: Update from the GNU C Library (CVS Head 2001-07-06).
* stpcpy.c: Update from the GNU C Library (CVS Head 2004-10-10).
* ath.c, ath-compat.c, ath.h, ath-pth.c, ath-pth-compat.c,
ath-pthread.c, ath-pthread-compat.c, context.h, conversion.c,
data.c, data-compat.c, data-fd.c, data.h, data-mem.c,
data-stream.c, data-user.c, debug.c, debug.h, decrypt.c,
decrypt-verify.c, delete.c, edit.c, encrypt.c, encrypt-sign.c,
engine-backend.h, engine.c, engine-gpgsm.c, engine.h, error.c,
export.c, genkey.c, get-env.c, gpgme.c, gpgme.h, import.c, io.h,
key.c, keylist.c, mkstatus, Makefile.am, ops.h, op-support.c,
passphrase.c, posix-io.c, posix-sema.c, posix-util.c, progress.c,
rungpg.c, sema.h, sign.c, signers.c, trust-item.c, trustlist.c,
util.h, verify.c, version.c, w32-io.c, w32-sema.c, w32-util.c,
wait.c, wait-global.c, wait.h, wait-private.c, wait-user.c: Change
license to LGPL.
tests/
2004-12-07 Marcus Brinkmann <marcus@g10code.de>
* gpg/mkdemodirs: Add copyright notice.
* gpgsm/Makefile.am, gpgsm/t-support.h, gpgsm/t-decrypt.c,
gpgsm/t-encrypt.c, gpgsm/t-export.c, gpgsm/t-genkey.c,
gpgsm/t-import.c, gpgsm/t-keylist.c, gpgsm/t-sign.c,
gpgsm/t-verify.c, gpg/Makefile.am, gpg/t-decrypt.c,
gpg/t-decrypt-verify.c, gpg/t-edit.c, gpg/t-encrypt.c,
gpg/t-encrypt-sign.c, gpg/t-encrypt-sym.c, gpg/t-eventloop.c,
gpg/t-export.c, gpg/t-genkey.c, gpg/t-import.c, gpg/t-keylist.c,
gpg/t-keylist-sig.c, gpg/t-sign.c, gpg/t-signers.c,
gpg/t-support.h, gpg/t-thread1.c, gpg/t-trustlist.c,
gpg/t-verify.c, Makefile.am, t-data.c, t-engine-info.c,
t-version.c: Change license to LGPL.
2004-12-07 21:13:39 +00:00
|
|
|
|
Lesser General Public License for more details.
|
2012-09-25 13:29:49 +00:00
|
|
|
|
|
2004-12-07 Marcus Brinkmann <marcus@g10code.de>
* README: Refer to COPYING.LESSER and "each file" instead of
COPYING.
* COPYING.LESSER: New file.
* gpgme.spec.in (%doc): Add COPYING.LESSER.
* acinclude.m4, configure.ac, Makefile.am: Change license to LGPL
2.1 or later.
* TODO: Add copyright notice.
* README.CVS: Likewise.
assuan/
2004-12-07 Marcus Brinkmann <marcus@g10code.de>
* README.1st: Add copyright notice.
doc/
2004-12-07 Marcus Brinkmann <marcus@g10code.de>
* Makefile.am: Change license to LGPL.
(gpgme_TEXINFOS): Replace gpl.texi with lesser.texi.
* gpgme.texi: Change license to LGPL (also for documentation of
GPGME's license).
* lesser.texi: New file.
* gpl.texi: File removed.
gpgme/
2004-12-07 Marcus Brinkmann <marcus@g10code.de>
* putc_unlocked.c, funopen.c: I just claim copyright on these
files and change their license to LGPL, because they are totally
trivial wrapper functions.
* isascii.c: Change copyright notice to the one from ctype/ctype.h
in the GNU C Library (CVS Head 2004-10-10), where isascii is
defined as a macro doing exactly the same as the function in this
file.
* memrchr.c: Update from the GNU C Library (CVS Head 2001-07-06).
* stpcpy.c: Update from the GNU C Library (CVS Head 2004-10-10).
* ath.c, ath-compat.c, ath.h, ath-pth.c, ath-pth-compat.c,
ath-pthread.c, ath-pthread-compat.c, context.h, conversion.c,
data.c, data-compat.c, data-fd.c, data.h, data-mem.c,
data-stream.c, data-user.c, debug.c, debug.h, decrypt.c,
decrypt-verify.c, delete.c, edit.c, encrypt.c, encrypt-sign.c,
engine-backend.h, engine.c, engine-gpgsm.c, engine.h, error.c,
export.c, genkey.c, get-env.c, gpgme.c, gpgme.h, import.c, io.h,
key.c, keylist.c, mkstatus, Makefile.am, ops.h, op-support.c,
passphrase.c, posix-io.c, posix-sema.c, posix-util.c, progress.c,
rungpg.c, sema.h, sign.c, signers.c, trust-item.c, trustlist.c,
util.h, verify.c, version.c, w32-io.c, w32-sema.c, w32-util.c,
wait.c, wait-global.c, wait.h, wait-private.c, wait-user.c: Change
license to LGPL.
tests/
2004-12-07 Marcus Brinkmann <marcus@g10code.de>
* gpg/mkdemodirs: Add copyright notice.
* gpgsm/Makefile.am, gpgsm/t-support.h, gpgsm/t-decrypt.c,
gpgsm/t-encrypt.c, gpgsm/t-export.c, gpgsm/t-genkey.c,
gpgsm/t-import.c, gpgsm/t-keylist.c, gpgsm/t-sign.c,
gpgsm/t-verify.c, gpg/Makefile.am, gpg/t-decrypt.c,
gpg/t-decrypt-verify.c, gpg/t-edit.c, gpg/t-encrypt.c,
gpg/t-encrypt-sign.c, gpg/t-encrypt-sym.c, gpg/t-eventloop.c,
gpg/t-export.c, gpg/t-genkey.c, gpg/t-import.c, gpg/t-keylist.c,
gpg/t-keylist-sig.c, gpg/t-sign.c, gpg/t-signers.c,
gpg/t-support.h, gpg/t-thread1.c, gpg/t-trustlist.c,
gpg/t-verify.c, Makefile.am, t-data.c, t-engine-info.c,
t-version.c: Change license to LGPL.
2004-12-07 21:13:39 +00:00
|
|
|
|
You should have received a copy of the GNU Lesser General Public
|
|
|
|
|
License along with this program; if not, write to the Free Software
|
|
|
|
|
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
|
|
|
|
|
02111-1307, USA. */
|
2002-10-09 12:26:00 +00:00
|
|
|
|
|
|
|
|
|
#ifndef DATA_H
|
|
|
|
|
#define DATA_H
|
|
|
|
|
|
|
|
|
|
#if HAVE_CONFIG_H
|
|
|
|
|
#include <config.h>
|
|
|
|
|
#endif
|
|
|
|
|
|
2010-11-03 09:56:27 +00:00
|
|
|
|
#ifdef HAVE_SYS_TYPES_H
|
|
|
|
|
# include <sys/types.h>
|
|
|
|
|
#endif
|
2002-10-09 12:26:00 +00:00
|
|
|
|
#include <limits.h>
|
2018-07-19 15:38:50 +00:00
|
|
|
|
#include <stdint.h>
|
2002-10-09 12:26:00 +00:00
|
|
|
|
|
|
|
|
|
#include "gpgme.h"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/* Read up to SIZE bytes into buffer BUFFER from the data object with
|
|
|
|
|
the handle DH. Return the number of characters read, 0 on EOF and
|
|
|
|
|
-1 on error. If an error occurs, errno is set. */
|
Make definition of off_t robust against misbehaving w32 toolchains.
* configure.ac (NEED__FILE_OFFSET_BITS): Change to define gpgme_off_t
and gpgme_ssize_t.
(API__OFF_T, API__SSIZE_T): New ac_subst.
* src/gpgme.h.in: Replace all ssize_t and off_t by ac_subst macros.
* src/assuan-support.c, src/ath-pthread.c, src/ath.c, src/ath.h
* src/data-compat.c, src/data-fd.c, src/data-mem.c, src/data-stream.c
* src/data-user.c, src/data.c, src/data.h, src/engine-gpgsm.c
* src/engine-uiserver.c, src/gpgme-tool.c, src/gpgme.c: Replace off_t
by gpgme_off_t and sszie_t by gpgme_ssize_t.
* src/ath-pthread.c, src/ath.h: Include gpgme.h.
--
For a detailed description, see the gpgme.texi diff.
2013-04-25 11:00:16 +00:00
|
|
|
|
typedef gpgme_ssize_t (*gpgme_data_read_cb) (gpgme_data_t dh,
|
|
|
|
|
void *buffer,
|
|
|
|
|
size_t size);
|
2002-10-09 12:26:00 +00:00
|
|
|
|
|
|
|
|
|
/* Write up to SIZE bytes from buffer BUFFER to the data object with
|
|
|
|
|
the handle DH. Return the number of characters written, or -1 on
|
|
|
|
|
error. If an error occurs, errno is set. */
|
Make definition of off_t robust against misbehaving w32 toolchains.
* configure.ac (NEED__FILE_OFFSET_BITS): Change to define gpgme_off_t
and gpgme_ssize_t.
(API__OFF_T, API__SSIZE_T): New ac_subst.
* src/gpgme.h.in: Replace all ssize_t and off_t by ac_subst macros.
* src/assuan-support.c, src/ath-pthread.c, src/ath.c, src/ath.h
* src/data-compat.c, src/data-fd.c, src/data-mem.c, src/data-stream.c
* src/data-user.c, src/data.c, src/data.h, src/engine-gpgsm.c
* src/engine-uiserver.c, src/gpgme-tool.c, src/gpgme.c: Replace off_t
by gpgme_off_t and sszie_t by gpgme_ssize_t.
* src/ath-pthread.c, src/ath.h: Include gpgme.h.
--
For a detailed description, see the gpgme.texi diff.
2013-04-25 11:00:16 +00:00
|
|
|
|
typedef gpgme_ssize_t (*gpgme_data_write_cb) (gpgme_data_t dh,
|
|
|
|
|
const void *buffer,
|
|
|
|
|
size_t size);
|
2002-10-09 12:26:00 +00:00
|
|
|
|
|
|
|
|
|
/* Set the current position from where the next read or write starts
|
|
|
|
|
in the data object with the handle DH to OFFSET, relativ to
|
|
|
|
|
WHENCE. */
|
Make definition of off_t robust against misbehaving w32 toolchains.
* configure.ac (NEED__FILE_OFFSET_BITS): Change to define gpgme_off_t
and gpgme_ssize_t.
(API__OFF_T, API__SSIZE_T): New ac_subst.
* src/gpgme.h.in: Replace all ssize_t and off_t by ac_subst macros.
* src/assuan-support.c, src/ath-pthread.c, src/ath.c, src/ath.h
* src/data-compat.c, src/data-fd.c, src/data-mem.c, src/data-stream.c
* src/data-user.c, src/data.c, src/data.h, src/engine-gpgsm.c
* src/engine-uiserver.c, src/gpgme-tool.c, src/gpgme.c: Replace off_t
by gpgme_off_t and sszie_t by gpgme_ssize_t.
* src/ath-pthread.c, src/ath.h: Include gpgme.h.
--
For a detailed description, see the gpgme.texi diff.
2013-04-25 11:00:16 +00:00
|
|
|
|
typedef gpgme_off_t (*gpgme_data_seek_cb) (gpgme_data_t dh,
|
|
|
|
|
gpgme_off_t offset,
|
|
|
|
|
int whence);
|
2002-10-09 12:26:00 +00:00
|
|
|
|
|
|
|
|
|
/* Release the data object with the handle DH. */
|
2003-05-18 20:45:24 +00:00
|
|
|
|
typedef void (*gpgme_data_release_cb) (gpgme_data_t dh);
|
2002-10-09 12:26:00 +00:00
|
|
|
|
|
2007-01-18 17:59:26 +00:00
|
|
|
|
/* Get the FD associated with the handle DH, or -1. */
|
|
|
|
|
typedef int (*gpgme_data_get_fd_cb) (gpgme_data_t dh);
|
|
|
|
|
|
2003-05-18 20:45:24 +00:00
|
|
|
|
struct _gpgme_data_cbs
|
2002-10-09 12:26:00 +00:00
|
|
|
|
{
|
|
|
|
|
gpgme_data_read_cb read;
|
|
|
|
|
gpgme_data_write_cb write;
|
|
|
|
|
gpgme_data_seek_cb seek;
|
|
|
|
|
gpgme_data_release_cb release;
|
2007-01-18 17:59:26 +00:00
|
|
|
|
gpgme_data_get_fd_cb get_fd;
|
2002-10-09 12:26:00 +00:00
|
|
|
|
};
|
|
|
|
|
|
2003-05-18 20:45:24 +00:00
|
|
|
|
struct gpgme_data
|
2002-10-09 12:26:00 +00:00
|
|
|
|
{
|
2003-05-18 20:45:24 +00:00
|
|
|
|
struct _gpgme_data_cbs *cbs;
|
|
|
|
|
gpgme_data_encoding_t encoding;
|
2018-07-19 15:38:50 +00:00
|
|
|
|
unsigned int propidx; /* Index into the property table. */
|
2002-10-09 12:26:00 +00:00
|
|
|
|
|
|
|
|
|
#ifdef PIPE_BUF
|
|
|
|
|
#define BUFFER_SIZE PIPE_BUF
|
|
|
|
|
#else
|
|
|
|
|
#ifdef _POSIX_PIPE_BUF
|
|
|
|
|
#define BUFFER_SIZE _POSIX_PIPE_BUF
|
|
|
|
|
#else
|
|
|
|
|
#define BUFFER_SIZE 512
|
|
|
|
|
#endif
|
|
|
|
|
#endif
|
|
|
|
|
char pending[BUFFER_SIZE];
|
|
|
|
|
int pending_len;
|
|
|
|
|
|
2005-09-30 14:17:47 +00:00
|
|
|
|
/* File name of the data object. */
|
|
|
|
|
char *file_name;
|
|
|
|
|
|
2018-07-19 15:38:50 +00:00
|
|
|
|
/* Hint on the to be expected total size of the data. */
|
2016-08-12 13:21:16 +00:00
|
|
|
|
gpgme_off_t size_hint;
|
|
|
|
|
|
2002-10-09 12:26:00 +00:00
|
|
|
|
union
|
|
|
|
|
{
|
|
|
|
|
/* For gpgme_data_new_from_fd. */
|
|
|
|
|
int fd;
|
|
|
|
|
|
|
|
|
|
/* For gpgme_data_new_from_stream. */
|
|
|
|
|
FILE *stream;
|
|
|
|
|
|
2018-07-19 07:50:30 +00:00
|
|
|
|
/* For gpgme_data_new_from_estream. */
|
|
|
|
|
gpgrt_stream_t e_stream;
|
|
|
|
|
|
2002-10-09 12:26:00 +00:00
|
|
|
|
/* For gpgme_data_new_from_cbs. */
|
|
|
|
|
struct
|
|
|
|
|
{
|
2003-05-18 20:45:24 +00:00
|
|
|
|
gpgme_data_cbs_t cbs;
|
2002-10-09 12:26:00 +00:00
|
|
|
|
void *handle;
|
|
|
|
|
} user;
|
|
|
|
|
|
|
|
|
|
/* For gpgme_data_new_from_mem. */
|
|
|
|
|
struct
|
|
|
|
|
{
|
|
|
|
|
char *buffer;
|
|
|
|
|
const char *orig_buffer;
|
|
|
|
|
/* Allocated size of BUFFER. */
|
|
|
|
|
size_t size;
|
|
|
|
|
size_t length;
|
Make definition of off_t robust against misbehaving w32 toolchains.
* configure.ac (NEED__FILE_OFFSET_BITS): Change to define gpgme_off_t
and gpgme_ssize_t.
(API__OFF_T, API__SSIZE_T): New ac_subst.
* src/gpgme.h.in: Replace all ssize_t and off_t by ac_subst macros.
* src/assuan-support.c, src/ath-pthread.c, src/ath.c, src/ath.h
* src/data-compat.c, src/data-fd.c, src/data-mem.c, src/data-stream.c
* src/data-user.c, src/data.c, src/data.h, src/engine-gpgsm.c
* src/engine-uiserver.c, src/gpgme-tool.c, src/gpgme.c: Replace off_t
by gpgme_off_t and sszie_t by gpgme_ssize_t.
* src/ath-pthread.c, src/ath.h: Include gpgme.h.
--
For a detailed description, see the gpgme.texi diff.
2013-04-25 11:00:16 +00:00
|
|
|
|
gpgme_off_t offset;
|
2002-10-09 12:26:00 +00:00
|
|
|
|
} mem;
|
|
|
|
|
|
|
|
|
|
/* For gpgme_data_new_from_read_cb. */
|
|
|
|
|
struct
|
|
|
|
|
{
|
|
|
|
|
int (*cb) (void *, char *, size_t, size_t *);
|
|
|
|
|
void *handle;
|
|
|
|
|
} old_user;
|
|
|
|
|
} data;
|
|
|
|
|
};
|
|
|
|
|
|
2018-07-19 15:38:50 +00:00
|
|
|
|
|
|
|
|
|
/* The data property types. */
|
|
|
|
|
typedef enum
|
|
|
|
|
{
|
|
|
|
|
DATA_PROP_NONE = 0, /* Dummy property. */
|
|
|
|
|
DATA_PROP_BLANKOUT /* Do not return the held data. */
|
|
|
|
|
} data_prop_t;
|
|
|
|
|
|
|
|
|
|
|
2002-10-09 12:26:00 +00:00
|
|
|
|
|
2018-07-19 15:38:50 +00:00
|
|
|
|
/* Return the data object's serial number for handle DH. */
|
|
|
|
|
uint64_t _gpgme_data_get_dserial (gpgme_data_t dh);
|
|
|
|
|
|
|
|
|
|
/* Set an internal property of a data object. */
|
|
|
|
|
gpg_error_t _gpgme_data_set_prop (gpgme_data_t dh, uint64_t dserial,
|
|
|
|
|
data_prop_t name, int value);
|
|
|
|
|
|
|
|
|
|
/* Get an internal property of a data object. */
|
|
|
|
|
gpg_error_t _gpgme_data_get_prop (gpgme_data_t dh, uint64_t dserial,
|
|
|
|
|
data_prop_t name, int *r_value);
|
|
|
|
|
|
|
|
|
|
/* Create a new data object. */
|
2003-05-18 21:08:43 +00:00
|
|
|
|
gpgme_error_t _gpgme_data_new (gpgme_data_t *r_dh,
|
|
|
|
|
struct _gpgme_data_cbs *cbs);
|
2002-10-09 12:26:00 +00:00
|
|
|
|
|
2003-05-18 20:45:24 +00:00
|
|
|
|
void _gpgme_data_release (gpgme_data_t dh);
|
2002-10-09 12:26:00 +00:00
|
|
|
|
|
2007-01-18 17:59:26 +00:00
|
|
|
|
/* Get the file descriptor associated with DH, if possible. Otherwise
|
|
|
|
|
return -1. */
|
|
|
|
|
int _gpgme_data_get_fd (gpgme_data_t dh);
|
|
|
|
|
|
2016-08-12 13:21:16 +00:00
|
|
|
|
/* Get the size-hint value for DH or 0 if not available. */
|
|
|
|
|
gpgme_off_t _gpgme_data_get_size_hint (gpgme_data_t dh);
|
|
|
|
|
|
2018-07-19 15:38:50 +00:00
|
|
|
|
|
2002-10-09 12:26:00 +00:00
|
|
|
|
#endif /* DATA_H */
|