2016-07-28 08:20:20 +00:00
|
|
|
|
/*
|
|
|
|
|
* Copyright (C) 2016 g10 Code GmbH
|
|
|
|
|
*
|
|
|
|
|
* This file is part of GPGME.
|
|
|
|
|
*
|
|
|
|
|
* GPGME is free software; you can redistribute it and/or modify it
|
|
|
|
|
* 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.
|
|
|
|
|
*
|
|
|
|
|
* 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
|
|
|
|
|
* Lesser General Public License for more details.
|
|
|
|
|
*
|
|
|
|
|
* You should have received a copy of the GNU Lesser General Public
|
2018-10-18 03:56:27 +00:00
|
|
|
|
* License along with this program; if not, see <https://www.gnu.org/licenses/>.
|
2016-07-28 08:20:20 +00:00
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#include <gpgme.h>
|
|
|
|
|
|
2016-10-28 20:45:49 +00:00
|
|
|
|
#ifndef _GPG_PRIVATE_H_
|
|
|
|
|
#define _GPG_PRIVATE_H_
|
2016-07-28 08:20:20 +00:00
|
|
|
|
|
2016-07-28 12:51:20 +00:00
|
|
|
|
/* GPGME glue. Implemented in helpers.c. */
|
2016-07-28 08:20:20 +00:00
|
|
|
|
|
2016-10-28 20:45:49 +00:00
|
|
|
|
void _gpg_exception_init(void);
|
|
|
|
|
gpgme_error_t _gpg_exception2code(void);
|
2016-07-28 12:51:20 +00:00
|
|
|
|
|
2016-10-28 20:45:49 +00:00
|
|
|
|
PyObject *_gpg_obj2gpgme_t(PyObject *input, const char *objtype, int argnum);
|
|
|
|
|
PyObject *_gpg_obj2gpgme_data_t(PyObject *input, int argnum,
|
2016-07-28 08:20:20 +00:00
|
|
|
|
gpgme_data_t *wrapper,
|
|
|
|
|
PyObject **bytesio, Py_buffer *view);
|
|
|
|
|
|
2016-10-28 20:45:49 +00:00
|
|
|
|
PyObject *_gpg_wrap_result(PyObject *fragile, const char *classname);
|
2016-07-28 08:20:20 +00:00
|
|
|
|
|
2016-10-28 20:45:49 +00:00
|
|
|
|
gpgme_error_t _gpg_interact_cb(void *opaque, const char *keyword,
|
2016-09-16 12:56:29 +00:00
|
|
|
|
const char *args, int fd);
|
2016-10-28 20:45:49 +00:00
|
|
|
|
gpgme_error_t _gpg_assuan_data_cb (void *hook,
|
2016-07-28 10:40:54 +00:00
|
|
|
|
const void *data, size_t datalen);
|
2016-10-28 20:45:49 +00:00
|
|
|
|
gpgme_error_t _gpg_assuan_inquire_cb (void *hook,
|
2016-07-28 10:40:54 +00:00
|
|
|
|
const char *name, const char *args,
|
|
|
|
|
gpgme_data_t *r_data);
|
2016-10-28 20:45:49 +00:00
|
|
|
|
gpgme_error_t _gpg_assuan_status_cb (void *hook,
|
2016-07-28 10:40:54 +00:00
|
|
|
|
const char *status, const char *args);
|
|
|
|
|
|
2016-07-28 12:51:20 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/* SWIG runtime support. Implemented in gpgme.i. */
|
|
|
|
|
|
2016-10-28 20:45:49 +00:00
|
|
|
|
PyObject *_gpg_wrap_gpgme_data_t(gpgme_data_t data);
|
|
|
|
|
gpgme_ctx_t _gpg_unwrap_gpgme_ctx_t(PyObject *wrapped);
|
2016-07-28 12:51:20 +00:00
|
|
|
|
|
2016-10-28 20:45:49 +00:00
|
|
|
|
#endif /* _GPG_PRIVATE_H_ */
|