Merge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into nosmbpython
[ab/samba.git/.git] / source4 / libcli / swig / libcli_nbt.py
1 # This file was automatically generated by SWIG (http://www.swig.org).
2 # Version 1.3.35
3 #
4 # Don't modify this file, modify the SWIG interface instead.
5
6 import _libcli_nbt
7 import new
8 new_instancemethod = new.instancemethod
9 try:
10     _swig_property = property
11 except NameError:
12     pass # Python < 2.2 doesn't have 'property'.
13 def _swig_setattr_nondynamic(self,class_type,name,value,static=1):
14     if (name == "thisown"): return self.this.own(value)
15     if (name == "this"):
16         if type(value).__name__ == 'PySwigObject':
17             self.__dict__[name] = value
18             return
19     method = class_type.__swig_setmethods__.get(name,None)
20     if method: return method(self,value)
21     if (not static) or hasattr(self,name):
22         self.__dict__[name] = value
23     else:
24         raise AttributeError("You cannot add attributes to %s" % self)
25
26 def _swig_setattr(self,class_type,name,value):
27     return _swig_setattr_nondynamic(self,class_type,name,value,0)
28
29 def _swig_getattr(self,class_type,name):
30     if (name == "thisown"): return self.this.own()
31     method = class_type.__swig_getmethods__.get(name,None)
32     if method: return method(self)
33     raise AttributeError,name
34
35 def _swig_repr(self):
36     try: strthis = "proxy of " + self.this.__repr__()
37     except: strthis = ""
38     return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,)
39
40 import types
41 try:
42     _object = types.ObjectType
43     _newclass = 1
44 except AttributeError:
45     class _object : pass
46     _newclass = 0
47 del types
48
49
50 def _swig_setattr_nondynamic_method(set):
51     def set_attr(self,name,value):
52         if (name == "thisown"): return self.this.own(value)
53         if hasattr(self,name) or (name == "this"):
54             set(self,name,value)
55         else:
56             raise AttributeError("You cannot add attributes to %s" % self)
57     return set_attr
58
59
60 import events
61 nbt_name_socket_init = _libcli_nbt.nbt_name_socket_init
62 NBT_NAME_CLIENT = _libcli_nbt.NBT_NAME_CLIENT
63 NBT_NAME_MS = _libcli_nbt.NBT_NAME_MS
64 NBT_NAME_USER = _libcli_nbt.NBT_NAME_USER
65 NBT_NAME_SERVER = _libcli_nbt.NBT_NAME_SERVER
66 NBT_NAME_PDC = _libcli_nbt.NBT_NAME_PDC
67 NBT_NAME_LOGON = _libcli_nbt.NBT_NAME_LOGON
68 NBT_NAME_MASTER = _libcli_nbt.NBT_NAME_MASTER
69 NBT_NAME_BROWSER = _libcli_nbt.NBT_NAME_BROWSER
70 class nbt_name(object):
71     thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
72     __repr__ = _swig_repr
73     name = _swig_property(_libcli_nbt.nbt_name_name_get, _libcli_nbt.nbt_name_name_set)
74     scope = _swig_property(_libcli_nbt.nbt_name_scope_get, _libcli_nbt.nbt_name_scope_set)
75     type = _swig_property(_libcli_nbt.nbt_name_type_get, _libcli_nbt.nbt_name_type_set)
76     def __init__(self, *args, **kwargs): 
77         _libcli_nbt.nbt_name_swiginit(self,_libcli_nbt.new_nbt_name(*args, **kwargs))
78     __swig_destroy__ = _libcli_nbt.delete_nbt_name
79 nbt_name_swigregister = _libcli_nbt.nbt_name_swigregister
80 nbt_name_swigregister(nbt_name)
81
82 class nbt_name_query(object):
83     thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
84     __repr__ = _swig_repr
85     data_out = _swig_property(_libcli_nbt.nbt_name_query_data_out_get)
86     data_in = _swig_property(_libcli_nbt.nbt_name_query_data_in_get)
87     def __init__(self, *args, **kwargs): 
88         _libcli_nbt.nbt_name_query_swiginit(self,_libcli_nbt.new_nbt_name_query(*args, **kwargs))
89     __swig_destroy__ = _libcli_nbt.delete_nbt_name_query
90 nbt_name_query_swigregister = _libcli_nbt.nbt_name_query_swigregister
91 nbt_name_query_swigregister(nbt_name_query)
92
93 class nbt_name_query_out(object):
94     thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
95     __repr__ = _swig_repr
96     reply_from = _swig_property(_libcli_nbt.nbt_name_query_out_reply_from_get, _libcli_nbt.nbt_name_query_out_reply_from_set)
97     name = _swig_property(_libcli_nbt.nbt_name_query_out_name_get, _libcli_nbt.nbt_name_query_out_name_set)
98     num_addrs = _swig_property(_libcli_nbt.nbt_name_query_out_num_addrs_get, _libcli_nbt.nbt_name_query_out_num_addrs_set)
99     reply_addrs = _swig_property(_libcli_nbt.nbt_name_query_out_reply_addrs_get, _libcli_nbt.nbt_name_query_out_reply_addrs_set)
100     def __init__(self, *args, **kwargs): 
101         _libcli_nbt.nbt_name_query_out_swiginit(self,_libcli_nbt.new_nbt_name_query_out(*args, **kwargs))
102     __swig_destroy__ = _libcli_nbt.delete_nbt_name_query_out
103 nbt_name_query_out_swigregister = _libcli_nbt.nbt_name_query_out_swigregister
104 nbt_name_query_out_swigregister(nbt_name_query_out)
105
106 class nbt_name_query_in(object):
107     thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
108     __repr__ = _swig_repr
109     name = _swig_property(_libcli_nbt.nbt_name_query_in_name_get, _libcli_nbt.nbt_name_query_in_name_set)
110     dest_addr = _swig_property(_libcli_nbt.nbt_name_query_in_dest_addr_get, _libcli_nbt.nbt_name_query_in_dest_addr_set)
111     broadcast = _swig_property(_libcli_nbt.nbt_name_query_in_broadcast_get, _libcli_nbt.nbt_name_query_in_broadcast_set)
112     wins_lookup = _swig_property(_libcli_nbt.nbt_name_query_in_wins_lookup_get, _libcli_nbt.nbt_name_query_in_wins_lookup_set)
113     timeout = _swig_property(_libcli_nbt.nbt_name_query_in_timeout_get, _libcli_nbt.nbt_name_query_in_timeout_set)
114     retries = _swig_property(_libcli_nbt.nbt_name_query_in_retries_get, _libcli_nbt.nbt_name_query_in_retries_set)
115     def __init__(self, *args, **kwargs): 
116         _libcli_nbt.nbt_name_query_in_swiginit(self,_libcli_nbt.new_nbt_name_query_in(*args, **kwargs))
117     __swig_destroy__ = _libcli_nbt.delete_nbt_name_query_in
118 nbt_name_query_in_swigregister = _libcli_nbt.nbt_name_query_in_swigregister
119 nbt_name_query_in_swigregister(nbt_name_query_in)
120
121 new_char_ptr_array = _libcli_nbt.new_char_ptr_array
122 delete_char_ptr_array = _libcli_nbt.delete_char_ptr_array
123 char_ptr_array_getitem = _libcli_nbt.char_ptr_array_getitem
124 char_ptr_array_setitem = _libcli_nbt.char_ptr_array_setitem
125 do_nbt_name_query = _libcli_nbt.do_nbt_name_query
126
127