2
OpenChange MAPI implementation.
4
Python interface to mapistore
6
Copyright (C) Julien Kerihuel 2010.
8
This program is free software; you can redistribute it and/or modify
9
it under the terms of the GNU General Public License as published by
10
the Free Software Foundation; either version 3 of the License, or
11
(at your option) any later version.
13
This program is distributed in the hope that it will be useful,
14
but WITHOUT ANY WARRANTY; without even the implied warranty of
15
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16
GNU General Public License for more details.
18
You should have received a copy of the GNU General Public License
19
along with this program. If not, see <http://www.gnu.org/licenses/>.
22
#ifndef __PYMAPISTORE_H_
23
#define __PYMAPISTORE_H_
26
#include "mapiproxy/libmapistore/mapistore.h"
27
#include "mapiproxy/libmapistore/mapistore_errors.h"
28
#include "mapiproxy/libmapistore/mgmt/mapistore_mgmt.h"
29
#include "mapiproxy/libmapiproxy/libmapiproxy.h"
35
struct mapistore_context *mstore_ctx;
36
struct ldb_context *samdb_ctx;
37
struct ldb_context *ocdb_ctx;
43
struct mapistore_mgmt_context *mgmt_ctx;
44
PyMAPIStoreObject *parent;
45
} PyMAPIStoreMGMTObject;
50
struct mapistore_context *mstore_ctx;
51
struct ldb_context *ocdb_ctx;
55
PyMAPIStoreObject *parent;
56
} PyMAPIStoreContextObject;
60
PyMAPIStoreContextObject *context;
63
} PyMAPIStoreFolderObject;
67
} PyMAPIStoreTableObject;
69
PyAPI_DATA(PyTypeObject) PyMAPIStore;
70
PyAPI_DATA(PyTypeObject) PyMAPIStoreMGMT;
71
PyAPI_DATA(PyTypeObject) PyMAPIStoreContext;
72
PyAPI_DATA(PyTypeObject) PyMAPIStoreFolder;
73
PyAPI_DATA(PyTypeObject) PyMAPIStoreTable;
77
#define __BEGIN_DECLS extern "C" {
86
void PyErr_SetMAPIStoreError(uint32_t);
89
#define PyErr_MAPIStore_IS_ERR_RAISE(retval) \
90
if (retval != MAPISTORE_SUCCESS) { \
91
PyErr_SetMAPIStoreError(retval); \
95
#endif /* ! __PYMAPISTORE_H_ */