Rename method
[kdepim.git] / kleopatra / kleo-assuan.h
blob8f1b9c63c22ab15ac56c947de66d888c3dab67d9
1 /* -*- mode: c++; c-basic-offset:4 -*-
2 kleo-assuan.h
4 This file is part of Kleopatra, the KDE keymanager
5 Copyright (c) 2008 Klarälvdalens Datakonsult AB
7 Kleopatra is free software; you can redistribute it and/or modify
8 it under the terms of the GNU General Public License as published by
9 the Free Software Foundation; either version 2 of the License, or
10 (at your option) any later version.
12 Kleopatra is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 General Public License for more details.
17 You should have received a copy of the GNU General Public License
18 along with this program; if not, write to the Free Software
19 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
21 In addition, as a special exception, the copyright holders give
22 permission to link the code of this program with any edition of
23 the Qt library by Trolltech AS, Norway (or with modified versions
24 of Qt that use the same license as Qt), and distribute linked
25 combinations including the two. You must obey the GNU General
26 Public License in all respects for all of the code used other than
27 Qt. If you modify this file, you may extend this exception to
28 your version of the file, but you are not obligated to do so. If
29 you do not wish to do so, delete this exception statement from
30 your version.
33 #ifndef __KLEO_ASSUAN_H__
34 #define __KLEO_ASSUAN_H__
36 #ifndef _ASSUAN_ONLY_GPG_ERRORS
37 #define _ASSUAN_ONLY_GPG_ERRORS
38 #endif
40 #ifdef HAVE_USABLE_ASSUAN
41 # include <assuan.h>
42 #else
44 * copied from assuan.h:
47 /* assuan.h - Definitions for the Assuan IPC library
48 * Copyright (C) 2001, 2002, 2003, 2005, 2007 Free Software Foundation, Inc.
50 * This file is part of Assuan.
52 * Assuan is free software; you can redistribute it and/or modify it
53 * under the terms of the GNU Lesser General Public License as
54 * published by the Free Software Foundation; either version 2.1 of
55 * the License, or (at your option) any later version.
57 * Assuan is distributed in the hope that it will be useful, but
58 * WITHOUT ANY WARRANTY; without even the implied warranty of
59 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
60 * Lesser General Public License for more details.
62 * You should have received a copy of the GNU Lesser General Public
63 * License along with this program; if not, see <http://www.gnu.org/licenses/>.
66 #ifdef _WIN32
67 typedef void *assuan_fd_t;
68 #define ASSUAN_INVALID_FD ((void*)(-1))
69 #define ASSUAN_INT2FD(s) ((void *)(s))
70 #define ASSUAN_FD2INT(h) ((unsigned int)(h))
71 #else
72 typedef int assuan_fd_t;
73 #define ASSUAN_INVALID_FD (-1)
74 #define ASSUAN_INT2FD(s) ((s))
75 #define ASSUAN_FD2INT(h) ((h))
76 #endif
78 * end copied from assuan.h
80 #endif
82 #endif /* __KLEOPATRA_ASSUAN_H__ */