1 | /* |
2 | callbacks.h - callback targets for internal use: |
3 | Copyright (C) 2003 Klarälvdalens Datakonsult AB |
4 | |
5 | This file is part of GPGME++. |
6 | |
7 | This is an internal header file, subject to change without |
8 | notice. DO NOT USE. |
9 | |
10 | GPGME++ is free software; you can redistribute it and/or |
11 | modify it under the terms of the GNU Library General Public |
12 | License as published by the Free Software Foundation; either |
13 | version 2 of the License, or (at your option) any later version. |
14 | |
15 | GPGME++ is distributed in the hope that it will be useful, |
16 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
17 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
18 | GNU Library General Public License for more details. |
19 | |
20 | You should have received a copy of the GNU Library General Public License |
21 | along with GPGME++; see the file COPYING.LIB. If not, write to the |
22 | Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, |
23 | Boston, MA 02110-1301, USA. |
24 | */ |
25 | |
26 | #ifndef __GPGMEPP_CALLBACKS_H__ |
27 | #define __GPGMEPP_CALLBACKS_H__ |
28 | |
29 | #include <gpgme.h> |
30 | |
31 | extern "C" { |
32 | |
33 | void progress_callback( void * opaque, const char * what, |
34 | int type, int current, int total ); |
35 | gpgme_error_t passphrase_callback( void * opaque, const char * uid_hint, |
36 | const char * desc, int prev_was_bad, int fd ); |
37 | } |
38 | |
39 | namespace GpgME { |
40 | extern gpgme_data_cbs data_provider_callbacks; |
41 | extern gpgme_edit_cb_t edit_interactor_callback; |
42 | } |
43 | |
44 | #endif // __GPGME_CALLBACKS_H__ |
45 | |