938ab382f6b2e14ddf4fe5caec9142198a99be63
[ira/wip.git] / source / libcli / swig / libcli_nbt.py
1 # This file was automatically generated by SWIG (http://www.swig.org).
2 # Version 1.3.33
3 #
4 # Don't modify this file, modify the SWIG interface instead.
5 # This file is compatible with both classic and new-style classes.
6
7 import _libcli_nbt
8 import new
9 new_instancemethod = new.instancemethod
10 try:
11     _swig_property = property
12 except NameError:
13     pass # Python < 2.2 doesn't have 'property'.
14 def _swig_setattr_nondynamic(self,class_type,name,value,static=1):
15     if (name == "thisown"): return self.this.own(value)
16     if (name == "this"):
17         if type(value).__name__ == 'PySwigObject':
18             self.__dict__[name] = value
19             return
20     method = class_type.__swig_setmethods__.get(name,None)
21     if method: return method(self,value)
22     if (not static) or hasattr(self,name):
23         self.__dict__[name] = value
24     else:
25         raise AttributeError("You cannot add attributes to %s" % self)
26
27 def _swig_setattr(self,class_type,name,value):
28     return _swig_setattr_nondynamic(self,class_type,name,value,0)
29
30 def _swig_getattr(self,class_type,name):
31     if (name == "thisown"): return self.this.own()
32     method = class_type.__swig_getmethods__.get(name,None)
33     if method: return method(self)
34     raise AttributeError,name
35
36 def _swig_repr(self):
37     try: strthis = "proxy of " + self.this.__repr__()
38     except: strthis = ""
39     return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,)
40
41 import types
42 try:
43     _object = types.ObjectType
44     _newclass = 1
45 except AttributeError:
46     class _object : pass
47     _newclass = 0
48 del types
49
50
51 import events
52 nbt_name_socket_init = _libcli_nbt.nbt_name_socket_init
53 NBT_NAME_CLIENT = _libcli_nbt.NBT_NAME_CLIENT
54 NBT_NAME_MS = _libcli_nbt.NBT_NAME_MS
55 NBT_NAME_USER = _libcli_nbt.NBT_NAME_USER
56 NBT_NAME_SERVER = _libcli_nbt.NBT_NAME_SERVER
57 NBT_NAME_PDC = _libcli_nbt.NBT_NAME_PDC
58 NBT_NAME_LOGON = _libcli_nbt.NBT_NAME_LOGON
59 NBT_NAME_MASTER = _libcli_nbt.NBT_NAME_MASTER
60 NBT_NAME_BROWSER = _libcli_nbt.NBT_NAME_BROWSER
61 class nbt_name(_object):
62     __swig_setmethods__ = {}
63     __setattr__ = lambda self, name, value: _swig_setattr(self, nbt_name, name, value)
64     __swig_getmethods__ = {}
65     __getattr__ = lambda self, name: _swig_getattr(self, nbt_name, name)
66     __repr__ = _swig_repr
67     __swig_setmethods__["name"] = _libcli_nbt.nbt_name_name_set
68     __swig_getmethods__["name"] = _libcli_nbt.nbt_name_name_get
69     if _newclass:name = _swig_property(_libcli_nbt.nbt_name_name_get, _libcli_nbt.nbt_name_name_set)
70     __swig_setmethods__["scope"] = _libcli_nbt.nbt_name_scope_set
71     __swig_getmethods__["scope"] = _libcli_nbt.nbt_name_scope_get
72     if _newclass:scope = _swig_property(_libcli_nbt.nbt_name_scope_get, _libcli_nbt.nbt_name_scope_set)
73     __swig_setmethods__["type"] = _libcli_nbt.nbt_name_type_set
74     __swig_getmethods__["type"] = _libcli_nbt.nbt_name_type_get
75     if _newclass:type = _swig_property(_libcli_nbt.nbt_name_type_get, _libcli_nbt.nbt_name_type_set)
76     def __init__(self, *args, **kwargs): 
77         this = _libcli_nbt.new_nbt_name(*args, **kwargs)
78         try: self.this.append(this)
79         except: self.this = this
80     __swig_destroy__ = _libcli_nbt.delete_nbt_name
81     __del__ = lambda self : None;
82 nbt_name_swigregister = _libcli_nbt.nbt_name_swigregister
83 nbt_name_swigregister(nbt_name)
84
85 class nbt_name_query(_object):
86     __swig_setmethods__ = {}
87     __setattr__ = lambda self, name, value: _swig_setattr(self, nbt_name_query, name, value)
88     __swig_getmethods__ = {}
89     __getattr__ = lambda self, name: _swig_getattr(self, nbt_name_query, name)
90     __repr__ = _swig_repr
91     __swig_getmethods__["data_out"] = _libcli_nbt.nbt_name_query_data_out_get
92     if _newclass:data_out = _swig_property(_libcli_nbt.nbt_name_query_data_out_get)
93     __swig_getmethods__["data_in"] = _libcli_nbt.nbt_name_query_data_in_get
94     if _newclass:data_in = _swig_property(_libcli_nbt.nbt_name_query_data_in_get)
95     def __init__(self, *args, **kwargs): 
96         this = _libcli_nbt.new_nbt_name_query(*args, **kwargs)
97         try: self.this.append(this)
98         except: self.this = this
99     __swig_destroy__ = _libcli_nbt.delete_nbt_name_query
100     __del__ = lambda self : None;
101 nbt_name_query_swigregister = _libcli_nbt.nbt_name_query_swigregister
102 nbt_name_query_swigregister(nbt_name_query)
103
104 class nbt_name_query_out(_object):
105     __swig_setmethods__ = {}
106     __setattr__ = lambda self, name, value: _swig_setattr(self, nbt_name_query_out, name, value)
107     __swig_getmethods__ = {}
108     __getattr__ = lambda self, name: _swig_getattr(self, nbt_name_query_out, name)
109     __repr__ = _swig_repr
110     __swig_setmethods__["reply_from"] = _libcli_nbt.nbt_name_query_out_reply_from_set
111     __swig_getmethods__["reply_from"] = _libcli_nbt.nbt_name_query_out_reply_from_get
112     if _newclass:reply_from = _swig_property(_libcli_nbt.nbt_name_query_out_reply_from_get, _libcli_nbt.nbt_name_query_out_reply_from_set)
113     __swig_setmethods__["name"] = _libcli_nbt.nbt_name_query_out_name_set
114     __swig_getmethods__["name"] = _libcli_nbt.nbt_name_query_out_name_get
115     if _newclass:name = _swig_property(_libcli_nbt.nbt_name_query_out_name_get, _libcli_nbt.nbt_name_query_out_name_set)
116     __swig_setmethods__["num_addrs"] = _libcli_nbt.nbt_name_query_out_num_addrs_set
117     __swig_getmethods__["num_addrs"] = _libcli_nbt.nbt_name_query_out_num_addrs_get
118     if _newclass:num_addrs = _swig_property(_libcli_nbt.nbt_name_query_out_num_addrs_get, _libcli_nbt.nbt_name_query_out_num_addrs_set)
119     __swig_setmethods__["reply_addrs"] = _libcli_nbt.nbt_name_query_out_reply_addrs_set
120     __swig_getmethods__["reply_addrs"] = _libcli_nbt.nbt_name_query_out_reply_addrs_get
121     if _newclass:reply_addrs = _swig_property(_libcli_nbt.nbt_name_query_out_reply_addrs_get, _libcli_nbt.nbt_name_query_out_reply_addrs_set)
122     def __init__(self, *args, **kwargs): 
123         this = _libcli_nbt.new_nbt_name_query_out(*args, **kwargs)
124         try: self.this.append(this)
125         except: self.this = this
126     __swig_destroy__ = _libcli_nbt.delete_nbt_name_query_out
127     __del__ = lambda self : None;
128 nbt_name_query_out_swigregister = _libcli_nbt.nbt_name_query_out_swigregister
129 nbt_name_query_out_swigregister(nbt_name_query_out)
130
131 class nbt_name_query_in(_object):
132     __swig_setmethods__ = {}
133     __setattr__ = lambda self, name, value: _swig_setattr(self, nbt_name_query_in, name, value)
134     __swig_getmethods__ = {}
135     __getattr__ = lambda self, name: _swig_getattr(self, nbt_name_query_in, name)
136     __repr__ = _swig_repr
137     __swig_setmethods__["name"] = _libcli_nbt.nbt_name_query_in_name_set
138     __swig_getmethods__["name"] = _libcli_nbt.nbt_name_query_in_name_get
139     if _newclass:name = _swig_property(_libcli_nbt.nbt_name_query_in_name_get, _libcli_nbt.nbt_name_query_in_name_set)
140     __swig_setmethods__["dest_addr"] = _libcli_nbt.nbt_name_query_in_dest_addr_set
141     __swig_getmethods__["dest_addr"] = _libcli_nbt.nbt_name_query_in_dest_addr_get
142     if _newclass:dest_addr = _swig_property(_libcli_nbt.nbt_name_query_in_dest_addr_get, _libcli_nbt.nbt_name_query_in_dest_addr_set)
143     __swig_setmethods__["broadcast"] = _libcli_nbt.nbt_name_query_in_broadcast_set
144     __swig_getmethods__["broadcast"] = _libcli_nbt.nbt_name_query_in_broadcast_get
145     if _newclass:broadcast = _swig_property(_libcli_nbt.nbt_name_query_in_broadcast_get, _libcli_nbt.nbt_name_query_in_broadcast_set)
146     __swig_setmethods__["wins_lookup"] = _libcli_nbt.nbt_name_query_in_wins_lookup_set
147     __swig_getmethods__["wins_lookup"] = _libcli_nbt.nbt_name_query_in_wins_lookup_get
148     if _newclass:wins_lookup = _swig_property(_libcli_nbt.nbt_name_query_in_wins_lookup_get, _libcli_nbt.nbt_name_query_in_wins_lookup_set)
149     __swig_setmethods__["timeout"] = _libcli_nbt.nbt_name_query_in_timeout_set
150     __swig_getmethods__["timeout"] = _libcli_nbt.nbt_name_query_in_timeout_get
151     if _newclass:timeout = _swig_property(_libcli_nbt.nbt_name_query_in_timeout_get, _libcli_nbt.nbt_name_query_in_timeout_set)
152     __swig_setmethods__["retries"] = _libcli_nbt.nbt_name_query_in_retries_set
153     __swig_getmethods__["retries"] = _libcli_nbt.nbt_name_query_in_retries_get
154     if _newclass:retries = _swig_property(_libcli_nbt.nbt_name_query_in_retries_get, _libcli_nbt.nbt_name_query_in_retries_set)
155     def __init__(self, *args, **kwargs): 
156         this = _libcli_nbt.new_nbt_name_query_in(*args, **kwargs)
157         try: self.this.append(this)
158         except: self.this = this
159     __swig_destroy__ = _libcli_nbt.delete_nbt_name_query_in
160     __del__ = lambda self : None;
161 nbt_name_query_in_swigregister = _libcli_nbt.nbt_name_query_in_swigregister
162 nbt_name_query_in_swigregister(nbt_name_query_in)
163
164 new_char_ptr_array = _libcli_nbt.new_char_ptr_array
165 delete_char_ptr_array = _libcli_nbt.delete_char_ptr_array
166 char_ptr_array_getitem = _libcli_nbt.char_ptr_array_getitem
167 char_ptr_array_setitem = _libcli_nbt.char_ptr_array_setitem
168 do_nbt_name_query = _libcli_nbt.do_nbt_name_query
169
170