|
Packit |
d7e8d0 |
/*
|
|
Packit |
d7e8d0 |
* Copyright (C) 2016 g10 Code GmbH
|
|
Packit |
d7e8d0 |
*
|
|
Packit |
d7e8d0 |
* This file is part of GPGME.
|
|
Packit |
d7e8d0 |
*
|
|
Packit |
d7e8d0 |
* GPGME is free software; you can redistribute it and/or modify it
|
|
Packit |
d7e8d0 |
* under the terms of the GNU Lesser General Public License as
|
|
Packit |
d7e8d0 |
* published by the Free Software Foundation; either version 2.1 of
|
|
Packit |
d7e8d0 |
* the License, or (at your option) any later version.
|
|
Packit |
d7e8d0 |
*
|
|
Packit |
d7e8d0 |
* GPGME is distributed in the hope that it will be useful, but
|
|
Packit |
d7e8d0 |
* WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
Packit |
d7e8d0 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
Packit |
d7e8d0 |
* Lesser General Public License for more details.
|
|
Packit |
d7e8d0 |
*
|
|
Packit |
d7e8d0 |
* You should have received a copy of the GNU Lesser General Public
|
|
Packit |
d7e8d0 |
* License along with this program; if not, see <http://www.gnu.org/licenses/>.
|
|
Packit |
d7e8d0 |
*/
|
|
Packit |
d7e8d0 |
|
|
Packit |
d7e8d0 |
#include <gpgme.h>
|
|
Packit |
d7e8d0 |
|
|
Packit |
d7e8d0 |
#ifndef _GPG_PRIVATE_H_
|
|
Packit |
d7e8d0 |
#define _GPG_PRIVATE_H_
|
|
Packit |
d7e8d0 |
|
|
Packit |
d7e8d0 |
/* GPGME glue. Implemented in helpers.c. */
|
|
Packit |
d7e8d0 |
|
|
Packit |
d7e8d0 |
void _gpg_exception_init(void);
|
|
Packit |
d7e8d0 |
gpgme_error_t _gpg_exception2code(void);
|
|
Packit |
d7e8d0 |
|
|
Packit |
d7e8d0 |
PyObject *_gpg_obj2gpgme_t(PyObject *input, const char *objtype, int argnum);
|
|
Packit |
d7e8d0 |
PyObject *_gpg_obj2gpgme_data_t(PyObject *input, int argnum,
|
|
Packit |
d7e8d0 |
gpgme_data_t *wrapper,
|
|
Packit |
d7e8d0 |
PyObject **bytesio, Py_buffer *view);
|
|
Packit |
d7e8d0 |
|
|
Packit |
d7e8d0 |
PyObject *_gpg_wrap_result(PyObject *fragile, const char *classname);
|
|
Packit |
d7e8d0 |
|
|
Packit |
d7e8d0 |
gpgme_error_t _gpg_interact_cb(void *opaque, const char *keyword,
|
|
Packit |
d7e8d0 |
const char *args, int fd);
|
|
Packit |
d7e8d0 |
gpgme_error_t _gpg_assuan_data_cb (void *hook,
|
|
Packit |
d7e8d0 |
const void *data, size_t datalen);
|
|
Packit |
d7e8d0 |
gpgme_error_t _gpg_assuan_inquire_cb (void *hook,
|
|
Packit |
d7e8d0 |
const char *name, const char *args,
|
|
Packit |
d7e8d0 |
gpgme_data_t *r_data);
|
|
Packit |
d7e8d0 |
gpgme_error_t _gpg_assuan_status_cb (void *hook,
|
|
Packit |
d7e8d0 |
const char *status, const char *args);
|
|
Packit |
d7e8d0 |
|
|
Packit |
d7e8d0 |
|
|
Packit |
d7e8d0 |
|
|
Packit |
d7e8d0 |
/* SWIG runtime support. Implemented in gpgme.i. */
|
|
Packit |
d7e8d0 |
|
|
Packit |
d7e8d0 |
PyObject *_gpg_wrap_gpgme_data_t(gpgme_data_t data);
|
|
Packit |
d7e8d0 |
gpgme_ctx_t _gpg_unwrap_gpgme_ctx_t(PyObject *wrapped);
|
|
Packit |
d7e8d0 |
|
|
Packit |
d7e8d0 |
#endif /* _GPG_PRIVATE_H_ */
|