1 /* ops.h - internal operations stuff
2 * Copyright (C) 2000 Werner Koch (dd9jn)
4 * This file is part of GPGME.
6 * GPGME is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
11 * GPGME is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
27 void _gpgme_release_result ( GpgmeCtx c );
30 GpgmeCtx _gpgme_wait_on_condition ( GpgmeCtx c,
31 int hang, volatile int *cond );
32 void _gpgme_freeze_fd ( int fd );
33 void _gpgme_thaw_fd ( int fd );
37 void _gpgme_append_gpg_args_from_recipients (
38 const GpgmeRecipients rset,
43 char * _gpgme_data_release_and_return_string ( GpgmeData dh );
44 GpgmeDataMode _gpgme_data_get_mode ( GpgmeData dh );
45 void _gpgme_data_set_mode ( GpgmeData dh, GpgmeDataMode mode );
46 char * _gpgme_data_get_as_string ( GpgmeData dh );
47 GpgmeError _gpgme_data_append ( GpgmeData dh,
48 const char *buffer, size_t length );
49 GpgmeError _gpgme_data_append_string ( GpgmeData dh, const char *s );
50 GpgmeError _gpgme_data_append_string_for_xml ( GpgmeData dh,
52 GpgmeError _gpgme_data_append_for_xml ( GpgmeData dh,
55 GpgmeError _gpgme_data_append_percentstring_for_xml ( GpgmeData dh,
58 GpgmeError _gpgme_data_unread (GpgmeData dh,
59 const char *buffer, size_t length );
63 GpgmeError _gpgme_key_new( GpgmeKey *r_key );
64 void _gpgme_key_release ( GpgmeKey key );
68 void _gpgme_release_verify_result ( VerifyResult res );
71 void _gpgme_release_decrypt_result ( DecryptResult res );
74 void _gpgme_release_sign_result ( SignResult res );