More changes and and some new functions
[gpgme.git] / gpgme / ops.h
1 /* ops.h - internal operations stuff 
2  *      Copyright (C) 2000 Werner Koch (dd9jn)
3  *
4  * This file is part of GPGME.
5  *
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.
10  *
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.
15  *
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
19  */
20
21 #ifndef OPS_H
22 #define OPS_H
23
24 #include "types.h"
25
26 /*-- gpgme.c --*/
27 void _gpgme_release_result ( GpgmeCtx c );
28
29 /*-- wait.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 );
34
35
36 /*-- recipient.c --*/
37 void _gpgme_append_gpg_args_from_recipients (
38     const GpgmeRecipients rset,
39     GpgObject gpg );
40
41
42 /*-- data.c --*/
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,
51                                                   const char *s);
52 GpgmeError    _gpgme_data_append_for_xml ( GpgmeData dh,
53                                            const char *buffer,
54                                            size_t len );
55 GpgmeError    _gpgme_data_append_percentstring_for_xml ( GpgmeData dh,
56                                                          const char *string );
57
58 GpgmeError    _gpgme_data_unread (GpgmeData dh,
59                                   const char *buffer, size_t length );
60
61
62 /*-- key.c --*/
63 GpgmeError _gpgme_key_new( GpgmeKey *r_key );
64 void       _gpgme_key_release ( GpgmeKey key );
65
66
67 /*-- verify.c --*/
68 void _gpgme_release_verify_result ( VerifyResult res );
69
70 /*-- decrypt.c --*/
71 void _gpgme_release_decrypt_result ( DecryptResult res );
72
73 /*-- sign.c --*/
74 void _gpgme_release_sign_result ( SignResult res );
75
76
77 #endif /* OPS_H */
78
79
80
81
82