1
1
# This file was automatically generated by SWIG (http://www.swig.org).
4
# Don't modify this file, modify the SWIG interface instead.
4
# Do not make changes to this file unless you know what you are doing--modify
5
# the SWIG interface file instead.
5
6
# This file is compatible with both classic and new-style classes.
9
new_instancemethod = new.instancemethod
8
from sys import version_info
9
if version_info >= (2,6,0):
10
def swig_import_helper():
11
from os.path import dirname
15
fp, pathname, description = imp.find_module('_capng', [dirname(__file__)])
21
_mod = imp.load_module('_capng', fp, pathname, description)
25
_capng = swig_import_helper()
26
del swig_import_helper
11
31
_swig_property = property
14
34
def _swig_setattr_nondynamic(self,class_type,name,value,static=1):
15
35
if (name == "thisown"): return self.this.own(value)
16
36
if (name == "this"):
17
if type(value).__name__ == 'PySwigObject':
37
if type(value).__name__ == 'SwigPyObject':
18
38
self.__dict__[name] = value
20
40
method = class_type.__swig_setmethods__.get(name,None)
31
51
if (name == "thisown"): return self.this.own()
32
52
method = class_type.__swig_getmethods__.get(name,None)
33
53
if method: return method(self)
34
raise AttributeError,name
54
raise AttributeError(name)
36
56
def _swig_repr(self):
37
57
try: strthis = "proxy of " + self.this.__repr__()
38
58
except: strthis = ""
39
59
return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,)
43
_object = types.ObjectType
45
64
except AttributeError:
46
65
class _object : pass
51
69
CAP_CHOWN = _capng.CAP_CHOWN
101
119
CAPNG_NO_FLAG = _capng.CAPNG_NO_FLAG
102
120
CAPNG_DROP_SUPP_GRP = _capng.CAPNG_DROP_SUPP_GRP
103
121
CAPNG_CLEAR_BOUNDING = _capng.CAPNG_CLEAR_BOUNDING
123
def capng_clear(*args):
124
return _capng.capng_clear(*args)
104
125
capng_clear = _capng.capng_clear
127
def capng_fill(*args):
128
return _capng.capng_fill(*args)
105
129
capng_fill = _capng.capng_fill
131
def capng_setpid(*args):
132
return _capng.capng_setpid(*args)
106
133
capng_setpid = _capng.capng_setpid
135
def capng_get_caps_process():
136
return _capng.capng_get_caps_process()
107
137
capng_get_caps_process = _capng.capng_get_caps_process
139
def capng_update(*args):
140
return _capng.capng_update(*args)
108
141
capng_update = _capng.capng_update
143
def capng_updatev(*args):
144
return _capng.capng_updatev(*args)
109
145
capng_updatev = _capng.capng_updatev
147
def capng_apply(*args):
148
return _capng.capng_apply(*args)
110
149
capng_apply = _capng.capng_apply
152
return _capng.capng_lock()
111
153
capng_lock = _capng.capng_lock
155
def capng_change_id(*args):
156
return _capng.capng_change_id(*args)
112
157
capng_change_id = _capng.capng_change_id
159
def capng_get_caps_fd(*args):
160
return _capng.capng_get_caps_fd(*args)
113
161
capng_get_caps_fd = _capng.capng_get_caps_fd
163
def capng_apply_caps_fd(*args):
164
return _capng.capng_apply_caps_fd(*args)
114
165
capng_apply_caps_fd = _capng.capng_apply_caps_fd
167
def capng_have_capabilities(*args):
168
return _capng.capng_have_capabilities(*args)
115
169
capng_have_capabilities = _capng.capng_have_capabilities
171
def capng_have_capability(*args):
172
return _capng.capng_have_capability(*args)
116
173
capng_have_capability = _capng.capng_have_capability
175
def capng_print_caps_numeric(*args):
176
return _capng.capng_print_caps_numeric(*args)
117
177
capng_print_caps_numeric = _capng.capng_print_caps_numeric
179
def capng_print_caps_text(*args):
180
return _capng.capng_print_caps_text(*args)
118
181
capng_print_caps_text = _capng.capng_print_caps_text
183
def capng_name_to_capability(*args):
184
return _capng.capng_name_to_capability(*args)
119
185
capng_name_to_capability = _capng.capng_name_to_capability
187
def capng_capability_to_name(*args):
188
return _capng.capng_capability_to_name(*args)
120
189
capng_capability_to_name = _capng.capng_capability_to_name