~ubuntu-branches/ubuntu/saucy/libcap-ng/saucy

« back to all changes in this revision

Viewing changes to bindings/python/capng.py

  • Committer: Bazaar Package Importer
  • Author(s): Pierre Chifflier
  • Date: 2009-10-09 10:22:55 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20091009102255-vu3naws5vf005wv3
Tags: 0.6.2-1
New upstream release

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
# This file was automatically generated by SWIG (http://www.swig.org).
2
 
# Version 1.3.35
 
2
# Version 1.3.39
3
3
#
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.
6
7
 
7
 
import _capng
8
 
import new
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
 
12
        import imp
 
13
        fp = None
 
14
        try:
 
15
            fp, pathname, description = imp.find_module('_capng', [dirname(__file__)])
 
16
        except ImportError:
 
17
            import _capng
 
18
            return _capng
 
19
        if fp is not None:
 
20
            try:
 
21
                _mod = imp.load_module('_capng', fp, pathname, description)
 
22
            finally:
 
23
                fp.close()
 
24
                return _mod
 
25
    _capng = swig_import_helper()
 
26
    del swig_import_helper
 
27
else:
 
28
    import _capng
 
29
del version_info
10
30
try:
11
31
    _swig_property = property
12
32
except NameError:
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
19
39
            return
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)
35
55
 
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,)
40
60
 
41
 
import types
42
61
try:
43
 
    _object = types.ObjectType
 
62
    _object = object
44
63
    _newclass = 1
45
64
except AttributeError:
46
65
    class _object : pass
47
66
    _newclass = 0
48
 
del types
49
67
 
50
68
 
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
 
122
 
 
123
def capng_clear(*args):
 
124
  return _capng.capng_clear(*args)
104
125
capng_clear = _capng.capng_clear
 
126
 
 
127
def capng_fill(*args):
 
128
  return _capng.capng_fill(*args)
105
129
capng_fill = _capng.capng_fill
 
130
 
 
131
def capng_setpid(*args):
 
132
  return _capng.capng_setpid(*args)
106
133
capng_setpid = _capng.capng_setpid
 
134
 
 
135
def capng_get_caps_process():
 
136
  return _capng.capng_get_caps_process()
107
137
capng_get_caps_process = _capng.capng_get_caps_process
 
138
 
 
139
def capng_update(*args):
 
140
  return _capng.capng_update(*args)
108
141
capng_update = _capng.capng_update
 
142
 
 
143
def capng_updatev(*args):
 
144
  return _capng.capng_updatev(*args)
109
145
capng_updatev = _capng.capng_updatev
 
146
 
 
147
def capng_apply(*args):
 
148
  return _capng.capng_apply(*args)
110
149
capng_apply = _capng.capng_apply
 
150
 
 
151
def capng_lock():
 
152
  return _capng.capng_lock()
111
153
capng_lock = _capng.capng_lock
 
154
 
 
155
def capng_change_id(*args):
 
156
  return _capng.capng_change_id(*args)
112
157
capng_change_id = _capng.capng_change_id
 
158
 
 
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
 
162
 
 
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
 
166
 
 
167
def capng_have_capabilities(*args):
 
168
  return _capng.capng_have_capabilities(*args)
115
169
capng_have_capabilities = _capng.capng_have_capabilities
 
170
 
 
171
def capng_have_capability(*args):
 
172
  return _capng.capng_have_capability(*args)
116
173
capng_have_capability = _capng.capng_have_capability
 
174
 
 
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
 
178
 
 
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
 
182
 
 
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
 
186
 
 
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
121
190
 
122
191