added copies of libs so can be built standalone
[vlendec/samba-autobuild/.git] / ctdb / lib / tdb / swig / tdb.py
1 # This file was created automatically by SWIG 1.3.28.
2 # Don't modify this file, modify the SWIG interface instead.
3 # This file is compatible with both classic and new-style classes.
4
5 import _tdb
6 import new
7 new_instancemethod = new.instancemethod
8 def _swig_setattr_nondynamic(self,class_type,name,value,static=1):
9     if (name == "thisown"): return self.this.own(value)
10     if (name == "this"):
11         if type(value).__name__ == 'PySwigObject':
12             self.__dict__[name] = value
13             return
14     method = class_type.__swig_setmethods__.get(name,None)
15     if method: return method(self,value)
16     if (not static) or hasattr(self,name):
17         self.__dict__[name] = value
18     else:
19         raise AttributeError("You cannot add attributes to %s" % self)
20
21 def _swig_setattr(self,class_type,name,value):
22     return _swig_setattr_nondynamic(self,class_type,name,value,0)
23
24 def _swig_getattr(self,class_type,name):
25     if (name == "thisown"): return self.this.own()
26     method = class_type.__swig_getmethods__.get(name,None)
27     if method: return method(self)
28     raise AttributeError,name
29
30 import types
31 try:
32     _object = types.ObjectType
33     _newclass = 1
34 except AttributeError:
35     class _object : pass
36     _newclass = 0
37 del types
38
39
40 TDB_REPLACE = _tdb.TDB_REPLACE
41 TDB_INSERT = _tdb.TDB_INSERT
42 TDB_MODIFY = _tdb.TDB_MODIFY
43 TDB_DEFAULT = _tdb.TDB_DEFAULT
44 TDB_CLEAR_IF_FIRST = _tdb.TDB_CLEAR_IF_FIRST
45 TDB_INTERNAL = _tdb.TDB_INTERNAL
46 TDB_NOLOCK = _tdb.TDB_NOLOCK
47 TDB_NOMMAP = _tdb.TDB_NOMMAP
48 TDB_CONVERT = _tdb.TDB_CONVERT
49 TDB_BIGENDIAN = _tdb.TDB_BIGENDIAN
50
51 open = _tdb.open
52
53 open_ex = _tdb.open_ex
54
55 reopen = _tdb.reopen
56
57 reopen_all = _tdb.reopen_all
58
59 logging_function = _tdb.logging_function
60
61 error = _tdb.error
62
63 errorstr = _tdb.errorstr
64
65 fetch = _tdb.fetch
66
67 delete = _tdb.delete
68
69 store = _tdb.store
70
71 append = _tdb.append
72
73 close = _tdb.close
74
75 firstkey = _tdb.firstkey
76
77 nextkey = _tdb.nextkey
78
79 traverse = _tdb.traverse
80
81 exists = _tdb.exists
82
83 lockall = _tdb.lockall
84
85 unlockall = _tdb.unlockall
86
87 chainlock = _tdb.chainlock
88
89 chainunlock = _tdb.chainunlock
90
91 dump_all = _tdb.dump_all
92
93 printfreelist = _tdb.printfreelist
94
95