~ubuntu-branches/debian/sid/openchange/sid

« back to all changes in this revision

Viewing changes to pyopenchange/mapistore/table.c

  • Committer: Package Import Robot
  • Author(s): Jelmer Vernooij
  • Date: 2012-04-12 20:07:57 UTC
  • mfrom: (11 sid)
  • mto: This revision was merged to the branch mainline in revision 12.
  • Revision ID: package-import@ubuntu.com-20120412200757-k933d9trljmxj1l4
Tags: 1:1.0-4
* openchangeserver: Add dependency on openchangeproxy.
* Rebuild against newer version of Samba 4.
* Use dpkg-buildflags.
* Migrate to Git, update Vcs-Git header.
* Switch to debhelper 9.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
   OpenChange MAPI implementation.
 
3
 
 
4
   Python interface to mapistore table
 
5
 
 
6
   Copyright (C) Julien Kerihuel 2011.
 
7
 
 
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.
 
12
   
 
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.
 
17
   
 
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/>.
 
20
*/
 
21
 
 
22
#include <Python.h>
 
23
#include "pyopenchange/mapistore/pymapistore.h"
 
24
#include "gen_ndr/exchange.h"
 
25
 
 
26
static void py_MAPIStoreTable_dealloc(PyObject *_self)
 
27
{
 
28
        PyObject_Del(_self);
 
29
}
 
30
 
 
31
static PyMethodDef mapistore_table_methods[] = {
 
32
        { NULL },
 
33
};
 
34
 
 
35
static PyGetSetDef mapistore_table_getsetters[] = {
 
36
        { NULL }
 
37
};
 
38
 
 
39
PyTypeObject PyMAPIStoreTable = {
 
40
        PyObject_HEAD_INIT(NULL) 0,
 
41
        .tp_name = "MAPIStoreTable",
 
42
        .tp_basicsize = sizeof (PyMAPIStoreTableObject),
 
43
        .tp_methods = mapistore_table_methods,
 
44
        .tp_getset = mapistore_table_getsetters,
 
45
        .tp_doc = "mapistore table object",
 
46
        .tp_dealloc = (destructor)py_MAPIStoreTable_dealloc,
 
47
        .tp_flags = Py_TPFLAGS_DEFAULT,
 
48
};