2 /* Python wrapper functions auto-generated by pidl */
6 #include "librpc/rpc/pyrpc.h"
7 #include "librpc/rpc/pyrpc_util.h"
8 #include "bin/default/librpc/gen_ndr/ndr_srvsvc.h"
9 #include "bin/default/librpc/gen_ndr/ndr_srvsvc_c.h"
11 #include "librpc/gen_ndr/misc.h"
12 #include "librpc/gen_ndr/security.h"
13 #include "librpc/gen_ndr/svcctl.h"
14 staticforward PyTypeObject srvsvc_NetCharDevInfo0_Type;
15 staticforward PyTypeObject srvsvc_NetCharDevCtr0_Type;
16 staticforward PyTypeObject srvsvc_NetCharDevInfo1_Type;
17 staticforward PyTypeObject srvsvc_NetCharDevCtr1_Type;
18 staticforward PyTypeObject srvsvc_NetCharDevInfoCtr_Type;
19 staticforward PyTypeObject srvsvc_NetCharDevQInfo0_Type;
20 staticforward PyTypeObject srvsvc_NetCharDevQCtr0_Type;
21 staticforward PyTypeObject srvsvc_NetCharDevQInfo1_Type;
22 staticforward PyTypeObject srvsvc_NetCharDevQCtr1_Type;
23 staticforward PyTypeObject srvsvc_NetCharDevQInfoCtr_Type;
24 staticforward PyTypeObject srvsvc_NetConnInfo0_Type;
25 staticforward PyTypeObject srvsvc_NetConnCtr0_Type;
26 staticforward PyTypeObject srvsvc_NetConnInfo1_Type;
27 staticforward PyTypeObject srvsvc_NetConnCtr1_Type;
28 staticforward PyTypeObject srvsvc_NetConnInfoCtr_Type;
29 staticforward PyTypeObject srvsvc_NetFileInfo2_Type;
30 staticforward PyTypeObject srvsvc_NetFileCtr2_Type;
31 staticforward PyTypeObject srvsvc_NetFileInfo3_Type;
32 staticforward PyTypeObject srvsvc_NetFileCtr3_Type;
33 staticforward PyTypeObject srvsvc_NetFileInfoCtr_Type;
34 staticforward PyTypeObject srvsvc_NetSessInfo0_Type;
35 staticforward PyTypeObject srvsvc_NetSessCtr0_Type;
36 staticforward PyTypeObject srvsvc_NetSessInfo1_Type;
37 staticforward PyTypeObject srvsvc_NetSessCtr1_Type;
38 staticforward PyTypeObject srvsvc_NetSessInfo2_Type;
39 staticforward PyTypeObject srvsvc_NetSessCtr2_Type;
40 staticforward PyTypeObject srvsvc_NetSessInfo10_Type;
41 staticforward PyTypeObject srvsvc_NetSessCtr10_Type;
42 staticforward PyTypeObject srvsvc_NetSessInfo502_Type;
43 staticforward PyTypeObject srvsvc_NetSessCtr502_Type;
44 staticforward PyTypeObject srvsvc_NetSessInfoCtr_Type;
45 staticforward PyTypeObject srvsvc_NetShareInfo0_Type;
46 staticforward PyTypeObject srvsvc_NetShareCtr0_Type;
47 staticforward PyTypeObject srvsvc_NetShareInfo1_Type;
48 staticforward PyTypeObject srvsvc_NetShareCtr1_Type;
49 staticforward PyTypeObject srvsvc_NetShareInfo2_Type;
50 staticforward PyTypeObject srvsvc_NetShareCtr2_Type;
51 staticforward PyTypeObject srvsvc_NetShareInfo501_Type;
52 staticforward PyTypeObject srvsvc_NetShareCtr501_Type;
53 staticforward PyTypeObject srvsvc_NetShareInfo502_Type;
54 staticforward PyTypeObject srvsvc_NetShareCtr502_Type;
55 staticforward PyTypeObject srvsvc_NetShareInfo1004_Type;
56 staticforward PyTypeObject srvsvc_NetShareCtr1004_Type;
57 staticforward PyTypeObject srvsvc_NetShareInfo1005_Type;
58 staticforward PyTypeObject srvsvc_NetShareCtr1005_Type;
59 staticforward PyTypeObject srvsvc_NetShareInfo1006_Type;
60 staticforward PyTypeObject srvsvc_NetShareCtr1006_Type;
61 staticforward PyTypeObject srvsvc_NetShareInfo1007_Type;
62 staticforward PyTypeObject srvsvc_NetShareCtr1007_Type;
63 staticforward PyTypeObject srvsvc_NetShareCtr1501_Type;
64 staticforward PyTypeObject srvsvc_NetShareInfoCtr_Type;
65 staticforward PyTypeObject srvsvc_NetSrvInfo100_Type;
66 staticforward PyTypeObject srvsvc_NetSrvInfo101_Type;
67 staticforward PyTypeObject srvsvc_NetSrvInfo102_Type;
68 staticforward PyTypeObject srvsvc_NetSrvInfo402_Type;
69 staticforward PyTypeObject srvsvc_NetSrvInfo403_Type;
70 staticforward PyTypeObject srvsvc_NetSrvInfo502_Type;
71 staticforward PyTypeObject srvsvc_NetSrvInfo503_Type;
72 staticforward PyTypeObject srvsvc_NetSrvInfo599_Type;
73 staticforward PyTypeObject srvsvc_NetSrvInfo1005_Type;
74 staticforward PyTypeObject srvsvc_NetSrvInfo1010_Type;
75 staticforward PyTypeObject srvsvc_NetSrvInfo1016_Type;
76 staticforward PyTypeObject srvsvc_NetSrvInfo1017_Type;
77 staticforward PyTypeObject srvsvc_NetSrvInfo1018_Type;
78 staticforward PyTypeObject srvsvc_NetSrvInfo1107_Type;
79 staticforward PyTypeObject srvsvc_NetSrvInfo1501_Type;
80 staticforward PyTypeObject srvsvc_NetSrvInfo1502_Type;
81 staticforward PyTypeObject srvsvc_NetSrvInfo1503_Type;
82 staticforward PyTypeObject srvsvc_NetSrvInfo1506_Type;
83 staticforward PyTypeObject srvsvc_NetSrvInfo1509_Type;
84 staticforward PyTypeObject srvsvc_NetSrvInfo1510_Type;
85 staticforward PyTypeObject srvsvc_NetSrvInfo1511_Type;
86 staticforward PyTypeObject srvsvc_NetSrvInfo1512_Type;
87 staticforward PyTypeObject srvsvc_NetSrvInfo1513_Type;
88 staticforward PyTypeObject srvsvc_NetSrvInfo1514_Type;
89 staticforward PyTypeObject srvsvc_NetSrvInfo1515_Type;
90 staticforward PyTypeObject srvsvc_NetSrvInfo1516_Type;
91 staticforward PyTypeObject srvsvc_NetSrvInfo1518_Type;
92 staticforward PyTypeObject srvsvc_NetSrvInfo1520_Type;
93 staticforward PyTypeObject srvsvc_NetSrvInfo1521_Type;
94 staticforward PyTypeObject srvsvc_NetSrvInfo1522_Type;
95 staticforward PyTypeObject srvsvc_NetSrvInfo1523_Type;
96 staticforward PyTypeObject srvsvc_NetSrvInfo1524_Type;
97 staticforward PyTypeObject srvsvc_NetSrvInfo1525_Type;
98 staticforward PyTypeObject srvsvc_NetSrvInfo1528_Type;
99 staticforward PyTypeObject srvsvc_NetSrvInfo1529_Type;
100 staticforward PyTypeObject srvsvc_NetSrvInfo1530_Type;
101 staticforward PyTypeObject srvsvc_NetSrvInfo1533_Type;
102 staticforward PyTypeObject srvsvc_NetSrvInfo1534_Type;
103 staticforward PyTypeObject srvsvc_NetSrvInfo1535_Type;
104 staticforward PyTypeObject srvsvc_NetSrvInfo1536_Type;
105 staticforward PyTypeObject srvsvc_NetSrvInfo1537_Type;
106 staticforward PyTypeObject srvsvc_NetSrvInfo1538_Type;
107 staticforward PyTypeObject srvsvc_NetSrvInfo1539_Type;
108 staticforward PyTypeObject srvsvc_NetSrvInfo1540_Type;
109 staticforward PyTypeObject srvsvc_NetSrvInfo1541_Type;
110 staticforward PyTypeObject srvsvc_NetSrvInfo1542_Type;
111 staticforward PyTypeObject srvsvc_NetSrvInfo1543_Type;
112 staticforward PyTypeObject srvsvc_NetSrvInfo1544_Type;
113 staticforward PyTypeObject srvsvc_NetSrvInfo1545_Type;
114 staticforward PyTypeObject srvsvc_NetSrvInfo1546_Type;
115 staticforward PyTypeObject srvsvc_NetSrvInfo1547_Type;
116 staticforward PyTypeObject srvsvc_NetSrvInfo1548_Type;
117 staticforward PyTypeObject srvsvc_NetSrvInfo1549_Type;
118 staticforward PyTypeObject srvsvc_NetSrvInfo1550_Type;
119 staticforward PyTypeObject srvsvc_NetSrvInfo1552_Type;
120 staticforward PyTypeObject srvsvc_NetSrvInfo1553_Type;
121 staticforward PyTypeObject srvsvc_NetSrvInfo1554_Type;
122 staticforward PyTypeObject srvsvc_NetSrvInfo1555_Type;
123 staticforward PyTypeObject srvsvc_NetSrvInfo1556_Type;
124 staticforward PyTypeObject srvsvc_NetDiskInfo0_Type;
125 staticforward PyTypeObject srvsvc_NetDiskInfo_Type;
126 staticforward PyTypeObject srvsvc_Statistics_Type;
127 staticforward PyTypeObject srvsvc_NetTransportInfo0_Type;
128 staticforward PyTypeObject srvsvc_NetTransportCtr0_Type;
129 staticforward PyTypeObject srvsvc_NetTransportInfo1_Type;
130 staticforward PyTypeObject srvsvc_NetTransportCtr1_Type;
131 staticforward PyTypeObject srvsvc_NetTransportInfo2_Type;
132 staticforward PyTypeObject srvsvc_NetTransportCtr2_Type;
133 staticforward PyTypeObject srvsvc_NetTransportInfo3_Type;
134 staticforward PyTypeObject srvsvc_NetTransportCtr3_Type;
135 staticforward PyTypeObject srvsvc_NetTransportInfoCtr_Type;
136 staticforward PyTypeObject srvsvc_NetRemoteTODInfo_Type;
137 staticforward PyTypeObject srvsvc_InterfaceType;
139 void initsrvsvc(void);static PyTypeObject *Object_Type;
140 static PyTypeObject *sec_desc_buf_Type;
141 static PyTypeObject *policy_handle_Type;
142 static PyTypeObject *ClientConnection_Type;
143 static PyTypeObject *ndr_syntax_id_Type;
145 static PyObject *py_srvsvc_NetCharDevInfo0_get_device(PyObject *obj, void *closure)
147 struct srvsvc_NetCharDevInfo0 *object = (struct srvsvc_NetCharDevInfo0 *)pytalloc_get_ptr(obj);
149 if (object->device == NULL) {
151 Py_INCREF(py_device);
153 if (object->device == NULL) {
155 Py_INCREF(py_device);
157 py_device = PyUnicode_Decode(object->device, strlen(object->device), "utf-8", "ignore");
163 static int py_srvsvc_NetCharDevInfo0_set_device(PyObject *py_obj, PyObject *value, void *closure)
165 struct srvsvc_NetCharDevInfo0 *object = (struct srvsvc_NetCharDevInfo0 *)pytalloc_get_ptr(py_obj);
166 if (value == Py_None) {
167 object->device = NULL;
169 object->device = NULL;
170 if (PyUnicode_Check(value)) {
171 object->device = PyString_AS_STRING(PyUnicode_AsEncodedString(value, "utf-8", "ignore"));
172 } else if (PyString_Check(value)) {
173 object->device = PyString_AS_STRING(value);
175 PyErr_Format(PyExc_TypeError, "Expected string or unicode object, got %s", Py_TYPE(value)->tp_name);
182 static PyGetSetDef py_srvsvc_NetCharDevInfo0_getsetters[] = {
183 { discard_const_p(char, "device"), py_srvsvc_NetCharDevInfo0_get_device, py_srvsvc_NetCharDevInfo0_set_device },
187 static PyObject *py_srvsvc_NetCharDevInfo0_new(PyTypeObject *type, PyObject *args, PyObject *kwargs)
189 return pytalloc_new(struct srvsvc_NetCharDevInfo0, type);
193 static PyTypeObject srvsvc_NetCharDevInfo0_Type = {
194 PyObject_HEAD_INIT(NULL) 0,
195 .tp_name = "srvsvc.NetCharDevInfo0",
196 .tp_getset = py_srvsvc_NetCharDevInfo0_getsetters,
198 .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
199 .tp_basicsize = sizeof(pytalloc_Object),
200 .tp_new = py_srvsvc_NetCharDevInfo0_new,
204 static PyObject *py_srvsvc_NetCharDevCtr0_get_count(PyObject *obj, void *closure)
206 struct srvsvc_NetCharDevCtr0 *object = (struct srvsvc_NetCharDevCtr0 *)pytalloc_get_ptr(obj);
208 py_count = PyInt_FromLong(object->count);
212 static int py_srvsvc_NetCharDevCtr0_set_count(PyObject *py_obj, PyObject *value, void *closure)
214 struct srvsvc_NetCharDevCtr0 *object = (struct srvsvc_NetCharDevCtr0 *)pytalloc_get_ptr(py_obj);
215 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
216 object->count = PyInt_AsLong(value);
220 static PyObject *py_srvsvc_NetCharDevCtr0_get_array(PyObject *obj, void *closure)
222 struct srvsvc_NetCharDevCtr0 *object = (struct srvsvc_NetCharDevCtr0 *)pytalloc_get_ptr(obj);
224 if (object->array == NULL) {
228 py_array = PyList_New(object->count);
229 if (py_array == NULL) {
234 for (array_cntr_1 = 0; array_cntr_1 < object->count; array_cntr_1++) {
235 PyObject *py_array_1;
236 py_array_1 = pytalloc_reference_ex(&srvsvc_NetCharDevInfo0_Type, object->array, &object->array[array_cntr_1]);
237 PyList_SetItem(py_array, array_cntr_1, py_array_1);
244 static int py_srvsvc_NetCharDevCtr0_set_array(PyObject *py_obj, PyObject *value, void *closure)
246 struct srvsvc_NetCharDevCtr0 *object = (struct srvsvc_NetCharDevCtr0 *)pytalloc_get_ptr(py_obj);
247 talloc_unlink(pytalloc_get_mem_ctx(py_obj), object->array);
248 if (value == Py_None) {
249 object->array = NULL;
251 object->array = NULL;
252 PY_CHECK_TYPE(&PyList_Type, value, return -1;);
255 object->array = talloc_array_ptrtype(pytalloc_get_mem_ctx(py_obj), object->array, PyList_GET_SIZE(value));
256 if (!object->array) { return -1;; }
257 talloc_set_name_const(object->array, "ARRAY: object->array");
258 for (array_cntr_1 = 0; array_cntr_1 < PyList_GET_SIZE(value); array_cntr_1++) {
259 PY_CHECK_TYPE(&srvsvc_NetCharDevInfo0_Type, PyList_GET_ITEM(value, array_cntr_1), return -1;);
260 if (talloc_reference(object->array, pytalloc_get_mem_ctx(PyList_GET_ITEM(value, array_cntr_1))) == NULL) {
264 object->array[array_cntr_1] = *(struct srvsvc_NetCharDevInfo0 *)pytalloc_get_ptr(PyList_GET_ITEM(value, array_cntr_1));
271 static PyGetSetDef py_srvsvc_NetCharDevCtr0_getsetters[] = {
272 { discard_const_p(char, "count"), py_srvsvc_NetCharDevCtr0_get_count, py_srvsvc_NetCharDevCtr0_set_count },
273 { discard_const_p(char, "array"), py_srvsvc_NetCharDevCtr0_get_array, py_srvsvc_NetCharDevCtr0_set_array },
277 static PyObject *py_srvsvc_NetCharDevCtr0_new(PyTypeObject *type, PyObject *args, PyObject *kwargs)
279 return pytalloc_new(struct srvsvc_NetCharDevCtr0, type);
283 static PyTypeObject srvsvc_NetCharDevCtr0_Type = {
284 PyObject_HEAD_INIT(NULL) 0,
285 .tp_name = "srvsvc.NetCharDevCtr0",
286 .tp_getset = py_srvsvc_NetCharDevCtr0_getsetters,
288 .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
289 .tp_basicsize = sizeof(pytalloc_Object),
290 .tp_new = py_srvsvc_NetCharDevCtr0_new,
294 static PyObject *py_srvsvc_NetCharDevInfo1_get_device(PyObject *obj, void *closure)
296 struct srvsvc_NetCharDevInfo1 *object = (struct srvsvc_NetCharDevInfo1 *)pytalloc_get_ptr(obj);
298 if (object->device == NULL) {
300 Py_INCREF(py_device);
302 if (object->device == NULL) {
304 Py_INCREF(py_device);
306 py_device = PyUnicode_Decode(object->device, strlen(object->device), "utf-8", "ignore");
312 static int py_srvsvc_NetCharDevInfo1_set_device(PyObject *py_obj, PyObject *value, void *closure)
314 struct srvsvc_NetCharDevInfo1 *object = (struct srvsvc_NetCharDevInfo1 *)pytalloc_get_ptr(py_obj);
315 if (value == Py_None) {
316 object->device = NULL;
318 object->device = NULL;
319 if (PyUnicode_Check(value)) {
320 object->device = PyString_AS_STRING(PyUnicode_AsEncodedString(value, "utf-8", "ignore"));
321 } else if (PyString_Check(value)) {
322 object->device = PyString_AS_STRING(value);
324 PyErr_Format(PyExc_TypeError, "Expected string or unicode object, got %s", Py_TYPE(value)->tp_name);
331 static PyObject *py_srvsvc_NetCharDevInfo1_get_status(PyObject *obj, void *closure)
333 struct srvsvc_NetCharDevInfo1 *object = (struct srvsvc_NetCharDevInfo1 *)pytalloc_get_ptr(obj);
335 py_status = PyInt_FromLong(object->status);
339 static int py_srvsvc_NetCharDevInfo1_set_status(PyObject *py_obj, PyObject *value, void *closure)
341 struct srvsvc_NetCharDevInfo1 *object = (struct srvsvc_NetCharDevInfo1 *)pytalloc_get_ptr(py_obj);
342 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
343 object->status = PyInt_AsLong(value);
347 static PyObject *py_srvsvc_NetCharDevInfo1_get_user(PyObject *obj, void *closure)
349 struct srvsvc_NetCharDevInfo1 *object = (struct srvsvc_NetCharDevInfo1 *)pytalloc_get_ptr(obj);
351 if (object->user == NULL) {
355 if (object->user == NULL) {
359 py_user = PyUnicode_Decode(object->user, strlen(object->user), "utf-8", "ignore");
365 static int py_srvsvc_NetCharDevInfo1_set_user(PyObject *py_obj, PyObject *value, void *closure)
367 struct srvsvc_NetCharDevInfo1 *object = (struct srvsvc_NetCharDevInfo1 *)pytalloc_get_ptr(py_obj);
368 if (value == Py_None) {
372 if (PyUnicode_Check(value)) {
373 object->user = PyString_AS_STRING(PyUnicode_AsEncodedString(value, "utf-8", "ignore"));
374 } else if (PyString_Check(value)) {
375 object->user = PyString_AS_STRING(value);
377 PyErr_Format(PyExc_TypeError, "Expected string or unicode object, got %s", Py_TYPE(value)->tp_name);
384 static PyObject *py_srvsvc_NetCharDevInfo1_get_time(PyObject *obj, void *closure)
386 struct srvsvc_NetCharDevInfo1 *object = (struct srvsvc_NetCharDevInfo1 *)pytalloc_get_ptr(obj);
388 py_time = PyInt_FromLong(object->time);
392 static int py_srvsvc_NetCharDevInfo1_set_time(PyObject *py_obj, PyObject *value, void *closure)
394 struct srvsvc_NetCharDevInfo1 *object = (struct srvsvc_NetCharDevInfo1 *)pytalloc_get_ptr(py_obj);
395 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
396 object->time = PyInt_AsLong(value);
400 static PyGetSetDef py_srvsvc_NetCharDevInfo1_getsetters[] = {
401 { discard_const_p(char, "device"), py_srvsvc_NetCharDevInfo1_get_device, py_srvsvc_NetCharDevInfo1_set_device },
402 { discard_const_p(char, "status"), py_srvsvc_NetCharDevInfo1_get_status, py_srvsvc_NetCharDevInfo1_set_status },
403 { discard_const_p(char, "user"), py_srvsvc_NetCharDevInfo1_get_user, py_srvsvc_NetCharDevInfo1_set_user },
404 { discard_const_p(char, "time"), py_srvsvc_NetCharDevInfo1_get_time, py_srvsvc_NetCharDevInfo1_set_time },
408 static PyObject *py_srvsvc_NetCharDevInfo1_new(PyTypeObject *type, PyObject *args, PyObject *kwargs)
410 return pytalloc_new(struct srvsvc_NetCharDevInfo1, type);
414 static PyTypeObject srvsvc_NetCharDevInfo1_Type = {
415 PyObject_HEAD_INIT(NULL) 0,
416 .tp_name = "srvsvc.NetCharDevInfo1",
417 .tp_getset = py_srvsvc_NetCharDevInfo1_getsetters,
419 .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
420 .tp_basicsize = sizeof(pytalloc_Object),
421 .tp_new = py_srvsvc_NetCharDevInfo1_new,
425 static PyObject *py_srvsvc_NetCharDevCtr1_get_count(PyObject *obj, void *closure)
427 struct srvsvc_NetCharDevCtr1 *object = (struct srvsvc_NetCharDevCtr1 *)pytalloc_get_ptr(obj);
429 py_count = PyInt_FromLong(object->count);
433 static int py_srvsvc_NetCharDevCtr1_set_count(PyObject *py_obj, PyObject *value, void *closure)
435 struct srvsvc_NetCharDevCtr1 *object = (struct srvsvc_NetCharDevCtr1 *)pytalloc_get_ptr(py_obj);
436 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
437 object->count = PyInt_AsLong(value);
441 static PyObject *py_srvsvc_NetCharDevCtr1_get_array(PyObject *obj, void *closure)
443 struct srvsvc_NetCharDevCtr1 *object = (struct srvsvc_NetCharDevCtr1 *)pytalloc_get_ptr(obj);
445 if (object->array == NULL) {
449 py_array = PyList_New(object->count);
450 if (py_array == NULL) {
455 for (array_cntr_1 = 0; array_cntr_1 < object->count; array_cntr_1++) {
456 PyObject *py_array_1;
457 py_array_1 = pytalloc_reference_ex(&srvsvc_NetCharDevInfo1_Type, object->array, &object->array[array_cntr_1]);
458 PyList_SetItem(py_array, array_cntr_1, py_array_1);
465 static int py_srvsvc_NetCharDevCtr1_set_array(PyObject *py_obj, PyObject *value, void *closure)
467 struct srvsvc_NetCharDevCtr1 *object = (struct srvsvc_NetCharDevCtr1 *)pytalloc_get_ptr(py_obj);
468 talloc_unlink(pytalloc_get_mem_ctx(py_obj), object->array);
469 if (value == Py_None) {
470 object->array = NULL;
472 object->array = NULL;
473 PY_CHECK_TYPE(&PyList_Type, value, return -1;);
476 object->array = talloc_array_ptrtype(pytalloc_get_mem_ctx(py_obj), object->array, PyList_GET_SIZE(value));
477 if (!object->array) { return -1;; }
478 talloc_set_name_const(object->array, "ARRAY: object->array");
479 for (array_cntr_1 = 0; array_cntr_1 < PyList_GET_SIZE(value); array_cntr_1++) {
480 PY_CHECK_TYPE(&srvsvc_NetCharDevInfo1_Type, PyList_GET_ITEM(value, array_cntr_1), return -1;);
481 if (talloc_reference(object->array, pytalloc_get_mem_ctx(PyList_GET_ITEM(value, array_cntr_1))) == NULL) {
485 object->array[array_cntr_1] = *(struct srvsvc_NetCharDevInfo1 *)pytalloc_get_ptr(PyList_GET_ITEM(value, array_cntr_1));
492 static PyGetSetDef py_srvsvc_NetCharDevCtr1_getsetters[] = {
493 { discard_const_p(char, "count"), py_srvsvc_NetCharDevCtr1_get_count, py_srvsvc_NetCharDevCtr1_set_count },
494 { discard_const_p(char, "array"), py_srvsvc_NetCharDevCtr1_get_array, py_srvsvc_NetCharDevCtr1_set_array },
498 static PyObject *py_srvsvc_NetCharDevCtr1_new(PyTypeObject *type, PyObject *args, PyObject *kwargs)
500 return pytalloc_new(struct srvsvc_NetCharDevCtr1, type);
504 static PyTypeObject srvsvc_NetCharDevCtr1_Type = {
505 PyObject_HEAD_INIT(NULL) 0,
506 .tp_name = "srvsvc.NetCharDevCtr1",
507 .tp_getset = py_srvsvc_NetCharDevCtr1_getsetters,
509 .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
510 .tp_basicsize = sizeof(pytalloc_Object),
511 .tp_new = py_srvsvc_NetCharDevCtr1_new,
514 static PyObject *py_import_srvsvc_NetCharDevInfo(TALLOC_CTX *mem_ctx, int level, union srvsvc_NetCharDevInfo *in)
520 if (in->info0 == NULL) {
524 ret = pytalloc_reference_ex(&srvsvc_NetCharDevInfo0_Type, in->info0, in->info0);
529 if (in->info1 == NULL) {
533 ret = pytalloc_reference_ex(&srvsvc_NetCharDevInfo1_Type, in->info1, in->info1);
543 PyErr_SetString(PyExc_TypeError, "unknown union level");
547 static union srvsvc_NetCharDevInfo *py_export_srvsvc_NetCharDevInfo(TALLOC_CTX *mem_ctx, int level, PyObject *in)
549 union srvsvc_NetCharDevInfo *ret = talloc_zero(mem_ctx, union srvsvc_NetCharDevInfo);
556 PY_CHECK_TYPE(&srvsvc_NetCharDevInfo0_Type, in, talloc_free(ret); return NULL;);
557 if (talloc_reference(mem_ctx, pytalloc_get_mem_ctx(in)) == NULL) {
559 talloc_free(ret); return NULL;
561 ret->info0 = (struct srvsvc_NetCharDevInfo0 *)pytalloc_get_ptr(in);
570 PY_CHECK_TYPE(&srvsvc_NetCharDevInfo1_Type, in, talloc_free(ret); return NULL;);
571 if (talloc_reference(mem_ctx, pytalloc_get_mem_ctx(in)) == NULL) {
573 talloc_free(ret); return NULL;
575 ret->info1 = (struct srvsvc_NetCharDevInfo1 *)pytalloc_get_ptr(in);
587 static PyObject *py_import_srvsvc_NetCharDevCtr(TALLOC_CTX *mem_ctx, int level, union srvsvc_NetCharDevCtr *in)
593 if (in->ctr0 == NULL) {
597 ret = pytalloc_reference_ex(&srvsvc_NetCharDevCtr0_Type, in->ctr0, in->ctr0);
602 if (in->ctr1 == NULL) {
606 ret = pytalloc_reference_ex(&srvsvc_NetCharDevCtr1_Type, in->ctr1, in->ctr1);
616 PyErr_SetString(PyExc_TypeError, "unknown union level");
620 static union srvsvc_NetCharDevCtr *py_export_srvsvc_NetCharDevCtr(TALLOC_CTX *mem_ctx, int level, PyObject *in)
622 union srvsvc_NetCharDevCtr *ret = talloc_zero(mem_ctx, union srvsvc_NetCharDevCtr);
629 PY_CHECK_TYPE(&srvsvc_NetCharDevCtr0_Type, in, talloc_free(ret); return NULL;);
630 if (talloc_reference(mem_ctx, pytalloc_get_mem_ctx(in)) == NULL) {
632 talloc_free(ret); return NULL;
634 ret->ctr0 = (struct srvsvc_NetCharDevCtr0 *)pytalloc_get_ptr(in);
643 PY_CHECK_TYPE(&srvsvc_NetCharDevCtr1_Type, in, talloc_free(ret); return NULL;);
644 if (talloc_reference(mem_ctx, pytalloc_get_mem_ctx(in)) == NULL) {
646 talloc_free(ret); return NULL;
648 ret->ctr1 = (struct srvsvc_NetCharDevCtr1 *)pytalloc_get_ptr(in);
661 static PyObject *py_srvsvc_NetCharDevInfoCtr_get_level(PyObject *obj, void *closure)
663 struct srvsvc_NetCharDevInfoCtr *object = (struct srvsvc_NetCharDevInfoCtr *)pytalloc_get_ptr(obj);
665 py_level = PyInt_FromLong(object->level);
669 static int py_srvsvc_NetCharDevInfoCtr_set_level(PyObject *py_obj, PyObject *value, void *closure)
671 struct srvsvc_NetCharDevInfoCtr *object = (struct srvsvc_NetCharDevInfoCtr *)pytalloc_get_ptr(py_obj);
672 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
673 object->level = PyInt_AsLong(value);
677 static PyObject *py_srvsvc_NetCharDevInfoCtr_get_ctr(PyObject *obj, void *closure)
679 struct srvsvc_NetCharDevInfoCtr *object = (struct srvsvc_NetCharDevInfoCtr *)pytalloc_get_ptr(obj);
681 py_ctr = py_import_srvsvc_NetCharDevCtr(pytalloc_get_mem_ctx(obj), object->level, &object->ctr);
682 if (py_ctr == NULL) {
688 static int py_srvsvc_NetCharDevInfoCtr_set_ctr(PyObject *py_obj, PyObject *value, void *closure)
690 struct srvsvc_NetCharDevInfoCtr *object = (struct srvsvc_NetCharDevInfoCtr *)pytalloc_get_ptr(py_obj);
692 union srvsvc_NetCharDevCtr *ctr_switch_0;
693 ctr_switch_0 = py_export_srvsvc_NetCharDevCtr(pytalloc_get_mem_ctx(py_obj), object->level, value);
694 if (ctr_switch_0 == NULL) {
697 object->ctr = *ctr_switch_0;
702 static PyGetSetDef py_srvsvc_NetCharDevInfoCtr_getsetters[] = {
703 { discard_const_p(char, "level"), py_srvsvc_NetCharDevInfoCtr_get_level, py_srvsvc_NetCharDevInfoCtr_set_level },
704 { discard_const_p(char, "ctr"), py_srvsvc_NetCharDevInfoCtr_get_ctr, py_srvsvc_NetCharDevInfoCtr_set_ctr },
708 static PyObject *py_srvsvc_NetCharDevInfoCtr_new(PyTypeObject *type, PyObject *args, PyObject *kwargs)
710 return pytalloc_new(struct srvsvc_NetCharDevInfoCtr, type);
714 static PyTypeObject srvsvc_NetCharDevInfoCtr_Type = {
715 PyObject_HEAD_INIT(NULL) 0,
716 .tp_name = "srvsvc.NetCharDevInfoCtr",
717 .tp_getset = py_srvsvc_NetCharDevInfoCtr_getsetters,
719 .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
720 .tp_basicsize = sizeof(pytalloc_Object),
721 .tp_new = py_srvsvc_NetCharDevInfoCtr_new,
725 static PyObject *py_srvsvc_NetCharDevQInfo0_get_device(PyObject *obj, void *closure)
727 struct srvsvc_NetCharDevQInfo0 *object = (struct srvsvc_NetCharDevQInfo0 *)pytalloc_get_ptr(obj);
729 if (object->device == NULL) {
731 Py_INCREF(py_device);
733 if (object->device == NULL) {
735 Py_INCREF(py_device);
737 py_device = PyUnicode_Decode(object->device, strlen(object->device), "utf-8", "ignore");
743 static int py_srvsvc_NetCharDevQInfo0_set_device(PyObject *py_obj, PyObject *value, void *closure)
745 struct srvsvc_NetCharDevQInfo0 *object = (struct srvsvc_NetCharDevQInfo0 *)pytalloc_get_ptr(py_obj);
746 if (value == Py_None) {
747 object->device = NULL;
749 object->device = NULL;
750 if (PyUnicode_Check(value)) {
751 object->device = PyString_AS_STRING(PyUnicode_AsEncodedString(value, "utf-8", "ignore"));
752 } else if (PyString_Check(value)) {
753 object->device = PyString_AS_STRING(value);
755 PyErr_Format(PyExc_TypeError, "Expected string or unicode object, got %s", Py_TYPE(value)->tp_name);
762 static PyGetSetDef py_srvsvc_NetCharDevQInfo0_getsetters[] = {
763 { discard_const_p(char, "device"), py_srvsvc_NetCharDevQInfo0_get_device, py_srvsvc_NetCharDevQInfo0_set_device },
767 static PyObject *py_srvsvc_NetCharDevQInfo0_new(PyTypeObject *type, PyObject *args, PyObject *kwargs)
769 return pytalloc_new(struct srvsvc_NetCharDevQInfo0, type);
773 static PyTypeObject srvsvc_NetCharDevQInfo0_Type = {
774 PyObject_HEAD_INIT(NULL) 0,
775 .tp_name = "srvsvc.NetCharDevQInfo0",
776 .tp_getset = py_srvsvc_NetCharDevQInfo0_getsetters,
778 .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
779 .tp_basicsize = sizeof(pytalloc_Object),
780 .tp_new = py_srvsvc_NetCharDevQInfo0_new,
784 static PyObject *py_srvsvc_NetCharDevQCtr0_get_count(PyObject *obj, void *closure)
786 struct srvsvc_NetCharDevQCtr0 *object = (struct srvsvc_NetCharDevQCtr0 *)pytalloc_get_ptr(obj);
788 py_count = PyInt_FromLong(object->count);
792 static int py_srvsvc_NetCharDevQCtr0_set_count(PyObject *py_obj, PyObject *value, void *closure)
794 struct srvsvc_NetCharDevQCtr0 *object = (struct srvsvc_NetCharDevQCtr0 *)pytalloc_get_ptr(py_obj);
795 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
796 object->count = PyInt_AsLong(value);
800 static PyObject *py_srvsvc_NetCharDevQCtr0_get_array(PyObject *obj, void *closure)
802 struct srvsvc_NetCharDevQCtr0 *object = (struct srvsvc_NetCharDevQCtr0 *)pytalloc_get_ptr(obj);
804 if (object->array == NULL) {
808 py_array = PyList_New(object->count);
809 if (py_array == NULL) {
814 for (array_cntr_1 = 0; array_cntr_1 < object->count; array_cntr_1++) {
815 PyObject *py_array_1;
816 py_array_1 = pytalloc_reference_ex(&srvsvc_NetCharDevQInfo0_Type, object->array, &object->array[array_cntr_1]);
817 PyList_SetItem(py_array, array_cntr_1, py_array_1);
824 static int py_srvsvc_NetCharDevQCtr0_set_array(PyObject *py_obj, PyObject *value, void *closure)
826 struct srvsvc_NetCharDevQCtr0 *object = (struct srvsvc_NetCharDevQCtr0 *)pytalloc_get_ptr(py_obj);
827 talloc_unlink(pytalloc_get_mem_ctx(py_obj), object->array);
828 if (value == Py_None) {
829 object->array = NULL;
831 object->array = NULL;
832 PY_CHECK_TYPE(&PyList_Type, value, return -1;);
835 object->array = talloc_array_ptrtype(pytalloc_get_mem_ctx(py_obj), object->array, PyList_GET_SIZE(value));
836 if (!object->array) { return -1;; }
837 talloc_set_name_const(object->array, "ARRAY: object->array");
838 for (array_cntr_1 = 0; array_cntr_1 < PyList_GET_SIZE(value); array_cntr_1++) {
839 PY_CHECK_TYPE(&srvsvc_NetCharDevQInfo0_Type, PyList_GET_ITEM(value, array_cntr_1), return -1;);
840 if (talloc_reference(object->array, pytalloc_get_mem_ctx(PyList_GET_ITEM(value, array_cntr_1))) == NULL) {
844 object->array[array_cntr_1] = *(struct srvsvc_NetCharDevQInfo0 *)pytalloc_get_ptr(PyList_GET_ITEM(value, array_cntr_1));
851 static PyGetSetDef py_srvsvc_NetCharDevQCtr0_getsetters[] = {
852 { discard_const_p(char, "count"), py_srvsvc_NetCharDevQCtr0_get_count, py_srvsvc_NetCharDevQCtr0_set_count },
853 { discard_const_p(char, "array"), py_srvsvc_NetCharDevQCtr0_get_array, py_srvsvc_NetCharDevQCtr0_set_array },
857 static PyObject *py_srvsvc_NetCharDevQCtr0_new(PyTypeObject *type, PyObject *args, PyObject *kwargs)
859 return pytalloc_new(struct srvsvc_NetCharDevQCtr0, type);
863 static PyTypeObject srvsvc_NetCharDevQCtr0_Type = {
864 PyObject_HEAD_INIT(NULL) 0,
865 .tp_name = "srvsvc.NetCharDevQCtr0",
866 .tp_getset = py_srvsvc_NetCharDevQCtr0_getsetters,
868 .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
869 .tp_basicsize = sizeof(pytalloc_Object),
870 .tp_new = py_srvsvc_NetCharDevQCtr0_new,
874 static PyObject *py_srvsvc_NetCharDevQInfo1_get_device(PyObject *obj, void *closure)
876 struct srvsvc_NetCharDevQInfo1 *object = (struct srvsvc_NetCharDevQInfo1 *)pytalloc_get_ptr(obj);
878 if (object->device == NULL) {
880 Py_INCREF(py_device);
882 if (object->device == NULL) {
884 Py_INCREF(py_device);
886 py_device = PyUnicode_Decode(object->device, strlen(object->device), "utf-8", "ignore");
892 static int py_srvsvc_NetCharDevQInfo1_set_device(PyObject *py_obj, PyObject *value, void *closure)
894 struct srvsvc_NetCharDevQInfo1 *object = (struct srvsvc_NetCharDevQInfo1 *)pytalloc_get_ptr(py_obj);
895 if (value == Py_None) {
896 object->device = NULL;
898 object->device = NULL;
899 if (PyUnicode_Check(value)) {
900 object->device = PyString_AS_STRING(PyUnicode_AsEncodedString(value, "utf-8", "ignore"));
901 } else if (PyString_Check(value)) {
902 object->device = PyString_AS_STRING(value);
904 PyErr_Format(PyExc_TypeError, "Expected string or unicode object, got %s", Py_TYPE(value)->tp_name);
911 static PyObject *py_srvsvc_NetCharDevQInfo1_get_priority(PyObject *obj, void *closure)
913 struct srvsvc_NetCharDevQInfo1 *object = (struct srvsvc_NetCharDevQInfo1 *)pytalloc_get_ptr(obj);
914 PyObject *py_priority;
915 py_priority = PyInt_FromLong(object->priority);
919 static int py_srvsvc_NetCharDevQInfo1_set_priority(PyObject *py_obj, PyObject *value, void *closure)
921 struct srvsvc_NetCharDevQInfo1 *object = (struct srvsvc_NetCharDevQInfo1 *)pytalloc_get_ptr(py_obj);
922 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
923 object->priority = PyInt_AsLong(value);
927 static PyObject *py_srvsvc_NetCharDevQInfo1_get_devices(PyObject *obj, void *closure)
929 struct srvsvc_NetCharDevQInfo1 *object = (struct srvsvc_NetCharDevQInfo1 *)pytalloc_get_ptr(obj);
930 PyObject *py_devices;
931 if (object->devices == NULL) {
932 py_devices = Py_None;
933 Py_INCREF(py_devices);
935 if (object->devices == NULL) {
936 py_devices = Py_None;
937 Py_INCREF(py_devices);
939 py_devices = PyUnicode_Decode(object->devices, strlen(object->devices), "utf-8", "ignore");
945 static int py_srvsvc_NetCharDevQInfo1_set_devices(PyObject *py_obj, PyObject *value, void *closure)
947 struct srvsvc_NetCharDevQInfo1 *object = (struct srvsvc_NetCharDevQInfo1 *)pytalloc_get_ptr(py_obj);
948 if (value == Py_None) {
949 object->devices = NULL;
951 object->devices = NULL;
952 if (PyUnicode_Check(value)) {
953 object->devices = PyString_AS_STRING(PyUnicode_AsEncodedString(value, "utf-8", "ignore"));
954 } else if (PyString_Check(value)) {
955 object->devices = PyString_AS_STRING(value);
957 PyErr_Format(PyExc_TypeError, "Expected string or unicode object, got %s", Py_TYPE(value)->tp_name);
964 static PyObject *py_srvsvc_NetCharDevQInfo1_get_users(PyObject *obj, void *closure)
966 struct srvsvc_NetCharDevQInfo1 *object = (struct srvsvc_NetCharDevQInfo1 *)pytalloc_get_ptr(obj);
968 py_users = PyInt_FromLong(object->users);
972 static int py_srvsvc_NetCharDevQInfo1_set_users(PyObject *py_obj, PyObject *value, void *closure)
974 struct srvsvc_NetCharDevQInfo1 *object = (struct srvsvc_NetCharDevQInfo1 *)pytalloc_get_ptr(py_obj);
975 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
976 object->users = PyInt_AsLong(value);
980 static PyObject *py_srvsvc_NetCharDevQInfo1_get_num_ahead(PyObject *obj, void *closure)
982 struct srvsvc_NetCharDevQInfo1 *object = (struct srvsvc_NetCharDevQInfo1 *)pytalloc_get_ptr(obj);
983 PyObject *py_num_ahead;
984 py_num_ahead = PyInt_FromLong(object->num_ahead);
988 static int py_srvsvc_NetCharDevQInfo1_set_num_ahead(PyObject *py_obj, PyObject *value, void *closure)
990 struct srvsvc_NetCharDevQInfo1 *object = (struct srvsvc_NetCharDevQInfo1 *)pytalloc_get_ptr(py_obj);
991 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
992 object->num_ahead = PyInt_AsLong(value);
996 static PyGetSetDef py_srvsvc_NetCharDevQInfo1_getsetters[] = {
997 { discard_const_p(char, "device"), py_srvsvc_NetCharDevQInfo1_get_device, py_srvsvc_NetCharDevQInfo1_set_device },
998 { discard_const_p(char, "priority"), py_srvsvc_NetCharDevQInfo1_get_priority, py_srvsvc_NetCharDevQInfo1_set_priority },
999 { discard_const_p(char, "devices"), py_srvsvc_NetCharDevQInfo1_get_devices, py_srvsvc_NetCharDevQInfo1_set_devices },
1000 { discard_const_p(char, "users"), py_srvsvc_NetCharDevQInfo1_get_users, py_srvsvc_NetCharDevQInfo1_set_users },
1001 { discard_const_p(char, "num_ahead"), py_srvsvc_NetCharDevQInfo1_get_num_ahead, py_srvsvc_NetCharDevQInfo1_set_num_ahead },
1005 static PyObject *py_srvsvc_NetCharDevQInfo1_new(PyTypeObject *type, PyObject *args, PyObject *kwargs)
1007 return pytalloc_new(struct srvsvc_NetCharDevQInfo1, type);
1011 static PyTypeObject srvsvc_NetCharDevQInfo1_Type = {
1012 PyObject_HEAD_INIT(NULL) 0,
1013 .tp_name = "srvsvc.NetCharDevQInfo1",
1014 .tp_getset = py_srvsvc_NetCharDevQInfo1_getsetters,
1016 .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
1017 .tp_basicsize = sizeof(pytalloc_Object),
1018 .tp_new = py_srvsvc_NetCharDevQInfo1_new,
1022 static PyObject *py_srvsvc_NetCharDevQCtr1_get_count(PyObject *obj, void *closure)
1024 struct srvsvc_NetCharDevQCtr1 *object = (struct srvsvc_NetCharDevQCtr1 *)pytalloc_get_ptr(obj);
1026 py_count = PyInt_FromLong(object->count);
1030 static int py_srvsvc_NetCharDevQCtr1_set_count(PyObject *py_obj, PyObject *value, void *closure)
1032 struct srvsvc_NetCharDevQCtr1 *object = (struct srvsvc_NetCharDevQCtr1 *)pytalloc_get_ptr(py_obj);
1033 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
1034 object->count = PyInt_AsLong(value);
1038 static PyObject *py_srvsvc_NetCharDevQCtr1_get_array(PyObject *obj, void *closure)
1040 struct srvsvc_NetCharDevQCtr1 *object = (struct srvsvc_NetCharDevQCtr1 *)pytalloc_get_ptr(obj);
1042 if (object->array == NULL) {
1044 Py_INCREF(py_array);
1046 py_array = PyList_New(object->count);
1047 if (py_array == NULL) {
1052 for (array_cntr_1 = 0; array_cntr_1 < object->count; array_cntr_1++) {
1053 PyObject *py_array_1;
1054 py_array_1 = pytalloc_reference_ex(&srvsvc_NetCharDevQInfo1_Type, object->array, &object->array[array_cntr_1]);
1055 PyList_SetItem(py_array, array_cntr_1, py_array_1);
1062 static int py_srvsvc_NetCharDevQCtr1_set_array(PyObject *py_obj, PyObject *value, void *closure)
1064 struct srvsvc_NetCharDevQCtr1 *object = (struct srvsvc_NetCharDevQCtr1 *)pytalloc_get_ptr(py_obj);
1065 talloc_unlink(pytalloc_get_mem_ctx(py_obj), object->array);
1066 if (value == Py_None) {
1067 object->array = NULL;
1069 object->array = NULL;
1070 PY_CHECK_TYPE(&PyList_Type, value, return -1;);
1073 object->array = talloc_array_ptrtype(pytalloc_get_mem_ctx(py_obj), object->array, PyList_GET_SIZE(value));
1074 if (!object->array) { return -1;; }
1075 talloc_set_name_const(object->array, "ARRAY: object->array");
1076 for (array_cntr_1 = 0; array_cntr_1 < PyList_GET_SIZE(value); array_cntr_1++) {
1077 PY_CHECK_TYPE(&srvsvc_NetCharDevQInfo1_Type, PyList_GET_ITEM(value, array_cntr_1), return -1;);
1078 if (talloc_reference(object->array, pytalloc_get_mem_ctx(PyList_GET_ITEM(value, array_cntr_1))) == NULL) {
1082 object->array[array_cntr_1] = *(struct srvsvc_NetCharDevQInfo1 *)pytalloc_get_ptr(PyList_GET_ITEM(value, array_cntr_1));
1089 static PyGetSetDef py_srvsvc_NetCharDevQCtr1_getsetters[] = {
1090 { discard_const_p(char, "count"), py_srvsvc_NetCharDevQCtr1_get_count, py_srvsvc_NetCharDevQCtr1_set_count },
1091 { discard_const_p(char, "array"), py_srvsvc_NetCharDevQCtr1_get_array, py_srvsvc_NetCharDevQCtr1_set_array },
1095 static PyObject *py_srvsvc_NetCharDevQCtr1_new(PyTypeObject *type, PyObject *args, PyObject *kwargs)
1097 return pytalloc_new(struct srvsvc_NetCharDevQCtr1, type);
1101 static PyTypeObject srvsvc_NetCharDevQCtr1_Type = {
1102 PyObject_HEAD_INIT(NULL) 0,
1103 .tp_name = "srvsvc.NetCharDevQCtr1",
1104 .tp_getset = py_srvsvc_NetCharDevQCtr1_getsetters,
1106 .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
1107 .tp_basicsize = sizeof(pytalloc_Object),
1108 .tp_new = py_srvsvc_NetCharDevQCtr1_new,
1111 static PyObject *py_import_srvsvc_NetCharDevQInfo(TALLOC_CTX *mem_ctx, int level, union srvsvc_NetCharDevQInfo *in)
1117 if (in->info0 == NULL) {
1121 ret = pytalloc_reference_ex(&srvsvc_NetCharDevQInfo0_Type, in->info0, in->info0);
1126 if (in->info1 == NULL) {
1130 ret = pytalloc_reference_ex(&srvsvc_NetCharDevQInfo1_Type, in->info1, in->info1);
1140 PyErr_SetString(PyExc_TypeError, "unknown union level");
1144 static union srvsvc_NetCharDevQInfo *py_export_srvsvc_NetCharDevQInfo(TALLOC_CTX *mem_ctx, int level, PyObject *in)
1146 union srvsvc_NetCharDevQInfo *ret = talloc_zero(mem_ctx, union srvsvc_NetCharDevQInfo);
1149 if (in == Py_None) {
1153 PY_CHECK_TYPE(&srvsvc_NetCharDevQInfo0_Type, in, talloc_free(ret); return NULL;);
1154 if (talloc_reference(mem_ctx, pytalloc_get_mem_ctx(in)) == NULL) {
1156 talloc_free(ret); return NULL;
1158 ret->info0 = (struct srvsvc_NetCharDevQInfo0 *)pytalloc_get_ptr(in);
1163 if (in == Py_None) {
1167 PY_CHECK_TYPE(&srvsvc_NetCharDevQInfo1_Type, in, talloc_free(ret); return NULL;);
1168 if (talloc_reference(mem_ctx, pytalloc_get_mem_ctx(in)) == NULL) {
1170 talloc_free(ret); return NULL;
1172 ret->info1 = (struct srvsvc_NetCharDevQInfo1 *)pytalloc_get_ptr(in);
1184 static PyObject *py_import_srvsvc_NetCharDevQCtr(TALLOC_CTX *mem_ctx, int level, union srvsvc_NetCharDevQCtr *in)
1190 if (in->ctr0 == NULL) {
1194 ret = pytalloc_reference_ex(&srvsvc_NetCharDevQCtr0_Type, in->ctr0, in->ctr0);
1199 if (in->ctr1 == NULL) {
1203 ret = pytalloc_reference_ex(&srvsvc_NetCharDevQCtr1_Type, in->ctr1, in->ctr1);
1213 PyErr_SetString(PyExc_TypeError, "unknown union level");
1217 static union srvsvc_NetCharDevQCtr *py_export_srvsvc_NetCharDevQCtr(TALLOC_CTX *mem_ctx, int level, PyObject *in)
1219 union srvsvc_NetCharDevQCtr *ret = talloc_zero(mem_ctx, union srvsvc_NetCharDevQCtr);
1222 if (in == Py_None) {
1226 PY_CHECK_TYPE(&srvsvc_NetCharDevQCtr0_Type, in, talloc_free(ret); return NULL;);
1227 if (talloc_reference(mem_ctx, pytalloc_get_mem_ctx(in)) == NULL) {
1229 talloc_free(ret); return NULL;
1231 ret->ctr0 = (struct srvsvc_NetCharDevQCtr0 *)pytalloc_get_ptr(in);
1236 if (in == Py_None) {
1240 PY_CHECK_TYPE(&srvsvc_NetCharDevQCtr1_Type, in, talloc_free(ret); return NULL;);
1241 if (talloc_reference(mem_ctx, pytalloc_get_mem_ctx(in)) == NULL) {
1243 talloc_free(ret); return NULL;
1245 ret->ctr1 = (struct srvsvc_NetCharDevQCtr1 *)pytalloc_get_ptr(in);
1258 static PyObject *py_srvsvc_NetCharDevQInfoCtr_get_level(PyObject *obj, void *closure)
1260 struct srvsvc_NetCharDevQInfoCtr *object = (struct srvsvc_NetCharDevQInfoCtr *)pytalloc_get_ptr(obj);
1262 py_level = PyInt_FromLong(object->level);
1266 static int py_srvsvc_NetCharDevQInfoCtr_set_level(PyObject *py_obj, PyObject *value, void *closure)
1268 struct srvsvc_NetCharDevQInfoCtr *object = (struct srvsvc_NetCharDevQInfoCtr *)pytalloc_get_ptr(py_obj);
1269 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
1270 object->level = PyInt_AsLong(value);
1274 static PyObject *py_srvsvc_NetCharDevQInfoCtr_get_ctr(PyObject *obj, void *closure)
1276 struct srvsvc_NetCharDevQInfoCtr *object = (struct srvsvc_NetCharDevQInfoCtr *)pytalloc_get_ptr(obj);
1278 py_ctr = py_import_srvsvc_NetCharDevQCtr(pytalloc_get_mem_ctx(obj), object->level, &object->ctr);
1279 if (py_ctr == NULL) {
1285 static int py_srvsvc_NetCharDevQInfoCtr_set_ctr(PyObject *py_obj, PyObject *value, void *closure)
1287 struct srvsvc_NetCharDevQInfoCtr *object = (struct srvsvc_NetCharDevQInfoCtr *)pytalloc_get_ptr(py_obj);
1289 union srvsvc_NetCharDevQCtr *ctr_switch_0;
1290 ctr_switch_0 = py_export_srvsvc_NetCharDevQCtr(pytalloc_get_mem_ctx(py_obj), object->level, value);
1291 if (ctr_switch_0 == NULL) {
1294 object->ctr = *ctr_switch_0;
1299 static PyGetSetDef py_srvsvc_NetCharDevQInfoCtr_getsetters[] = {
1300 { discard_const_p(char, "level"), py_srvsvc_NetCharDevQInfoCtr_get_level, py_srvsvc_NetCharDevQInfoCtr_set_level },
1301 { discard_const_p(char, "ctr"), py_srvsvc_NetCharDevQInfoCtr_get_ctr, py_srvsvc_NetCharDevQInfoCtr_set_ctr },
1305 static PyObject *py_srvsvc_NetCharDevQInfoCtr_new(PyTypeObject *type, PyObject *args, PyObject *kwargs)
1307 return pytalloc_new(struct srvsvc_NetCharDevQInfoCtr, type);
1311 static PyTypeObject srvsvc_NetCharDevQInfoCtr_Type = {
1312 PyObject_HEAD_INIT(NULL) 0,
1313 .tp_name = "srvsvc.NetCharDevQInfoCtr",
1314 .tp_getset = py_srvsvc_NetCharDevQInfoCtr_getsetters,
1316 .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
1317 .tp_basicsize = sizeof(pytalloc_Object),
1318 .tp_new = py_srvsvc_NetCharDevQInfoCtr_new,
1322 static PyObject *py_srvsvc_NetConnInfo0_get_conn_id(PyObject *obj, void *closure)
1324 struct srvsvc_NetConnInfo0 *object = (struct srvsvc_NetConnInfo0 *)pytalloc_get_ptr(obj);
1325 PyObject *py_conn_id;
1326 py_conn_id = PyInt_FromLong(object->conn_id);
1330 static int py_srvsvc_NetConnInfo0_set_conn_id(PyObject *py_obj, PyObject *value, void *closure)
1332 struct srvsvc_NetConnInfo0 *object = (struct srvsvc_NetConnInfo0 *)pytalloc_get_ptr(py_obj);
1333 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
1334 object->conn_id = PyInt_AsLong(value);
1338 static PyGetSetDef py_srvsvc_NetConnInfo0_getsetters[] = {
1339 { discard_const_p(char, "conn_id"), py_srvsvc_NetConnInfo0_get_conn_id, py_srvsvc_NetConnInfo0_set_conn_id },
1343 static PyObject *py_srvsvc_NetConnInfo0_new(PyTypeObject *type, PyObject *args, PyObject *kwargs)
1345 return pytalloc_new(struct srvsvc_NetConnInfo0, type);
1349 static PyTypeObject srvsvc_NetConnInfo0_Type = {
1350 PyObject_HEAD_INIT(NULL) 0,
1351 .tp_name = "srvsvc.NetConnInfo0",
1352 .tp_getset = py_srvsvc_NetConnInfo0_getsetters,
1354 .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
1355 .tp_basicsize = sizeof(pytalloc_Object),
1356 .tp_new = py_srvsvc_NetConnInfo0_new,
1360 static PyObject *py_srvsvc_NetConnCtr0_get_count(PyObject *obj, void *closure)
1362 struct srvsvc_NetConnCtr0 *object = (struct srvsvc_NetConnCtr0 *)pytalloc_get_ptr(obj);
1364 py_count = PyInt_FromLong(object->count);
1368 static int py_srvsvc_NetConnCtr0_set_count(PyObject *py_obj, PyObject *value, void *closure)
1370 struct srvsvc_NetConnCtr0 *object = (struct srvsvc_NetConnCtr0 *)pytalloc_get_ptr(py_obj);
1371 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
1372 object->count = PyInt_AsLong(value);
1376 static PyObject *py_srvsvc_NetConnCtr0_get_array(PyObject *obj, void *closure)
1378 struct srvsvc_NetConnCtr0 *object = (struct srvsvc_NetConnCtr0 *)pytalloc_get_ptr(obj);
1380 if (object->array == NULL) {
1382 Py_INCREF(py_array);
1384 py_array = PyList_New(object->count);
1385 if (py_array == NULL) {
1390 for (array_cntr_1 = 0; array_cntr_1 < object->count; array_cntr_1++) {
1391 PyObject *py_array_1;
1392 py_array_1 = pytalloc_reference_ex(&srvsvc_NetConnInfo0_Type, object->array, &object->array[array_cntr_1]);
1393 PyList_SetItem(py_array, array_cntr_1, py_array_1);
1400 static int py_srvsvc_NetConnCtr0_set_array(PyObject *py_obj, PyObject *value, void *closure)
1402 struct srvsvc_NetConnCtr0 *object = (struct srvsvc_NetConnCtr0 *)pytalloc_get_ptr(py_obj);
1403 talloc_unlink(pytalloc_get_mem_ctx(py_obj), object->array);
1404 if (value == Py_None) {
1405 object->array = NULL;
1407 object->array = NULL;
1408 PY_CHECK_TYPE(&PyList_Type, value, return -1;);
1411 object->array = talloc_array_ptrtype(pytalloc_get_mem_ctx(py_obj), object->array, PyList_GET_SIZE(value));
1412 if (!object->array) { return -1;; }
1413 talloc_set_name_const(object->array, "ARRAY: object->array");
1414 for (array_cntr_1 = 0; array_cntr_1 < PyList_GET_SIZE(value); array_cntr_1++) {
1415 PY_CHECK_TYPE(&srvsvc_NetConnInfo0_Type, PyList_GET_ITEM(value, array_cntr_1), return -1;);
1416 if (talloc_reference(object->array, pytalloc_get_mem_ctx(PyList_GET_ITEM(value, array_cntr_1))) == NULL) {
1420 object->array[array_cntr_1] = *(struct srvsvc_NetConnInfo0 *)pytalloc_get_ptr(PyList_GET_ITEM(value, array_cntr_1));
1427 static PyGetSetDef py_srvsvc_NetConnCtr0_getsetters[] = {
1428 { discard_const_p(char, "count"), py_srvsvc_NetConnCtr0_get_count, py_srvsvc_NetConnCtr0_set_count },
1429 { discard_const_p(char, "array"), py_srvsvc_NetConnCtr0_get_array, py_srvsvc_NetConnCtr0_set_array },
1433 static PyObject *py_srvsvc_NetConnCtr0_new(PyTypeObject *type, PyObject *args, PyObject *kwargs)
1435 return pytalloc_new(struct srvsvc_NetConnCtr0, type);
1439 static PyTypeObject srvsvc_NetConnCtr0_Type = {
1440 PyObject_HEAD_INIT(NULL) 0,
1441 .tp_name = "srvsvc.NetConnCtr0",
1442 .tp_getset = py_srvsvc_NetConnCtr0_getsetters,
1444 .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
1445 .tp_basicsize = sizeof(pytalloc_Object),
1446 .tp_new = py_srvsvc_NetConnCtr0_new,
1450 static PyObject *py_srvsvc_NetConnInfo1_get_conn_id(PyObject *obj, void *closure)
1452 struct srvsvc_NetConnInfo1 *object = (struct srvsvc_NetConnInfo1 *)pytalloc_get_ptr(obj);
1453 PyObject *py_conn_id;
1454 py_conn_id = PyInt_FromLong(object->conn_id);
1458 static int py_srvsvc_NetConnInfo1_set_conn_id(PyObject *py_obj, PyObject *value, void *closure)
1460 struct srvsvc_NetConnInfo1 *object = (struct srvsvc_NetConnInfo1 *)pytalloc_get_ptr(py_obj);
1461 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
1462 object->conn_id = PyInt_AsLong(value);
1466 static PyObject *py_srvsvc_NetConnInfo1_get_conn_type(PyObject *obj, void *closure)
1468 struct srvsvc_NetConnInfo1 *object = (struct srvsvc_NetConnInfo1 *)pytalloc_get_ptr(obj);
1469 PyObject *py_conn_type;
1470 py_conn_type = PyInt_FromLong(object->conn_type);
1471 return py_conn_type;
1474 static int py_srvsvc_NetConnInfo1_set_conn_type(PyObject *py_obj, PyObject *value, void *closure)
1476 struct srvsvc_NetConnInfo1 *object = (struct srvsvc_NetConnInfo1 *)pytalloc_get_ptr(py_obj);
1477 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
1478 object->conn_type = PyInt_AsLong(value);
1482 static PyObject *py_srvsvc_NetConnInfo1_get_num_open(PyObject *obj, void *closure)
1484 struct srvsvc_NetConnInfo1 *object = (struct srvsvc_NetConnInfo1 *)pytalloc_get_ptr(obj);
1485 PyObject *py_num_open;
1486 py_num_open = PyInt_FromLong(object->num_open);
1490 static int py_srvsvc_NetConnInfo1_set_num_open(PyObject *py_obj, PyObject *value, void *closure)
1492 struct srvsvc_NetConnInfo1 *object = (struct srvsvc_NetConnInfo1 *)pytalloc_get_ptr(py_obj);
1493 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
1494 object->num_open = PyInt_AsLong(value);
1498 static PyObject *py_srvsvc_NetConnInfo1_get_num_users(PyObject *obj, void *closure)
1500 struct srvsvc_NetConnInfo1 *object = (struct srvsvc_NetConnInfo1 *)pytalloc_get_ptr(obj);
1501 PyObject *py_num_users;
1502 py_num_users = PyInt_FromLong(object->num_users);
1503 return py_num_users;
1506 static int py_srvsvc_NetConnInfo1_set_num_users(PyObject *py_obj, PyObject *value, void *closure)
1508 struct srvsvc_NetConnInfo1 *object = (struct srvsvc_NetConnInfo1 *)pytalloc_get_ptr(py_obj);
1509 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
1510 object->num_users = PyInt_AsLong(value);
1514 static PyObject *py_srvsvc_NetConnInfo1_get_conn_time(PyObject *obj, void *closure)
1516 struct srvsvc_NetConnInfo1 *object = (struct srvsvc_NetConnInfo1 *)pytalloc_get_ptr(obj);
1517 PyObject *py_conn_time;
1518 py_conn_time = PyInt_FromLong(object->conn_time);
1519 return py_conn_time;
1522 static int py_srvsvc_NetConnInfo1_set_conn_time(PyObject *py_obj, PyObject *value, void *closure)
1524 struct srvsvc_NetConnInfo1 *object = (struct srvsvc_NetConnInfo1 *)pytalloc_get_ptr(py_obj);
1525 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
1526 object->conn_time = PyInt_AsLong(value);
1530 static PyObject *py_srvsvc_NetConnInfo1_get_user(PyObject *obj, void *closure)
1532 struct srvsvc_NetConnInfo1 *object = (struct srvsvc_NetConnInfo1 *)pytalloc_get_ptr(obj);
1534 if (object->user == NULL) {
1538 if (object->user == NULL) {
1542 py_user = PyUnicode_Decode(object->user, strlen(object->user), "utf-8", "ignore");
1548 static int py_srvsvc_NetConnInfo1_set_user(PyObject *py_obj, PyObject *value, void *closure)
1550 struct srvsvc_NetConnInfo1 *object = (struct srvsvc_NetConnInfo1 *)pytalloc_get_ptr(py_obj);
1551 if (value == Py_None) {
1552 object->user = NULL;
1554 object->user = NULL;
1555 if (PyUnicode_Check(value)) {
1556 object->user = PyString_AS_STRING(PyUnicode_AsEncodedString(value, "utf-8", "ignore"));
1557 } else if (PyString_Check(value)) {
1558 object->user = PyString_AS_STRING(value);
1560 PyErr_Format(PyExc_TypeError, "Expected string or unicode object, got %s", Py_TYPE(value)->tp_name);
1567 static PyObject *py_srvsvc_NetConnInfo1_get_share(PyObject *obj, void *closure)
1569 struct srvsvc_NetConnInfo1 *object = (struct srvsvc_NetConnInfo1 *)pytalloc_get_ptr(obj);
1571 if (object->share == NULL) {
1573 Py_INCREF(py_share);
1575 if (object->share == NULL) {
1577 Py_INCREF(py_share);
1579 py_share = PyUnicode_Decode(object->share, strlen(object->share), "utf-8", "ignore");
1585 static int py_srvsvc_NetConnInfo1_set_share(PyObject *py_obj, PyObject *value, void *closure)
1587 struct srvsvc_NetConnInfo1 *object = (struct srvsvc_NetConnInfo1 *)pytalloc_get_ptr(py_obj);
1588 if (value == Py_None) {
1589 object->share = NULL;
1591 object->share = NULL;
1592 if (PyUnicode_Check(value)) {
1593 object->share = PyString_AS_STRING(PyUnicode_AsEncodedString(value, "utf-8", "ignore"));
1594 } else if (PyString_Check(value)) {
1595 object->share = PyString_AS_STRING(value);
1597 PyErr_Format(PyExc_TypeError, "Expected string or unicode object, got %s", Py_TYPE(value)->tp_name);
1604 static PyGetSetDef py_srvsvc_NetConnInfo1_getsetters[] = {
1605 { discard_const_p(char, "conn_id"), py_srvsvc_NetConnInfo1_get_conn_id, py_srvsvc_NetConnInfo1_set_conn_id },
1606 { discard_const_p(char, "conn_type"), py_srvsvc_NetConnInfo1_get_conn_type, py_srvsvc_NetConnInfo1_set_conn_type },
1607 { discard_const_p(char, "num_open"), py_srvsvc_NetConnInfo1_get_num_open, py_srvsvc_NetConnInfo1_set_num_open },
1608 { discard_const_p(char, "num_users"), py_srvsvc_NetConnInfo1_get_num_users, py_srvsvc_NetConnInfo1_set_num_users },
1609 { discard_const_p(char, "conn_time"), py_srvsvc_NetConnInfo1_get_conn_time, py_srvsvc_NetConnInfo1_set_conn_time },
1610 { discard_const_p(char, "user"), py_srvsvc_NetConnInfo1_get_user, py_srvsvc_NetConnInfo1_set_user },
1611 { discard_const_p(char, "share"), py_srvsvc_NetConnInfo1_get_share, py_srvsvc_NetConnInfo1_set_share },
1615 static PyObject *py_srvsvc_NetConnInfo1_new(PyTypeObject *type, PyObject *args, PyObject *kwargs)
1617 return pytalloc_new(struct srvsvc_NetConnInfo1, type);
1621 static PyTypeObject srvsvc_NetConnInfo1_Type = {
1622 PyObject_HEAD_INIT(NULL) 0,
1623 .tp_name = "srvsvc.NetConnInfo1",
1624 .tp_getset = py_srvsvc_NetConnInfo1_getsetters,
1626 .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
1627 .tp_basicsize = sizeof(pytalloc_Object),
1628 .tp_new = py_srvsvc_NetConnInfo1_new,
1632 static PyObject *py_srvsvc_NetConnCtr1_get_count(PyObject *obj, void *closure)
1634 struct srvsvc_NetConnCtr1 *object = (struct srvsvc_NetConnCtr1 *)pytalloc_get_ptr(obj);
1636 py_count = PyInt_FromLong(object->count);
1640 static int py_srvsvc_NetConnCtr1_set_count(PyObject *py_obj, PyObject *value, void *closure)
1642 struct srvsvc_NetConnCtr1 *object = (struct srvsvc_NetConnCtr1 *)pytalloc_get_ptr(py_obj);
1643 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
1644 object->count = PyInt_AsLong(value);
1648 static PyObject *py_srvsvc_NetConnCtr1_get_array(PyObject *obj, void *closure)
1650 struct srvsvc_NetConnCtr1 *object = (struct srvsvc_NetConnCtr1 *)pytalloc_get_ptr(obj);
1652 if (object->array == NULL) {
1654 Py_INCREF(py_array);
1656 py_array = PyList_New(object->count);
1657 if (py_array == NULL) {
1662 for (array_cntr_1 = 0; array_cntr_1 < object->count; array_cntr_1++) {
1663 PyObject *py_array_1;
1664 py_array_1 = pytalloc_reference_ex(&srvsvc_NetConnInfo1_Type, object->array, &object->array[array_cntr_1]);
1665 PyList_SetItem(py_array, array_cntr_1, py_array_1);
1672 static int py_srvsvc_NetConnCtr1_set_array(PyObject *py_obj, PyObject *value, void *closure)
1674 struct srvsvc_NetConnCtr1 *object = (struct srvsvc_NetConnCtr1 *)pytalloc_get_ptr(py_obj);
1675 talloc_unlink(pytalloc_get_mem_ctx(py_obj), object->array);
1676 if (value == Py_None) {
1677 object->array = NULL;
1679 object->array = NULL;
1680 PY_CHECK_TYPE(&PyList_Type, value, return -1;);
1683 object->array = talloc_array_ptrtype(pytalloc_get_mem_ctx(py_obj), object->array, PyList_GET_SIZE(value));
1684 if (!object->array) { return -1;; }
1685 talloc_set_name_const(object->array, "ARRAY: object->array");
1686 for (array_cntr_1 = 0; array_cntr_1 < PyList_GET_SIZE(value); array_cntr_1++) {
1687 PY_CHECK_TYPE(&srvsvc_NetConnInfo1_Type, PyList_GET_ITEM(value, array_cntr_1), return -1;);
1688 if (talloc_reference(object->array, pytalloc_get_mem_ctx(PyList_GET_ITEM(value, array_cntr_1))) == NULL) {
1692 object->array[array_cntr_1] = *(struct srvsvc_NetConnInfo1 *)pytalloc_get_ptr(PyList_GET_ITEM(value, array_cntr_1));
1699 static PyGetSetDef py_srvsvc_NetConnCtr1_getsetters[] = {
1700 { discard_const_p(char, "count"), py_srvsvc_NetConnCtr1_get_count, py_srvsvc_NetConnCtr1_set_count },
1701 { discard_const_p(char, "array"), py_srvsvc_NetConnCtr1_get_array, py_srvsvc_NetConnCtr1_set_array },
1705 static PyObject *py_srvsvc_NetConnCtr1_new(PyTypeObject *type, PyObject *args, PyObject *kwargs)
1707 return pytalloc_new(struct srvsvc_NetConnCtr1, type);
1711 static PyTypeObject srvsvc_NetConnCtr1_Type = {
1712 PyObject_HEAD_INIT(NULL) 0,
1713 .tp_name = "srvsvc.NetConnCtr1",
1714 .tp_getset = py_srvsvc_NetConnCtr1_getsetters,
1716 .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
1717 .tp_basicsize = sizeof(pytalloc_Object),
1718 .tp_new = py_srvsvc_NetConnCtr1_new,
1721 static PyObject *py_import_srvsvc_NetConnCtr(TALLOC_CTX *mem_ctx, int level, union srvsvc_NetConnCtr *in)
1727 if (in->ctr0 == NULL) {
1731 ret = pytalloc_reference_ex(&srvsvc_NetConnCtr0_Type, in->ctr0, in->ctr0);
1736 if (in->ctr1 == NULL) {
1740 ret = pytalloc_reference_ex(&srvsvc_NetConnCtr1_Type, in->ctr1, in->ctr1);
1750 PyErr_SetString(PyExc_TypeError, "unknown union level");
1754 static union srvsvc_NetConnCtr *py_export_srvsvc_NetConnCtr(TALLOC_CTX *mem_ctx, int level, PyObject *in)
1756 union srvsvc_NetConnCtr *ret = talloc_zero(mem_ctx, union srvsvc_NetConnCtr);
1759 if (in == Py_None) {
1763 PY_CHECK_TYPE(&srvsvc_NetConnCtr0_Type, in, talloc_free(ret); return NULL;);
1764 if (talloc_reference(mem_ctx, pytalloc_get_mem_ctx(in)) == NULL) {
1766 talloc_free(ret); return NULL;
1768 ret->ctr0 = (struct srvsvc_NetConnCtr0 *)pytalloc_get_ptr(in);
1773 if (in == Py_None) {
1777 PY_CHECK_TYPE(&srvsvc_NetConnCtr1_Type, in, talloc_free(ret); return NULL;);
1778 if (talloc_reference(mem_ctx, pytalloc_get_mem_ctx(in)) == NULL) {
1780 talloc_free(ret); return NULL;
1782 ret->ctr1 = (struct srvsvc_NetConnCtr1 *)pytalloc_get_ptr(in);
1795 static PyObject *py_srvsvc_NetConnInfoCtr_get_level(PyObject *obj, void *closure)
1797 struct srvsvc_NetConnInfoCtr *object = (struct srvsvc_NetConnInfoCtr *)pytalloc_get_ptr(obj);
1799 py_level = PyInt_FromLong(object->level);
1803 static int py_srvsvc_NetConnInfoCtr_set_level(PyObject *py_obj, PyObject *value, void *closure)
1805 struct srvsvc_NetConnInfoCtr *object = (struct srvsvc_NetConnInfoCtr *)pytalloc_get_ptr(py_obj);
1806 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
1807 object->level = PyInt_AsLong(value);
1811 static PyObject *py_srvsvc_NetConnInfoCtr_get_ctr(PyObject *obj, void *closure)
1813 struct srvsvc_NetConnInfoCtr *object = (struct srvsvc_NetConnInfoCtr *)pytalloc_get_ptr(obj);
1815 py_ctr = py_import_srvsvc_NetConnCtr(pytalloc_get_mem_ctx(obj), object->level, &object->ctr);
1816 if (py_ctr == NULL) {
1822 static int py_srvsvc_NetConnInfoCtr_set_ctr(PyObject *py_obj, PyObject *value, void *closure)
1824 struct srvsvc_NetConnInfoCtr *object = (struct srvsvc_NetConnInfoCtr *)pytalloc_get_ptr(py_obj);
1826 union srvsvc_NetConnCtr *ctr_switch_0;
1827 ctr_switch_0 = py_export_srvsvc_NetConnCtr(pytalloc_get_mem_ctx(py_obj), object->level, value);
1828 if (ctr_switch_0 == NULL) {
1831 object->ctr = *ctr_switch_0;
1836 static PyGetSetDef py_srvsvc_NetConnInfoCtr_getsetters[] = {
1837 { discard_const_p(char, "level"), py_srvsvc_NetConnInfoCtr_get_level, py_srvsvc_NetConnInfoCtr_set_level },
1838 { discard_const_p(char, "ctr"), py_srvsvc_NetConnInfoCtr_get_ctr, py_srvsvc_NetConnInfoCtr_set_ctr },
1842 static PyObject *py_srvsvc_NetConnInfoCtr_new(PyTypeObject *type, PyObject *args, PyObject *kwargs)
1844 return pytalloc_new(struct srvsvc_NetConnInfoCtr, type);
1848 static PyTypeObject srvsvc_NetConnInfoCtr_Type = {
1849 PyObject_HEAD_INIT(NULL) 0,
1850 .tp_name = "srvsvc.NetConnInfoCtr",
1851 .tp_getset = py_srvsvc_NetConnInfoCtr_getsetters,
1853 .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
1854 .tp_basicsize = sizeof(pytalloc_Object),
1855 .tp_new = py_srvsvc_NetConnInfoCtr_new,
1859 static PyObject *py_srvsvc_NetFileInfo2_get_fid(PyObject *obj, void *closure)
1861 struct srvsvc_NetFileInfo2 *object = (struct srvsvc_NetFileInfo2 *)pytalloc_get_ptr(obj);
1863 py_fid = PyInt_FromLong(object->fid);
1867 static int py_srvsvc_NetFileInfo2_set_fid(PyObject *py_obj, PyObject *value, void *closure)
1869 struct srvsvc_NetFileInfo2 *object = (struct srvsvc_NetFileInfo2 *)pytalloc_get_ptr(py_obj);
1870 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
1871 object->fid = PyInt_AsLong(value);
1875 static PyGetSetDef py_srvsvc_NetFileInfo2_getsetters[] = {
1876 { discard_const_p(char, "fid"), py_srvsvc_NetFileInfo2_get_fid, py_srvsvc_NetFileInfo2_set_fid },
1880 static PyObject *py_srvsvc_NetFileInfo2_new(PyTypeObject *type, PyObject *args, PyObject *kwargs)
1882 return pytalloc_new(struct srvsvc_NetFileInfo2, type);
1886 static PyTypeObject srvsvc_NetFileInfo2_Type = {
1887 PyObject_HEAD_INIT(NULL) 0,
1888 .tp_name = "srvsvc.NetFileInfo2",
1889 .tp_getset = py_srvsvc_NetFileInfo2_getsetters,
1891 .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
1892 .tp_basicsize = sizeof(pytalloc_Object),
1893 .tp_new = py_srvsvc_NetFileInfo2_new,
1897 static PyObject *py_srvsvc_NetFileCtr2_get_count(PyObject *obj, void *closure)
1899 struct srvsvc_NetFileCtr2 *object = (struct srvsvc_NetFileCtr2 *)pytalloc_get_ptr(obj);
1901 py_count = PyInt_FromLong(object->count);
1905 static int py_srvsvc_NetFileCtr2_set_count(PyObject *py_obj, PyObject *value, void *closure)
1907 struct srvsvc_NetFileCtr2 *object = (struct srvsvc_NetFileCtr2 *)pytalloc_get_ptr(py_obj);
1908 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
1909 object->count = PyInt_AsLong(value);
1913 static PyObject *py_srvsvc_NetFileCtr2_get_array(PyObject *obj, void *closure)
1915 struct srvsvc_NetFileCtr2 *object = (struct srvsvc_NetFileCtr2 *)pytalloc_get_ptr(obj);
1917 if (object->array == NULL) {
1919 Py_INCREF(py_array);
1921 py_array = PyList_New(object->count);
1922 if (py_array == NULL) {
1927 for (array_cntr_1 = 0; array_cntr_1 < object->count; array_cntr_1++) {
1928 PyObject *py_array_1;
1929 py_array_1 = pytalloc_reference_ex(&srvsvc_NetFileInfo2_Type, object->array, &object->array[array_cntr_1]);
1930 PyList_SetItem(py_array, array_cntr_1, py_array_1);
1937 static int py_srvsvc_NetFileCtr2_set_array(PyObject *py_obj, PyObject *value, void *closure)
1939 struct srvsvc_NetFileCtr2 *object = (struct srvsvc_NetFileCtr2 *)pytalloc_get_ptr(py_obj);
1940 talloc_unlink(pytalloc_get_mem_ctx(py_obj), object->array);
1941 if (value == Py_None) {
1942 object->array = NULL;
1944 object->array = NULL;
1945 PY_CHECK_TYPE(&PyList_Type, value, return -1;);
1948 object->array = talloc_array_ptrtype(pytalloc_get_mem_ctx(py_obj), object->array, PyList_GET_SIZE(value));
1949 if (!object->array) { return -1;; }
1950 talloc_set_name_const(object->array, "ARRAY: object->array");
1951 for (array_cntr_1 = 0; array_cntr_1 < PyList_GET_SIZE(value); array_cntr_1++) {
1952 PY_CHECK_TYPE(&srvsvc_NetFileInfo2_Type, PyList_GET_ITEM(value, array_cntr_1), return -1;);
1953 if (talloc_reference(object->array, pytalloc_get_mem_ctx(PyList_GET_ITEM(value, array_cntr_1))) == NULL) {
1957 object->array[array_cntr_1] = *(struct srvsvc_NetFileInfo2 *)pytalloc_get_ptr(PyList_GET_ITEM(value, array_cntr_1));
1964 static PyGetSetDef py_srvsvc_NetFileCtr2_getsetters[] = {
1965 { discard_const_p(char, "count"), py_srvsvc_NetFileCtr2_get_count, py_srvsvc_NetFileCtr2_set_count },
1966 { discard_const_p(char, "array"), py_srvsvc_NetFileCtr2_get_array, py_srvsvc_NetFileCtr2_set_array },
1970 static PyObject *py_srvsvc_NetFileCtr2_new(PyTypeObject *type, PyObject *args, PyObject *kwargs)
1972 return pytalloc_new(struct srvsvc_NetFileCtr2, type);
1976 static PyTypeObject srvsvc_NetFileCtr2_Type = {
1977 PyObject_HEAD_INIT(NULL) 0,
1978 .tp_name = "srvsvc.NetFileCtr2",
1979 .tp_getset = py_srvsvc_NetFileCtr2_getsetters,
1981 .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
1982 .tp_basicsize = sizeof(pytalloc_Object),
1983 .tp_new = py_srvsvc_NetFileCtr2_new,
1987 static PyObject *py_srvsvc_NetFileInfo3_get_fid(PyObject *obj, void *closure)
1989 struct srvsvc_NetFileInfo3 *object = (struct srvsvc_NetFileInfo3 *)pytalloc_get_ptr(obj);
1991 py_fid = PyInt_FromLong(object->fid);
1995 static int py_srvsvc_NetFileInfo3_set_fid(PyObject *py_obj, PyObject *value, void *closure)
1997 struct srvsvc_NetFileInfo3 *object = (struct srvsvc_NetFileInfo3 *)pytalloc_get_ptr(py_obj);
1998 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
1999 object->fid = PyInt_AsLong(value);
2003 static PyObject *py_srvsvc_NetFileInfo3_get_permissions(PyObject *obj, void *closure)
2005 struct srvsvc_NetFileInfo3 *object = (struct srvsvc_NetFileInfo3 *)pytalloc_get_ptr(obj);
2006 PyObject *py_permissions;
2007 py_permissions = PyInt_FromLong(object->permissions);
2008 return py_permissions;
2011 static int py_srvsvc_NetFileInfo3_set_permissions(PyObject *py_obj, PyObject *value, void *closure)
2013 struct srvsvc_NetFileInfo3 *object = (struct srvsvc_NetFileInfo3 *)pytalloc_get_ptr(py_obj);
2014 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
2015 object->permissions = PyInt_AsLong(value);
2019 static PyObject *py_srvsvc_NetFileInfo3_get_num_locks(PyObject *obj, void *closure)
2021 struct srvsvc_NetFileInfo3 *object = (struct srvsvc_NetFileInfo3 *)pytalloc_get_ptr(obj);
2022 PyObject *py_num_locks;
2023 py_num_locks = PyInt_FromLong(object->num_locks);
2024 return py_num_locks;
2027 static int py_srvsvc_NetFileInfo3_set_num_locks(PyObject *py_obj, PyObject *value, void *closure)
2029 struct srvsvc_NetFileInfo3 *object = (struct srvsvc_NetFileInfo3 *)pytalloc_get_ptr(py_obj);
2030 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
2031 object->num_locks = PyInt_AsLong(value);
2035 static PyObject *py_srvsvc_NetFileInfo3_get_path(PyObject *obj, void *closure)
2037 struct srvsvc_NetFileInfo3 *object = (struct srvsvc_NetFileInfo3 *)pytalloc_get_ptr(obj);
2039 if (object->path == NULL) {
2043 if (object->path == NULL) {
2047 py_path = PyUnicode_Decode(object->path, strlen(object->path), "utf-8", "ignore");
2053 static int py_srvsvc_NetFileInfo3_set_path(PyObject *py_obj, PyObject *value, void *closure)
2055 struct srvsvc_NetFileInfo3 *object = (struct srvsvc_NetFileInfo3 *)pytalloc_get_ptr(py_obj);
2056 if (value == Py_None) {
2057 object->path = NULL;
2059 object->path = NULL;
2060 if (PyUnicode_Check(value)) {
2061 object->path = PyString_AS_STRING(PyUnicode_AsEncodedString(value, "utf-8", "ignore"));
2062 } else if (PyString_Check(value)) {
2063 object->path = PyString_AS_STRING(value);
2065 PyErr_Format(PyExc_TypeError, "Expected string or unicode object, got %s", Py_TYPE(value)->tp_name);
2072 static PyObject *py_srvsvc_NetFileInfo3_get_user(PyObject *obj, void *closure)
2074 struct srvsvc_NetFileInfo3 *object = (struct srvsvc_NetFileInfo3 *)pytalloc_get_ptr(obj);
2076 if (object->user == NULL) {
2080 if (object->user == NULL) {
2084 py_user = PyUnicode_Decode(object->user, strlen(object->user), "utf-8", "ignore");
2090 static int py_srvsvc_NetFileInfo3_set_user(PyObject *py_obj, PyObject *value, void *closure)
2092 struct srvsvc_NetFileInfo3 *object = (struct srvsvc_NetFileInfo3 *)pytalloc_get_ptr(py_obj);
2093 if (value == Py_None) {
2094 object->user = NULL;
2096 object->user = NULL;
2097 if (PyUnicode_Check(value)) {
2098 object->user = PyString_AS_STRING(PyUnicode_AsEncodedString(value, "utf-8", "ignore"));
2099 } else if (PyString_Check(value)) {
2100 object->user = PyString_AS_STRING(value);
2102 PyErr_Format(PyExc_TypeError, "Expected string or unicode object, got %s", Py_TYPE(value)->tp_name);
2109 static PyGetSetDef py_srvsvc_NetFileInfo3_getsetters[] = {
2110 { discard_const_p(char, "fid"), py_srvsvc_NetFileInfo3_get_fid, py_srvsvc_NetFileInfo3_set_fid },
2111 { discard_const_p(char, "permissions"), py_srvsvc_NetFileInfo3_get_permissions, py_srvsvc_NetFileInfo3_set_permissions },
2112 { discard_const_p(char, "num_locks"), py_srvsvc_NetFileInfo3_get_num_locks, py_srvsvc_NetFileInfo3_set_num_locks },
2113 { discard_const_p(char, "path"), py_srvsvc_NetFileInfo3_get_path, py_srvsvc_NetFileInfo3_set_path },
2114 { discard_const_p(char, "user"), py_srvsvc_NetFileInfo3_get_user, py_srvsvc_NetFileInfo3_set_user },
2118 static PyObject *py_srvsvc_NetFileInfo3_new(PyTypeObject *type, PyObject *args, PyObject *kwargs)
2120 return pytalloc_new(struct srvsvc_NetFileInfo3, type);
2124 static PyTypeObject srvsvc_NetFileInfo3_Type = {
2125 PyObject_HEAD_INIT(NULL) 0,
2126 .tp_name = "srvsvc.NetFileInfo3",
2127 .tp_getset = py_srvsvc_NetFileInfo3_getsetters,
2129 .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
2130 .tp_basicsize = sizeof(pytalloc_Object),
2131 .tp_new = py_srvsvc_NetFileInfo3_new,
2135 static PyObject *py_srvsvc_NetFileCtr3_get_count(PyObject *obj, void *closure)
2137 struct srvsvc_NetFileCtr3 *object = (struct srvsvc_NetFileCtr3 *)pytalloc_get_ptr(obj);
2139 py_count = PyInt_FromLong(object->count);
2143 static int py_srvsvc_NetFileCtr3_set_count(PyObject *py_obj, PyObject *value, void *closure)
2145 struct srvsvc_NetFileCtr3 *object = (struct srvsvc_NetFileCtr3 *)pytalloc_get_ptr(py_obj);
2146 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
2147 object->count = PyInt_AsLong(value);
2151 static PyObject *py_srvsvc_NetFileCtr3_get_array(PyObject *obj, void *closure)
2153 struct srvsvc_NetFileCtr3 *object = (struct srvsvc_NetFileCtr3 *)pytalloc_get_ptr(obj);
2155 if (object->array == NULL) {
2157 Py_INCREF(py_array);
2159 py_array = PyList_New(object->count);
2160 if (py_array == NULL) {
2165 for (array_cntr_1 = 0; array_cntr_1 < object->count; array_cntr_1++) {
2166 PyObject *py_array_1;
2167 py_array_1 = pytalloc_reference_ex(&srvsvc_NetFileInfo3_Type, object->array, &object->array[array_cntr_1]);
2168 PyList_SetItem(py_array, array_cntr_1, py_array_1);
2175 static int py_srvsvc_NetFileCtr3_set_array(PyObject *py_obj, PyObject *value, void *closure)
2177 struct srvsvc_NetFileCtr3 *object = (struct srvsvc_NetFileCtr3 *)pytalloc_get_ptr(py_obj);
2178 talloc_unlink(pytalloc_get_mem_ctx(py_obj), object->array);
2179 if (value == Py_None) {
2180 object->array = NULL;
2182 object->array = NULL;
2183 PY_CHECK_TYPE(&PyList_Type, value, return -1;);
2186 object->array = talloc_array_ptrtype(pytalloc_get_mem_ctx(py_obj), object->array, PyList_GET_SIZE(value));
2187 if (!object->array) { return -1;; }
2188 talloc_set_name_const(object->array, "ARRAY: object->array");
2189 for (array_cntr_1 = 0; array_cntr_1 < PyList_GET_SIZE(value); array_cntr_1++) {
2190 PY_CHECK_TYPE(&srvsvc_NetFileInfo3_Type, PyList_GET_ITEM(value, array_cntr_1), return -1;);
2191 if (talloc_reference(object->array, pytalloc_get_mem_ctx(PyList_GET_ITEM(value, array_cntr_1))) == NULL) {
2195 object->array[array_cntr_1] = *(struct srvsvc_NetFileInfo3 *)pytalloc_get_ptr(PyList_GET_ITEM(value, array_cntr_1));
2202 static PyGetSetDef py_srvsvc_NetFileCtr3_getsetters[] = {
2203 { discard_const_p(char, "count"), py_srvsvc_NetFileCtr3_get_count, py_srvsvc_NetFileCtr3_set_count },
2204 { discard_const_p(char, "array"), py_srvsvc_NetFileCtr3_get_array, py_srvsvc_NetFileCtr3_set_array },
2208 static PyObject *py_srvsvc_NetFileCtr3_new(PyTypeObject *type, PyObject *args, PyObject *kwargs)
2210 return pytalloc_new(struct srvsvc_NetFileCtr3, type);
2214 static PyTypeObject srvsvc_NetFileCtr3_Type = {
2215 PyObject_HEAD_INIT(NULL) 0,
2216 .tp_name = "srvsvc.NetFileCtr3",
2217 .tp_getset = py_srvsvc_NetFileCtr3_getsetters,
2219 .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
2220 .tp_basicsize = sizeof(pytalloc_Object),
2221 .tp_new = py_srvsvc_NetFileCtr3_new,
2224 static PyObject *py_import_srvsvc_NetFileInfo(TALLOC_CTX *mem_ctx, int level, union srvsvc_NetFileInfo *in)
2230 if (in->info2 == NULL) {
2234 ret = pytalloc_reference_ex(&srvsvc_NetFileInfo2_Type, in->info2, in->info2);
2239 if (in->info3 == NULL) {
2243 ret = pytalloc_reference_ex(&srvsvc_NetFileInfo3_Type, in->info3, in->info3);
2253 PyErr_SetString(PyExc_TypeError, "unknown union level");
2257 static union srvsvc_NetFileInfo *py_export_srvsvc_NetFileInfo(TALLOC_CTX *mem_ctx, int level, PyObject *in)
2259 union srvsvc_NetFileInfo *ret = talloc_zero(mem_ctx, union srvsvc_NetFileInfo);
2262 if (in == Py_None) {
2266 PY_CHECK_TYPE(&srvsvc_NetFileInfo2_Type, in, talloc_free(ret); return NULL;);
2267 if (talloc_reference(mem_ctx, pytalloc_get_mem_ctx(in)) == NULL) {
2269 talloc_free(ret); return NULL;
2271 ret->info2 = (struct srvsvc_NetFileInfo2 *)pytalloc_get_ptr(in);
2276 if (in == Py_None) {
2280 PY_CHECK_TYPE(&srvsvc_NetFileInfo3_Type, in, talloc_free(ret); return NULL;);
2281 if (talloc_reference(mem_ctx, pytalloc_get_mem_ctx(in)) == NULL) {
2283 talloc_free(ret); return NULL;
2285 ret->info3 = (struct srvsvc_NetFileInfo3 *)pytalloc_get_ptr(in);
2297 static PyObject *py_import_srvsvc_NetFileCtr(TALLOC_CTX *mem_ctx, int level, union srvsvc_NetFileCtr *in)
2303 if (in->ctr2 == NULL) {
2307 ret = pytalloc_reference_ex(&srvsvc_NetFileCtr2_Type, in->ctr2, in->ctr2);
2312 if (in->ctr3 == NULL) {
2316 ret = pytalloc_reference_ex(&srvsvc_NetFileCtr3_Type, in->ctr3, in->ctr3);
2326 PyErr_SetString(PyExc_TypeError, "unknown union level");
2330 static union srvsvc_NetFileCtr *py_export_srvsvc_NetFileCtr(TALLOC_CTX *mem_ctx, int level, PyObject *in)
2332 union srvsvc_NetFileCtr *ret = talloc_zero(mem_ctx, union srvsvc_NetFileCtr);
2335 if (in == Py_None) {
2339 PY_CHECK_TYPE(&srvsvc_NetFileCtr2_Type, in, talloc_free(ret); return NULL;);
2340 if (talloc_reference(mem_ctx, pytalloc_get_mem_ctx(in)) == NULL) {
2342 talloc_free(ret); return NULL;
2344 ret->ctr2 = (struct srvsvc_NetFileCtr2 *)pytalloc_get_ptr(in);
2349 if (in == Py_None) {
2353 PY_CHECK_TYPE(&srvsvc_NetFileCtr3_Type, in, talloc_free(ret); return NULL;);
2354 if (talloc_reference(mem_ctx, pytalloc_get_mem_ctx(in)) == NULL) {
2356 talloc_free(ret); return NULL;
2358 ret->ctr3 = (struct srvsvc_NetFileCtr3 *)pytalloc_get_ptr(in);
2371 static PyObject *py_srvsvc_NetFileInfoCtr_get_level(PyObject *obj, void *closure)
2373 struct srvsvc_NetFileInfoCtr *object = (struct srvsvc_NetFileInfoCtr *)pytalloc_get_ptr(obj);
2375 py_level = PyInt_FromLong(object->level);
2379 static int py_srvsvc_NetFileInfoCtr_set_level(PyObject *py_obj, PyObject *value, void *closure)
2381 struct srvsvc_NetFileInfoCtr *object = (struct srvsvc_NetFileInfoCtr *)pytalloc_get_ptr(py_obj);
2382 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
2383 object->level = PyInt_AsLong(value);
2387 static PyObject *py_srvsvc_NetFileInfoCtr_get_ctr(PyObject *obj, void *closure)
2389 struct srvsvc_NetFileInfoCtr *object = (struct srvsvc_NetFileInfoCtr *)pytalloc_get_ptr(obj);
2391 py_ctr = py_import_srvsvc_NetFileCtr(pytalloc_get_mem_ctx(obj), object->level, &object->ctr);
2392 if (py_ctr == NULL) {
2398 static int py_srvsvc_NetFileInfoCtr_set_ctr(PyObject *py_obj, PyObject *value, void *closure)
2400 struct srvsvc_NetFileInfoCtr *object = (struct srvsvc_NetFileInfoCtr *)pytalloc_get_ptr(py_obj);
2402 union srvsvc_NetFileCtr *ctr_switch_0;
2403 ctr_switch_0 = py_export_srvsvc_NetFileCtr(pytalloc_get_mem_ctx(py_obj), object->level, value);
2404 if (ctr_switch_0 == NULL) {
2407 object->ctr = *ctr_switch_0;
2412 static PyGetSetDef py_srvsvc_NetFileInfoCtr_getsetters[] = {
2413 { discard_const_p(char, "level"), py_srvsvc_NetFileInfoCtr_get_level, py_srvsvc_NetFileInfoCtr_set_level },
2414 { discard_const_p(char, "ctr"), py_srvsvc_NetFileInfoCtr_get_ctr, py_srvsvc_NetFileInfoCtr_set_ctr },
2418 static PyObject *py_srvsvc_NetFileInfoCtr_new(PyTypeObject *type, PyObject *args, PyObject *kwargs)
2420 return pytalloc_new(struct srvsvc_NetFileInfoCtr, type);
2424 static PyTypeObject srvsvc_NetFileInfoCtr_Type = {
2425 PyObject_HEAD_INIT(NULL) 0,
2426 .tp_name = "srvsvc.NetFileInfoCtr",
2427 .tp_getset = py_srvsvc_NetFileInfoCtr_getsetters,
2429 .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
2430 .tp_basicsize = sizeof(pytalloc_Object),
2431 .tp_new = py_srvsvc_NetFileInfoCtr_new,
2435 static PyObject *py_srvsvc_NetSessInfo0_get_client(PyObject *obj, void *closure)
2437 struct srvsvc_NetSessInfo0 *object = (struct srvsvc_NetSessInfo0 *)pytalloc_get_ptr(obj);
2438 PyObject *py_client;
2439 if (object->client == NULL) {
2440 py_client = Py_None;
2441 Py_INCREF(py_client);
2443 if (object->client == NULL) {
2444 py_client = Py_None;
2445 Py_INCREF(py_client);
2447 py_client = PyUnicode_Decode(object->client, strlen(object->client), "utf-8", "ignore");
2453 static int py_srvsvc_NetSessInfo0_set_client(PyObject *py_obj, PyObject *value, void *closure)
2455 struct srvsvc_NetSessInfo0 *object = (struct srvsvc_NetSessInfo0 *)pytalloc_get_ptr(py_obj);
2456 if (value == Py_None) {
2457 object->client = NULL;
2459 object->client = NULL;
2460 if (PyUnicode_Check(value)) {
2461 object->client = PyString_AS_STRING(PyUnicode_AsEncodedString(value, "utf-8", "ignore"));
2462 } else if (PyString_Check(value)) {
2463 object->client = PyString_AS_STRING(value);
2465 PyErr_Format(PyExc_TypeError, "Expected string or unicode object, got %s", Py_TYPE(value)->tp_name);
2472 static PyGetSetDef py_srvsvc_NetSessInfo0_getsetters[] = {
2473 { discard_const_p(char, "client"), py_srvsvc_NetSessInfo0_get_client, py_srvsvc_NetSessInfo0_set_client },
2477 static PyObject *py_srvsvc_NetSessInfo0_new(PyTypeObject *type, PyObject *args, PyObject *kwargs)
2479 return pytalloc_new(struct srvsvc_NetSessInfo0, type);
2483 static PyTypeObject srvsvc_NetSessInfo0_Type = {
2484 PyObject_HEAD_INIT(NULL) 0,
2485 .tp_name = "srvsvc.NetSessInfo0",
2486 .tp_getset = py_srvsvc_NetSessInfo0_getsetters,
2488 .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
2489 .tp_basicsize = sizeof(pytalloc_Object),
2490 .tp_new = py_srvsvc_NetSessInfo0_new,
2494 static PyObject *py_srvsvc_NetSessCtr0_get_count(PyObject *obj, void *closure)
2496 struct srvsvc_NetSessCtr0 *object = (struct srvsvc_NetSessCtr0 *)pytalloc_get_ptr(obj);
2498 py_count = PyInt_FromLong(object->count);
2502 static int py_srvsvc_NetSessCtr0_set_count(PyObject *py_obj, PyObject *value, void *closure)
2504 struct srvsvc_NetSessCtr0 *object = (struct srvsvc_NetSessCtr0 *)pytalloc_get_ptr(py_obj);
2505 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
2506 object->count = PyInt_AsLong(value);
2510 static PyObject *py_srvsvc_NetSessCtr0_get_array(PyObject *obj, void *closure)
2512 struct srvsvc_NetSessCtr0 *object = (struct srvsvc_NetSessCtr0 *)pytalloc_get_ptr(obj);
2514 if (object->array == NULL) {
2516 Py_INCREF(py_array);
2518 py_array = PyList_New(object->count);
2519 if (py_array == NULL) {
2524 for (array_cntr_1 = 0; array_cntr_1 < object->count; array_cntr_1++) {
2525 PyObject *py_array_1;
2526 py_array_1 = pytalloc_reference_ex(&srvsvc_NetSessInfo0_Type, object->array, &object->array[array_cntr_1]);
2527 PyList_SetItem(py_array, array_cntr_1, py_array_1);
2534 static int py_srvsvc_NetSessCtr0_set_array(PyObject *py_obj, PyObject *value, void *closure)
2536 struct srvsvc_NetSessCtr0 *object = (struct srvsvc_NetSessCtr0 *)pytalloc_get_ptr(py_obj);
2537 talloc_unlink(pytalloc_get_mem_ctx(py_obj), object->array);
2538 if (value == Py_None) {
2539 object->array = NULL;
2541 object->array = NULL;
2542 PY_CHECK_TYPE(&PyList_Type, value, return -1;);
2545 object->array = talloc_array_ptrtype(pytalloc_get_mem_ctx(py_obj), object->array, PyList_GET_SIZE(value));
2546 if (!object->array) { return -1;; }
2547 talloc_set_name_const(object->array, "ARRAY: object->array");
2548 for (array_cntr_1 = 0; array_cntr_1 < PyList_GET_SIZE(value); array_cntr_1++) {
2549 PY_CHECK_TYPE(&srvsvc_NetSessInfo0_Type, PyList_GET_ITEM(value, array_cntr_1), return -1;);
2550 if (talloc_reference(object->array, pytalloc_get_mem_ctx(PyList_GET_ITEM(value, array_cntr_1))) == NULL) {
2554 object->array[array_cntr_1] = *(struct srvsvc_NetSessInfo0 *)pytalloc_get_ptr(PyList_GET_ITEM(value, array_cntr_1));
2561 static PyGetSetDef py_srvsvc_NetSessCtr0_getsetters[] = {
2562 { discard_const_p(char, "count"), py_srvsvc_NetSessCtr0_get_count, py_srvsvc_NetSessCtr0_set_count },
2563 { discard_const_p(char, "array"), py_srvsvc_NetSessCtr0_get_array, py_srvsvc_NetSessCtr0_set_array },
2567 static PyObject *py_srvsvc_NetSessCtr0_new(PyTypeObject *type, PyObject *args, PyObject *kwargs)
2569 return pytalloc_new(struct srvsvc_NetSessCtr0, type);
2573 static PyTypeObject srvsvc_NetSessCtr0_Type = {
2574 PyObject_HEAD_INIT(NULL) 0,
2575 .tp_name = "srvsvc.NetSessCtr0",
2576 .tp_getset = py_srvsvc_NetSessCtr0_getsetters,
2578 .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
2579 .tp_basicsize = sizeof(pytalloc_Object),
2580 .tp_new = py_srvsvc_NetSessCtr0_new,
2584 static PyObject *py_srvsvc_NetSessInfo1_get_client(PyObject *obj, void *closure)
2586 struct srvsvc_NetSessInfo1 *object = (struct srvsvc_NetSessInfo1 *)pytalloc_get_ptr(obj);
2587 PyObject *py_client;
2588 if (object->client == NULL) {
2589 py_client = Py_None;
2590 Py_INCREF(py_client);
2592 if (object->client == NULL) {
2593 py_client = Py_None;
2594 Py_INCREF(py_client);
2596 py_client = PyUnicode_Decode(object->client, strlen(object->client), "utf-8", "ignore");
2602 static int py_srvsvc_NetSessInfo1_set_client(PyObject *py_obj, PyObject *value, void *closure)
2604 struct srvsvc_NetSessInfo1 *object = (struct srvsvc_NetSessInfo1 *)pytalloc_get_ptr(py_obj);
2605 if (value == Py_None) {
2606 object->client = NULL;
2608 object->client = NULL;
2609 if (PyUnicode_Check(value)) {
2610 object->client = PyString_AS_STRING(PyUnicode_AsEncodedString(value, "utf-8", "ignore"));
2611 } else if (PyString_Check(value)) {
2612 object->client = PyString_AS_STRING(value);
2614 PyErr_Format(PyExc_TypeError, "Expected string or unicode object, got %s", Py_TYPE(value)->tp_name);
2621 static PyObject *py_srvsvc_NetSessInfo1_get_user(PyObject *obj, void *closure)
2623 struct srvsvc_NetSessInfo1 *object = (struct srvsvc_NetSessInfo1 *)pytalloc_get_ptr(obj);
2625 if (object->user == NULL) {
2629 if (object->user == NULL) {
2633 py_user = PyUnicode_Decode(object->user, strlen(object->user), "utf-8", "ignore");
2639 static int py_srvsvc_NetSessInfo1_set_user(PyObject *py_obj, PyObject *value, void *closure)
2641 struct srvsvc_NetSessInfo1 *object = (struct srvsvc_NetSessInfo1 *)pytalloc_get_ptr(py_obj);
2642 if (value == Py_None) {
2643 object->user = NULL;
2645 object->user = NULL;
2646 if (PyUnicode_Check(value)) {
2647 object->user = PyString_AS_STRING(PyUnicode_AsEncodedString(value, "utf-8", "ignore"));
2648 } else if (PyString_Check(value)) {
2649 object->user = PyString_AS_STRING(value);
2651 PyErr_Format(PyExc_TypeError, "Expected string or unicode object, got %s", Py_TYPE(value)->tp_name);
2658 static PyObject *py_srvsvc_NetSessInfo1_get_num_open(PyObject *obj, void *closure)
2660 struct srvsvc_NetSessInfo1 *object = (struct srvsvc_NetSessInfo1 *)pytalloc_get_ptr(obj);
2661 PyObject *py_num_open;
2662 py_num_open = PyInt_FromLong(object->num_open);
2666 static int py_srvsvc_NetSessInfo1_set_num_open(PyObject *py_obj, PyObject *value, void *closure)
2668 struct srvsvc_NetSessInfo1 *object = (struct srvsvc_NetSessInfo1 *)pytalloc_get_ptr(py_obj);
2669 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
2670 object->num_open = PyInt_AsLong(value);
2674 static PyObject *py_srvsvc_NetSessInfo1_get_time(PyObject *obj, void *closure)
2676 struct srvsvc_NetSessInfo1 *object = (struct srvsvc_NetSessInfo1 *)pytalloc_get_ptr(obj);
2678 py_time = PyInt_FromLong(object->time);
2682 static int py_srvsvc_NetSessInfo1_set_time(PyObject *py_obj, PyObject *value, void *closure)
2684 struct srvsvc_NetSessInfo1 *object = (struct srvsvc_NetSessInfo1 *)pytalloc_get_ptr(py_obj);
2685 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
2686 object->time = PyInt_AsLong(value);
2690 static PyObject *py_srvsvc_NetSessInfo1_get_idle_time(PyObject *obj, void *closure)
2692 struct srvsvc_NetSessInfo1 *object = (struct srvsvc_NetSessInfo1 *)pytalloc_get_ptr(obj);
2693 PyObject *py_idle_time;
2694 py_idle_time = PyInt_FromLong(object->idle_time);
2695 return py_idle_time;
2698 static int py_srvsvc_NetSessInfo1_set_idle_time(PyObject *py_obj, PyObject *value, void *closure)
2700 struct srvsvc_NetSessInfo1 *object = (struct srvsvc_NetSessInfo1 *)pytalloc_get_ptr(py_obj);
2701 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
2702 object->idle_time = PyInt_AsLong(value);
2706 static PyObject *py_srvsvc_NetSessInfo1_get_user_flags(PyObject *obj, void *closure)
2708 struct srvsvc_NetSessInfo1 *object = (struct srvsvc_NetSessInfo1 *)pytalloc_get_ptr(obj);
2709 PyObject *py_user_flags;
2710 py_user_flags = PyInt_FromLong(object->user_flags);
2711 return py_user_flags;
2714 static int py_srvsvc_NetSessInfo1_set_user_flags(PyObject *py_obj, PyObject *value, void *closure)
2716 struct srvsvc_NetSessInfo1 *object = (struct srvsvc_NetSessInfo1 *)pytalloc_get_ptr(py_obj);
2717 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
2718 object->user_flags = PyInt_AsLong(value);
2722 static PyGetSetDef py_srvsvc_NetSessInfo1_getsetters[] = {
2723 { discard_const_p(char, "client"), py_srvsvc_NetSessInfo1_get_client, py_srvsvc_NetSessInfo1_set_client },
2724 { discard_const_p(char, "user"), py_srvsvc_NetSessInfo1_get_user, py_srvsvc_NetSessInfo1_set_user },
2725 { discard_const_p(char, "num_open"), py_srvsvc_NetSessInfo1_get_num_open, py_srvsvc_NetSessInfo1_set_num_open },
2726 { discard_const_p(char, "time"), py_srvsvc_NetSessInfo1_get_time, py_srvsvc_NetSessInfo1_set_time },
2727 { discard_const_p(char, "idle_time"), py_srvsvc_NetSessInfo1_get_idle_time, py_srvsvc_NetSessInfo1_set_idle_time },
2728 { discard_const_p(char, "user_flags"), py_srvsvc_NetSessInfo1_get_user_flags, py_srvsvc_NetSessInfo1_set_user_flags },
2732 static PyObject *py_srvsvc_NetSessInfo1_new(PyTypeObject *type, PyObject *args, PyObject *kwargs)
2734 return pytalloc_new(struct srvsvc_NetSessInfo1, type);
2738 static PyTypeObject srvsvc_NetSessInfo1_Type = {
2739 PyObject_HEAD_INIT(NULL) 0,
2740 .tp_name = "srvsvc.NetSessInfo1",
2741 .tp_getset = py_srvsvc_NetSessInfo1_getsetters,
2743 .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
2744 .tp_basicsize = sizeof(pytalloc_Object),
2745 .tp_new = py_srvsvc_NetSessInfo1_new,
2749 static PyObject *py_srvsvc_NetSessCtr1_get_count(PyObject *obj, void *closure)
2751 struct srvsvc_NetSessCtr1 *object = (struct srvsvc_NetSessCtr1 *)pytalloc_get_ptr(obj);
2753 py_count = PyInt_FromLong(object->count);
2757 static int py_srvsvc_NetSessCtr1_set_count(PyObject *py_obj, PyObject *value, void *closure)
2759 struct srvsvc_NetSessCtr1 *object = (struct srvsvc_NetSessCtr1 *)pytalloc_get_ptr(py_obj);
2760 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
2761 object->count = PyInt_AsLong(value);
2765 static PyObject *py_srvsvc_NetSessCtr1_get_array(PyObject *obj, void *closure)
2767 struct srvsvc_NetSessCtr1 *object = (struct srvsvc_NetSessCtr1 *)pytalloc_get_ptr(obj);
2769 if (object->array == NULL) {
2771 Py_INCREF(py_array);
2773 py_array = PyList_New(object->count);
2774 if (py_array == NULL) {
2779 for (array_cntr_1 = 0; array_cntr_1 < object->count; array_cntr_1++) {
2780 PyObject *py_array_1;
2781 py_array_1 = pytalloc_reference_ex(&srvsvc_NetSessInfo1_Type, object->array, &object->array[array_cntr_1]);
2782 PyList_SetItem(py_array, array_cntr_1, py_array_1);
2789 static int py_srvsvc_NetSessCtr1_set_array(PyObject *py_obj, PyObject *value, void *closure)
2791 struct srvsvc_NetSessCtr1 *object = (struct srvsvc_NetSessCtr1 *)pytalloc_get_ptr(py_obj);
2792 talloc_unlink(pytalloc_get_mem_ctx(py_obj), object->array);
2793 if (value == Py_None) {
2794 object->array = NULL;
2796 object->array = NULL;
2797 PY_CHECK_TYPE(&PyList_Type, value, return -1;);
2800 object->array = talloc_array_ptrtype(pytalloc_get_mem_ctx(py_obj), object->array, PyList_GET_SIZE(value));
2801 if (!object->array) { return -1;; }
2802 talloc_set_name_const(object->array, "ARRAY: object->array");
2803 for (array_cntr_1 = 0; array_cntr_1 < PyList_GET_SIZE(value); array_cntr_1++) {
2804 PY_CHECK_TYPE(&srvsvc_NetSessInfo1_Type, PyList_GET_ITEM(value, array_cntr_1), return -1;);
2805 if (talloc_reference(object->array, pytalloc_get_mem_ctx(PyList_GET_ITEM(value, array_cntr_1))) == NULL) {
2809 object->array[array_cntr_1] = *(struct srvsvc_NetSessInfo1 *)pytalloc_get_ptr(PyList_GET_ITEM(value, array_cntr_1));
2816 static PyGetSetDef py_srvsvc_NetSessCtr1_getsetters[] = {
2817 { discard_const_p(char, "count"), py_srvsvc_NetSessCtr1_get_count, py_srvsvc_NetSessCtr1_set_count },
2818 { discard_const_p(char, "array"), py_srvsvc_NetSessCtr1_get_array, py_srvsvc_NetSessCtr1_set_array },
2822 static PyObject *py_srvsvc_NetSessCtr1_new(PyTypeObject *type, PyObject *args, PyObject *kwargs)
2824 return pytalloc_new(struct srvsvc_NetSessCtr1, type);
2828 static PyTypeObject srvsvc_NetSessCtr1_Type = {
2829 PyObject_HEAD_INIT(NULL) 0,
2830 .tp_name = "srvsvc.NetSessCtr1",
2831 .tp_getset = py_srvsvc_NetSessCtr1_getsetters,
2833 .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
2834 .tp_basicsize = sizeof(pytalloc_Object),
2835 .tp_new = py_srvsvc_NetSessCtr1_new,
2839 static PyObject *py_srvsvc_NetSessInfo2_get_client(PyObject *obj, void *closure)
2841 struct srvsvc_NetSessInfo2 *object = (struct srvsvc_NetSessInfo2 *)pytalloc_get_ptr(obj);
2842 PyObject *py_client;
2843 if (object->client == NULL) {
2844 py_client = Py_None;
2845 Py_INCREF(py_client);
2847 if (object->client == NULL) {
2848 py_client = Py_None;
2849 Py_INCREF(py_client);
2851 py_client = PyUnicode_Decode(object->client, strlen(object->client), "utf-8", "ignore");
2857 static int py_srvsvc_NetSessInfo2_set_client(PyObject *py_obj, PyObject *value, void *closure)
2859 struct srvsvc_NetSessInfo2 *object = (struct srvsvc_NetSessInfo2 *)pytalloc_get_ptr(py_obj);
2860 if (value == Py_None) {
2861 object->client = NULL;
2863 object->client = NULL;
2864 if (PyUnicode_Check(value)) {
2865 object->client = PyString_AS_STRING(PyUnicode_AsEncodedString(value, "utf-8", "ignore"));
2866 } else if (PyString_Check(value)) {
2867 object->client = PyString_AS_STRING(value);
2869 PyErr_Format(PyExc_TypeError, "Expected string or unicode object, got %s", Py_TYPE(value)->tp_name);
2876 static PyObject *py_srvsvc_NetSessInfo2_get_user(PyObject *obj, void *closure)
2878 struct srvsvc_NetSessInfo2 *object = (struct srvsvc_NetSessInfo2 *)pytalloc_get_ptr(obj);
2880 if (object->user == NULL) {
2884 if (object->user == NULL) {
2888 py_user = PyUnicode_Decode(object->user, strlen(object->user), "utf-8", "ignore");
2894 static int py_srvsvc_NetSessInfo2_set_user(PyObject *py_obj, PyObject *value, void *closure)
2896 struct srvsvc_NetSessInfo2 *object = (struct srvsvc_NetSessInfo2 *)pytalloc_get_ptr(py_obj);
2897 if (value == Py_None) {
2898 object->user = NULL;
2900 object->user = NULL;
2901 if (PyUnicode_Check(value)) {
2902 object->user = PyString_AS_STRING(PyUnicode_AsEncodedString(value, "utf-8", "ignore"));
2903 } else if (PyString_Check(value)) {
2904 object->user = PyString_AS_STRING(value);
2906 PyErr_Format(PyExc_TypeError, "Expected string or unicode object, got %s", Py_TYPE(value)->tp_name);
2913 static PyObject *py_srvsvc_NetSessInfo2_get_num_open(PyObject *obj, void *closure)
2915 struct srvsvc_NetSessInfo2 *object = (struct srvsvc_NetSessInfo2 *)pytalloc_get_ptr(obj);
2916 PyObject *py_num_open;
2917 py_num_open = PyInt_FromLong(object->num_open);
2921 static int py_srvsvc_NetSessInfo2_set_num_open(PyObject *py_obj, PyObject *value, void *closure)
2923 struct srvsvc_NetSessInfo2 *object = (struct srvsvc_NetSessInfo2 *)pytalloc_get_ptr(py_obj);
2924 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
2925 object->num_open = PyInt_AsLong(value);
2929 static PyObject *py_srvsvc_NetSessInfo2_get_time(PyObject *obj, void *closure)
2931 struct srvsvc_NetSessInfo2 *object = (struct srvsvc_NetSessInfo2 *)pytalloc_get_ptr(obj);
2933 py_time = PyInt_FromLong(object->time);
2937 static int py_srvsvc_NetSessInfo2_set_time(PyObject *py_obj, PyObject *value, void *closure)
2939 struct srvsvc_NetSessInfo2 *object = (struct srvsvc_NetSessInfo2 *)pytalloc_get_ptr(py_obj);
2940 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
2941 object->time = PyInt_AsLong(value);
2945 static PyObject *py_srvsvc_NetSessInfo2_get_idle_time(PyObject *obj, void *closure)
2947 struct srvsvc_NetSessInfo2 *object = (struct srvsvc_NetSessInfo2 *)pytalloc_get_ptr(obj);
2948 PyObject *py_idle_time;
2949 py_idle_time = PyInt_FromLong(object->idle_time);
2950 return py_idle_time;
2953 static int py_srvsvc_NetSessInfo2_set_idle_time(PyObject *py_obj, PyObject *value, void *closure)
2955 struct srvsvc_NetSessInfo2 *object = (struct srvsvc_NetSessInfo2 *)pytalloc_get_ptr(py_obj);
2956 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
2957 object->idle_time = PyInt_AsLong(value);
2961 static PyObject *py_srvsvc_NetSessInfo2_get_user_flags(PyObject *obj, void *closure)
2963 struct srvsvc_NetSessInfo2 *object = (struct srvsvc_NetSessInfo2 *)pytalloc_get_ptr(obj);
2964 PyObject *py_user_flags;
2965 py_user_flags = PyInt_FromLong(object->user_flags);
2966 return py_user_flags;
2969 static int py_srvsvc_NetSessInfo2_set_user_flags(PyObject *py_obj, PyObject *value, void *closure)
2971 struct srvsvc_NetSessInfo2 *object = (struct srvsvc_NetSessInfo2 *)pytalloc_get_ptr(py_obj);
2972 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
2973 object->user_flags = PyInt_AsLong(value);
2977 static PyObject *py_srvsvc_NetSessInfo2_get_client_type(PyObject *obj, void *closure)
2979 struct srvsvc_NetSessInfo2 *object = (struct srvsvc_NetSessInfo2 *)pytalloc_get_ptr(obj);
2980 PyObject *py_client_type;
2981 if (object->client_type == NULL) {
2982 py_client_type = Py_None;
2983 Py_INCREF(py_client_type);
2985 if (object->client_type == NULL) {
2986 py_client_type = Py_None;
2987 Py_INCREF(py_client_type);
2989 py_client_type = PyUnicode_Decode(object->client_type, strlen(object->client_type), "utf-8", "ignore");
2992 return py_client_type;
2995 static int py_srvsvc_NetSessInfo2_set_client_type(PyObject *py_obj, PyObject *value, void *closure)
2997 struct srvsvc_NetSessInfo2 *object = (struct srvsvc_NetSessInfo2 *)pytalloc_get_ptr(py_obj);
2998 if (value == Py_None) {
2999 object->client_type = NULL;
3001 object->client_type = NULL;
3002 if (PyUnicode_Check(value)) {
3003 object->client_type = PyString_AS_STRING(PyUnicode_AsEncodedString(value, "utf-8", "ignore"));
3004 } else if (PyString_Check(value)) {
3005 object->client_type = PyString_AS_STRING(value);
3007 PyErr_Format(PyExc_TypeError, "Expected string or unicode object, got %s", Py_TYPE(value)->tp_name);
3014 static PyGetSetDef py_srvsvc_NetSessInfo2_getsetters[] = {
3015 { discard_const_p(char, "client"), py_srvsvc_NetSessInfo2_get_client, py_srvsvc_NetSessInfo2_set_client },
3016 { discard_const_p(char, "user"), py_srvsvc_NetSessInfo2_get_user, py_srvsvc_NetSessInfo2_set_user },
3017 { discard_const_p(char, "num_open"), py_srvsvc_NetSessInfo2_get_num_open, py_srvsvc_NetSessInfo2_set_num_open },
3018 { discard_const_p(char, "time"), py_srvsvc_NetSessInfo2_get_time, py_srvsvc_NetSessInfo2_set_time },
3019 { discard_const_p(char, "idle_time"), py_srvsvc_NetSessInfo2_get_idle_time, py_srvsvc_NetSessInfo2_set_idle_time },
3020 { discard_const_p(char, "user_flags"), py_srvsvc_NetSessInfo2_get_user_flags, py_srvsvc_NetSessInfo2_set_user_flags },
3021 { discard_const_p(char, "client_type"), py_srvsvc_NetSessInfo2_get_client_type, py_srvsvc_NetSessInfo2_set_client_type },
3025 static PyObject *py_srvsvc_NetSessInfo2_new(PyTypeObject *type, PyObject *args, PyObject *kwargs)
3027 return pytalloc_new(struct srvsvc_NetSessInfo2, type);
3031 static PyTypeObject srvsvc_NetSessInfo2_Type = {
3032 PyObject_HEAD_INIT(NULL) 0,
3033 .tp_name = "srvsvc.NetSessInfo2",
3034 .tp_getset = py_srvsvc_NetSessInfo2_getsetters,
3036 .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
3037 .tp_basicsize = sizeof(pytalloc_Object),
3038 .tp_new = py_srvsvc_NetSessInfo2_new,
3042 static PyObject *py_srvsvc_NetSessCtr2_get_count(PyObject *obj, void *closure)
3044 struct srvsvc_NetSessCtr2 *object = (struct srvsvc_NetSessCtr2 *)pytalloc_get_ptr(obj);
3046 py_count = PyInt_FromLong(object->count);
3050 static int py_srvsvc_NetSessCtr2_set_count(PyObject *py_obj, PyObject *value, void *closure)
3052 struct srvsvc_NetSessCtr2 *object = (struct srvsvc_NetSessCtr2 *)pytalloc_get_ptr(py_obj);
3053 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
3054 object->count = PyInt_AsLong(value);
3058 static PyObject *py_srvsvc_NetSessCtr2_get_array(PyObject *obj, void *closure)
3060 struct srvsvc_NetSessCtr2 *object = (struct srvsvc_NetSessCtr2 *)pytalloc_get_ptr(obj);
3062 if (object->array == NULL) {
3064 Py_INCREF(py_array);
3066 py_array = PyList_New(object->count);
3067 if (py_array == NULL) {
3072 for (array_cntr_1 = 0; array_cntr_1 < object->count; array_cntr_1++) {
3073 PyObject *py_array_1;
3074 py_array_1 = pytalloc_reference_ex(&srvsvc_NetSessInfo2_Type, object->array, &object->array[array_cntr_1]);
3075 PyList_SetItem(py_array, array_cntr_1, py_array_1);
3082 static int py_srvsvc_NetSessCtr2_set_array(PyObject *py_obj, PyObject *value, void *closure)
3084 struct srvsvc_NetSessCtr2 *object = (struct srvsvc_NetSessCtr2 *)pytalloc_get_ptr(py_obj);
3085 talloc_unlink(pytalloc_get_mem_ctx(py_obj), object->array);
3086 if (value == Py_None) {
3087 object->array = NULL;
3089 object->array = NULL;
3090 PY_CHECK_TYPE(&PyList_Type, value, return -1;);
3093 object->array = talloc_array_ptrtype(pytalloc_get_mem_ctx(py_obj), object->array, PyList_GET_SIZE(value));
3094 if (!object->array) { return -1;; }
3095 talloc_set_name_const(object->array, "ARRAY: object->array");
3096 for (array_cntr_1 = 0; array_cntr_1 < PyList_GET_SIZE(value); array_cntr_1++) {
3097 PY_CHECK_TYPE(&srvsvc_NetSessInfo2_Type, PyList_GET_ITEM(value, array_cntr_1), return -1;);
3098 if (talloc_reference(object->array, pytalloc_get_mem_ctx(PyList_GET_ITEM(value, array_cntr_1))) == NULL) {
3102 object->array[array_cntr_1] = *(struct srvsvc_NetSessInfo2 *)pytalloc_get_ptr(PyList_GET_ITEM(value, array_cntr_1));
3109 static PyGetSetDef py_srvsvc_NetSessCtr2_getsetters[] = {
3110 { discard_const_p(char, "count"), py_srvsvc_NetSessCtr2_get_count, py_srvsvc_NetSessCtr2_set_count },
3111 { discard_const_p(char, "array"), py_srvsvc_NetSessCtr2_get_array, py_srvsvc_NetSessCtr2_set_array },
3115 static PyObject *py_srvsvc_NetSessCtr2_new(PyTypeObject *type, PyObject *args, PyObject *kwargs)
3117 return pytalloc_new(struct srvsvc_NetSessCtr2, type);
3121 static PyTypeObject srvsvc_NetSessCtr2_Type = {
3122 PyObject_HEAD_INIT(NULL) 0,
3123 .tp_name = "srvsvc.NetSessCtr2",
3124 .tp_getset = py_srvsvc_NetSessCtr2_getsetters,
3126 .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
3127 .tp_basicsize = sizeof(pytalloc_Object),
3128 .tp_new = py_srvsvc_NetSessCtr2_new,
3132 static PyObject *py_srvsvc_NetSessInfo10_get_client(PyObject *obj, void *closure)
3134 struct srvsvc_NetSessInfo10 *object = (struct srvsvc_NetSessInfo10 *)pytalloc_get_ptr(obj);
3135 PyObject *py_client;
3136 if (object->client == NULL) {
3137 py_client = Py_None;
3138 Py_INCREF(py_client);
3140 if (object->client == NULL) {
3141 py_client = Py_None;
3142 Py_INCREF(py_client);
3144 py_client = PyUnicode_Decode(object->client, strlen(object->client), "utf-8", "ignore");
3150 static int py_srvsvc_NetSessInfo10_set_client(PyObject *py_obj, PyObject *value, void *closure)
3152 struct srvsvc_NetSessInfo10 *object = (struct srvsvc_NetSessInfo10 *)pytalloc_get_ptr(py_obj);
3153 if (value == Py_None) {
3154 object->client = NULL;
3156 object->client = NULL;
3157 if (PyUnicode_Check(value)) {
3158 object->client = PyString_AS_STRING(PyUnicode_AsEncodedString(value, "utf-8", "ignore"));
3159 } else if (PyString_Check(value)) {
3160 object->client = PyString_AS_STRING(value);
3162 PyErr_Format(PyExc_TypeError, "Expected string or unicode object, got %s", Py_TYPE(value)->tp_name);
3169 static PyObject *py_srvsvc_NetSessInfo10_get_user(PyObject *obj, void *closure)
3171 struct srvsvc_NetSessInfo10 *object = (struct srvsvc_NetSessInfo10 *)pytalloc_get_ptr(obj);
3173 if (object->user == NULL) {
3177 if (object->user == NULL) {
3181 py_user = PyUnicode_Decode(object->user, strlen(object->user), "utf-8", "ignore");
3187 static int py_srvsvc_NetSessInfo10_set_user(PyObject *py_obj, PyObject *value, void *closure)
3189 struct srvsvc_NetSessInfo10 *object = (struct srvsvc_NetSessInfo10 *)pytalloc_get_ptr(py_obj);
3190 if (value == Py_None) {
3191 object->user = NULL;
3193 object->user = NULL;
3194 if (PyUnicode_Check(value)) {
3195 object->user = PyString_AS_STRING(PyUnicode_AsEncodedString(value, "utf-8", "ignore"));
3196 } else if (PyString_Check(value)) {
3197 object->user = PyString_AS_STRING(value);
3199 PyErr_Format(PyExc_TypeError, "Expected string or unicode object, got %s", Py_TYPE(value)->tp_name);
3206 static PyObject *py_srvsvc_NetSessInfo10_get_time(PyObject *obj, void *closure)
3208 struct srvsvc_NetSessInfo10 *object = (struct srvsvc_NetSessInfo10 *)pytalloc_get_ptr(obj);
3210 py_time = PyInt_FromLong(object->time);
3214 static int py_srvsvc_NetSessInfo10_set_time(PyObject *py_obj, PyObject *value, void *closure)
3216 struct srvsvc_NetSessInfo10 *object = (struct srvsvc_NetSessInfo10 *)pytalloc_get_ptr(py_obj);
3217 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
3218 object->time = PyInt_AsLong(value);
3222 static PyObject *py_srvsvc_NetSessInfo10_get_idle_time(PyObject *obj, void *closure)
3224 struct srvsvc_NetSessInfo10 *object = (struct srvsvc_NetSessInfo10 *)pytalloc_get_ptr(obj);
3225 PyObject *py_idle_time;
3226 py_idle_time = PyInt_FromLong(object->idle_time);
3227 return py_idle_time;
3230 static int py_srvsvc_NetSessInfo10_set_idle_time(PyObject *py_obj, PyObject *value, void *closure)
3232 struct srvsvc_NetSessInfo10 *object = (struct srvsvc_NetSessInfo10 *)pytalloc_get_ptr(py_obj);
3233 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
3234 object->idle_time = PyInt_AsLong(value);
3238 static PyGetSetDef py_srvsvc_NetSessInfo10_getsetters[] = {
3239 { discard_const_p(char, "client"), py_srvsvc_NetSessInfo10_get_client, py_srvsvc_NetSessInfo10_set_client },
3240 { discard_const_p(char, "user"), py_srvsvc_NetSessInfo10_get_user, py_srvsvc_NetSessInfo10_set_user },
3241 { discard_const_p(char, "time"), py_srvsvc_NetSessInfo10_get_time, py_srvsvc_NetSessInfo10_set_time },
3242 { discard_const_p(char, "idle_time"), py_srvsvc_NetSessInfo10_get_idle_time, py_srvsvc_NetSessInfo10_set_idle_time },
3246 static PyObject *py_srvsvc_NetSessInfo10_new(PyTypeObject *type, PyObject *args, PyObject *kwargs)
3248 return pytalloc_new(struct srvsvc_NetSessInfo10, type);
3252 static PyTypeObject srvsvc_NetSessInfo10_Type = {
3253 PyObject_HEAD_INIT(NULL) 0,
3254 .tp_name = "srvsvc.NetSessInfo10",
3255 .tp_getset = py_srvsvc_NetSessInfo10_getsetters,
3257 .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
3258 .tp_basicsize = sizeof(pytalloc_Object),
3259 .tp_new = py_srvsvc_NetSessInfo10_new,
3263 static PyObject *py_srvsvc_NetSessCtr10_get_count(PyObject *obj, void *closure)
3265 struct srvsvc_NetSessCtr10 *object = (struct srvsvc_NetSessCtr10 *)pytalloc_get_ptr(obj);
3267 py_count = PyInt_FromLong(object->count);
3271 static int py_srvsvc_NetSessCtr10_set_count(PyObject *py_obj, PyObject *value, void *closure)
3273 struct srvsvc_NetSessCtr10 *object = (struct srvsvc_NetSessCtr10 *)pytalloc_get_ptr(py_obj);
3274 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
3275 object->count = PyInt_AsLong(value);
3279 static PyObject *py_srvsvc_NetSessCtr10_get_array(PyObject *obj, void *closure)
3281 struct srvsvc_NetSessCtr10 *object = (struct srvsvc_NetSessCtr10 *)pytalloc_get_ptr(obj);
3283 if (object->array == NULL) {
3285 Py_INCREF(py_array);
3287 py_array = PyList_New(object->count);
3288 if (py_array == NULL) {
3293 for (array_cntr_1 = 0; array_cntr_1 < object->count; array_cntr_1++) {
3294 PyObject *py_array_1;
3295 py_array_1 = pytalloc_reference_ex(&srvsvc_NetSessInfo10_Type, object->array, &object->array[array_cntr_1]);
3296 PyList_SetItem(py_array, array_cntr_1, py_array_1);
3303 static int py_srvsvc_NetSessCtr10_set_array(PyObject *py_obj, PyObject *value, void *closure)
3305 struct srvsvc_NetSessCtr10 *object = (struct srvsvc_NetSessCtr10 *)pytalloc_get_ptr(py_obj);
3306 talloc_unlink(pytalloc_get_mem_ctx(py_obj), object->array);
3307 if (value == Py_None) {
3308 object->array = NULL;
3310 object->array = NULL;
3311 PY_CHECK_TYPE(&PyList_Type, value, return -1;);
3314 object->array = talloc_array_ptrtype(pytalloc_get_mem_ctx(py_obj), object->array, PyList_GET_SIZE(value));
3315 if (!object->array) { return -1;; }
3316 talloc_set_name_const(object->array, "ARRAY: object->array");
3317 for (array_cntr_1 = 0; array_cntr_1 < PyList_GET_SIZE(value); array_cntr_1++) {
3318 PY_CHECK_TYPE(&srvsvc_NetSessInfo10_Type, PyList_GET_ITEM(value, array_cntr_1), return -1;);
3319 if (talloc_reference(object->array, pytalloc_get_mem_ctx(PyList_GET_ITEM(value, array_cntr_1))) == NULL) {
3323 object->array[array_cntr_1] = *(struct srvsvc_NetSessInfo10 *)pytalloc_get_ptr(PyList_GET_ITEM(value, array_cntr_1));
3330 static PyGetSetDef py_srvsvc_NetSessCtr10_getsetters[] = {
3331 { discard_const_p(char, "count"), py_srvsvc_NetSessCtr10_get_count, py_srvsvc_NetSessCtr10_set_count },
3332 { discard_const_p(char, "array"), py_srvsvc_NetSessCtr10_get_array, py_srvsvc_NetSessCtr10_set_array },
3336 static PyObject *py_srvsvc_NetSessCtr10_new(PyTypeObject *type, PyObject *args, PyObject *kwargs)
3338 return pytalloc_new(struct srvsvc_NetSessCtr10, type);
3342 static PyTypeObject srvsvc_NetSessCtr10_Type = {
3343 PyObject_HEAD_INIT(NULL) 0,
3344 .tp_name = "srvsvc.NetSessCtr10",
3345 .tp_getset = py_srvsvc_NetSessCtr10_getsetters,
3347 .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
3348 .tp_basicsize = sizeof(pytalloc_Object),
3349 .tp_new = py_srvsvc_NetSessCtr10_new,
3353 static PyObject *py_srvsvc_NetSessInfo502_get_client(PyObject *obj, void *closure)
3355 struct srvsvc_NetSessInfo502 *object = (struct srvsvc_NetSessInfo502 *)pytalloc_get_ptr(obj);
3356 PyObject *py_client;
3357 if (object->client == NULL) {
3358 py_client = Py_None;
3359 Py_INCREF(py_client);
3361 if (object->client == NULL) {
3362 py_client = Py_None;
3363 Py_INCREF(py_client);
3365 py_client = PyUnicode_Decode(object->client, strlen(object->client), "utf-8", "ignore");
3371 static int py_srvsvc_NetSessInfo502_set_client(PyObject *py_obj, PyObject *value, void *closure)
3373 struct srvsvc_NetSessInfo502 *object = (struct srvsvc_NetSessInfo502 *)pytalloc_get_ptr(py_obj);
3374 if (value == Py_None) {
3375 object->client = NULL;
3377 object->client = NULL;
3378 if (PyUnicode_Check(value)) {
3379 object->client = PyString_AS_STRING(PyUnicode_AsEncodedString(value, "utf-8", "ignore"));
3380 } else if (PyString_Check(value)) {
3381 object->client = PyString_AS_STRING(value);
3383 PyErr_Format(PyExc_TypeError, "Expected string or unicode object, got %s", Py_TYPE(value)->tp_name);
3390 static PyObject *py_srvsvc_NetSessInfo502_get_user(PyObject *obj, void *closure)
3392 struct srvsvc_NetSessInfo502 *object = (struct srvsvc_NetSessInfo502 *)pytalloc_get_ptr(obj);
3394 if (object->user == NULL) {
3398 if (object->user == NULL) {
3402 py_user = PyUnicode_Decode(object->user, strlen(object->user), "utf-8", "ignore");
3408 static int py_srvsvc_NetSessInfo502_set_user(PyObject *py_obj, PyObject *value, void *closure)
3410 struct srvsvc_NetSessInfo502 *object = (struct srvsvc_NetSessInfo502 *)pytalloc_get_ptr(py_obj);
3411 if (value == Py_None) {
3412 object->user = NULL;
3414 object->user = NULL;
3415 if (PyUnicode_Check(value)) {
3416 object->user = PyString_AS_STRING(PyUnicode_AsEncodedString(value, "utf-8", "ignore"));
3417 } else if (PyString_Check(value)) {
3418 object->user = PyString_AS_STRING(value);
3420 PyErr_Format(PyExc_TypeError, "Expected string or unicode object, got %s", Py_TYPE(value)->tp_name);
3427 static PyObject *py_srvsvc_NetSessInfo502_get_num_open(PyObject *obj, void *closure)
3429 struct srvsvc_NetSessInfo502 *object = (struct srvsvc_NetSessInfo502 *)pytalloc_get_ptr(obj);
3430 PyObject *py_num_open;
3431 py_num_open = PyInt_FromLong(object->num_open);
3435 static int py_srvsvc_NetSessInfo502_set_num_open(PyObject *py_obj, PyObject *value, void *closure)
3437 struct srvsvc_NetSessInfo502 *object = (struct srvsvc_NetSessInfo502 *)pytalloc_get_ptr(py_obj);
3438 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
3439 object->num_open = PyInt_AsLong(value);
3443 static PyObject *py_srvsvc_NetSessInfo502_get_time(PyObject *obj, void *closure)
3445 struct srvsvc_NetSessInfo502 *object = (struct srvsvc_NetSessInfo502 *)pytalloc_get_ptr(obj);
3447 py_time = PyInt_FromLong(object->time);
3451 static int py_srvsvc_NetSessInfo502_set_time(PyObject *py_obj, PyObject *value, void *closure)
3453 struct srvsvc_NetSessInfo502 *object = (struct srvsvc_NetSessInfo502 *)pytalloc_get_ptr(py_obj);
3454 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
3455 object->time = PyInt_AsLong(value);
3459 static PyObject *py_srvsvc_NetSessInfo502_get_idle_time(PyObject *obj, void *closure)
3461 struct srvsvc_NetSessInfo502 *object = (struct srvsvc_NetSessInfo502 *)pytalloc_get_ptr(obj);
3462 PyObject *py_idle_time;
3463 py_idle_time = PyInt_FromLong(object->idle_time);
3464 return py_idle_time;
3467 static int py_srvsvc_NetSessInfo502_set_idle_time(PyObject *py_obj, PyObject *value, void *closure)
3469 struct srvsvc_NetSessInfo502 *object = (struct srvsvc_NetSessInfo502 *)pytalloc_get_ptr(py_obj);
3470 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
3471 object->idle_time = PyInt_AsLong(value);
3475 static PyObject *py_srvsvc_NetSessInfo502_get_user_flags(PyObject *obj, void *closure)
3477 struct srvsvc_NetSessInfo502 *object = (struct srvsvc_NetSessInfo502 *)pytalloc_get_ptr(obj);
3478 PyObject *py_user_flags;
3479 py_user_flags = PyInt_FromLong(object->user_flags);
3480 return py_user_flags;
3483 static int py_srvsvc_NetSessInfo502_set_user_flags(PyObject *py_obj, PyObject *value, void *closure)
3485 struct srvsvc_NetSessInfo502 *object = (struct srvsvc_NetSessInfo502 *)pytalloc_get_ptr(py_obj);
3486 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
3487 object->user_flags = PyInt_AsLong(value);
3491 static PyObject *py_srvsvc_NetSessInfo502_get_client_type(PyObject *obj, void *closure)
3493 struct srvsvc_NetSessInfo502 *object = (struct srvsvc_NetSessInfo502 *)pytalloc_get_ptr(obj);
3494 PyObject *py_client_type;
3495 if (object->client_type == NULL) {
3496 py_client_type = Py_None;
3497 Py_INCREF(py_client_type);
3499 if (object->client_type == NULL) {
3500 py_client_type = Py_None;
3501 Py_INCREF(py_client_type);
3503 py_client_type = PyUnicode_Decode(object->client_type, strlen(object->client_type), "utf-8", "ignore");
3506 return py_client_type;
3509 static int py_srvsvc_NetSessInfo502_set_client_type(PyObject *py_obj, PyObject *value, void *closure)
3511 struct srvsvc_NetSessInfo502 *object = (struct srvsvc_NetSessInfo502 *)pytalloc_get_ptr(py_obj);
3512 if (value == Py_None) {
3513 object->client_type = NULL;
3515 object->client_type = NULL;
3516 if (PyUnicode_Check(value)) {
3517 object->client_type = PyString_AS_STRING(PyUnicode_AsEncodedString(value, "utf-8", "ignore"));
3518 } else if (PyString_Check(value)) {
3519 object->client_type = PyString_AS_STRING(value);
3521 PyErr_Format(PyExc_TypeError, "Expected string or unicode object, got %s", Py_TYPE(value)->tp_name);
3528 static PyObject *py_srvsvc_NetSessInfo502_get_transport(PyObject *obj, void *closure)
3530 struct srvsvc_NetSessInfo502 *object = (struct srvsvc_NetSessInfo502 *)pytalloc_get_ptr(obj);
3531 PyObject *py_transport;
3532 if (object->transport == NULL) {
3533 py_transport = Py_None;
3534 Py_INCREF(py_transport);
3536 if (object->transport == NULL) {
3537 py_transport = Py_None;
3538 Py_INCREF(py_transport);
3540 py_transport = PyUnicode_Decode(object->transport, strlen(object->transport), "utf-8", "ignore");
3543 return py_transport;
3546 static int py_srvsvc_NetSessInfo502_set_transport(PyObject *py_obj, PyObject *value, void *closure)
3548 struct srvsvc_NetSessInfo502 *object = (struct srvsvc_NetSessInfo502 *)pytalloc_get_ptr(py_obj);
3549 if (value == Py_None) {
3550 object->transport = NULL;
3552 object->transport = NULL;
3553 if (PyUnicode_Check(value)) {
3554 object->transport = PyString_AS_STRING(PyUnicode_AsEncodedString(value, "utf-8", "ignore"));
3555 } else if (PyString_Check(value)) {
3556 object->transport = PyString_AS_STRING(value);
3558 PyErr_Format(PyExc_TypeError, "Expected string or unicode object, got %s", Py_TYPE(value)->tp_name);
3565 static PyGetSetDef py_srvsvc_NetSessInfo502_getsetters[] = {
3566 { discard_const_p(char, "client"), py_srvsvc_NetSessInfo502_get_client, py_srvsvc_NetSessInfo502_set_client },
3567 { discard_const_p(char, "user"), py_srvsvc_NetSessInfo502_get_user, py_srvsvc_NetSessInfo502_set_user },
3568 { discard_const_p(char, "num_open"), py_srvsvc_NetSessInfo502_get_num_open, py_srvsvc_NetSessInfo502_set_num_open },
3569 { discard_const_p(char, "time"), py_srvsvc_NetSessInfo502_get_time, py_srvsvc_NetSessInfo502_set_time },
3570 { discard_const_p(char, "idle_time"), py_srvsvc_NetSessInfo502_get_idle_time, py_srvsvc_NetSessInfo502_set_idle_time },
3571 { discard_const_p(char, "user_flags"), py_srvsvc_NetSessInfo502_get_user_flags, py_srvsvc_NetSessInfo502_set_user_flags },
3572 { discard_const_p(char, "client_type"), py_srvsvc_NetSessInfo502_get_client_type, py_srvsvc_NetSessInfo502_set_client_type },
3573 { discard_const_p(char, "transport"), py_srvsvc_NetSessInfo502_get_transport, py_srvsvc_NetSessInfo502_set_transport },
3577 static PyObject *py_srvsvc_NetSessInfo502_new(PyTypeObject *type, PyObject *args, PyObject *kwargs)
3579 return pytalloc_new(struct srvsvc_NetSessInfo502, type);
3583 static PyTypeObject srvsvc_NetSessInfo502_Type = {
3584 PyObject_HEAD_INIT(NULL) 0,
3585 .tp_name = "srvsvc.NetSessInfo502",
3586 .tp_getset = py_srvsvc_NetSessInfo502_getsetters,
3588 .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
3589 .tp_basicsize = sizeof(pytalloc_Object),
3590 .tp_new = py_srvsvc_NetSessInfo502_new,
3594 static PyObject *py_srvsvc_NetSessCtr502_get_count(PyObject *obj, void *closure)
3596 struct srvsvc_NetSessCtr502 *object = (struct srvsvc_NetSessCtr502 *)pytalloc_get_ptr(obj);
3598 py_count = PyInt_FromLong(object->count);
3602 static int py_srvsvc_NetSessCtr502_set_count(PyObject *py_obj, PyObject *value, void *closure)
3604 struct srvsvc_NetSessCtr502 *object = (struct srvsvc_NetSessCtr502 *)pytalloc_get_ptr(py_obj);
3605 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
3606 object->count = PyInt_AsLong(value);
3610 static PyObject *py_srvsvc_NetSessCtr502_get_array(PyObject *obj, void *closure)
3612 struct srvsvc_NetSessCtr502 *object = (struct srvsvc_NetSessCtr502 *)pytalloc_get_ptr(obj);
3614 if (object->array == NULL) {
3616 Py_INCREF(py_array);
3618 py_array = PyList_New(object->count);
3619 if (py_array == NULL) {
3624 for (array_cntr_1 = 0; array_cntr_1 < object->count; array_cntr_1++) {
3625 PyObject *py_array_1;
3626 py_array_1 = pytalloc_reference_ex(&srvsvc_NetSessInfo502_Type, object->array, &object->array[array_cntr_1]);
3627 PyList_SetItem(py_array, array_cntr_1, py_array_1);
3634 static int py_srvsvc_NetSessCtr502_set_array(PyObject *py_obj, PyObject *value, void *closure)
3636 struct srvsvc_NetSessCtr502 *object = (struct srvsvc_NetSessCtr502 *)pytalloc_get_ptr(py_obj);
3637 talloc_unlink(pytalloc_get_mem_ctx(py_obj), object->array);
3638 if (value == Py_None) {
3639 object->array = NULL;
3641 object->array = NULL;
3642 PY_CHECK_TYPE(&PyList_Type, value, return -1;);
3645 object->array = talloc_array_ptrtype(pytalloc_get_mem_ctx(py_obj), object->array, PyList_GET_SIZE(value));
3646 if (!object->array) { return -1;; }
3647 talloc_set_name_const(object->array, "ARRAY: object->array");
3648 for (array_cntr_1 = 0; array_cntr_1 < PyList_GET_SIZE(value); array_cntr_1++) {
3649 PY_CHECK_TYPE(&srvsvc_NetSessInfo502_Type, PyList_GET_ITEM(value, array_cntr_1), return -1;);
3650 if (talloc_reference(object->array, pytalloc_get_mem_ctx(PyList_GET_ITEM(value, array_cntr_1))) == NULL) {
3654 object->array[array_cntr_1] = *(struct srvsvc_NetSessInfo502 *)pytalloc_get_ptr(PyList_GET_ITEM(value, array_cntr_1));
3661 static PyGetSetDef py_srvsvc_NetSessCtr502_getsetters[] = {
3662 { discard_const_p(char, "count"), py_srvsvc_NetSessCtr502_get_count, py_srvsvc_NetSessCtr502_set_count },
3663 { discard_const_p(char, "array"), py_srvsvc_NetSessCtr502_get_array, py_srvsvc_NetSessCtr502_set_array },
3667 static PyObject *py_srvsvc_NetSessCtr502_new(PyTypeObject *type, PyObject *args, PyObject *kwargs)
3669 return pytalloc_new(struct srvsvc_NetSessCtr502, type);
3673 static PyTypeObject srvsvc_NetSessCtr502_Type = {
3674 PyObject_HEAD_INIT(NULL) 0,
3675 .tp_name = "srvsvc.NetSessCtr502",
3676 .tp_getset = py_srvsvc_NetSessCtr502_getsetters,
3678 .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
3679 .tp_basicsize = sizeof(pytalloc_Object),
3680 .tp_new = py_srvsvc_NetSessCtr502_new,
3683 static PyObject *py_import_srvsvc_NetSessCtr(TALLOC_CTX *mem_ctx, int level, union srvsvc_NetSessCtr *in)
3689 if (in->ctr0 == NULL) {
3693 ret = pytalloc_reference_ex(&srvsvc_NetSessCtr0_Type, in->ctr0, in->ctr0);
3698 if (in->ctr1 == NULL) {
3702 ret = pytalloc_reference_ex(&srvsvc_NetSessCtr1_Type, in->ctr1, in->ctr1);
3707 if (in->ctr2 == NULL) {
3711 ret = pytalloc_reference_ex(&srvsvc_NetSessCtr2_Type, in->ctr2, in->ctr2);
3716 if (in->ctr10 == NULL) {
3720 ret = pytalloc_reference_ex(&srvsvc_NetSessCtr10_Type, in->ctr10, in->ctr10);
3725 if (in->ctr502 == NULL) {
3729 ret = pytalloc_reference_ex(&srvsvc_NetSessCtr502_Type, in->ctr502, in->ctr502);
3739 PyErr_SetString(PyExc_TypeError, "unknown union level");
3743 static union srvsvc_NetSessCtr *py_export_srvsvc_NetSessCtr(TALLOC_CTX *mem_ctx, int level, PyObject *in)
3745 union srvsvc_NetSessCtr *ret = talloc_zero(mem_ctx, union srvsvc_NetSessCtr);
3748 if (in == Py_None) {
3752 PY_CHECK_TYPE(&srvsvc_NetSessCtr0_Type, in, talloc_free(ret); return NULL;);
3753 if (talloc_reference(mem_ctx, pytalloc_get_mem_ctx(in)) == NULL) {
3755 talloc_free(ret); return NULL;
3757 ret->ctr0 = (struct srvsvc_NetSessCtr0 *)pytalloc_get_ptr(in);
3762 if (in == Py_None) {
3766 PY_CHECK_TYPE(&srvsvc_NetSessCtr1_Type, in, talloc_free(ret); return NULL;);
3767 if (talloc_reference(mem_ctx, pytalloc_get_mem_ctx(in)) == NULL) {
3769 talloc_free(ret); return NULL;
3771 ret->ctr1 = (struct srvsvc_NetSessCtr1 *)pytalloc_get_ptr(in);
3776 if (in == Py_None) {
3780 PY_CHECK_TYPE(&srvsvc_NetSessCtr2_Type, in, talloc_free(ret); return NULL;);
3781 if (talloc_reference(mem_ctx, pytalloc_get_mem_ctx(in)) == NULL) {
3783 talloc_free(ret); return NULL;
3785 ret->ctr2 = (struct srvsvc_NetSessCtr2 *)pytalloc_get_ptr(in);
3790 if (in == Py_None) {
3794 PY_CHECK_TYPE(&srvsvc_NetSessCtr10_Type, in, talloc_free(ret); return NULL;);
3795 if (talloc_reference(mem_ctx, pytalloc_get_mem_ctx(in)) == NULL) {
3797 talloc_free(ret); return NULL;
3799 ret->ctr10 = (struct srvsvc_NetSessCtr10 *)pytalloc_get_ptr(in);
3804 if (in == Py_None) {
3808 PY_CHECK_TYPE(&srvsvc_NetSessCtr502_Type, in, talloc_free(ret); return NULL;);
3809 if (talloc_reference(mem_ctx, pytalloc_get_mem_ctx(in)) == NULL) {
3811 talloc_free(ret); return NULL;
3813 ret->ctr502 = (struct srvsvc_NetSessCtr502 *)pytalloc_get_ptr(in);
3826 static PyObject *py_srvsvc_NetSessInfoCtr_get_level(PyObject *obj, void *closure)
3828 struct srvsvc_NetSessInfoCtr *object = (struct srvsvc_NetSessInfoCtr *)pytalloc_get_ptr(obj);
3830 py_level = PyInt_FromLong(object->level);
3834 static int py_srvsvc_NetSessInfoCtr_set_level(PyObject *py_obj, PyObject *value, void *closure)
3836 struct srvsvc_NetSessInfoCtr *object = (struct srvsvc_NetSessInfoCtr *)pytalloc_get_ptr(py_obj);
3837 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
3838 object->level = PyInt_AsLong(value);
3842 static PyObject *py_srvsvc_NetSessInfoCtr_get_ctr(PyObject *obj, void *closure)
3844 struct srvsvc_NetSessInfoCtr *object = (struct srvsvc_NetSessInfoCtr *)pytalloc_get_ptr(obj);
3846 py_ctr = py_import_srvsvc_NetSessCtr(pytalloc_get_mem_ctx(obj), object->level, &object->ctr);
3847 if (py_ctr == NULL) {
3853 static int py_srvsvc_NetSessInfoCtr_set_ctr(PyObject *py_obj, PyObject *value, void *closure)
3855 struct srvsvc_NetSessInfoCtr *object = (struct srvsvc_NetSessInfoCtr *)pytalloc_get_ptr(py_obj);
3857 union srvsvc_NetSessCtr *ctr_switch_0;
3858 ctr_switch_0 = py_export_srvsvc_NetSessCtr(pytalloc_get_mem_ctx(py_obj), object->level, value);
3859 if (ctr_switch_0 == NULL) {
3862 object->ctr = *ctr_switch_0;
3867 static PyGetSetDef py_srvsvc_NetSessInfoCtr_getsetters[] = {
3868 { discard_const_p(char, "level"), py_srvsvc_NetSessInfoCtr_get_level, py_srvsvc_NetSessInfoCtr_set_level },
3869 { discard_const_p(char, "ctr"), py_srvsvc_NetSessInfoCtr_get_ctr, py_srvsvc_NetSessInfoCtr_set_ctr },
3873 static PyObject *py_srvsvc_NetSessInfoCtr_new(PyTypeObject *type, PyObject *args, PyObject *kwargs)
3875 return pytalloc_new(struct srvsvc_NetSessInfoCtr, type);
3879 static PyTypeObject srvsvc_NetSessInfoCtr_Type = {
3880 PyObject_HEAD_INIT(NULL) 0,
3881 .tp_name = "srvsvc.NetSessInfoCtr",
3882 .tp_getset = py_srvsvc_NetSessInfoCtr_getsetters,
3884 .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
3885 .tp_basicsize = sizeof(pytalloc_Object),
3886 .tp_new = py_srvsvc_NetSessInfoCtr_new,
3890 static PyObject *py_srvsvc_NetShareInfo0_get_name(PyObject *obj, void *closure)
3892 struct srvsvc_NetShareInfo0 *object = (struct srvsvc_NetShareInfo0 *)pytalloc_get_ptr(obj);
3894 if (object->name == NULL) {
3898 if (object->name == NULL) {
3902 py_name = PyUnicode_Decode(object->name, strlen(object->name), "utf-8", "ignore");
3908 static int py_srvsvc_NetShareInfo0_set_name(PyObject *py_obj, PyObject *value, void *closure)
3910 struct srvsvc_NetShareInfo0 *object = (struct srvsvc_NetShareInfo0 *)pytalloc_get_ptr(py_obj);
3911 if (value == Py_None) {
3912 object->name = NULL;
3914 object->name = NULL;
3915 if (PyUnicode_Check(value)) {
3916 object->name = PyString_AS_STRING(PyUnicode_AsEncodedString(value, "utf-8", "ignore"));
3917 } else if (PyString_Check(value)) {
3918 object->name = PyString_AS_STRING(value);
3920 PyErr_Format(PyExc_TypeError, "Expected string or unicode object, got %s", Py_TYPE(value)->tp_name);
3927 static PyGetSetDef py_srvsvc_NetShareInfo0_getsetters[] = {
3928 { discard_const_p(char, "name"), py_srvsvc_NetShareInfo0_get_name, py_srvsvc_NetShareInfo0_set_name },
3932 static PyObject *py_srvsvc_NetShareInfo0_new(PyTypeObject *type, PyObject *args, PyObject *kwargs)
3934 return pytalloc_new(struct srvsvc_NetShareInfo0, type);
3938 static PyTypeObject srvsvc_NetShareInfo0_Type = {
3939 PyObject_HEAD_INIT(NULL) 0,
3940 .tp_name = "srvsvc.NetShareInfo0",
3941 .tp_getset = py_srvsvc_NetShareInfo0_getsetters,
3943 .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
3944 .tp_basicsize = sizeof(pytalloc_Object),
3945 .tp_new = py_srvsvc_NetShareInfo0_new,
3949 static PyObject *py_srvsvc_NetShareCtr0_get_count(PyObject *obj, void *closure)
3951 struct srvsvc_NetShareCtr0 *object = (struct srvsvc_NetShareCtr0 *)pytalloc_get_ptr(obj);
3953 py_count = PyInt_FromLong(object->count);
3957 static int py_srvsvc_NetShareCtr0_set_count(PyObject *py_obj, PyObject *value, void *closure)
3959 struct srvsvc_NetShareCtr0 *object = (struct srvsvc_NetShareCtr0 *)pytalloc_get_ptr(py_obj);
3960 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
3961 object->count = PyInt_AsLong(value);
3965 static PyObject *py_srvsvc_NetShareCtr0_get_array(PyObject *obj, void *closure)
3967 struct srvsvc_NetShareCtr0 *object = (struct srvsvc_NetShareCtr0 *)pytalloc_get_ptr(obj);
3969 if (object->array == NULL) {
3971 Py_INCREF(py_array);
3973 py_array = PyList_New(object->count);
3974 if (py_array == NULL) {
3979 for (array_cntr_1 = 0; array_cntr_1 < object->count; array_cntr_1++) {
3980 PyObject *py_array_1;
3981 py_array_1 = pytalloc_reference_ex(&srvsvc_NetShareInfo0_Type, object->array, &object->array[array_cntr_1]);
3982 PyList_SetItem(py_array, array_cntr_1, py_array_1);
3989 static int py_srvsvc_NetShareCtr0_set_array(PyObject *py_obj, PyObject *value, void *closure)
3991 struct srvsvc_NetShareCtr0 *object = (struct srvsvc_NetShareCtr0 *)pytalloc_get_ptr(py_obj);
3992 talloc_unlink(pytalloc_get_mem_ctx(py_obj), object->array);
3993 if (value == Py_None) {
3994 object->array = NULL;
3996 object->array = NULL;
3997 PY_CHECK_TYPE(&PyList_Type, value, return -1;);
4000 object->array = talloc_array_ptrtype(pytalloc_get_mem_ctx(py_obj), object->array, PyList_GET_SIZE(value));
4001 if (!object->array) { return -1;; }
4002 talloc_set_name_const(object->array, "ARRAY: object->array");
4003 for (array_cntr_1 = 0; array_cntr_1 < PyList_GET_SIZE(value); array_cntr_1++) {
4004 PY_CHECK_TYPE(&srvsvc_NetShareInfo0_Type, PyList_GET_ITEM(value, array_cntr_1), return -1;);
4005 if (talloc_reference(object->array, pytalloc_get_mem_ctx(PyList_GET_ITEM(value, array_cntr_1))) == NULL) {
4009 object->array[array_cntr_1] = *(struct srvsvc_NetShareInfo0 *)pytalloc_get_ptr(PyList_GET_ITEM(value, array_cntr_1));
4016 static PyGetSetDef py_srvsvc_NetShareCtr0_getsetters[] = {
4017 { discard_const_p(char, "count"), py_srvsvc_NetShareCtr0_get_count, py_srvsvc_NetShareCtr0_set_count },
4018 { discard_const_p(char, "array"), py_srvsvc_NetShareCtr0_get_array, py_srvsvc_NetShareCtr0_set_array },
4022 static PyObject *py_srvsvc_NetShareCtr0_new(PyTypeObject *type, PyObject *args, PyObject *kwargs)
4024 return pytalloc_new(struct srvsvc_NetShareCtr0, type);
4028 static PyTypeObject srvsvc_NetShareCtr0_Type = {
4029 PyObject_HEAD_INIT(NULL) 0,
4030 .tp_name = "srvsvc.NetShareCtr0",
4031 .tp_getset = py_srvsvc_NetShareCtr0_getsetters,
4033 .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
4034 .tp_basicsize = sizeof(pytalloc_Object),
4035 .tp_new = py_srvsvc_NetShareCtr0_new,
4039 static PyObject *py_srvsvc_NetShareInfo1_get_name(PyObject *obj, void *closure)
4041 struct srvsvc_NetShareInfo1 *object = (struct srvsvc_NetShareInfo1 *)pytalloc_get_ptr(obj);
4043 if (object->name == NULL) {
4047 if (object->name == NULL) {
4051 py_name = PyUnicode_Decode(object->name, strlen(object->name), "utf-8", "ignore");
4057 static int py_srvsvc_NetShareInfo1_set_name(PyObject *py_obj, PyObject *value, void *closure)
4059 struct srvsvc_NetShareInfo1 *object = (struct srvsvc_NetShareInfo1 *)pytalloc_get_ptr(py_obj);
4060 if (value == Py_None) {
4061 object->name = NULL;
4063 object->name = NULL;
4064 if (PyUnicode_Check(value)) {
4065 object->name = PyString_AS_STRING(PyUnicode_AsEncodedString(value, "utf-8", "ignore"));
4066 } else if (PyString_Check(value)) {
4067 object->name = PyString_AS_STRING(value);
4069 PyErr_Format(PyExc_TypeError, "Expected string or unicode object, got %s", Py_TYPE(value)->tp_name);
4076 static PyObject *py_srvsvc_NetShareInfo1_get_type(PyObject *obj, void *closure)
4078 struct srvsvc_NetShareInfo1 *object = (struct srvsvc_NetShareInfo1 *)pytalloc_get_ptr(obj);
4080 py_type = PyInt_FromLong(object->type);
4084 static int py_srvsvc_NetShareInfo1_set_type(PyObject *py_obj, PyObject *value, void *closure)
4086 struct srvsvc_NetShareInfo1 *object = (struct srvsvc_NetShareInfo1 *)pytalloc_get_ptr(py_obj);
4087 if (PyLong_Check(value)) {
4088 object->type = PyLong_AsLongLong(value);
4089 } else if (PyInt_Check(value)) {
4090 object->type = PyInt_AsLong(value);
4092 PyErr_Format(PyExc_TypeError, "Expected type %s or %s",\
4093 PyInt_Type.tp_name, PyLong_Type.tp_name);
4099 static PyObject *py_srvsvc_NetShareInfo1_get_comment(PyObject *obj, void *closure)
4101 struct srvsvc_NetShareInfo1 *object = (struct srvsvc_NetShareInfo1 *)pytalloc_get_ptr(obj);
4102 PyObject *py_comment;
4103 if (object->comment == NULL) {
4104 py_comment = Py_None;
4105 Py_INCREF(py_comment);
4107 if (object->comment == NULL) {
4108 py_comment = Py_None;
4109 Py_INCREF(py_comment);
4111 py_comment = PyUnicode_Decode(object->comment, strlen(object->comment), "utf-8", "ignore");
4117 static int py_srvsvc_NetShareInfo1_set_comment(PyObject *py_obj, PyObject *value, void *closure)
4119 struct srvsvc_NetShareInfo1 *object = (struct srvsvc_NetShareInfo1 *)pytalloc_get_ptr(py_obj);
4120 if (value == Py_None) {
4121 object->comment = NULL;
4123 object->comment = NULL;
4124 if (PyUnicode_Check(value)) {
4125 object->comment = PyString_AS_STRING(PyUnicode_AsEncodedString(value, "utf-8", "ignore"));
4126 } else if (PyString_Check(value)) {
4127 object->comment = PyString_AS_STRING(value);
4129 PyErr_Format(PyExc_TypeError, "Expected string or unicode object, got %s", Py_TYPE(value)->tp_name);
4136 static PyGetSetDef py_srvsvc_NetShareInfo1_getsetters[] = {
4137 { discard_const_p(char, "name"), py_srvsvc_NetShareInfo1_get_name, py_srvsvc_NetShareInfo1_set_name },
4138 { discard_const_p(char, "type"), py_srvsvc_NetShareInfo1_get_type, py_srvsvc_NetShareInfo1_set_type },
4139 { discard_const_p(char, "comment"), py_srvsvc_NetShareInfo1_get_comment, py_srvsvc_NetShareInfo1_set_comment },
4143 static PyObject *py_srvsvc_NetShareInfo1_new(PyTypeObject *type, PyObject *args, PyObject *kwargs)
4145 return pytalloc_new(struct srvsvc_NetShareInfo1, type);
4149 static PyTypeObject srvsvc_NetShareInfo1_Type = {
4150 PyObject_HEAD_INIT(NULL) 0,
4151 .tp_name = "srvsvc.NetShareInfo1",
4152 .tp_getset = py_srvsvc_NetShareInfo1_getsetters,
4154 .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
4155 .tp_basicsize = sizeof(pytalloc_Object),
4156 .tp_new = py_srvsvc_NetShareInfo1_new,
4160 static PyObject *py_srvsvc_NetShareCtr1_get_count(PyObject *obj, void *closure)
4162 struct srvsvc_NetShareCtr1 *object = (struct srvsvc_NetShareCtr1 *)pytalloc_get_ptr(obj);
4164 py_count = PyInt_FromLong(object->count);
4168 static int py_srvsvc_NetShareCtr1_set_count(PyObject *py_obj, PyObject *value, void *closure)
4170 struct srvsvc_NetShareCtr1 *object = (struct srvsvc_NetShareCtr1 *)pytalloc_get_ptr(py_obj);
4171 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
4172 object->count = PyInt_AsLong(value);
4176 static PyObject *py_srvsvc_NetShareCtr1_get_array(PyObject *obj, void *closure)
4178 struct srvsvc_NetShareCtr1 *object = (struct srvsvc_NetShareCtr1 *)pytalloc_get_ptr(obj);
4180 if (object->array == NULL) {
4182 Py_INCREF(py_array);
4184 py_array = PyList_New(object->count);
4185 if (py_array == NULL) {
4190 for (array_cntr_1 = 0; array_cntr_1 < object->count; array_cntr_1++) {
4191 PyObject *py_array_1;
4192 py_array_1 = pytalloc_reference_ex(&srvsvc_NetShareInfo1_Type, object->array, &object->array[array_cntr_1]);
4193 PyList_SetItem(py_array, array_cntr_1, py_array_1);
4200 static int py_srvsvc_NetShareCtr1_set_array(PyObject *py_obj, PyObject *value, void *closure)
4202 struct srvsvc_NetShareCtr1 *object = (struct srvsvc_NetShareCtr1 *)pytalloc_get_ptr(py_obj);
4203 talloc_unlink(pytalloc_get_mem_ctx(py_obj), object->array);
4204 if (value == Py_None) {
4205 object->array = NULL;
4207 object->array = NULL;
4208 PY_CHECK_TYPE(&PyList_Type, value, return -1;);
4211 object->array = talloc_array_ptrtype(pytalloc_get_mem_ctx(py_obj), object->array, PyList_GET_SIZE(value));
4212 if (!object->array) { return -1;; }
4213 talloc_set_name_const(object->array, "ARRAY: object->array");
4214 for (array_cntr_1 = 0; array_cntr_1 < PyList_GET_SIZE(value); array_cntr_1++) {
4215 PY_CHECK_TYPE(&srvsvc_NetShareInfo1_Type, PyList_GET_ITEM(value, array_cntr_1), return -1;);
4216 if (talloc_reference(object->array, pytalloc_get_mem_ctx(PyList_GET_ITEM(value, array_cntr_1))) == NULL) {
4220 object->array[array_cntr_1] = *(struct srvsvc_NetShareInfo1 *)pytalloc_get_ptr(PyList_GET_ITEM(value, array_cntr_1));
4227 static PyGetSetDef py_srvsvc_NetShareCtr1_getsetters[] = {
4228 { discard_const_p(char, "count"), py_srvsvc_NetShareCtr1_get_count, py_srvsvc_NetShareCtr1_set_count },
4229 { discard_const_p(char, "array"), py_srvsvc_NetShareCtr1_get_array, py_srvsvc_NetShareCtr1_set_array },
4233 static PyObject *py_srvsvc_NetShareCtr1_new(PyTypeObject *type, PyObject *args, PyObject *kwargs)
4235 return pytalloc_new(struct srvsvc_NetShareCtr1, type);
4239 static PyTypeObject srvsvc_NetShareCtr1_Type = {
4240 PyObject_HEAD_INIT(NULL) 0,
4241 .tp_name = "srvsvc.NetShareCtr1",
4242 .tp_getset = py_srvsvc_NetShareCtr1_getsetters,
4244 .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
4245 .tp_basicsize = sizeof(pytalloc_Object),
4246 .tp_new = py_srvsvc_NetShareCtr1_new,
4250 static PyObject *py_srvsvc_NetShareInfo2_get_name(PyObject *obj, void *closure)
4252 struct srvsvc_NetShareInfo2 *object = (struct srvsvc_NetShareInfo2 *)pytalloc_get_ptr(obj);
4254 if (object->name == NULL) {
4258 if (object->name == NULL) {
4262 py_name = PyUnicode_Decode(object->name, strlen(object->name), "utf-8", "ignore");
4268 static int py_srvsvc_NetShareInfo2_set_name(PyObject *py_obj, PyObject *value, void *closure)
4270 struct srvsvc_NetShareInfo2 *object = (struct srvsvc_NetShareInfo2 *)pytalloc_get_ptr(py_obj);
4271 if (value == Py_None) {
4272 object->name = NULL;
4274 object->name = NULL;
4275 if (PyUnicode_Check(value)) {
4276 object->name = PyString_AS_STRING(PyUnicode_AsEncodedString(value, "utf-8", "ignore"));
4277 } else if (PyString_Check(value)) {
4278 object->name = PyString_AS_STRING(value);
4280 PyErr_Format(PyExc_TypeError, "Expected string or unicode object, got %s", Py_TYPE(value)->tp_name);
4287 static PyObject *py_srvsvc_NetShareInfo2_get_type(PyObject *obj, void *closure)
4289 struct srvsvc_NetShareInfo2 *object = (struct srvsvc_NetShareInfo2 *)pytalloc_get_ptr(obj);
4291 py_type = PyInt_FromLong(object->type);
4295 static int py_srvsvc_NetShareInfo2_set_type(PyObject *py_obj, PyObject *value, void *closure)
4297 struct srvsvc_NetShareInfo2 *object = (struct srvsvc_NetShareInfo2 *)pytalloc_get_ptr(py_obj);
4298 if (PyLong_Check(value)) {
4299 object->type = PyLong_AsLongLong(value);
4300 } else if (PyInt_Check(value)) {
4301 object->type = PyInt_AsLong(value);
4303 PyErr_Format(PyExc_TypeError, "Expected type %s or %s",\
4304 PyInt_Type.tp_name, PyLong_Type.tp_name);
4310 static PyObject *py_srvsvc_NetShareInfo2_get_comment(PyObject *obj, void *closure)
4312 struct srvsvc_NetShareInfo2 *object = (struct srvsvc_NetShareInfo2 *)pytalloc_get_ptr(obj);
4313 PyObject *py_comment;
4314 if (object->comment == NULL) {
4315 py_comment = Py_None;
4316 Py_INCREF(py_comment);
4318 if (object->comment == NULL) {
4319 py_comment = Py_None;
4320 Py_INCREF(py_comment);
4322 py_comment = PyUnicode_Decode(object->comment, strlen(object->comment), "utf-8", "ignore");
4328 static int py_srvsvc_NetShareInfo2_set_comment(PyObject *py_obj, PyObject *value, void *closure)
4330 struct srvsvc_NetShareInfo2 *object = (struct srvsvc_NetShareInfo2 *)pytalloc_get_ptr(py_obj);
4331 if (value == Py_None) {
4332 object->comment = NULL;
4334 object->comment = NULL;
4335 if (PyUnicode_Check(value)) {
4336 object->comment = PyString_AS_STRING(PyUnicode_AsEncodedString(value, "utf-8", "ignore"));
4337 } else if (PyString_Check(value)) {
4338 object->comment = PyString_AS_STRING(value);
4340 PyErr_Format(PyExc_TypeError, "Expected string or unicode object, got %s", Py_TYPE(value)->tp_name);
4347 static PyObject *py_srvsvc_NetShareInfo2_get_permissions(PyObject *obj, void *closure)
4349 struct srvsvc_NetShareInfo2 *object = (struct srvsvc_NetShareInfo2 *)pytalloc_get_ptr(obj);
4350 PyObject *py_permissions;
4351 py_permissions = PyInt_FromLong(object->permissions);
4352 return py_permissions;
4355 static int py_srvsvc_NetShareInfo2_set_permissions(PyObject *py_obj, PyObject *value, void *closure)
4357 struct srvsvc_NetShareInfo2 *object = (struct srvsvc_NetShareInfo2 *)pytalloc_get_ptr(py_obj);
4358 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
4359 object->permissions = PyInt_AsLong(value);
4363 static PyObject *py_srvsvc_NetShareInfo2_get_max_users(PyObject *obj, void *closure)
4365 struct srvsvc_NetShareInfo2 *object = (struct srvsvc_NetShareInfo2 *)pytalloc_get_ptr(obj);
4366 PyObject *py_max_users;
4367 py_max_users = PyInt_FromLong(object->max_users);
4368 return py_max_users;
4371 static int py_srvsvc_NetShareInfo2_set_max_users(PyObject *py_obj, PyObject *value, void *closure)
4373 struct srvsvc_NetShareInfo2 *object = (struct srvsvc_NetShareInfo2 *)pytalloc_get_ptr(py_obj);
4374 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
4375 object->max_users = PyInt_AsLong(value);
4379 static PyObject *py_srvsvc_NetShareInfo2_get_current_users(PyObject *obj, void *closure)
4381 struct srvsvc_NetShareInfo2 *object = (struct srvsvc_NetShareInfo2 *)pytalloc_get_ptr(obj);
4382 PyObject *py_current_users;
4383 py_current_users = PyInt_FromLong(object->current_users);
4384 return py_current_users;
4387 static int py_srvsvc_NetShareInfo2_set_current_users(PyObject *py_obj, PyObject *value, void *closure)
4389 struct srvsvc_NetShareInfo2 *object = (struct srvsvc_NetShareInfo2 *)pytalloc_get_ptr(py_obj);
4390 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
4391 object->current_users = PyInt_AsLong(value);
4395 static PyObject *py_srvsvc_NetShareInfo2_get_path(PyObject *obj, void *closure)
4397 struct srvsvc_NetShareInfo2 *object = (struct srvsvc_NetShareInfo2 *)pytalloc_get_ptr(obj);
4399 if (object->path == NULL) {
4403 if (object->path == NULL) {
4407 py_path = PyUnicode_Decode(object->path, strlen(object->path), "utf-8", "ignore");
4413 static int py_srvsvc_NetShareInfo2_set_path(PyObject *py_obj, PyObject *value, void *closure)
4415 struct srvsvc_NetShareInfo2 *object = (struct srvsvc_NetShareInfo2 *)pytalloc_get_ptr(py_obj);
4416 if (value == Py_None) {
4417 object->path = NULL;
4419 object->path = NULL;
4420 if (PyUnicode_Check(value)) {
4421 object->path = PyString_AS_STRING(PyUnicode_AsEncodedString(value, "utf-8", "ignore"));
4422 } else if (PyString_Check(value)) {
4423 object->path = PyString_AS_STRING(value);
4425 PyErr_Format(PyExc_TypeError, "Expected string or unicode object, got %s", Py_TYPE(value)->tp_name);
4432 static PyObject *py_srvsvc_NetShareInfo2_get_password(PyObject *obj, void *closure)
4434 struct srvsvc_NetShareInfo2 *object = (struct srvsvc_NetShareInfo2 *)pytalloc_get_ptr(obj);
4435 PyObject *py_password;
4436 if (object->password == NULL) {
4437 py_password = Py_None;
4438 Py_INCREF(py_password);
4440 if (object->password == NULL) {
4441 py_password = Py_None;
4442 Py_INCREF(py_password);
4444 py_password = PyUnicode_Decode(object->password, strlen(object->password), "utf-8", "ignore");
4450 static int py_srvsvc_NetShareInfo2_set_password(PyObject *py_obj, PyObject *value, void *closure)
4452 struct srvsvc_NetShareInfo2 *object = (struct srvsvc_NetShareInfo2 *)pytalloc_get_ptr(py_obj);
4453 if (value == Py_None) {
4454 object->password = NULL;
4456 object->password = NULL;
4457 if (PyUnicode_Check(value)) {
4458 object->password = PyString_AS_STRING(PyUnicode_AsEncodedString(value, "utf-8", "ignore"));
4459 } else if (PyString_Check(value)) {
4460 object->password = PyString_AS_STRING(value);
4462 PyErr_Format(PyExc_TypeError, "Expected string or unicode object, got %s", Py_TYPE(value)->tp_name);
4469 static PyGetSetDef py_srvsvc_NetShareInfo2_getsetters[] = {
4470 { discard_const_p(char, "name"), py_srvsvc_NetShareInfo2_get_name, py_srvsvc_NetShareInfo2_set_name },
4471 { discard_const_p(char, "type"), py_srvsvc_NetShareInfo2_get_type, py_srvsvc_NetShareInfo2_set_type },
4472 { discard_const_p(char, "comment"), py_srvsvc_NetShareInfo2_get_comment, py_srvsvc_NetShareInfo2_set_comment },
4473 { discard_const_p(char, "permissions"), py_srvsvc_NetShareInfo2_get_permissions, py_srvsvc_NetShareInfo2_set_permissions },
4474 { discard_const_p(char, "max_users"), py_srvsvc_NetShareInfo2_get_max_users, py_srvsvc_NetShareInfo2_set_max_users },
4475 { discard_const_p(char, "current_users"), py_srvsvc_NetShareInfo2_get_current_users, py_srvsvc_NetShareInfo2_set_current_users },
4476 { discard_const_p(char, "path"), py_srvsvc_NetShareInfo2_get_path, py_srvsvc_NetShareInfo2_set_path },
4477 { discard_const_p(char, "password"), py_srvsvc_NetShareInfo2_get_password, py_srvsvc_NetShareInfo2_set_password },
4481 static PyObject *py_srvsvc_NetShareInfo2_new(PyTypeObject *type, PyObject *args, PyObject *kwargs)
4483 return pytalloc_new(struct srvsvc_NetShareInfo2, type);
4487 static PyTypeObject srvsvc_NetShareInfo2_Type = {
4488 PyObject_HEAD_INIT(NULL) 0,
4489 .tp_name = "srvsvc.NetShareInfo2",
4490 .tp_getset = py_srvsvc_NetShareInfo2_getsetters,
4492 .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
4493 .tp_basicsize = sizeof(pytalloc_Object),
4494 .tp_new = py_srvsvc_NetShareInfo2_new,
4498 static PyObject *py_srvsvc_NetShareCtr2_get_count(PyObject *obj, void *closure)
4500 struct srvsvc_NetShareCtr2 *object = (struct srvsvc_NetShareCtr2 *)pytalloc_get_ptr(obj);
4502 py_count = PyInt_FromLong(object->count);
4506 static int py_srvsvc_NetShareCtr2_set_count(PyObject *py_obj, PyObject *value, void *closure)
4508 struct srvsvc_NetShareCtr2 *object = (struct srvsvc_NetShareCtr2 *)pytalloc_get_ptr(py_obj);
4509 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
4510 object->count = PyInt_AsLong(value);
4514 static PyObject *py_srvsvc_NetShareCtr2_get_array(PyObject *obj, void *closure)
4516 struct srvsvc_NetShareCtr2 *object = (struct srvsvc_NetShareCtr2 *)pytalloc_get_ptr(obj);
4518 if (object->array == NULL) {
4520 Py_INCREF(py_array);
4522 py_array = PyList_New(object->count);
4523 if (py_array == NULL) {
4528 for (array_cntr_1 = 0; array_cntr_1 < object->count; array_cntr_1++) {
4529 PyObject *py_array_1;
4530 py_array_1 = pytalloc_reference_ex(&srvsvc_NetShareInfo2_Type, object->array, &object->array[array_cntr_1]);
4531 PyList_SetItem(py_array, array_cntr_1, py_array_1);
4538 static int py_srvsvc_NetShareCtr2_set_array(PyObject *py_obj, PyObject *value, void *closure)
4540 struct srvsvc_NetShareCtr2 *object = (struct srvsvc_NetShareCtr2 *)pytalloc_get_ptr(py_obj);
4541 talloc_unlink(pytalloc_get_mem_ctx(py_obj), object->array);
4542 if (value == Py_None) {
4543 object->array = NULL;
4545 object->array = NULL;
4546 PY_CHECK_TYPE(&PyList_Type, value, return -1;);
4549 object->array = talloc_array_ptrtype(pytalloc_get_mem_ctx(py_obj), object->array, PyList_GET_SIZE(value));
4550 if (!object->array) { return -1;; }
4551 talloc_set_name_const(object->array, "ARRAY: object->array");
4552 for (array_cntr_1 = 0; array_cntr_1 < PyList_GET_SIZE(value); array_cntr_1++) {
4553 PY_CHECK_TYPE(&srvsvc_NetShareInfo2_Type, PyList_GET_ITEM(value, array_cntr_1), return -1;);
4554 if (talloc_reference(object->array, pytalloc_get_mem_ctx(PyList_GET_ITEM(value, array_cntr_1))) == NULL) {
4558 object->array[array_cntr_1] = *(struct srvsvc_NetShareInfo2 *)pytalloc_get_ptr(PyList_GET_ITEM(value, array_cntr_1));
4565 static PyGetSetDef py_srvsvc_NetShareCtr2_getsetters[] = {
4566 { discard_const_p(char, "count"), py_srvsvc_NetShareCtr2_get_count, py_srvsvc_NetShareCtr2_set_count },
4567 { discard_const_p(char, "array"), py_srvsvc_NetShareCtr2_get_array, py_srvsvc_NetShareCtr2_set_array },
4571 static PyObject *py_srvsvc_NetShareCtr2_new(PyTypeObject *type, PyObject *args, PyObject *kwargs)
4573 return pytalloc_new(struct srvsvc_NetShareCtr2, type);
4577 static PyTypeObject srvsvc_NetShareCtr2_Type = {
4578 PyObject_HEAD_INIT(NULL) 0,
4579 .tp_name = "srvsvc.NetShareCtr2",
4580 .tp_getset = py_srvsvc_NetShareCtr2_getsetters,
4582 .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
4583 .tp_basicsize = sizeof(pytalloc_Object),
4584 .tp_new = py_srvsvc_NetShareCtr2_new,
4588 static PyObject *py_srvsvc_NetShareInfo501_get_name(PyObject *obj, void *closure)
4590 struct srvsvc_NetShareInfo501 *object = (struct srvsvc_NetShareInfo501 *)pytalloc_get_ptr(obj);
4592 if (object->name == NULL) {
4596 if (object->name == NULL) {
4600 py_name = PyUnicode_Decode(object->name, strlen(object->name), "utf-8", "ignore");
4606 static int py_srvsvc_NetShareInfo501_set_name(PyObject *py_obj, PyObject *value, void *closure)
4608 struct srvsvc_NetShareInfo501 *object = (struct srvsvc_NetShareInfo501 *)pytalloc_get_ptr(py_obj);
4609 if (value == Py_None) {
4610 object->name = NULL;
4612 object->name = NULL;
4613 if (PyUnicode_Check(value)) {
4614 object->name = PyString_AS_STRING(PyUnicode_AsEncodedString(value, "utf-8", "ignore"));
4615 } else if (PyString_Check(value)) {
4616 object->name = PyString_AS_STRING(value);
4618 PyErr_Format(PyExc_TypeError, "Expected string or unicode object, got %s", Py_TYPE(value)->tp_name);
4625 static PyObject *py_srvsvc_NetShareInfo501_get_type(PyObject *obj, void *closure)
4627 struct srvsvc_NetShareInfo501 *object = (struct srvsvc_NetShareInfo501 *)pytalloc_get_ptr(obj);
4629 py_type = PyInt_FromLong(object->type);
4633 static int py_srvsvc_NetShareInfo501_set_type(PyObject *py_obj, PyObject *value, void *closure)
4635 struct srvsvc_NetShareInfo501 *object = (struct srvsvc_NetShareInfo501 *)pytalloc_get_ptr(py_obj);
4636 if (PyLong_Check(value)) {
4637 object->type = PyLong_AsLongLong(value);
4638 } else if (PyInt_Check(value)) {
4639 object->type = PyInt_AsLong(value);
4641 PyErr_Format(PyExc_TypeError, "Expected type %s or %s",\
4642 PyInt_Type.tp_name, PyLong_Type.tp_name);
4648 static PyObject *py_srvsvc_NetShareInfo501_get_comment(PyObject *obj, void *closure)
4650 struct srvsvc_NetShareInfo501 *object = (struct srvsvc_NetShareInfo501 *)pytalloc_get_ptr(obj);
4651 PyObject *py_comment;
4652 if (object->comment == NULL) {
4653 py_comment = Py_None;
4654 Py_INCREF(py_comment);
4656 if (object->comment == NULL) {
4657 py_comment = Py_None;
4658 Py_INCREF(py_comment);
4660 py_comment = PyUnicode_Decode(object->comment, strlen(object->comment), "utf-8", "ignore");
4666 static int py_srvsvc_NetShareInfo501_set_comment(PyObject *py_obj, PyObject *value, void *closure)
4668 struct srvsvc_NetShareInfo501 *object = (struct srvsvc_NetShareInfo501 *)pytalloc_get_ptr(py_obj);
4669 if (value == Py_None) {
4670 object->comment = NULL;
4672 object->comment = NULL;
4673 if (PyUnicode_Check(value)) {
4674 object->comment = PyString_AS_STRING(PyUnicode_AsEncodedString(value, "utf-8", "ignore"));
4675 } else if (PyString_Check(value)) {
4676 object->comment = PyString_AS_STRING(value);
4678 PyErr_Format(PyExc_TypeError, "Expected string or unicode object, got %s", Py_TYPE(value)->tp_name);
4685 static PyObject *py_srvsvc_NetShareInfo501_get_csc_policy(PyObject *obj, void *closure)
4687 struct srvsvc_NetShareInfo501 *object = (struct srvsvc_NetShareInfo501 *)pytalloc_get_ptr(obj);
4688 PyObject *py_csc_policy;
4689 py_csc_policy = PyInt_FromLong(object->csc_policy);
4690 return py_csc_policy;
4693 static int py_srvsvc_NetShareInfo501_set_csc_policy(PyObject *py_obj, PyObject *value, void *closure)
4695 struct srvsvc_NetShareInfo501 *object = (struct srvsvc_NetShareInfo501 *)pytalloc_get_ptr(py_obj);
4696 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
4697 object->csc_policy = PyInt_AsLong(value);
4701 static PyGetSetDef py_srvsvc_NetShareInfo501_getsetters[] = {
4702 { discard_const_p(char, "name"), py_srvsvc_NetShareInfo501_get_name, py_srvsvc_NetShareInfo501_set_name },
4703 { discard_const_p(char, "type"), py_srvsvc_NetShareInfo501_get_type, py_srvsvc_NetShareInfo501_set_type },
4704 { discard_const_p(char, "comment"), py_srvsvc_NetShareInfo501_get_comment, py_srvsvc_NetShareInfo501_set_comment },
4705 { discard_const_p(char, "csc_policy"), py_srvsvc_NetShareInfo501_get_csc_policy, py_srvsvc_NetShareInfo501_set_csc_policy },
4709 static PyObject *py_srvsvc_NetShareInfo501_new(PyTypeObject *type, PyObject *args, PyObject *kwargs)
4711 return pytalloc_new(struct srvsvc_NetShareInfo501, type);
4715 static PyTypeObject srvsvc_NetShareInfo501_Type = {
4716 PyObject_HEAD_INIT(NULL) 0,
4717 .tp_name = "srvsvc.NetShareInfo501",
4718 .tp_getset = py_srvsvc_NetShareInfo501_getsetters,
4720 .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
4721 .tp_basicsize = sizeof(pytalloc_Object),
4722 .tp_new = py_srvsvc_NetShareInfo501_new,
4726 static PyObject *py_srvsvc_NetShareCtr501_get_count(PyObject *obj, void *closure)
4728 struct srvsvc_NetShareCtr501 *object = (struct srvsvc_NetShareCtr501 *)pytalloc_get_ptr(obj);
4730 py_count = PyInt_FromLong(object->count);
4734 static int py_srvsvc_NetShareCtr501_set_count(PyObject *py_obj, PyObject *value, void *closure)
4736 struct srvsvc_NetShareCtr501 *object = (struct srvsvc_NetShareCtr501 *)pytalloc_get_ptr(py_obj);
4737 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
4738 object->count = PyInt_AsLong(value);
4742 static PyObject *py_srvsvc_NetShareCtr501_get_array(PyObject *obj, void *closure)
4744 struct srvsvc_NetShareCtr501 *object = (struct srvsvc_NetShareCtr501 *)pytalloc_get_ptr(obj);
4746 if (object->array == NULL) {
4748 Py_INCREF(py_array);
4750 py_array = PyList_New(object->count);
4751 if (py_array == NULL) {
4756 for (array_cntr_1 = 0; array_cntr_1 < object->count; array_cntr_1++) {
4757 PyObject *py_array_1;
4758 py_array_1 = pytalloc_reference_ex(&srvsvc_NetShareInfo501_Type, object->array, &object->array[array_cntr_1]);
4759 PyList_SetItem(py_array, array_cntr_1, py_array_1);
4766 static int py_srvsvc_NetShareCtr501_set_array(PyObject *py_obj, PyObject *value, void *closure)
4768 struct srvsvc_NetShareCtr501 *object = (struct srvsvc_NetShareCtr501 *)pytalloc_get_ptr(py_obj);
4769 talloc_unlink(pytalloc_get_mem_ctx(py_obj), object->array);
4770 if (value == Py_None) {
4771 object->array = NULL;
4773 object->array = NULL;
4774 PY_CHECK_TYPE(&PyList_Type, value, return -1;);
4777 object->array = talloc_array_ptrtype(pytalloc_get_mem_ctx(py_obj), object->array, PyList_GET_SIZE(value));
4778 if (!object->array) { return -1;; }
4779 talloc_set_name_const(object->array, "ARRAY: object->array");
4780 for (array_cntr_1 = 0; array_cntr_1 < PyList_GET_SIZE(value); array_cntr_1++) {
4781 PY_CHECK_TYPE(&srvsvc_NetShareInfo501_Type, PyList_GET_ITEM(value, array_cntr_1), return -1;);
4782 if (talloc_reference(object->array, pytalloc_get_mem_ctx(PyList_GET_ITEM(value, array_cntr_1))) == NULL) {
4786 object->array[array_cntr_1] = *(struct srvsvc_NetShareInfo501 *)pytalloc_get_ptr(PyList_GET_ITEM(value, array_cntr_1));
4793 static PyGetSetDef py_srvsvc_NetShareCtr501_getsetters[] = {
4794 { discard_const_p(char, "count"), py_srvsvc_NetShareCtr501_get_count, py_srvsvc_NetShareCtr501_set_count },
4795 { discard_const_p(char, "array"), py_srvsvc_NetShareCtr501_get_array, py_srvsvc_NetShareCtr501_set_array },
4799 static PyObject *py_srvsvc_NetShareCtr501_new(PyTypeObject *type, PyObject *args, PyObject *kwargs)
4801 return pytalloc_new(struct srvsvc_NetShareCtr501, type);
4805 static PyTypeObject srvsvc_NetShareCtr501_Type = {
4806 PyObject_HEAD_INIT(NULL) 0,
4807 .tp_name = "srvsvc.NetShareCtr501",
4808 .tp_getset = py_srvsvc_NetShareCtr501_getsetters,
4810 .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
4811 .tp_basicsize = sizeof(pytalloc_Object),
4812 .tp_new = py_srvsvc_NetShareCtr501_new,
4816 static PyObject *py_srvsvc_NetShareInfo502_get_name(PyObject *obj, void *closure)
4818 struct srvsvc_NetShareInfo502 *object = (struct srvsvc_NetShareInfo502 *)pytalloc_get_ptr(obj);
4820 if (object->name == NULL) {
4824 if (object->name == NULL) {
4828 py_name = PyUnicode_Decode(object->name, strlen(object->name), "utf-8", "ignore");
4834 static int py_srvsvc_NetShareInfo502_set_name(PyObject *py_obj, PyObject *value, void *closure)
4836 struct srvsvc_NetShareInfo502 *object = (struct srvsvc_NetShareInfo502 *)pytalloc_get_ptr(py_obj);
4837 if (value == Py_None) {
4838 object->name = NULL;
4840 object->name = NULL;
4841 if (PyUnicode_Check(value)) {
4842 object->name = PyString_AS_STRING(PyUnicode_AsEncodedString(value, "utf-8", "ignore"));
4843 } else if (PyString_Check(value)) {
4844 object->name = PyString_AS_STRING(value);
4846 PyErr_Format(PyExc_TypeError, "Expected string or unicode object, got %s", Py_TYPE(value)->tp_name);
4853 static PyObject *py_srvsvc_NetShareInfo502_get_type(PyObject *obj, void *closure)
4855 struct srvsvc_NetShareInfo502 *object = (struct srvsvc_NetShareInfo502 *)pytalloc_get_ptr(obj);
4857 py_type = PyInt_FromLong(object->type);
4861 static int py_srvsvc_NetShareInfo502_set_type(PyObject *py_obj, PyObject *value, void *closure)
4863 struct srvsvc_NetShareInfo502 *object = (struct srvsvc_NetShareInfo502 *)pytalloc_get_ptr(py_obj);
4864 if (PyLong_Check(value)) {
4865 object->type = PyLong_AsLongLong(value);
4866 } else if (PyInt_Check(value)) {
4867 object->type = PyInt_AsLong(value);
4869 PyErr_Format(PyExc_TypeError, "Expected type %s or %s",\
4870 PyInt_Type.tp_name, PyLong_Type.tp_name);
4876 static PyObject *py_srvsvc_NetShareInfo502_get_comment(PyObject *obj, void *closure)
4878 struct srvsvc_NetShareInfo502 *object = (struct srvsvc_NetShareInfo502 *)pytalloc_get_ptr(obj);
4879 PyObject *py_comment;
4880 if (object->comment == NULL) {
4881 py_comment = Py_None;
4882 Py_INCREF(py_comment);
4884 if (object->comment == NULL) {
4885 py_comment = Py_None;
4886 Py_INCREF(py_comment);
4888 py_comment = PyUnicode_Decode(object->comment, strlen(object->comment), "utf-8", "ignore");
4894 static int py_srvsvc_NetShareInfo502_set_comment(PyObject *py_obj, PyObject *value, void *closure)
4896 struct srvsvc_NetShareInfo502 *object = (struct srvsvc_NetShareInfo502 *)pytalloc_get_ptr(py_obj);
4897 if (value == Py_None) {
4898 object->comment = NULL;
4900 object->comment = NULL;
4901 if (PyUnicode_Check(value)) {
4902 object->comment = PyString_AS_STRING(PyUnicode_AsEncodedString(value, "utf-8", "ignore"));
4903 } else if (PyString_Check(value)) {
4904 object->comment = PyString_AS_STRING(value);
4906 PyErr_Format(PyExc_TypeError, "Expected string or unicode object, got %s", Py_TYPE(value)->tp_name);
4913 static PyObject *py_srvsvc_NetShareInfo502_get_permissions(PyObject *obj, void *closure)
4915 struct srvsvc_NetShareInfo502 *object = (struct srvsvc_NetShareInfo502 *)pytalloc_get_ptr(obj);
4916 PyObject *py_permissions;
4917 py_permissions = PyInt_FromLong(object->permissions);
4918 return py_permissions;
4921 static int py_srvsvc_NetShareInfo502_set_permissions(PyObject *py_obj, PyObject *value, void *closure)
4923 struct srvsvc_NetShareInfo502 *object = (struct srvsvc_NetShareInfo502 *)pytalloc_get_ptr(py_obj);
4924 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
4925 object->permissions = PyInt_AsLong(value);
4929 static PyObject *py_srvsvc_NetShareInfo502_get_max_users(PyObject *obj, void *closure)
4931 struct srvsvc_NetShareInfo502 *object = (struct srvsvc_NetShareInfo502 *)pytalloc_get_ptr(obj);
4932 PyObject *py_max_users;
4933 py_max_users = PyInt_FromLong(object->max_users);
4934 return py_max_users;
4937 static int py_srvsvc_NetShareInfo502_set_max_users(PyObject *py_obj, PyObject *value, void *closure)
4939 struct srvsvc_NetShareInfo502 *object = (struct srvsvc_NetShareInfo502 *)pytalloc_get_ptr(py_obj);
4940 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
4941 object->max_users = PyInt_AsLong(value);
4945 static PyObject *py_srvsvc_NetShareInfo502_get_current_users(PyObject *obj, void *closure)
4947 struct srvsvc_NetShareInfo502 *object = (struct srvsvc_NetShareInfo502 *)pytalloc_get_ptr(obj);
4948 PyObject *py_current_users;
4949 py_current_users = PyInt_FromLong(object->current_users);
4950 return py_current_users;
4953 static int py_srvsvc_NetShareInfo502_set_current_users(PyObject *py_obj, PyObject *value, void *closure)
4955 struct srvsvc_NetShareInfo502 *object = (struct srvsvc_NetShareInfo502 *)pytalloc_get_ptr(py_obj);
4956 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
4957 object->current_users = PyInt_AsLong(value);
4961 static PyObject *py_srvsvc_NetShareInfo502_get_path(PyObject *obj, void *closure)
4963 struct srvsvc_NetShareInfo502 *object = (struct srvsvc_NetShareInfo502 *)pytalloc_get_ptr(obj);
4965 if (object->path == NULL) {
4969 if (object->path == NULL) {
4973 py_path = PyUnicode_Decode(object->path, strlen(object->path), "utf-8", "ignore");
4979 static int py_srvsvc_NetShareInfo502_set_path(PyObject *py_obj, PyObject *value, void *closure)
4981 struct srvsvc_NetShareInfo502 *object = (struct srvsvc_NetShareInfo502 *)pytalloc_get_ptr(py_obj);
4982 if (value == Py_None) {
4983 object->path = NULL;
4985 object->path = NULL;
4986 if (PyUnicode_Check(value)) {
4987 object->path = PyString_AS_STRING(PyUnicode_AsEncodedString(value, "utf-8", "ignore"));
4988 } else if (PyString_Check(value)) {
4989 object->path = PyString_AS_STRING(value);
4991 PyErr_Format(PyExc_TypeError, "Expected string or unicode object, got %s", Py_TYPE(value)->tp_name);
4998 static PyObject *py_srvsvc_NetShareInfo502_get_password(PyObject *obj, void *closure)
5000 struct srvsvc_NetShareInfo502 *object = (struct srvsvc_NetShareInfo502 *)pytalloc_get_ptr(obj);
5001 PyObject *py_password;
5002 if (object->password == NULL) {
5003 py_password = Py_None;
5004 Py_INCREF(py_password);
5006 if (object->password == NULL) {
5007 py_password = Py_None;
5008 Py_INCREF(py_password);
5010 py_password = PyUnicode_Decode(object->password, strlen(object->password), "utf-8", "ignore");
5016 static int py_srvsvc_NetShareInfo502_set_password(PyObject *py_obj, PyObject *value, void *closure)
5018 struct srvsvc_NetShareInfo502 *object = (struct srvsvc_NetShareInfo502 *)pytalloc_get_ptr(py_obj);
5019 if (value == Py_None) {
5020 object->password = NULL;
5022 object->password = NULL;
5023 if (PyUnicode_Check(value)) {
5024 object->password = PyString_AS_STRING(PyUnicode_AsEncodedString(value, "utf-8", "ignore"));
5025 } else if (PyString_Check(value)) {
5026 object->password = PyString_AS_STRING(value);
5028 PyErr_Format(PyExc_TypeError, "Expected string or unicode object, got %s", Py_TYPE(value)->tp_name);
5035 static PyObject *py_srvsvc_NetShareInfo502_get_sd_buf(PyObject *obj, void *closure)
5037 struct srvsvc_NetShareInfo502 *object = (struct srvsvc_NetShareInfo502 *)pytalloc_get_ptr(obj);
5038 PyObject *py_sd_buf;
5039 py_sd_buf = pytalloc_reference_ex(sec_desc_buf_Type, pytalloc_get_mem_ctx(obj), &object->sd_buf);
5043 static int py_srvsvc_NetShareInfo502_set_sd_buf(PyObject *py_obj, PyObject *value, void *closure)
5045 struct srvsvc_NetShareInfo502 *object = (struct srvsvc_NetShareInfo502 *)pytalloc_get_ptr(py_obj);
5046 PY_CHECK_TYPE(sec_desc_buf_Type, value, return -1;);
5047 if (talloc_reference(pytalloc_get_mem_ctx(py_obj), pytalloc_get_mem_ctx(value)) == NULL) {
5051 object->sd_buf = *(struct sec_desc_buf *)pytalloc_get_ptr(value);
5055 static PyGetSetDef py_srvsvc_NetShareInfo502_getsetters[] = {
5056 { discard_const_p(char, "name"), py_srvsvc_NetShareInfo502_get_name, py_srvsvc_NetShareInfo502_set_name },
5057 { discard_const_p(char, "type"), py_srvsvc_NetShareInfo502_get_type, py_srvsvc_NetShareInfo502_set_type },
5058 { discard_const_p(char, "comment"), py_srvsvc_NetShareInfo502_get_comment, py_srvsvc_NetShareInfo502_set_comment },
5059 { discard_const_p(char, "permissions"), py_srvsvc_NetShareInfo502_get_permissions, py_srvsvc_NetShareInfo502_set_permissions },
5060 { discard_const_p(char, "max_users"), py_srvsvc_NetShareInfo502_get_max_users, py_srvsvc_NetShareInfo502_set_max_users },
5061 { discard_const_p(char, "current_users"), py_srvsvc_NetShareInfo502_get_current_users, py_srvsvc_NetShareInfo502_set_current_users },
5062 { discard_const_p(char, "path"), py_srvsvc_NetShareInfo502_get_path, py_srvsvc_NetShareInfo502_set_path },
5063 { discard_const_p(char, "password"), py_srvsvc_NetShareInfo502_get_password, py_srvsvc_NetShareInfo502_set_password },
5064 { discard_const_p(char, "sd_buf"), py_srvsvc_NetShareInfo502_get_sd_buf, py_srvsvc_NetShareInfo502_set_sd_buf },
5068 static PyObject *py_srvsvc_NetShareInfo502_new(PyTypeObject *type, PyObject *args, PyObject *kwargs)
5070 return pytalloc_new(struct srvsvc_NetShareInfo502, type);
5074 static PyTypeObject srvsvc_NetShareInfo502_Type = {
5075 PyObject_HEAD_INIT(NULL) 0,
5076 .tp_name = "srvsvc.NetShareInfo502",
5077 .tp_getset = py_srvsvc_NetShareInfo502_getsetters,
5079 .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
5080 .tp_basicsize = sizeof(pytalloc_Object),
5081 .tp_new = py_srvsvc_NetShareInfo502_new,
5085 static PyObject *py_srvsvc_NetShareCtr502_get_count(PyObject *obj, void *closure)
5087 struct srvsvc_NetShareCtr502 *object = (struct srvsvc_NetShareCtr502 *)pytalloc_get_ptr(obj);
5089 py_count = PyInt_FromLong(object->count);
5093 static int py_srvsvc_NetShareCtr502_set_count(PyObject *py_obj, PyObject *value, void *closure)
5095 struct srvsvc_NetShareCtr502 *object = (struct srvsvc_NetShareCtr502 *)pytalloc_get_ptr(py_obj);
5096 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
5097 object->count = PyInt_AsLong(value);
5101 static PyObject *py_srvsvc_NetShareCtr502_get_array(PyObject *obj, void *closure)
5103 struct srvsvc_NetShareCtr502 *object = (struct srvsvc_NetShareCtr502 *)pytalloc_get_ptr(obj);
5105 if (object->array == NULL) {
5107 Py_INCREF(py_array);
5109 py_array = PyList_New(object->count);
5110 if (py_array == NULL) {
5115 for (array_cntr_1 = 0; array_cntr_1 < object->count; array_cntr_1++) {
5116 PyObject *py_array_1;
5117 py_array_1 = pytalloc_reference_ex(&srvsvc_NetShareInfo502_Type, object->array, &object->array[array_cntr_1]);
5118 PyList_SetItem(py_array, array_cntr_1, py_array_1);
5125 static int py_srvsvc_NetShareCtr502_set_array(PyObject *py_obj, PyObject *value, void *closure)
5127 struct srvsvc_NetShareCtr502 *object = (struct srvsvc_NetShareCtr502 *)pytalloc_get_ptr(py_obj);
5128 talloc_unlink(pytalloc_get_mem_ctx(py_obj), object->array);
5129 if (value == Py_None) {
5130 object->array = NULL;
5132 object->array = NULL;
5133 PY_CHECK_TYPE(&PyList_Type, value, return -1;);
5136 object->array = talloc_array_ptrtype(pytalloc_get_mem_ctx(py_obj), object->array, PyList_GET_SIZE(value));
5137 if (!object->array) { return -1;; }
5138 talloc_set_name_const(object->array, "ARRAY: object->array");
5139 for (array_cntr_1 = 0; array_cntr_1 < PyList_GET_SIZE(value); array_cntr_1++) {
5140 PY_CHECK_TYPE(&srvsvc_NetShareInfo502_Type, PyList_GET_ITEM(value, array_cntr_1), return -1;);
5141 if (talloc_reference(object->array, pytalloc_get_mem_ctx(PyList_GET_ITEM(value, array_cntr_1))) == NULL) {
5145 object->array[array_cntr_1] = *(struct srvsvc_NetShareInfo502 *)pytalloc_get_ptr(PyList_GET_ITEM(value, array_cntr_1));
5152 static PyGetSetDef py_srvsvc_NetShareCtr502_getsetters[] = {
5153 { discard_const_p(char, "count"), py_srvsvc_NetShareCtr502_get_count, py_srvsvc_NetShareCtr502_set_count },
5154 { discard_const_p(char, "array"), py_srvsvc_NetShareCtr502_get_array, py_srvsvc_NetShareCtr502_set_array },
5158 static PyObject *py_srvsvc_NetShareCtr502_new(PyTypeObject *type, PyObject *args, PyObject *kwargs)
5160 return pytalloc_new(struct srvsvc_NetShareCtr502, type);
5164 static PyTypeObject srvsvc_NetShareCtr502_Type = {
5165 PyObject_HEAD_INIT(NULL) 0,
5166 .tp_name = "srvsvc.NetShareCtr502",
5167 .tp_getset = py_srvsvc_NetShareCtr502_getsetters,
5169 .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
5170 .tp_basicsize = sizeof(pytalloc_Object),
5171 .tp_new = py_srvsvc_NetShareCtr502_new,
5175 static PyObject *py_srvsvc_NetShareInfo1004_get_comment(PyObject *obj, void *closure)
5177 struct srvsvc_NetShareInfo1004 *object = (struct srvsvc_NetShareInfo1004 *)pytalloc_get_ptr(obj);
5178 PyObject *py_comment;
5179 if (object->comment == NULL) {
5180 py_comment = Py_None;
5181 Py_INCREF(py_comment);
5183 if (object->comment == NULL) {
5184 py_comment = Py_None;
5185 Py_INCREF(py_comment);
5187 py_comment = PyUnicode_Decode(object->comment, strlen(object->comment), "utf-8", "ignore");
5193 static int py_srvsvc_NetShareInfo1004_set_comment(PyObject *py_obj, PyObject *value, void *closure)
5195 struct srvsvc_NetShareInfo1004 *object = (struct srvsvc_NetShareInfo1004 *)pytalloc_get_ptr(py_obj);
5196 if (value == Py_None) {
5197 object->comment = NULL;
5199 object->comment = NULL;
5200 if (PyUnicode_Check(value)) {
5201 object->comment = PyString_AS_STRING(PyUnicode_AsEncodedString(value, "utf-8", "ignore"));
5202 } else if (PyString_Check(value)) {
5203 object->comment = PyString_AS_STRING(value);
5205 PyErr_Format(PyExc_TypeError, "Expected string or unicode object, got %s", Py_TYPE(value)->tp_name);
5212 static PyGetSetDef py_srvsvc_NetShareInfo1004_getsetters[] = {
5213 { discard_const_p(char, "comment"), py_srvsvc_NetShareInfo1004_get_comment, py_srvsvc_NetShareInfo1004_set_comment },
5217 static PyObject *py_srvsvc_NetShareInfo1004_new(PyTypeObject *type, PyObject *args, PyObject *kwargs)
5219 return pytalloc_new(struct srvsvc_NetShareInfo1004, type);
5223 static PyTypeObject srvsvc_NetShareInfo1004_Type = {
5224 PyObject_HEAD_INIT(NULL) 0,
5225 .tp_name = "srvsvc.NetShareInfo1004",
5226 .tp_getset = py_srvsvc_NetShareInfo1004_getsetters,
5228 .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
5229 .tp_basicsize = sizeof(pytalloc_Object),
5230 .tp_new = py_srvsvc_NetShareInfo1004_new,
5234 static PyObject *py_srvsvc_NetShareCtr1004_get_count(PyObject *obj, void *closure)
5236 struct srvsvc_NetShareCtr1004 *object = (struct srvsvc_NetShareCtr1004 *)pytalloc_get_ptr(obj);
5238 py_count = PyInt_FromLong(object->count);
5242 static int py_srvsvc_NetShareCtr1004_set_count(PyObject *py_obj, PyObject *value, void *closure)
5244 struct srvsvc_NetShareCtr1004 *object = (struct srvsvc_NetShareCtr1004 *)pytalloc_get_ptr(py_obj);
5245 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
5246 object->count = PyInt_AsLong(value);
5250 static PyObject *py_srvsvc_NetShareCtr1004_get_array(PyObject *obj, void *closure)
5252 struct srvsvc_NetShareCtr1004 *object = (struct srvsvc_NetShareCtr1004 *)pytalloc_get_ptr(obj);
5254 if (object->array == NULL) {
5256 Py_INCREF(py_array);
5258 py_array = PyList_New(object->count);
5259 if (py_array == NULL) {
5264 for (array_cntr_1 = 0; array_cntr_1 < object->count; array_cntr_1++) {
5265 PyObject *py_array_1;
5266 py_array_1 = pytalloc_reference_ex(&srvsvc_NetShareInfo1004_Type, object->array, &object->array[array_cntr_1]);
5267 PyList_SetItem(py_array, array_cntr_1, py_array_1);
5274 static int py_srvsvc_NetShareCtr1004_set_array(PyObject *py_obj, PyObject *value, void *closure)
5276 struct srvsvc_NetShareCtr1004 *object = (struct srvsvc_NetShareCtr1004 *)pytalloc_get_ptr(py_obj);
5277 talloc_unlink(pytalloc_get_mem_ctx(py_obj), object->array);
5278 if (value == Py_None) {
5279 object->array = NULL;
5281 object->array = NULL;
5282 PY_CHECK_TYPE(&PyList_Type, value, return -1;);
5285 object->array = talloc_array_ptrtype(pytalloc_get_mem_ctx(py_obj), object->array, PyList_GET_SIZE(value));
5286 if (!object->array) { return -1;; }
5287 talloc_set_name_const(object->array, "ARRAY: object->array");
5288 for (array_cntr_1 = 0; array_cntr_1 < PyList_GET_SIZE(value); array_cntr_1++) {
5289 PY_CHECK_TYPE(&srvsvc_NetShareInfo1004_Type, PyList_GET_ITEM(value, array_cntr_1), return -1;);
5290 if (talloc_reference(object->array, pytalloc_get_mem_ctx(PyList_GET_ITEM(value, array_cntr_1))) == NULL) {
5294 object->array[array_cntr_1] = *(struct srvsvc_NetShareInfo1004 *)pytalloc_get_ptr(PyList_GET_ITEM(value, array_cntr_1));
5301 static PyGetSetDef py_srvsvc_NetShareCtr1004_getsetters[] = {
5302 { discard_const_p(char, "count"), py_srvsvc_NetShareCtr1004_get_count, py_srvsvc_NetShareCtr1004_set_count },
5303 { discard_const_p(char, "array"), py_srvsvc_NetShareCtr1004_get_array, py_srvsvc_NetShareCtr1004_set_array },
5307 static PyObject *py_srvsvc_NetShareCtr1004_new(PyTypeObject *type, PyObject *args, PyObject *kwargs)
5309 return pytalloc_new(struct srvsvc_NetShareCtr1004, type);
5313 static PyTypeObject srvsvc_NetShareCtr1004_Type = {
5314 PyObject_HEAD_INIT(NULL) 0,
5315 .tp_name = "srvsvc.NetShareCtr1004",
5316 .tp_getset = py_srvsvc_NetShareCtr1004_getsetters,
5318 .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
5319 .tp_basicsize = sizeof(pytalloc_Object),
5320 .tp_new = py_srvsvc_NetShareCtr1004_new,
5324 static PyObject *py_srvsvc_NetShareInfo1005_get_dfs_flags(PyObject *obj, void *closure)
5326 struct srvsvc_NetShareInfo1005 *object = (struct srvsvc_NetShareInfo1005 *)pytalloc_get_ptr(obj);
5327 PyObject *py_dfs_flags;
5328 py_dfs_flags = PyInt_FromLong(object->dfs_flags);
5329 return py_dfs_flags;
5332 static int py_srvsvc_NetShareInfo1005_set_dfs_flags(PyObject *py_obj, PyObject *value, void *closure)
5334 struct srvsvc_NetShareInfo1005 *object = (struct srvsvc_NetShareInfo1005 *)pytalloc_get_ptr(py_obj);
5335 if (PyLong_Check(value)) {
5336 object->dfs_flags = PyLong_AsLongLong(value);
5337 } else if (PyInt_Check(value)) {
5338 object->dfs_flags = PyInt_AsLong(value);
5340 PyErr_Format(PyExc_TypeError, "Expected type %s or %s",\
5341 PyInt_Type.tp_name, PyLong_Type.tp_name);
5347 static PyGetSetDef py_srvsvc_NetShareInfo1005_getsetters[] = {
5348 { discard_const_p(char, "dfs_flags"), py_srvsvc_NetShareInfo1005_get_dfs_flags, py_srvsvc_NetShareInfo1005_set_dfs_flags },
5352 static PyObject *py_srvsvc_NetShareInfo1005_new(PyTypeObject *type, PyObject *args, PyObject *kwargs)
5354 return pytalloc_new(struct srvsvc_NetShareInfo1005, type);
5358 static PyTypeObject srvsvc_NetShareInfo1005_Type = {
5359 PyObject_HEAD_INIT(NULL) 0,
5360 .tp_name = "srvsvc.NetShareInfo1005",
5361 .tp_getset = py_srvsvc_NetShareInfo1005_getsetters,
5363 .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
5364 .tp_basicsize = sizeof(pytalloc_Object),
5365 .tp_new = py_srvsvc_NetShareInfo1005_new,
5369 static PyObject *py_srvsvc_NetShareCtr1005_get_count(PyObject *obj, void *closure)
5371 struct srvsvc_NetShareCtr1005 *object = (struct srvsvc_NetShareCtr1005 *)pytalloc_get_ptr(obj);
5373 py_count = PyInt_FromLong(object->count);
5377 static int py_srvsvc_NetShareCtr1005_set_count(PyObject *py_obj, PyObject *value, void *closure)
5379 struct srvsvc_NetShareCtr1005 *object = (struct srvsvc_NetShareCtr1005 *)pytalloc_get_ptr(py_obj);
5380 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
5381 object->count = PyInt_AsLong(value);
5385 static PyObject *py_srvsvc_NetShareCtr1005_get_array(PyObject *obj, void *closure)
5387 struct srvsvc_NetShareCtr1005 *object = (struct srvsvc_NetShareCtr1005 *)pytalloc_get_ptr(obj);
5389 if (object->array == NULL) {
5391 Py_INCREF(py_array);
5393 py_array = PyList_New(object->count);
5394 if (py_array == NULL) {
5399 for (array_cntr_1 = 0; array_cntr_1 < object->count; array_cntr_1++) {
5400 PyObject *py_array_1;
5401 py_array_1 = pytalloc_reference_ex(&srvsvc_NetShareInfo1005_Type, object->array, &object->array[array_cntr_1]);
5402 PyList_SetItem(py_array, array_cntr_1, py_array_1);
5409 static int py_srvsvc_NetShareCtr1005_set_array(PyObject *py_obj, PyObject *value, void *closure)
5411 struct srvsvc_NetShareCtr1005 *object = (struct srvsvc_NetShareCtr1005 *)pytalloc_get_ptr(py_obj);
5412 talloc_unlink(pytalloc_get_mem_ctx(py_obj), object->array);
5413 if (value == Py_None) {
5414 object->array = NULL;
5416 object->array = NULL;
5417 PY_CHECK_TYPE(&PyList_Type, value, return -1;);
5420 object->array = talloc_array_ptrtype(pytalloc_get_mem_ctx(py_obj), object->array, PyList_GET_SIZE(value));
5421 if (!object->array) { return -1;; }
5422 talloc_set_name_const(object->array, "ARRAY: object->array");
5423 for (array_cntr_1 = 0; array_cntr_1 < PyList_GET_SIZE(value); array_cntr_1++) {
5424 PY_CHECK_TYPE(&srvsvc_NetShareInfo1005_Type, PyList_GET_ITEM(value, array_cntr_1), return -1;);
5425 if (talloc_reference(object->array, pytalloc_get_mem_ctx(PyList_GET_ITEM(value, array_cntr_1))) == NULL) {
5429 object->array[array_cntr_1] = *(struct srvsvc_NetShareInfo1005 *)pytalloc_get_ptr(PyList_GET_ITEM(value, array_cntr_1));
5436 static PyGetSetDef py_srvsvc_NetShareCtr1005_getsetters[] = {
5437 { discard_const_p(char, "count"), py_srvsvc_NetShareCtr1005_get_count, py_srvsvc_NetShareCtr1005_set_count },
5438 { discard_const_p(char, "array"), py_srvsvc_NetShareCtr1005_get_array, py_srvsvc_NetShareCtr1005_set_array },
5442 static PyObject *py_srvsvc_NetShareCtr1005_new(PyTypeObject *type, PyObject *args, PyObject *kwargs)
5444 return pytalloc_new(struct srvsvc_NetShareCtr1005, type);
5448 static PyTypeObject srvsvc_NetShareCtr1005_Type = {
5449 PyObject_HEAD_INIT(NULL) 0,
5450 .tp_name = "srvsvc.NetShareCtr1005",
5451 .tp_getset = py_srvsvc_NetShareCtr1005_getsetters,
5453 .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
5454 .tp_basicsize = sizeof(pytalloc_Object),
5455 .tp_new = py_srvsvc_NetShareCtr1005_new,
5459 static PyObject *py_srvsvc_NetShareInfo1006_get_max_users(PyObject *obj, void *closure)
5461 struct srvsvc_NetShareInfo1006 *object = (struct srvsvc_NetShareInfo1006 *)pytalloc_get_ptr(obj);
5462 PyObject *py_max_users;
5463 py_max_users = PyInt_FromLong(object->max_users);
5464 return py_max_users;
5467 static int py_srvsvc_NetShareInfo1006_set_max_users(PyObject *py_obj, PyObject *value, void *closure)
5469 struct srvsvc_NetShareInfo1006 *object = (struct srvsvc_NetShareInfo1006 *)pytalloc_get_ptr(py_obj);
5470 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
5471 object->max_users = PyInt_AsLong(value);
5475 static PyGetSetDef py_srvsvc_NetShareInfo1006_getsetters[] = {
5476 { discard_const_p(char, "max_users"), py_srvsvc_NetShareInfo1006_get_max_users, py_srvsvc_NetShareInfo1006_set_max_users },
5480 static PyObject *py_srvsvc_NetShareInfo1006_new(PyTypeObject *type, PyObject *args, PyObject *kwargs)
5482 return pytalloc_new(struct srvsvc_NetShareInfo1006, type);
5486 static PyTypeObject srvsvc_NetShareInfo1006_Type = {
5487 PyObject_HEAD_INIT(NULL) 0,
5488 .tp_name = "srvsvc.NetShareInfo1006",
5489 .tp_getset = py_srvsvc_NetShareInfo1006_getsetters,
5491 .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
5492 .tp_basicsize = sizeof(pytalloc_Object),
5493 .tp_new = py_srvsvc_NetShareInfo1006_new,
5497 static PyObject *py_srvsvc_NetShareCtr1006_get_count(PyObject *obj, void *closure)
5499 struct srvsvc_NetShareCtr1006 *object = (struct srvsvc_NetShareCtr1006 *)pytalloc_get_ptr(obj);
5501 py_count = PyInt_FromLong(object->count);
5505 static int py_srvsvc_NetShareCtr1006_set_count(PyObject *py_obj, PyObject *value, void *closure)
5507 struct srvsvc_NetShareCtr1006 *object = (struct srvsvc_NetShareCtr1006 *)pytalloc_get_ptr(py_obj);
5508 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
5509 object->count = PyInt_AsLong(value);
5513 static PyObject *py_srvsvc_NetShareCtr1006_get_array(PyObject *obj, void *closure)
5515 struct srvsvc_NetShareCtr1006 *object = (struct srvsvc_NetShareCtr1006 *)pytalloc_get_ptr(obj);
5517 if (object->array == NULL) {
5519 Py_INCREF(py_array);
5521 py_array = PyList_New(object->count);
5522 if (py_array == NULL) {
5527 for (array_cntr_1 = 0; array_cntr_1 < object->count; array_cntr_1++) {
5528 PyObject *py_array_1;
5529 py_array_1 = pytalloc_reference_ex(&srvsvc_NetShareInfo1006_Type, object->array, &object->array[array_cntr_1]);
5530 PyList_SetItem(py_array, array_cntr_1, py_array_1);
5537 static int py_srvsvc_NetShareCtr1006_set_array(PyObject *py_obj, PyObject *value, void *closure)
5539 struct srvsvc_NetShareCtr1006 *object = (struct srvsvc_NetShareCtr1006 *)pytalloc_get_ptr(py_obj);
5540 talloc_unlink(pytalloc_get_mem_ctx(py_obj), object->array);
5541 if (value == Py_None) {
5542 object->array = NULL;
5544 object->array = NULL;
5545 PY_CHECK_TYPE(&PyList_Type, value, return -1;);
5548 object->array = talloc_array_ptrtype(pytalloc_get_mem_ctx(py_obj), object->array, PyList_GET_SIZE(value));
5549 if (!object->array) { return -1;; }
5550 talloc_set_name_const(object->array, "ARRAY: object->array");
5551 for (array_cntr_1 = 0; array_cntr_1 < PyList_GET_SIZE(value); array_cntr_1++) {
5552 PY_CHECK_TYPE(&srvsvc_NetShareInfo1006_Type, PyList_GET_ITEM(value, array_cntr_1), return -1;);
5553 if (talloc_reference(object->array, pytalloc_get_mem_ctx(PyList_GET_ITEM(value, array_cntr_1))) == NULL) {
5557 object->array[array_cntr_1] = *(struct srvsvc_NetShareInfo1006 *)pytalloc_get_ptr(PyList_GET_ITEM(value, array_cntr_1));
5564 static PyGetSetDef py_srvsvc_NetShareCtr1006_getsetters[] = {
5565 { discard_const_p(char, "count"), py_srvsvc_NetShareCtr1006_get_count, py_srvsvc_NetShareCtr1006_set_count },
5566 { discard_const_p(char, "array"), py_srvsvc_NetShareCtr1006_get_array, py_srvsvc_NetShareCtr1006_set_array },
5570 static PyObject *py_srvsvc_NetShareCtr1006_new(PyTypeObject *type, PyObject *args, PyObject *kwargs)
5572 return pytalloc_new(struct srvsvc_NetShareCtr1006, type);
5576 static PyTypeObject srvsvc_NetShareCtr1006_Type = {
5577 PyObject_HEAD_INIT(NULL) 0,
5578 .tp_name = "srvsvc.NetShareCtr1006",
5579 .tp_getset = py_srvsvc_NetShareCtr1006_getsetters,
5581 .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
5582 .tp_basicsize = sizeof(pytalloc_Object),
5583 .tp_new = py_srvsvc_NetShareCtr1006_new,
5587 static PyObject *py_srvsvc_NetShareInfo1007_get_flags(PyObject *obj, void *closure)
5589 struct srvsvc_NetShareInfo1007 *object = (struct srvsvc_NetShareInfo1007 *)pytalloc_get_ptr(obj);
5591 py_flags = PyInt_FromLong(object->flags);
5595 static int py_srvsvc_NetShareInfo1007_set_flags(PyObject *py_obj, PyObject *value, void *closure)
5597 struct srvsvc_NetShareInfo1007 *object = (struct srvsvc_NetShareInfo1007 *)pytalloc_get_ptr(py_obj);
5598 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
5599 object->flags = PyInt_AsLong(value);
5603 static PyObject *py_srvsvc_NetShareInfo1007_get_alternate_directory_name(PyObject *obj, void *closure)
5605 struct srvsvc_NetShareInfo1007 *object = (struct srvsvc_NetShareInfo1007 *)pytalloc_get_ptr(obj);
5606 PyObject *py_alternate_directory_name;
5607 if (object->alternate_directory_name == NULL) {
5608 py_alternate_directory_name = Py_None;
5609 Py_INCREF(py_alternate_directory_name);
5611 if (object->alternate_directory_name == NULL) {
5612 py_alternate_directory_name = Py_None;
5613 Py_INCREF(py_alternate_directory_name);
5615 py_alternate_directory_name = PyUnicode_Decode(object->alternate_directory_name, strlen(object->alternate_directory_name), "utf-8", "ignore");
5618 return py_alternate_directory_name;
5621 static int py_srvsvc_NetShareInfo1007_set_alternate_directory_name(PyObject *py_obj, PyObject *value, void *closure)
5623 struct srvsvc_NetShareInfo1007 *object = (struct srvsvc_NetShareInfo1007 *)pytalloc_get_ptr(py_obj);
5624 if (value == Py_None) {
5625 object->alternate_directory_name = NULL;
5627 object->alternate_directory_name = NULL;
5628 if (PyUnicode_Check(value)) {
5629 object->alternate_directory_name = PyString_AS_STRING(PyUnicode_AsEncodedString(value, "utf-8", "ignore"));
5630 } else if (PyString_Check(value)) {
5631 object->alternate_directory_name = PyString_AS_STRING(value);
5633 PyErr_Format(PyExc_TypeError, "Expected string or unicode object, got %s", Py_TYPE(value)->tp_name);
5640 static PyGetSetDef py_srvsvc_NetShareInfo1007_getsetters[] = {
5641 { discard_const_p(char, "flags"), py_srvsvc_NetShareInfo1007_get_flags, py_srvsvc_NetShareInfo1007_set_flags },
5642 { discard_const_p(char, "alternate_directory_name"), py_srvsvc_NetShareInfo1007_get_alternate_directory_name, py_srvsvc_NetShareInfo1007_set_alternate_directory_name },
5646 static PyObject *py_srvsvc_NetShareInfo1007_new(PyTypeObject *type, PyObject *args, PyObject *kwargs)
5648 return pytalloc_new(struct srvsvc_NetShareInfo1007, type);
5652 static PyTypeObject srvsvc_NetShareInfo1007_Type = {
5653 PyObject_HEAD_INIT(NULL) 0,
5654 .tp_name = "srvsvc.NetShareInfo1007",
5655 .tp_getset = py_srvsvc_NetShareInfo1007_getsetters,
5657 .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
5658 .tp_basicsize = sizeof(pytalloc_Object),
5659 .tp_new = py_srvsvc_NetShareInfo1007_new,
5663 static PyObject *py_srvsvc_NetShareCtr1007_get_count(PyObject *obj, void *closure)
5665 struct srvsvc_NetShareCtr1007 *object = (struct srvsvc_NetShareCtr1007 *)pytalloc_get_ptr(obj);
5667 py_count = PyInt_FromLong(object->count);
5671 static int py_srvsvc_NetShareCtr1007_set_count(PyObject *py_obj, PyObject *value, void *closure)
5673 struct srvsvc_NetShareCtr1007 *object = (struct srvsvc_NetShareCtr1007 *)pytalloc_get_ptr(py_obj);
5674 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
5675 object->count = PyInt_AsLong(value);
5679 static PyObject *py_srvsvc_NetShareCtr1007_get_array(PyObject *obj, void *closure)
5681 struct srvsvc_NetShareCtr1007 *object = (struct srvsvc_NetShareCtr1007 *)pytalloc_get_ptr(obj);
5683 if (object->array == NULL) {
5685 Py_INCREF(py_array);
5687 py_array = PyList_New(object->count);
5688 if (py_array == NULL) {
5693 for (array_cntr_1 = 0; array_cntr_1 < object->count; array_cntr_1++) {
5694 PyObject *py_array_1;
5695 py_array_1 = pytalloc_reference_ex(&srvsvc_NetShareInfo1007_Type, object->array, &object->array[array_cntr_1]);
5696 PyList_SetItem(py_array, array_cntr_1, py_array_1);
5703 static int py_srvsvc_NetShareCtr1007_set_array(PyObject *py_obj, PyObject *value, void *closure)
5705 struct srvsvc_NetShareCtr1007 *object = (struct srvsvc_NetShareCtr1007 *)pytalloc_get_ptr(py_obj);
5706 talloc_unlink(pytalloc_get_mem_ctx(py_obj), object->array);
5707 if (value == Py_None) {
5708 object->array = NULL;
5710 object->array = NULL;
5711 PY_CHECK_TYPE(&PyList_Type, value, return -1;);
5714 object->array = talloc_array_ptrtype(pytalloc_get_mem_ctx(py_obj), object->array, PyList_GET_SIZE(value));
5715 if (!object->array) { return -1;; }
5716 talloc_set_name_const(object->array, "ARRAY: object->array");
5717 for (array_cntr_1 = 0; array_cntr_1 < PyList_GET_SIZE(value); array_cntr_1++) {
5718 PY_CHECK_TYPE(&srvsvc_NetShareInfo1007_Type, PyList_GET_ITEM(value, array_cntr_1), return -1;);
5719 if (talloc_reference(object->array, pytalloc_get_mem_ctx(PyList_GET_ITEM(value, array_cntr_1))) == NULL) {
5723 object->array[array_cntr_1] = *(struct srvsvc_NetShareInfo1007 *)pytalloc_get_ptr(PyList_GET_ITEM(value, array_cntr_1));
5730 static PyGetSetDef py_srvsvc_NetShareCtr1007_getsetters[] = {
5731 { discard_const_p(char, "count"), py_srvsvc_NetShareCtr1007_get_count, py_srvsvc_NetShareCtr1007_set_count },
5732 { discard_const_p(char, "array"), py_srvsvc_NetShareCtr1007_get_array, py_srvsvc_NetShareCtr1007_set_array },
5736 static PyObject *py_srvsvc_NetShareCtr1007_new(PyTypeObject *type, PyObject *args, PyObject *kwargs)
5738 return pytalloc_new(struct srvsvc_NetShareCtr1007, type);
5742 static PyTypeObject srvsvc_NetShareCtr1007_Type = {
5743 PyObject_HEAD_INIT(NULL) 0,
5744 .tp_name = "srvsvc.NetShareCtr1007",
5745 .tp_getset = py_srvsvc_NetShareCtr1007_getsetters,
5747 .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
5748 .tp_basicsize = sizeof(pytalloc_Object),
5749 .tp_new = py_srvsvc_NetShareCtr1007_new,
5753 static PyObject *py_srvsvc_NetShareCtr1501_get_count(PyObject *obj, void *closure)
5755 struct srvsvc_NetShareCtr1501 *object = (struct srvsvc_NetShareCtr1501 *)pytalloc_get_ptr(obj);
5757 py_count = PyInt_FromLong(object->count);
5761 static int py_srvsvc_NetShareCtr1501_set_count(PyObject *py_obj, PyObject *value, void *closure)
5763 struct srvsvc_NetShareCtr1501 *object = (struct srvsvc_NetShareCtr1501 *)pytalloc_get_ptr(py_obj);
5764 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
5765 object->count = PyInt_AsLong(value);
5769 static PyObject *py_srvsvc_NetShareCtr1501_get_array(PyObject *obj, void *closure)
5771 struct srvsvc_NetShareCtr1501 *object = (struct srvsvc_NetShareCtr1501 *)pytalloc_get_ptr(obj);
5773 if (object->array == NULL) {
5775 Py_INCREF(py_array);
5777 py_array = PyList_New(object->count);
5778 if (py_array == NULL) {
5783 for (array_cntr_1 = 0; array_cntr_1 < object->count; array_cntr_1++) {
5784 PyObject *py_array_1;
5785 py_array_1 = pytalloc_reference_ex(sec_desc_buf_Type, object->array, &object->array[array_cntr_1]);
5786 PyList_SetItem(py_array, array_cntr_1, py_array_1);
5793 static int py_srvsvc_NetShareCtr1501_set_array(PyObject *py_obj, PyObject *value, void *closure)
5795 struct srvsvc_NetShareCtr1501 *object = (struct srvsvc_NetShareCtr1501 *)pytalloc_get_ptr(py_obj);
5796 talloc_unlink(pytalloc_get_mem_ctx(py_obj), object->array);
5797 if (value == Py_None) {
5798 object->array = NULL;
5800 object->array = NULL;
5801 PY_CHECK_TYPE(&PyList_Type, value, return -1;);
5804 object->array = talloc_array_ptrtype(pytalloc_get_mem_ctx(py_obj), object->array, PyList_GET_SIZE(value));
5805 if (!object->array) { return -1;; }
5806 talloc_set_name_const(object->array, "ARRAY: object->array");
5807 for (array_cntr_1 = 0; array_cntr_1 < PyList_GET_SIZE(value); array_cntr_1++) {
5808 PY_CHECK_TYPE(sec_desc_buf_Type, PyList_GET_ITEM(value, array_cntr_1), return -1;);
5809 if (talloc_reference(object->array, pytalloc_get_mem_ctx(PyList_GET_ITEM(value, array_cntr_1))) == NULL) {
5813 object->array[array_cntr_1] = *(struct sec_desc_buf *)pytalloc_get_ptr(PyList_GET_ITEM(value, array_cntr_1));
5820 static PyGetSetDef py_srvsvc_NetShareCtr1501_getsetters[] = {
5821 { discard_const_p(char, "count"), py_srvsvc_NetShareCtr1501_get_count, py_srvsvc_NetShareCtr1501_set_count },
5822 { discard_const_p(char, "array"), py_srvsvc_NetShareCtr1501_get_array, py_srvsvc_NetShareCtr1501_set_array },
5826 static PyObject *py_srvsvc_NetShareCtr1501_new(PyTypeObject *type, PyObject *args, PyObject *kwargs)
5828 return pytalloc_new(struct srvsvc_NetShareCtr1501, type);
5832 static PyTypeObject srvsvc_NetShareCtr1501_Type = {
5833 PyObject_HEAD_INIT(NULL) 0,
5834 .tp_name = "srvsvc.NetShareCtr1501",
5835 .tp_getset = py_srvsvc_NetShareCtr1501_getsetters,
5837 .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
5838 .tp_basicsize = sizeof(pytalloc_Object),
5839 .tp_new = py_srvsvc_NetShareCtr1501_new,
5842 static PyObject *py_import_srvsvc_NetShareInfo(TALLOC_CTX *mem_ctx, int level, union srvsvc_NetShareInfo *in)
5848 if (in->info0 == NULL) {
5852 ret = pytalloc_reference_ex(&srvsvc_NetShareInfo0_Type, in->info0, in->info0);
5857 if (in->info1 == NULL) {
5861 ret = pytalloc_reference_ex(&srvsvc_NetShareInfo1_Type, in->info1, in->info1);
5866 if (in->info2 == NULL) {
5870 ret = pytalloc_reference_ex(&srvsvc_NetShareInfo2_Type, in->info2, in->info2);
5875 if (in->info501 == NULL) {
5879 ret = pytalloc_reference_ex(&srvsvc_NetShareInfo501_Type, in->info501, in->info501);
5884 if (in->info502 == NULL) {
5888 ret = pytalloc_reference_ex(&srvsvc_NetShareInfo502_Type, in->info502, in->info502);
5893 if (in->info1004 == NULL) {
5897 ret = pytalloc_reference_ex(&srvsvc_NetShareInfo1004_Type, in->info1004, in->info1004);
5902 if (in->info1005 == NULL) {
5906 ret = pytalloc_reference_ex(&srvsvc_NetShareInfo1005_Type, in->info1005, in->info1005);
5911 if (in->info1006 == NULL) {
5915 ret = pytalloc_reference_ex(&srvsvc_NetShareInfo1006_Type, in->info1006, in->info1006);
5920 if (in->info1007 == NULL) {
5924 ret = pytalloc_reference_ex(&srvsvc_NetShareInfo1007_Type, in->info1007, in->info1007);
5929 if (in->info1501 == NULL) {
5933 ret = pytalloc_reference_ex(sec_desc_buf_Type, in->info1501, in->info1501);
5943 PyErr_SetString(PyExc_TypeError, "unknown union level");
5947 static union srvsvc_NetShareInfo *py_export_srvsvc_NetShareInfo(TALLOC_CTX *mem_ctx, int level, PyObject *in)
5949 union srvsvc_NetShareInfo *ret = talloc_zero(mem_ctx, union srvsvc_NetShareInfo);
5952 if (in == Py_None) {
5956 PY_CHECK_TYPE(&srvsvc_NetShareInfo0_Type, in, talloc_free(ret); return NULL;);
5957 if (talloc_reference(mem_ctx, pytalloc_get_mem_ctx(in)) == NULL) {
5959 talloc_free(ret); return NULL;
5961 ret->info0 = (struct srvsvc_NetShareInfo0 *)pytalloc_get_ptr(in);
5966 if (in == Py_None) {
5970 PY_CHECK_TYPE(&srvsvc_NetShareInfo1_Type, in, talloc_free(ret); return NULL;);
5971 if (talloc_reference(mem_ctx, pytalloc_get_mem_ctx(in)) == NULL) {
5973 talloc_free(ret); return NULL;
5975 ret->info1 = (struct srvsvc_NetShareInfo1 *)pytalloc_get_ptr(in);
5980 if (in == Py_None) {
5984 PY_CHECK_TYPE(&srvsvc_NetShareInfo2_Type, in, talloc_free(ret); return NULL;);
5985 if (talloc_reference(mem_ctx, pytalloc_get_mem_ctx(in)) == NULL) {
5987 talloc_free(ret); return NULL;
5989 ret->info2 = (struct srvsvc_NetShareInfo2 *)pytalloc_get_ptr(in);
5994 if (in == Py_None) {
5995 ret->info501 = NULL;
5997 ret->info501 = NULL;
5998 PY_CHECK_TYPE(&srvsvc_NetShareInfo501_Type, in, talloc_free(ret); return NULL;);
5999 if (talloc_reference(mem_ctx, pytalloc_get_mem_ctx(in)) == NULL) {
6001 talloc_free(ret); return NULL;
6003 ret->info501 = (struct srvsvc_NetShareInfo501 *)pytalloc_get_ptr(in);
6008 if (in == Py_None) {
6009 ret->info502 = NULL;
6011 ret->info502 = NULL;
6012 PY_CHECK_TYPE(&srvsvc_NetShareInfo502_Type, in, talloc_free(ret); return NULL;);
6013 if (talloc_reference(mem_ctx, pytalloc_get_mem_ctx(in)) == NULL) {
6015 talloc_free(ret); return NULL;
6017 ret->info502 = (struct srvsvc_NetShareInfo502 *)pytalloc_get_ptr(in);
6022 if (in == Py_None) {
6023 ret->info1004 = NULL;
6025 ret->info1004 = NULL;
6026 PY_CHECK_TYPE(&srvsvc_NetShareInfo1004_Type, in, talloc_free(ret); return NULL;);
6027 if (talloc_reference(mem_ctx, pytalloc_get_mem_ctx(in)) == NULL) {
6029 talloc_free(ret); return NULL;
6031 ret->info1004 = (struct srvsvc_NetShareInfo1004 *)pytalloc_get_ptr(in);
6036 if (in == Py_None) {
6037 ret->info1005 = NULL;
6039 ret->info1005 = NULL;
6040 PY_CHECK_TYPE(&srvsvc_NetShareInfo1005_Type, in, talloc_free(ret); return NULL;);
6041 if (talloc_reference(mem_ctx, pytalloc_get_mem_ctx(in)) == NULL) {
6043 talloc_free(ret); return NULL;
6045 ret->info1005 = (struct srvsvc_NetShareInfo1005 *)pytalloc_get_ptr(in);
6050 if (in == Py_None) {
6051 ret->info1006 = NULL;
6053 ret->info1006 = NULL;
6054 PY_CHECK_TYPE(&srvsvc_NetShareInfo1006_Type, in, talloc_free(ret); return NULL;);
6055 if (talloc_reference(mem_ctx, pytalloc_get_mem_ctx(in)) == NULL) {
6057 talloc_free(ret); return NULL;
6059 ret->info1006 = (struct srvsvc_NetShareInfo1006 *)pytalloc_get_ptr(in);
6064 if (in == Py_None) {
6065 ret->info1007 = NULL;
6067 ret->info1007 = NULL;
6068 PY_CHECK_TYPE(&srvsvc_NetShareInfo1007_Type, in, talloc_free(ret); return NULL;);
6069 if (talloc_reference(mem_ctx, pytalloc_get_mem_ctx(in)) == NULL) {
6071 talloc_free(ret); return NULL;
6073 ret->info1007 = (struct srvsvc_NetShareInfo1007 *)pytalloc_get_ptr(in);
6078 if (in == Py_None) {
6079 ret->info1501 = NULL;
6081 ret->info1501 = NULL;
6082 PY_CHECK_TYPE(sec_desc_buf_Type, in, talloc_free(ret); return NULL;);
6083 if (talloc_reference(mem_ctx, pytalloc_get_mem_ctx(in)) == NULL) {
6085 talloc_free(ret); return NULL;
6087 ret->info1501 = (struct sec_desc_buf *)pytalloc_get_ptr(in);
6099 static PyObject *py_import_srvsvc_NetShareCtr(TALLOC_CTX *mem_ctx, int level, union srvsvc_NetShareCtr *in)
6105 if (in->ctr0 == NULL) {
6109 ret = pytalloc_reference_ex(&srvsvc_NetShareCtr0_Type, in->ctr0, in->ctr0);
6114 if (in->ctr1 == NULL) {
6118 ret = pytalloc_reference_ex(&srvsvc_NetShareCtr1_Type, in->ctr1, in->ctr1);
6123 if (in->ctr2 == NULL) {
6127 ret = pytalloc_reference_ex(&srvsvc_NetShareCtr2_Type, in->ctr2, in->ctr2);
6132 if (in->ctr501 == NULL) {
6136 ret = pytalloc_reference_ex(&srvsvc_NetShareCtr501_Type, in->ctr501, in->ctr501);
6141 if (in->ctr502 == NULL) {
6145 ret = pytalloc_reference_ex(&srvsvc_NetShareCtr502_Type, in->ctr502, in->ctr502);
6150 if (in->ctr1004 == NULL) {
6154 ret = pytalloc_reference_ex(&srvsvc_NetShareCtr1004_Type, in->ctr1004, in->ctr1004);
6159 if (in->ctr1005 == NULL) {
6163 ret = pytalloc_reference_ex(&srvsvc_NetShareCtr1005_Type, in->ctr1005, in->ctr1005);
6168 if (in->ctr1006 == NULL) {
6172 ret = pytalloc_reference_ex(&srvsvc_NetShareCtr1006_Type, in->ctr1006, in->ctr1006);
6177 if (in->ctr1007 == NULL) {
6181 ret = pytalloc_reference_ex(&srvsvc_NetShareCtr1007_Type, in->ctr1007, in->ctr1007);
6186 if (in->ctr1501 == NULL) {
6190 ret = pytalloc_reference_ex(&srvsvc_NetShareCtr1501_Type, in->ctr1501, in->ctr1501);
6200 PyErr_SetString(PyExc_TypeError, "unknown union level");
6204 static union srvsvc_NetShareCtr *py_export_srvsvc_NetShareCtr(TALLOC_CTX *mem_ctx, int level, PyObject *in)
6206 union srvsvc_NetShareCtr *ret = talloc_zero(mem_ctx, union srvsvc_NetShareCtr);
6209 if (in == Py_None) {
6213 PY_CHECK_TYPE(&srvsvc_NetShareCtr0_Type, in, talloc_free(ret); return NULL;);
6214 if (talloc_reference(mem_ctx, pytalloc_get_mem_ctx(in)) == NULL) {
6216 talloc_free(ret); return NULL;
6218 ret->ctr0 = (struct srvsvc_NetShareCtr0 *)pytalloc_get_ptr(in);
6223 if (in == Py_None) {
6227 PY_CHECK_TYPE(&srvsvc_NetShareCtr1_Type, in, talloc_free(ret); return NULL;);
6228 if (talloc_reference(mem_ctx, pytalloc_get_mem_ctx(in)) == NULL) {
6230 talloc_free(ret); return NULL;
6232 ret->ctr1 = (struct srvsvc_NetShareCtr1 *)pytalloc_get_ptr(in);
6237 if (in == Py_None) {
6241 PY_CHECK_TYPE(&srvsvc_NetShareCtr2_Type, in, talloc_free(ret); return NULL;);
6242 if (talloc_reference(mem_ctx, pytalloc_get_mem_ctx(in)) == NULL) {
6244 talloc_free(ret); return NULL;
6246 ret->ctr2 = (struct srvsvc_NetShareCtr2 *)pytalloc_get_ptr(in);
6251 if (in == Py_None) {
6255 PY_CHECK_TYPE(&srvsvc_NetShareCtr501_Type, in, talloc_free(ret); return NULL;);
6256 if (talloc_reference(mem_ctx, pytalloc_get_mem_ctx(in)) == NULL) {
6258 talloc_free(ret); return NULL;
6260 ret->ctr501 = (struct srvsvc_NetShareCtr501 *)pytalloc_get_ptr(in);
6265 if (in == Py_None) {
6269 PY_CHECK_TYPE(&srvsvc_NetShareCtr502_Type, in, talloc_free(ret); return NULL;);
6270 if (talloc_reference(mem_ctx, pytalloc_get_mem_ctx(in)) == NULL) {
6272 talloc_free(ret); return NULL;
6274 ret->ctr502 = (struct srvsvc_NetShareCtr502 *)pytalloc_get_ptr(in);
6279 if (in == Py_None) {
6280 ret->ctr1004 = NULL;
6282 ret->ctr1004 = NULL;
6283 PY_CHECK_TYPE(&srvsvc_NetShareCtr1004_Type, in, talloc_free(ret); return NULL;);
6284 if (talloc_reference(mem_ctx, pytalloc_get_mem_ctx(in)) == NULL) {
6286 talloc_free(ret); return NULL;
6288 ret->ctr1004 = (struct srvsvc_NetShareCtr1004 *)pytalloc_get_ptr(in);
6293 if (in == Py_None) {
6294 ret->ctr1005 = NULL;
6296 ret->ctr1005 = NULL;
6297 PY_CHECK_TYPE(&srvsvc_NetShareCtr1005_Type, in, talloc_free(ret); return NULL;);
6298 if (talloc_reference(mem_ctx, pytalloc_get_mem_ctx(in)) == NULL) {
6300 talloc_free(ret); return NULL;
6302 ret->ctr1005 = (struct srvsvc_NetShareCtr1005 *)pytalloc_get_ptr(in);
6307 if (in == Py_None) {
6308 ret->ctr1006 = NULL;
6310 ret->ctr1006 = NULL;
6311 PY_CHECK_TYPE(&srvsvc_NetShareCtr1006_Type, in, talloc_free(ret); return NULL;);
6312 if (talloc_reference(mem_ctx, pytalloc_get_mem_ctx(in)) == NULL) {
6314 talloc_free(ret); return NULL;
6316 ret->ctr1006 = (struct srvsvc_NetShareCtr1006 *)pytalloc_get_ptr(in);
6321 if (in == Py_None) {
6322 ret->ctr1007 = NULL;
6324 ret->ctr1007 = NULL;
6325 PY_CHECK_TYPE(&srvsvc_NetShareCtr1007_Type, in, talloc_free(ret); return NULL;);
6326 if (talloc_reference(mem_ctx, pytalloc_get_mem_ctx(in)) == NULL) {
6328 talloc_free(ret); return NULL;
6330 ret->ctr1007 = (struct srvsvc_NetShareCtr1007 *)pytalloc_get_ptr(in);
6335 if (in == Py_None) {
6336 ret->ctr1501 = NULL;
6338 ret->ctr1501 = NULL;
6339 PY_CHECK_TYPE(&srvsvc_NetShareCtr1501_Type, in, talloc_free(ret); return NULL;);
6340 if (talloc_reference(mem_ctx, pytalloc_get_mem_ctx(in)) == NULL) {
6342 talloc_free(ret); return NULL;
6344 ret->ctr1501 = (struct srvsvc_NetShareCtr1501 *)pytalloc_get_ptr(in);
6357 static PyObject *py_srvsvc_NetShareInfoCtr_get_level(PyObject *obj, void *closure)
6359 struct srvsvc_NetShareInfoCtr *object = (struct srvsvc_NetShareInfoCtr *)pytalloc_get_ptr(obj);
6361 py_level = PyInt_FromLong(object->level);
6365 static int py_srvsvc_NetShareInfoCtr_set_level(PyObject *py_obj, PyObject *value, void *closure)
6367 struct srvsvc_NetShareInfoCtr *object = (struct srvsvc_NetShareInfoCtr *)pytalloc_get_ptr(py_obj);
6368 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
6369 object->level = PyInt_AsLong(value);
6373 static PyObject *py_srvsvc_NetShareInfoCtr_get_ctr(PyObject *obj, void *closure)
6375 struct srvsvc_NetShareInfoCtr *object = (struct srvsvc_NetShareInfoCtr *)pytalloc_get_ptr(obj);
6377 py_ctr = py_import_srvsvc_NetShareCtr(pytalloc_get_mem_ctx(obj), object->level, &object->ctr);
6378 if (py_ctr == NULL) {
6384 static int py_srvsvc_NetShareInfoCtr_set_ctr(PyObject *py_obj, PyObject *value, void *closure)
6386 struct srvsvc_NetShareInfoCtr *object = (struct srvsvc_NetShareInfoCtr *)pytalloc_get_ptr(py_obj);
6388 union srvsvc_NetShareCtr *ctr_switch_0;
6389 ctr_switch_0 = py_export_srvsvc_NetShareCtr(pytalloc_get_mem_ctx(py_obj), object->level, value);
6390 if (ctr_switch_0 == NULL) {
6393 object->ctr = *ctr_switch_0;
6398 static PyGetSetDef py_srvsvc_NetShareInfoCtr_getsetters[] = {
6399 { discard_const_p(char, "level"), py_srvsvc_NetShareInfoCtr_get_level, py_srvsvc_NetShareInfoCtr_set_level },
6400 { discard_const_p(char, "ctr"), py_srvsvc_NetShareInfoCtr_get_ctr, py_srvsvc_NetShareInfoCtr_set_ctr },
6404 static PyObject *py_srvsvc_NetShareInfoCtr_new(PyTypeObject *type, PyObject *args, PyObject *kwargs)
6406 return pytalloc_new(struct srvsvc_NetShareInfoCtr, type);
6410 static PyTypeObject srvsvc_NetShareInfoCtr_Type = {
6411 PyObject_HEAD_INIT(NULL) 0,
6412 .tp_name = "srvsvc.NetShareInfoCtr",
6413 .tp_getset = py_srvsvc_NetShareInfoCtr_getsetters,
6415 .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
6416 .tp_basicsize = sizeof(pytalloc_Object),
6417 .tp_new = py_srvsvc_NetShareInfoCtr_new,
6421 static PyObject *py_srvsvc_NetSrvInfo100_get_platform_id(PyObject *obj, void *closure)
6423 struct srvsvc_NetSrvInfo100 *object = (struct srvsvc_NetSrvInfo100 *)pytalloc_get_ptr(obj);
6424 PyObject *py_platform_id;
6425 py_platform_id = PyInt_FromLong(object->platform_id);
6426 return py_platform_id;
6429 static int py_srvsvc_NetSrvInfo100_set_platform_id(PyObject *py_obj, PyObject *value, void *closure)
6431 struct srvsvc_NetSrvInfo100 *object = (struct srvsvc_NetSrvInfo100 *)pytalloc_get_ptr(py_obj);
6432 if (PyLong_Check(value)) {
6433 object->platform_id = PyLong_AsLongLong(value);
6434 } else if (PyInt_Check(value)) {
6435 object->platform_id = PyInt_AsLong(value);
6437 PyErr_Format(PyExc_TypeError, "Expected type %s or %s",\
6438 PyInt_Type.tp_name, PyLong_Type.tp_name);
6444 static PyObject *py_srvsvc_NetSrvInfo100_get_server_name(PyObject *obj, void *closure)
6446 struct srvsvc_NetSrvInfo100 *object = (struct srvsvc_NetSrvInfo100 *)pytalloc_get_ptr(obj);
6447 PyObject *py_server_name;
6448 if (object->server_name == NULL) {
6449 py_server_name = Py_None;
6450 Py_INCREF(py_server_name);
6452 if (object->server_name == NULL) {
6453 py_server_name = Py_None;
6454 Py_INCREF(py_server_name);
6456 py_server_name = PyUnicode_Decode(object->server_name, strlen(object->server_name), "utf-8", "ignore");
6459 return py_server_name;
6462 static int py_srvsvc_NetSrvInfo100_set_server_name(PyObject *py_obj, PyObject *value, void *closure)
6464 struct srvsvc_NetSrvInfo100 *object = (struct srvsvc_NetSrvInfo100 *)pytalloc_get_ptr(py_obj);
6465 if (value == Py_None) {
6466 object->server_name = NULL;
6468 object->server_name = NULL;
6469 if (PyUnicode_Check(value)) {
6470 object->server_name = PyString_AS_STRING(PyUnicode_AsEncodedString(value, "utf-8", "ignore"));
6471 } else if (PyString_Check(value)) {
6472 object->server_name = PyString_AS_STRING(value);
6474 PyErr_Format(PyExc_TypeError, "Expected string or unicode object, got %s", Py_TYPE(value)->tp_name);
6481 static PyGetSetDef py_srvsvc_NetSrvInfo100_getsetters[] = {
6482 { discard_const_p(char, "platform_id"), py_srvsvc_NetSrvInfo100_get_platform_id, py_srvsvc_NetSrvInfo100_set_platform_id },
6483 { discard_const_p(char, "server_name"), py_srvsvc_NetSrvInfo100_get_server_name, py_srvsvc_NetSrvInfo100_set_server_name },
6487 static PyObject *py_srvsvc_NetSrvInfo100_new(PyTypeObject *type, PyObject *args, PyObject *kwargs)
6489 return pytalloc_new(struct srvsvc_NetSrvInfo100, type);
6492 static PyObject *py_srvsvc_NetSrvInfo100_ndr_pack(PyObject *py_obj)
6494 struct srvsvc_NetSrvInfo100 *object = (struct srvsvc_NetSrvInfo100 *)pytalloc_get_ptr(py_obj);
6496 enum ndr_err_code err;
6497 err = ndr_push_struct_blob(&blob, pytalloc_get_mem_ctx(py_obj), object, (ndr_push_flags_fn_t)ndr_push_srvsvc_NetSrvInfo100);
6498 if (err != NDR_ERR_SUCCESS) {
6499 PyErr_SetNdrError(err);
6503 return PyString_FromStringAndSize((char *)blob.data, blob.length);
6506 static PyObject *py_srvsvc_NetSrvInfo100_ndr_unpack(PyObject *py_obj, PyObject *args, PyObject *kwargs)
6508 struct srvsvc_NetSrvInfo100 *object = (struct srvsvc_NetSrvInfo100 *)pytalloc_get_ptr(py_obj);
6510 int blob_length = 0;
6511 enum ndr_err_code err;
6512 const char * const kwnames[] = { "data_blob", "allow_remaining", NULL };
6513 PyObject *allow_remaining_obj = NULL;
6514 bool allow_remaining = false;
6516 if (!PyArg_ParseTupleAndKeywords(args, kwargs, "s#|O:__ndr_unpack__",
6517 discard_const_p(char *, kwnames),
6518 &blob.data, &blob_length,
6519 &allow_remaining_obj)) {
6522 blob.length = blob_length;
6524 if (allow_remaining_obj && PyObject_IsTrue(allow_remaining_obj)) {
6525 allow_remaining = true;
6528 if (allow_remaining) {
6529 err = ndr_pull_struct_blob(&blob, pytalloc_get_mem_ctx(py_obj), object, (ndr_pull_flags_fn_t)ndr_pull_srvsvc_NetSrvInfo100);
6531 err = ndr_pull_struct_blob_all(&blob, pytalloc_get_mem_ctx(py_obj), object, (ndr_pull_flags_fn_t)ndr_pull_srvsvc_NetSrvInfo100);
6533 if (err != NDR_ERR_SUCCESS) {
6534 PyErr_SetNdrError(err);
6541 static PyObject *py_srvsvc_NetSrvInfo100_ndr_print(PyObject *py_obj)
6543 struct srvsvc_NetSrvInfo100 *object = (struct srvsvc_NetSrvInfo100 *)pytalloc_get_ptr(py_obj);
6547 retstr = ndr_print_struct_string(pytalloc_get_mem_ctx(py_obj), (ndr_print_fn_t)ndr_print_srvsvc_NetSrvInfo100, "srvsvc_NetSrvInfo100", object);
6548 ret = PyString_FromString(retstr);
6549 talloc_free(retstr);
6554 static PyMethodDef py_srvsvc_NetSrvInfo100_methods[] = {
6555 { "__ndr_pack__", (PyCFunction)py_srvsvc_NetSrvInfo100_ndr_pack, METH_NOARGS, "S.ndr_pack(object) -> blob\nNDR pack" },
6556 { "__ndr_unpack__", (PyCFunction)py_srvsvc_NetSrvInfo100_ndr_unpack, METH_VARARGS|METH_KEYWORDS, "S.ndr_unpack(class, blob, allow_remaining=False) -> None\nNDR unpack" },
6557 { "__ndr_print__", (PyCFunction)py_srvsvc_NetSrvInfo100_ndr_print, METH_VARARGS, "S.ndr_print(object) -> None\nNDR print" },
6558 { NULL, NULL, 0, NULL }
6562 static PyTypeObject srvsvc_NetSrvInfo100_Type = {
6563 PyObject_HEAD_INIT(NULL) 0,
6564 .tp_name = "srvsvc.NetSrvInfo100",
6565 .tp_getset = py_srvsvc_NetSrvInfo100_getsetters,
6566 .tp_methods = py_srvsvc_NetSrvInfo100_methods,
6567 .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
6568 .tp_basicsize = sizeof(pytalloc_Object),
6569 .tp_new = py_srvsvc_NetSrvInfo100_new,
6573 static PyObject *py_srvsvc_NetSrvInfo101_get_platform_id(PyObject *obj, void *closure)
6575 struct srvsvc_NetSrvInfo101 *object = (struct srvsvc_NetSrvInfo101 *)pytalloc_get_ptr(obj);
6576 PyObject *py_platform_id;
6577 py_platform_id = PyInt_FromLong(object->platform_id);
6578 return py_platform_id;
6581 static int py_srvsvc_NetSrvInfo101_set_platform_id(PyObject *py_obj, PyObject *value, void *closure)
6583 struct srvsvc_NetSrvInfo101 *object = (struct srvsvc_NetSrvInfo101 *)pytalloc_get_ptr(py_obj);
6584 if (PyLong_Check(value)) {
6585 object->platform_id = PyLong_AsLongLong(value);
6586 } else if (PyInt_Check(value)) {
6587 object->platform_id = PyInt_AsLong(value);
6589 PyErr_Format(PyExc_TypeError, "Expected type %s or %s",\
6590 PyInt_Type.tp_name, PyLong_Type.tp_name);
6596 static PyObject *py_srvsvc_NetSrvInfo101_get_server_name(PyObject *obj, void *closure)
6598 struct srvsvc_NetSrvInfo101 *object = (struct srvsvc_NetSrvInfo101 *)pytalloc_get_ptr(obj);
6599 PyObject *py_server_name;
6600 if (object->server_name == NULL) {
6601 py_server_name = Py_None;
6602 Py_INCREF(py_server_name);
6604 if (object->server_name == NULL) {
6605 py_server_name = Py_None;
6606 Py_INCREF(py_server_name);
6608 py_server_name = PyUnicode_Decode(object->server_name, strlen(object->server_name), "utf-8", "ignore");
6611 return py_server_name;
6614 static int py_srvsvc_NetSrvInfo101_set_server_name(PyObject *py_obj, PyObject *value, void *closure)
6616 struct srvsvc_NetSrvInfo101 *object = (struct srvsvc_NetSrvInfo101 *)pytalloc_get_ptr(py_obj);
6617 if (value == Py_None) {
6618 object->server_name = NULL;
6620 object->server_name = NULL;
6621 if (PyUnicode_Check(value)) {
6622 object->server_name = PyString_AS_STRING(PyUnicode_AsEncodedString(value, "utf-8", "ignore"));
6623 } else if (PyString_Check(value)) {
6624 object->server_name = PyString_AS_STRING(value);
6626 PyErr_Format(PyExc_TypeError, "Expected string or unicode object, got %s", Py_TYPE(value)->tp_name);
6633 static PyObject *py_srvsvc_NetSrvInfo101_get_version_major(PyObject *obj, void *closure)
6635 struct srvsvc_NetSrvInfo101 *object = (struct srvsvc_NetSrvInfo101 *)pytalloc_get_ptr(obj);
6636 PyObject *py_version_major;
6637 py_version_major = PyInt_FromLong(object->version_major);
6638 return py_version_major;
6641 static int py_srvsvc_NetSrvInfo101_set_version_major(PyObject *py_obj, PyObject *value, void *closure)
6643 struct srvsvc_NetSrvInfo101 *object = (struct srvsvc_NetSrvInfo101 *)pytalloc_get_ptr(py_obj);
6644 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
6645 object->version_major = PyInt_AsLong(value);
6649 static PyObject *py_srvsvc_NetSrvInfo101_get_version_minor(PyObject *obj, void *closure)
6651 struct srvsvc_NetSrvInfo101 *object = (struct srvsvc_NetSrvInfo101 *)pytalloc_get_ptr(obj);
6652 PyObject *py_version_minor;
6653 py_version_minor = PyInt_FromLong(object->version_minor);
6654 return py_version_minor;
6657 static int py_srvsvc_NetSrvInfo101_set_version_minor(PyObject *py_obj, PyObject *value, void *closure)
6659 struct srvsvc_NetSrvInfo101 *object = (struct srvsvc_NetSrvInfo101 *)pytalloc_get_ptr(py_obj);
6660 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
6661 object->version_minor = PyInt_AsLong(value);
6665 static PyObject *py_srvsvc_NetSrvInfo101_get_server_type(PyObject *obj, void *closure)
6667 struct srvsvc_NetSrvInfo101 *object = (struct srvsvc_NetSrvInfo101 *)pytalloc_get_ptr(obj);
6668 PyObject *py_server_type;
6669 py_server_type = PyInt_FromLong(object->server_type);
6670 return py_server_type;
6673 static int py_srvsvc_NetSrvInfo101_set_server_type(PyObject *py_obj, PyObject *value, void *closure)
6675 struct srvsvc_NetSrvInfo101 *object = (struct srvsvc_NetSrvInfo101 *)pytalloc_get_ptr(py_obj);
6676 if (PyLong_Check(value)) {
6677 object->server_type = PyLong_AsLongLong(value);
6678 } else if (PyInt_Check(value)) {
6679 object->server_type = PyInt_AsLong(value);
6681 PyErr_Format(PyExc_TypeError, "Expected type %s or %s",\
6682 PyInt_Type.tp_name, PyLong_Type.tp_name);
6688 static PyObject *py_srvsvc_NetSrvInfo101_get_comment(PyObject *obj, void *closure)
6690 struct srvsvc_NetSrvInfo101 *object = (struct srvsvc_NetSrvInfo101 *)pytalloc_get_ptr(obj);
6691 PyObject *py_comment;
6692 if (object->comment == NULL) {
6693 py_comment = Py_None;
6694 Py_INCREF(py_comment);
6696 if (object->comment == NULL) {
6697 py_comment = Py_None;
6698 Py_INCREF(py_comment);
6700 py_comment = PyUnicode_Decode(object->comment, strlen(object->comment), "utf-8", "ignore");
6706 static int py_srvsvc_NetSrvInfo101_set_comment(PyObject *py_obj, PyObject *value, void *closure)
6708 struct srvsvc_NetSrvInfo101 *object = (struct srvsvc_NetSrvInfo101 *)pytalloc_get_ptr(py_obj);
6709 if (value == Py_None) {
6710 object->comment = NULL;
6712 object->comment = NULL;
6713 if (PyUnicode_Check(value)) {
6714 object->comment = PyString_AS_STRING(PyUnicode_AsEncodedString(value, "utf-8", "ignore"));
6715 } else if (PyString_Check(value)) {
6716 object->comment = PyString_AS_STRING(value);
6718 PyErr_Format(PyExc_TypeError, "Expected string or unicode object, got %s", Py_TYPE(value)->tp_name);
6725 static PyGetSetDef py_srvsvc_NetSrvInfo101_getsetters[] = {
6726 { discard_const_p(char, "platform_id"), py_srvsvc_NetSrvInfo101_get_platform_id, py_srvsvc_NetSrvInfo101_set_platform_id },
6727 { discard_const_p(char, "server_name"), py_srvsvc_NetSrvInfo101_get_server_name, py_srvsvc_NetSrvInfo101_set_server_name },
6728 { discard_const_p(char, "version_major"), py_srvsvc_NetSrvInfo101_get_version_major, py_srvsvc_NetSrvInfo101_set_version_major },
6729 { discard_const_p(char, "version_minor"), py_srvsvc_NetSrvInfo101_get_version_minor, py_srvsvc_NetSrvInfo101_set_version_minor },
6730 { discard_const_p(char, "server_type"), py_srvsvc_NetSrvInfo101_get_server_type, py_srvsvc_NetSrvInfo101_set_server_type },
6731 { discard_const_p(char, "comment"), py_srvsvc_NetSrvInfo101_get_comment, py_srvsvc_NetSrvInfo101_set_comment },
6735 static PyObject *py_srvsvc_NetSrvInfo101_new(PyTypeObject *type, PyObject *args, PyObject *kwargs)
6737 return pytalloc_new(struct srvsvc_NetSrvInfo101, type);
6740 static PyObject *py_srvsvc_NetSrvInfo101_ndr_pack(PyObject *py_obj)
6742 struct srvsvc_NetSrvInfo101 *object = (struct srvsvc_NetSrvInfo101 *)pytalloc_get_ptr(py_obj);
6744 enum ndr_err_code err;
6745 err = ndr_push_struct_blob(&blob, pytalloc_get_mem_ctx(py_obj), object, (ndr_push_flags_fn_t)ndr_push_srvsvc_NetSrvInfo101);
6746 if (err != NDR_ERR_SUCCESS) {
6747 PyErr_SetNdrError(err);
6751 return PyString_FromStringAndSize((char *)blob.data, blob.length);
6754 static PyObject *py_srvsvc_NetSrvInfo101_ndr_unpack(PyObject *py_obj, PyObject *args, PyObject *kwargs)
6756 struct srvsvc_NetSrvInfo101 *object = (struct srvsvc_NetSrvInfo101 *)pytalloc_get_ptr(py_obj);
6758 int blob_length = 0;
6759 enum ndr_err_code err;
6760 const char * const kwnames[] = { "data_blob", "allow_remaining", NULL };
6761 PyObject *allow_remaining_obj = NULL;
6762 bool allow_remaining = false;
6764 if (!PyArg_ParseTupleAndKeywords(args, kwargs, "s#|O:__ndr_unpack__",
6765 discard_const_p(char *, kwnames),
6766 &blob.data, &blob_length,
6767 &allow_remaining_obj)) {
6770 blob.length = blob_length;
6772 if (allow_remaining_obj && PyObject_IsTrue(allow_remaining_obj)) {
6773 allow_remaining = true;
6776 if (allow_remaining) {
6777 err = ndr_pull_struct_blob(&blob, pytalloc_get_mem_ctx(py_obj), object, (ndr_pull_flags_fn_t)ndr_pull_srvsvc_NetSrvInfo101);
6779 err = ndr_pull_struct_blob_all(&blob, pytalloc_get_mem_ctx(py_obj), object, (ndr_pull_flags_fn_t)ndr_pull_srvsvc_NetSrvInfo101);
6781 if (err != NDR_ERR_SUCCESS) {
6782 PyErr_SetNdrError(err);
6789 static PyObject *py_srvsvc_NetSrvInfo101_ndr_print(PyObject *py_obj)
6791 struct srvsvc_NetSrvInfo101 *object = (struct srvsvc_NetSrvInfo101 *)pytalloc_get_ptr(py_obj);
6795 retstr = ndr_print_struct_string(pytalloc_get_mem_ctx(py_obj), (ndr_print_fn_t)ndr_print_srvsvc_NetSrvInfo101, "srvsvc_NetSrvInfo101", object);
6796 ret = PyString_FromString(retstr);
6797 talloc_free(retstr);
6802 static PyMethodDef py_srvsvc_NetSrvInfo101_methods[] = {
6803 { "__ndr_pack__", (PyCFunction)py_srvsvc_NetSrvInfo101_ndr_pack, METH_NOARGS, "S.ndr_pack(object) -> blob\nNDR pack" },
6804 { "__ndr_unpack__", (PyCFunction)py_srvsvc_NetSrvInfo101_ndr_unpack, METH_VARARGS|METH_KEYWORDS, "S.ndr_unpack(class, blob, allow_remaining=False) -> None\nNDR unpack" },
6805 { "__ndr_print__", (PyCFunction)py_srvsvc_NetSrvInfo101_ndr_print, METH_VARARGS, "S.ndr_print(object) -> None\nNDR print" },
6806 { NULL, NULL, 0, NULL }
6810 static PyTypeObject srvsvc_NetSrvInfo101_Type = {
6811 PyObject_HEAD_INIT(NULL) 0,
6812 .tp_name = "srvsvc.NetSrvInfo101",
6813 .tp_getset = py_srvsvc_NetSrvInfo101_getsetters,
6814 .tp_methods = py_srvsvc_NetSrvInfo101_methods,
6815 .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
6816 .tp_basicsize = sizeof(pytalloc_Object),
6817 .tp_new = py_srvsvc_NetSrvInfo101_new,
6821 static PyObject *py_srvsvc_NetSrvInfo102_get_platform_id(PyObject *obj, void *closure)
6823 struct srvsvc_NetSrvInfo102 *object = (struct srvsvc_NetSrvInfo102 *)pytalloc_get_ptr(obj);
6824 PyObject *py_platform_id;
6825 py_platform_id = PyInt_FromLong(object->platform_id);
6826 return py_platform_id;
6829 static int py_srvsvc_NetSrvInfo102_set_platform_id(PyObject *py_obj, PyObject *value, void *closure)
6831 struct srvsvc_NetSrvInfo102 *object = (struct srvsvc_NetSrvInfo102 *)pytalloc_get_ptr(py_obj);
6832 if (PyLong_Check(value)) {
6833 object->platform_id = PyLong_AsLongLong(value);
6834 } else if (PyInt_Check(value)) {
6835 object->platform_id = PyInt_AsLong(value);
6837 PyErr_Format(PyExc_TypeError, "Expected type %s or %s",\
6838 PyInt_Type.tp_name, PyLong_Type.tp_name);
6844 static PyObject *py_srvsvc_NetSrvInfo102_get_server_name(PyObject *obj, void *closure)
6846 struct srvsvc_NetSrvInfo102 *object = (struct srvsvc_NetSrvInfo102 *)pytalloc_get_ptr(obj);
6847 PyObject *py_server_name;
6848 if (object->server_name == NULL) {
6849 py_server_name = Py_None;
6850 Py_INCREF(py_server_name);
6852 if (object->server_name == NULL) {
6853 py_server_name = Py_None;
6854 Py_INCREF(py_server_name);
6856 py_server_name = PyUnicode_Decode(object->server_name, strlen(object->server_name), "utf-8", "ignore");
6859 return py_server_name;
6862 static int py_srvsvc_NetSrvInfo102_set_server_name(PyObject *py_obj, PyObject *value, void *closure)
6864 struct srvsvc_NetSrvInfo102 *object = (struct srvsvc_NetSrvInfo102 *)pytalloc_get_ptr(py_obj);
6865 if (value == Py_None) {
6866 object->server_name = NULL;
6868 object->server_name = NULL;
6869 if (PyUnicode_Check(value)) {
6870 object->server_name = PyString_AS_STRING(PyUnicode_AsEncodedString(value, "utf-8", "ignore"));
6871 } else if (PyString_Check(value)) {
6872 object->server_name = PyString_AS_STRING(value);
6874 PyErr_Format(PyExc_TypeError, "Expected string or unicode object, got %s", Py_TYPE(value)->tp_name);
6881 static PyObject *py_srvsvc_NetSrvInfo102_get_version_major(PyObject *obj, void *closure)
6883 struct srvsvc_NetSrvInfo102 *object = (struct srvsvc_NetSrvInfo102 *)pytalloc_get_ptr(obj);
6884 PyObject *py_version_major;
6885 py_version_major = PyInt_FromLong(object->version_major);
6886 return py_version_major;
6889 static int py_srvsvc_NetSrvInfo102_set_version_major(PyObject *py_obj, PyObject *value, void *closure)
6891 struct srvsvc_NetSrvInfo102 *object = (struct srvsvc_NetSrvInfo102 *)pytalloc_get_ptr(py_obj);
6892 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
6893 object->version_major = PyInt_AsLong(value);
6897 static PyObject *py_srvsvc_NetSrvInfo102_get_version_minor(PyObject *obj, void *closure)
6899 struct srvsvc_NetSrvInfo102 *object = (struct srvsvc_NetSrvInfo102 *)pytalloc_get_ptr(obj);
6900 PyObject *py_version_minor;
6901 py_version_minor = PyInt_FromLong(object->version_minor);
6902 return py_version_minor;
6905 static int py_srvsvc_NetSrvInfo102_set_version_minor(PyObject *py_obj, PyObject *value, void *closure)
6907 struct srvsvc_NetSrvInfo102 *object = (struct srvsvc_NetSrvInfo102 *)pytalloc_get_ptr(py_obj);
6908 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
6909 object->version_minor = PyInt_AsLong(value);
6913 static PyObject *py_srvsvc_NetSrvInfo102_get_server_type(PyObject *obj, void *closure)
6915 struct srvsvc_NetSrvInfo102 *object = (struct srvsvc_NetSrvInfo102 *)pytalloc_get_ptr(obj);
6916 PyObject *py_server_type;
6917 py_server_type = PyInt_FromLong(object->server_type);
6918 return py_server_type;
6921 static int py_srvsvc_NetSrvInfo102_set_server_type(PyObject *py_obj, PyObject *value, void *closure)
6923 struct srvsvc_NetSrvInfo102 *object = (struct srvsvc_NetSrvInfo102 *)pytalloc_get_ptr(py_obj);
6924 if (PyLong_Check(value)) {
6925 object->server_type = PyLong_AsLongLong(value);
6926 } else if (PyInt_Check(value)) {
6927 object->server_type = PyInt_AsLong(value);
6929 PyErr_Format(PyExc_TypeError, "Expected type %s or %s",\
6930 PyInt_Type.tp_name, PyLong_Type.tp_name);
6936 static PyObject *py_srvsvc_NetSrvInfo102_get_comment(PyObject *obj, void *closure)
6938 struct srvsvc_NetSrvInfo102 *object = (struct srvsvc_NetSrvInfo102 *)pytalloc_get_ptr(obj);
6939 PyObject *py_comment;
6940 if (object->comment == NULL) {
6941 py_comment = Py_None;
6942 Py_INCREF(py_comment);
6944 if (object->comment == NULL) {
6945 py_comment = Py_None;
6946 Py_INCREF(py_comment);
6948 py_comment = PyUnicode_Decode(object->comment, strlen(object->comment), "utf-8", "ignore");
6954 static int py_srvsvc_NetSrvInfo102_set_comment(PyObject *py_obj, PyObject *value, void *closure)
6956 struct srvsvc_NetSrvInfo102 *object = (struct srvsvc_NetSrvInfo102 *)pytalloc_get_ptr(py_obj);
6957 if (value == Py_None) {
6958 object->comment = NULL;
6960 object->comment = NULL;
6961 if (PyUnicode_Check(value)) {
6962 object->comment = PyString_AS_STRING(PyUnicode_AsEncodedString(value, "utf-8", "ignore"));
6963 } else if (PyString_Check(value)) {
6964 object->comment = PyString_AS_STRING(value);
6966 PyErr_Format(PyExc_TypeError, "Expected string or unicode object, got %s", Py_TYPE(value)->tp_name);
6973 static PyObject *py_srvsvc_NetSrvInfo102_get_users(PyObject *obj, void *closure)
6975 struct srvsvc_NetSrvInfo102 *object = (struct srvsvc_NetSrvInfo102 *)pytalloc_get_ptr(obj);
6977 py_users = PyInt_FromLong(object->users);
6981 static int py_srvsvc_NetSrvInfo102_set_users(PyObject *py_obj, PyObject *value, void *closure)
6983 struct srvsvc_NetSrvInfo102 *object = (struct srvsvc_NetSrvInfo102 *)pytalloc_get_ptr(py_obj);
6984 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
6985 object->users = PyInt_AsLong(value);
6989 static PyObject *py_srvsvc_NetSrvInfo102_get_disc(PyObject *obj, void *closure)
6991 struct srvsvc_NetSrvInfo102 *object = (struct srvsvc_NetSrvInfo102 *)pytalloc_get_ptr(obj);
6993 py_disc = PyInt_FromLong(object->disc);
6997 static int py_srvsvc_NetSrvInfo102_set_disc(PyObject *py_obj, PyObject *value, void *closure)
6999 struct srvsvc_NetSrvInfo102 *object = (struct srvsvc_NetSrvInfo102 *)pytalloc_get_ptr(py_obj);
7000 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
7001 object->disc = PyInt_AsLong(value);
7005 static PyObject *py_srvsvc_NetSrvInfo102_get_hidden(PyObject *obj, void *closure)
7007 struct srvsvc_NetSrvInfo102 *object = (struct srvsvc_NetSrvInfo102 *)pytalloc_get_ptr(obj);
7008 PyObject *py_hidden;
7009 py_hidden = PyInt_FromLong(object->hidden);
7013 static int py_srvsvc_NetSrvInfo102_set_hidden(PyObject *py_obj, PyObject *value, void *closure)
7015 struct srvsvc_NetSrvInfo102 *object = (struct srvsvc_NetSrvInfo102 *)pytalloc_get_ptr(py_obj);
7016 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
7017 object->hidden = PyInt_AsLong(value);
7021 static PyObject *py_srvsvc_NetSrvInfo102_get_announce(PyObject *obj, void *closure)
7023 struct srvsvc_NetSrvInfo102 *object = (struct srvsvc_NetSrvInfo102 *)pytalloc_get_ptr(obj);
7024 PyObject *py_announce;
7025 py_announce = PyInt_FromLong(object->announce);
7029 static int py_srvsvc_NetSrvInfo102_set_announce(PyObject *py_obj, PyObject *value, void *closure)
7031 struct srvsvc_NetSrvInfo102 *object = (struct srvsvc_NetSrvInfo102 *)pytalloc_get_ptr(py_obj);
7032 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
7033 object->announce = PyInt_AsLong(value);
7037 static PyObject *py_srvsvc_NetSrvInfo102_get_anndelta(PyObject *obj, void *closure)
7039 struct srvsvc_NetSrvInfo102 *object = (struct srvsvc_NetSrvInfo102 *)pytalloc_get_ptr(obj);
7040 PyObject *py_anndelta;
7041 py_anndelta = PyInt_FromLong(object->anndelta);
7045 static int py_srvsvc_NetSrvInfo102_set_anndelta(PyObject *py_obj, PyObject *value, void *closure)
7047 struct srvsvc_NetSrvInfo102 *object = (struct srvsvc_NetSrvInfo102 *)pytalloc_get_ptr(py_obj);
7048 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
7049 object->anndelta = PyInt_AsLong(value);
7053 static PyObject *py_srvsvc_NetSrvInfo102_get_licenses(PyObject *obj, void *closure)
7055 struct srvsvc_NetSrvInfo102 *object = (struct srvsvc_NetSrvInfo102 *)pytalloc_get_ptr(obj);
7056 PyObject *py_licenses;
7057 py_licenses = PyInt_FromLong(object->licenses);
7061 static int py_srvsvc_NetSrvInfo102_set_licenses(PyObject *py_obj, PyObject *value, void *closure)
7063 struct srvsvc_NetSrvInfo102 *object = (struct srvsvc_NetSrvInfo102 *)pytalloc_get_ptr(py_obj);
7064 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
7065 object->licenses = PyInt_AsLong(value);
7069 static PyObject *py_srvsvc_NetSrvInfo102_get_userpath(PyObject *obj, void *closure)
7071 struct srvsvc_NetSrvInfo102 *object = (struct srvsvc_NetSrvInfo102 *)pytalloc_get_ptr(obj);
7072 PyObject *py_userpath;
7073 if (object->userpath == NULL) {
7074 py_userpath = Py_None;
7075 Py_INCREF(py_userpath);
7077 if (object->userpath == NULL) {
7078 py_userpath = Py_None;
7079 Py_INCREF(py_userpath);
7081 py_userpath = PyUnicode_Decode(object->userpath, strlen(object->userpath), "utf-8", "ignore");
7087 static int py_srvsvc_NetSrvInfo102_set_userpath(PyObject *py_obj, PyObject *value, void *closure)
7089 struct srvsvc_NetSrvInfo102 *object = (struct srvsvc_NetSrvInfo102 *)pytalloc_get_ptr(py_obj);
7090 if (value == Py_None) {
7091 object->userpath = NULL;
7093 object->userpath = NULL;
7094 if (PyUnicode_Check(value)) {
7095 object->userpath = PyString_AS_STRING(PyUnicode_AsEncodedString(value, "utf-8", "ignore"));
7096 } else if (PyString_Check(value)) {
7097 object->userpath = PyString_AS_STRING(value);
7099 PyErr_Format(PyExc_TypeError, "Expected string or unicode object, got %s", Py_TYPE(value)->tp_name);
7106 static PyGetSetDef py_srvsvc_NetSrvInfo102_getsetters[] = {
7107 { discard_const_p(char, "platform_id"), py_srvsvc_NetSrvInfo102_get_platform_id, py_srvsvc_NetSrvInfo102_set_platform_id },
7108 { discard_const_p(char, "server_name"), py_srvsvc_NetSrvInfo102_get_server_name, py_srvsvc_NetSrvInfo102_set_server_name },
7109 { discard_const_p(char, "version_major"), py_srvsvc_NetSrvInfo102_get_version_major, py_srvsvc_NetSrvInfo102_set_version_major },
7110 { discard_const_p(char, "version_minor"), py_srvsvc_NetSrvInfo102_get_version_minor, py_srvsvc_NetSrvInfo102_set_version_minor },
7111 { discard_const_p(char, "server_type"), py_srvsvc_NetSrvInfo102_get_server_type, py_srvsvc_NetSrvInfo102_set_server_type },
7112 { discard_const_p(char, "comment"), py_srvsvc_NetSrvInfo102_get_comment, py_srvsvc_NetSrvInfo102_set_comment },
7113 { discard_const_p(char, "users"), py_srvsvc_NetSrvInfo102_get_users, py_srvsvc_NetSrvInfo102_set_users },
7114 { discard_const_p(char, "disc"), py_srvsvc_NetSrvInfo102_get_disc, py_srvsvc_NetSrvInfo102_set_disc },
7115 { discard_const_p(char, "hidden"), py_srvsvc_NetSrvInfo102_get_hidden, py_srvsvc_NetSrvInfo102_set_hidden },
7116 { discard_const_p(char, "announce"), py_srvsvc_NetSrvInfo102_get_announce, py_srvsvc_NetSrvInfo102_set_announce },
7117 { discard_const_p(char, "anndelta"), py_srvsvc_NetSrvInfo102_get_anndelta, py_srvsvc_NetSrvInfo102_set_anndelta },
7118 { discard_const_p(char, "licenses"), py_srvsvc_NetSrvInfo102_get_licenses, py_srvsvc_NetSrvInfo102_set_licenses },
7119 { discard_const_p(char, "userpath"), py_srvsvc_NetSrvInfo102_get_userpath, py_srvsvc_NetSrvInfo102_set_userpath },
7123 static PyObject *py_srvsvc_NetSrvInfo102_new(PyTypeObject *type, PyObject *args, PyObject *kwargs)
7125 return pytalloc_new(struct srvsvc_NetSrvInfo102, type);
7129 static PyTypeObject srvsvc_NetSrvInfo102_Type = {
7130 PyObject_HEAD_INIT(NULL) 0,
7131 .tp_name = "srvsvc.NetSrvInfo102",
7132 .tp_getset = py_srvsvc_NetSrvInfo102_getsetters,
7134 .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
7135 .tp_basicsize = sizeof(pytalloc_Object),
7136 .tp_new = py_srvsvc_NetSrvInfo102_new,
7140 static PyObject *py_srvsvc_NetSrvInfo402_get_ulist_mtime(PyObject *obj, void *closure)
7142 struct srvsvc_NetSrvInfo402 *object = (struct srvsvc_NetSrvInfo402 *)pytalloc_get_ptr(obj);
7143 PyObject *py_ulist_mtime;
7144 py_ulist_mtime = PyInt_FromLong(object->ulist_mtime);
7145 return py_ulist_mtime;
7148 static int py_srvsvc_NetSrvInfo402_set_ulist_mtime(PyObject *py_obj, PyObject *value, void *closure)
7150 struct srvsvc_NetSrvInfo402 *object = (struct srvsvc_NetSrvInfo402 *)pytalloc_get_ptr(py_obj);
7151 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
7152 object->ulist_mtime = PyInt_AsLong(value);
7156 static PyObject *py_srvsvc_NetSrvInfo402_get_glist_mtime(PyObject *obj, void *closure)
7158 struct srvsvc_NetSrvInfo402 *object = (struct srvsvc_NetSrvInfo402 *)pytalloc_get_ptr(obj);
7159 PyObject *py_glist_mtime;
7160 py_glist_mtime = PyInt_FromLong(object->glist_mtime);
7161 return py_glist_mtime;
7164 static int py_srvsvc_NetSrvInfo402_set_glist_mtime(PyObject *py_obj, PyObject *value, void *closure)
7166 struct srvsvc_NetSrvInfo402 *object = (struct srvsvc_NetSrvInfo402 *)pytalloc_get_ptr(py_obj);
7167 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
7168 object->glist_mtime = PyInt_AsLong(value);
7172 static PyObject *py_srvsvc_NetSrvInfo402_get_alist_mtime(PyObject *obj, void *closure)
7174 struct srvsvc_NetSrvInfo402 *object = (struct srvsvc_NetSrvInfo402 *)pytalloc_get_ptr(obj);
7175 PyObject *py_alist_mtime;
7176 py_alist_mtime = PyInt_FromLong(object->alist_mtime);
7177 return py_alist_mtime;
7180 static int py_srvsvc_NetSrvInfo402_set_alist_mtime(PyObject *py_obj, PyObject *value, void *closure)
7182 struct srvsvc_NetSrvInfo402 *object = (struct srvsvc_NetSrvInfo402 *)pytalloc_get_ptr(py_obj);
7183 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
7184 object->alist_mtime = PyInt_AsLong(value);
7188 static PyObject *py_srvsvc_NetSrvInfo402_get_alerts(PyObject *obj, void *closure)
7190 struct srvsvc_NetSrvInfo402 *object = (struct srvsvc_NetSrvInfo402 *)pytalloc_get_ptr(obj);
7191 PyObject *py_alerts;
7192 if (object->alerts == NULL) {
7193 py_alerts = Py_None;
7194 Py_INCREF(py_alerts);
7196 if (object->alerts == NULL) {
7197 py_alerts = Py_None;
7198 Py_INCREF(py_alerts);
7200 py_alerts = PyUnicode_Decode(object->alerts, strlen(object->alerts), "utf-8", "ignore");
7206 static int py_srvsvc_NetSrvInfo402_set_alerts(PyObject *py_obj, PyObject *value, void *closure)
7208 struct srvsvc_NetSrvInfo402 *object = (struct srvsvc_NetSrvInfo402 *)pytalloc_get_ptr(py_obj);
7209 if (value == Py_None) {
7210 object->alerts = NULL;
7212 object->alerts = NULL;
7213 if (PyUnicode_Check(value)) {
7214 object->alerts = PyString_AS_STRING(PyUnicode_AsEncodedString(value, "utf-8", "ignore"));
7215 } else if (PyString_Check(value)) {
7216 object->alerts = PyString_AS_STRING(value);
7218 PyErr_Format(PyExc_TypeError, "Expected string or unicode object, got %s", Py_TYPE(value)->tp_name);
7225 static PyObject *py_srvsvc_NetSrvInfo402_get_security(PyObject *obj, void *closure)
7227 struct srvsvc_NetSrvInfo402 *object = (struct srvsvc_NetSrvInfo402 *)pytalloc_get_ptr(obj);
7228 PyObject *py_security;
7229 py_security = PyInt_FromLong(object->security);
7233 static int py_srvsvc_NetSrvInfo402_set_security(PyObject *py_obj, PyObject *value, void *closure)
7235 struct srvsvc_NetSrvInfo402 *object = (struct srvsvc_NetSrvInfo402 *)pytalloc_get_ptr(py_obj);
7236 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
7237 object->security = PyInt_AsLong(value);
7241 static PyObject *py_srvsvc_NetSrvInfo402_get_numadmin(PyObject *obj, void *closure)
7243 struct srvsvc_NetSrvInfo402 *object = (struct srvsvc_NetSrvInfo402 *)pytalloc_get_ptr(obj);
7244 PyObject *py_numadmin;
7245 py_numadmin = PyInt_FromLong(object->numadmin);
7249 static int py_srvsvc_NetSrvInfo402_set_numadmin(PyObject *py_obj, PyObject *value, void *closure)
7251 struct srvsvc_NetSrvInfo402 *object = (struct srvsvc_NetSrvInfo402 *)pytalloc_get_ptr(py_obj);
7252 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
7253 object->numadmin = PyInt_AsLong(value);
7257 static PyObject *py_srvsvc_NetSrvInfo402_get_lanmask(PyObject *obj, void *closure)
7259 struct srvsvc_NetSrvInfo402 *object = (struct srvsvc_NetSrvInfo402 *)pytalloc_get_ptr(obj);
7260 PyObject *py_lanmask;
7261 py_lanmask = PyInt_FromLong(object->lanmask);
7265 static int py_srvsvc_NetSrvInfo402_set_lanmask(PyObject *py_obj, PyObject *value, void *closure)
7267 struct srvsvc_NetSrvInfo402 *object = (struct srvsvc_NetSrvInfo402 *)pytalloc_get_ptr(py_obj);
7268 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
7269 object->lanmask = PyInt_AsLong(value);
7273 static PyObject *py_srvsvc_NetSrvInfo402_get_guestaccount(PyObject *obj, void *closure)
7275 struct srvsvc_NetSrvInfo402 *object = (struct srvsvc_NetSrvInfo402 *)pytalloc_get_ptr(obj);
7276 PyObject *py_guestaccount;
7277 if (object->guestaccount == NULL) {
7278 py_guestaccount = Py_None;
7279 Py_INCREF(py_guestaccount);
7281 if (object->guestaccount == NULL) {
7282 py_guestaccount = Py_None;
7283 Py_INCREF(py_guestaccount);
7285 py_guestaccount = PyUnicode_Decode(object->guestaccount, strlen(object->guestaccount), "utf-8", "ignore");
7288 return py_guestaccount;
7291 static int py_srvsvc_NetSrvInfo402_set_guestaccount(PyObject *py_obj, PyObject *value, void *closure)
7293 struct srvsvc_NetSrvInfo402 *object = (struct srvsvc_NetSrvInfo402 *)pytalloc_get_ptr(py_obj);
7294 if (value == Py_None) {
7295 object->guestaccount = NULL;
7297 object->guestaccount = NULL;
7298 if (PyUnicode_Check(value)) {
7299 object->guestaccount = PyString_AS_STRING(PyUnicode_AsEncodedString(value, "utf-8", "ignore"));
7300 } else if (PyString_Check(value)) {
7301 object->guestaccount = PyString_AS_STRING(value);
7303 PyErr_Format(PyExc_TypeError, "Expected string or unicode object, got %s", Py_TYPE(value)->tp_name);
7310 static PyObject *py_srvsvc_NetSrvInfo402_get_chdevs(PyObject *obj, void *closure)
7312 struct srvsvc_NetSrvInfo402 *object = (struct srvsvc_NetSrvInfo402 *)pytalloc_get_ptr(obj);
7313 PyObject *py_chdevs;
7314 py_chdevs = PyInt_FromLong(object->chdevs);
7318 static int py_srvsvc_NetSrvInfo402_set_chdevs(PyObject *py_obj, PyObject *value, void *closure)
7320 struct srvsvc_NetSrvInfo402 *object = (struct srvsvc_NetSrvInfo402 *)pytalloc_get_ptr(py_obj);
7321 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
7322 object->chdevs = PyInt_AsLong(value);
7326 static PyObject *py_srvsvc_NetSrvInfo402_get_chdevqs(PyObject *obj, void *closure)
7328 struct srvsvc_NetSrvInfo402 *object = (struct srvsvc_NetSrvInfo402 *)pytalloc_get_ptr(obj);
7329 PyObject *py_chdevqs;
7330 py_chdevqs = PyInt_FromLong(object->chdevqs);
7334 static int py_srvsvc_NetSrvInfo402_set_chdevqs(PyObject *py_obj, PyObject *value, void *closure)
7336 struct srvsvc_NetSrvInfo402 *object = (struct srvsvc_NetSrvInfo402 *)pytalloc_get_ptr(py_obj);
7337 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
7338 object->chdevqs = PyInt_AsLong(value);
7342 static PyObject *py_srvsvc_NetSrvInfo402_get_chdevjobs(PyObject *obj, void *closure)
7344 struct srvsvc_NetSrvInfo402 *object = (struct srvsvc_NetSrvInfo402 *)pytalloc_get_ptr(obj);
7345 PyObject *py_chdevjobs;
7346 py_chdevjobs = PyInt_FromLong(object->chdevjobs);
7347 return py_chdevjobs;
7350 static int py_srvsvc_NetSrvInfo402_set_chdevjobs(PyObject *py_obj, PyObject *value, void *closure)
7352 struct srvsvc_NetSrvInfo402 *object = (struct srvsvc_NetSrvInfo402 *)pytalloc_get_ptr(py_obj);
7353 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
7354 object->chdevjobs = PyInt_AsLong(value);
7358 static PyObject *py_srvsvc_NetSrvInfo402_get_connections(PyObject *obj, void *closure)
7360 struct srvsvc_NetSrvInfo402 *object = (struct srvsvc_NetSrvInfo402 *)pytalloc_get_ptr(obj);
7361 PyObject *py_connections;
7362 py_connections = PyInt_FromLong(object->connections);
7363 return py_connections;
7366 static int py_srvsvc_NetSrvInfo402_set_connections(PyObject *py_obj, PyObject *value, void *closure)
7368 struct srvsvc_NetSrvInfo402 *object = (struct srvsvc_NetSrvInfo402 *)pytalloc_get_ptr(py_obj);
7369 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
7370 object->connections = PyInt_AsLong(value);
7374 static PyObject *py_srvsvc_NetSrvInfo402_get_shares(PyObject *obj, void *closure)
7376 struct srvsvc_NetSrvInfo402 *object = (struct srvsvc_NetSrvInfo402 *)pytalloc_get_ptr(obj);
7377 PyObject *py_shares;
7378 py_shares = PyInt_FromLong(object->shares);
7382 static int py_srvsvc_NetSrvInfo402_set_shares(PyObject *py_obj, PyObject *value, void *closure)
7384 struct srvsvc_NetSrvInfo402 *object = (struct srvsvc_NetSrvInfo402 *)pytalloc_get_ptr(py_obj);
7385 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
7386 object->shares = PyInt_AsLong(value);
7390 static PyObject *py_srvsvc_NetSrvInfo402_get_openfiles(PyObject *obj, void *closure)
7392 struct srvsvc_NetSrvInfo402 *object = (struct srvsvc_NetSrvInfo402 *)pytalloc_get_ptr(obj);
7393 PyObject *py_openfiles;
7394 py_openfiles = PyInt_FromLong(object->openfiles);
7395 return py_openfiles;
7398 static int py_srvsvc_NetSrvInfo402_set_openfiles(PyObject *py_obj, PyObject *value, void *closure)
7400 struct srvsvc_NetSrvInfo402 *object = (struct srvsvc_NetSrvInfo402 *)pytalloc_get_ptr(py_obj);
7401 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
7402 object->openfiles = PyInt_AsLong(value);
7406 static PyObject *py_srvsvc_NetSrvInfo402_get_sessopen(PyObject *obj, void *closure)
7408 struct srvsvc_NetSrvInfo402 *object = (struct srvsvc_NetSrvInfo402 *)pytalloc_get_ptr(obj);
7409 PyObject *py_sessopen;
7410 py_sessopen = PyInt_FromLong(object->sessopen);
7414 static int py_srvsvc_NetSrvInfo402_set_sessopen(PyObject *py_obj, PyObject *value, void *closure)
7416 struct srvsvc_NetSrvInfo402 *object = (struct srvsvc_NetSrvInfo402 *)pytalloc_get_ptr(py_obj);
7417 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
7418 object->sessopen = PyInt_AsLong(value);
7422 static PyObject *py_srvsvc_NetSrvInfo402_get_sesssvc(PyObject *obj, void *closure)
7424 struct srvsvc_NetSrvInfo402 *object = (struct srvsvc_NetSrvInfo402 *)pytalloc_get_ptr(obj);
7425 PyObject *py_sesssvc;
7426 py_sesssvc = PyInt_FromLong(object->sesssvc);
7430 static int py_srvsvc_NetSrvInfo402_set_sesssvc(PyObject *py_obj, PyObject *value, void *closure)
7432 struct srvsvc_NetSrvInfo402 *object = (struct srvsvc_NetSrvInfo402 *)pytalloc_get_ptr(py_obj);
7433 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
7434 object->sesssvc = PyInt_AsLong(value);
7438 static PyObject *py_srvsvc_NetSrvInfo402_get_sessreqs(PyObject *obj, void *closure)
7440 struct srvsvc_NetSrvInfo402 *object = (struct srvsvc_NetSrvInfo402 *)pytalloc_get_ptr(obj);
7441 PyObject *py_sessreqs;
7442 py_sessreqs = PyInt_FromLong(object->sessreqs);
7446 static int py_srvsvc_NetSrvInfo402_set_sessreqs(PyObject *py_obj, PyObject *value, void *closure)
7448 struct srvsvc_NetSrvInfo402 *object = (struct srvsvc_NetSrvInfo402 *)pytalloc_get_ptr(py_obj);
7449 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
7450 object->sessreqs = PyInt_AsLong(value);
7454 static PyObject *py_srvsvc_NetSrvInfo402_get_opensearch(PyObject *obj, void *closure)
7456 struct srvsvc_NetSrvInfo402 *object = (struct srvsvc_NetSrvInfo402 *)pytalloc_get_ptr(obj);
7457 PyObject *py_opensearch;
7458 py_opensearch = PyInt_FromLong(object->opensearch);
7459 return py_opensearch;
7462 static int py_srvsvc_NetSrvInfo402_set_opensearch(PyObject *py_obj, PyObject *value, void *closure)
7464 struct srvsvc_NetSrvInfo402 *object = (struct srvsvc_NetSrvInfo402 *)pytalloc_get_ptr(py_obj);
7465 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
7466 object->opensearch = PyInt_AsLong(value);
7470 static PyObject *py_srvsvc_NetSrvInfo402_get_activelocks(PyObject *obj, void *closure)
7472 struct srvsvc_NetSrvInfo402 *object = (struct srvsvc_NetSrvInfo402 *)pytalloc_get_ptr(obj);
7473 PyObject *py_activelocks;
7474 py_activelocks = PyInt_FromLong(object->activelocks);
7475 return py_activelocks;
7478 static int py_srvsvc_NetSrvInfo402_set_activelocks(PyObject *py_obj, PyObject *value, void *closure)
7480 struct srvsvc_NetSrvInfo402 *object = (struct srvsvc_NetSrvInfo402 *)pytalloc_get_ptr(py_obj);
7481 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
7482 object->activelocks = PyInt_AsLong(value);
7486 static PyObject *py_srvsvc_NetSrvInfo402_get_numreqbufs(PyObject *obj, void *closure)
7488 struct srvsvc_NetSrvInfo402 *object = (struct srvsvc_NetSrvInfo402 *)pytalloc_get_ptr(obj);
7489 PyObject *py_numreqbufs;
7490 py_numreqbufs = PyInt_FromLong(object->numreqbufs);
7491 return py_numreqbufs;
7494 static int py_srvsvc_NetSrvInfo402_set_numreqbufs(PyObject *py_obj, PyObject *value, void *closure)
7496 struct srvsvc_NetSrvInfo402 *object = (struct srvsvc_NetSrvInfo402 *)pytalloc_get_ptr(py_obj);
7497 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
7498 object->numreqbufs = PyInt_AsLong(value);
7502 static PyObject *py_srvsvc_NetSrvInfo402_get_sizereqbufs(PyObject *obj, void *closure)
7504 struct srvsvc_NetSrvInfo402 *object = (struct srvsvc_NetSrvInfo402 *)pytalloc_get_ptr(obj);
7505 PyObject *py_sizereqbufs;
7506 py_sizereqbufs = PyInt_FromLong(object->sizereqbufs);
7507 return py_sizereqbufs;
7510 static int py_srvsvc_NetSrvInfo402_set_sizereqbufs(PyObject *py_obj, PyObject *value, void *closure)
7512 struct srvsvc_NetSrvInfo402 *object = (struct srvsvc_NetSrvInfo402 *)pytalloc_get_ptr(py_obj);
7513 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
7514 object->sizereqbufs = PyInt_AsLong(value);
7518 static PyObject *py_srvsvc_NetSrvInfo402_get_numbigbufs(PyObject *obj, void *closure)
7520 struct srvsvc_NetSrvInfo402 *object = (struct srvsvc_NetSrvInfo402 *)pytalloc_get_ptr(obj);
7521 PyObject *py_numbigbufs;
7522 py_numbigbufs = PyInt_FromLong(object->numbigbufs);
7523 return py_numbigbufs;
7526 static int py_srvsvc_NetSrvInfo402_set_numbigbufs(PyObject *py_obj, PyObject *value, void *closure)
7528 struct srvsvc_NetSrvInfo402 *object = (struct srvsvc_NetSrvInfo402 *)pytalloc_get_ptr(py_obj);
7529 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
7530 object->numbigbufs = PyInt_AsLong(value);
7534 static PyObject *py_srvsvc_NetSrvInfo402_get_numfiletasks(PyObject *obj, void *closure)
7536 struct srvsvc_NetSrvInfo402 *object = (struct srvsvc_NetSrvInfo402 *)pytalloc_get_ptr(obj);
7537 PyObject *py_numfiletasks;
7538 py_numfiletasks = PyInt_FromLong(object->numfiletasks);
7539 return py_numfiletasks;
7542 static int py_srvsvc_NetSrvInfo402_set_numfiletasks(PyObject *py_obj, PyObject *value, void *closure)
7544 struct srvsvc_NetSrvInfo402 *object = (struct srvsvc_NetSrvInfo402 *)pytalloc_get_ptr(py_obj);
7545 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
7546 object->numfiletasks = PyInt_AsLong(value);
7550 static PyObject *py_srvsvc_NetSrvInfo402_get_alertsched(PyObject *obj, void *closure)
7552 struct srvsvc_NetSrvInfo402 *object = (struct srvsvc_NetSrvInfo402 *)pytalloc_get_ptr(obj);
7553 PyObject *py_alertsched;
7554 py_alertsched = PyInt_FromLong(object->alertsched);
7555 return py_alertsched;
7558 static int py_srvsvc_NetSrvInfo402_set_alertsched(PyObject *py_obj, PyObject *value, void *closure)
7560 struct srvsvc_NetSrvInfo402 *object = (struct srvsvc_NetSrvInfo402 *)pytalloc_get_ptr(py_obj);
7561 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
7562 object->alertsched = PyInt_AsLong(value);
7566 static PyObject *py_srvsvc_NetSrvInfo402_get_erroralert(PyObject *obj, void *closure)
7568 struct srvsvc_NetSrvInfo402 *object = (struct srvsvc_NetSrvInfo402 *)pytalloc_get_ptr(obj);
7569 PyObject *py_erroralert;
7570 py_erroralert = PyInt_FromLong(object->erroralert);
7571 return py_erroralert;
7574 static int py_srvsvc_NetSrvInfo402_set_erroralert(PyObject *py_obj, PyObject *value, void *closure)
7576 struct srvsvc_NetSrvInfo402 *object = (struct srvsvc_NetSrvInfo402 *)pytalloc_get_ptr(py_obj);
7577 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
7578 object->erroralert = PyInt_AsLong(value);
7582 static PyObject *py_srvsvc_NetSrvInfo402_get_logonalert(PyObject *obj, void *closure)
7584 struct srvsvc_NetSrvInfo402 *object = (struct srvsvc_NetSrvInfo402 *)pytalloc_get_ptr(obj);
7585 PyObject *py_logonalert;
7586 py_logonalert = PyInt_FromLong(object->logonalert);
7587 return py_logonalert;
7590 static int py_srvsvc_NetSrvInfo402_set_logonalert(PyObject *py_obj, PyObject *value, void *closure)
7592 struct srvsvc_NetSrvInfo402 *object = (struct srvsvc_NetSrvInfo402 *)pytalloc_get_ptr(py_obj);
7593 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
7594 object->logonalert = PyInt_AsLong(value);
7598 static PyObject *py_srvsvc_NetSrvInfo402_get_accessalert(PyObject *obj, void *closure)
7600 struct srvsvc_NetSrvInfo402 *object = (struct srvsvc_NetSrvInfo402 *)pytalloc_get_ptr(obj);
7601 PyObject *py_accessalert;
7602 py_accessalert = PyInt_FromLong(object->accessalert);
7603 return py_accessalert;
7606 static int py_srvsvc_NetSrvInfo402_set_accessalert(PyObject *py_obj, PyObject *value, void *closure)
7608 struct srvsvc_NetSrvInfo402 *object = (struct srvsvc_NetSrvInfo402 *)pytalloc_get_ptr(py_obj);
7609 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
7610 object->accessalert = PyInt_AsLong(value);
7614 static PyObject *py_srvsvc_NetSrvInfo402_get_diskalert(PyObject *obj, void *closure)
7616 struct srvsvc_NetSrvInfo402 *object = (struct srvsvc_NetSrvInfo402 *)pytalloc_get_ptr(obj);
7617 PyObject *py_diskalert;
7618 py_diskalert = PyInt_FromLong(object->diskalert);
7619 return py_diskalert;
7622 static int py_srvsvc_NetSrvInfo402_set_diskalert(PyObject *py_obj, PyObject *value, void *closure)
7624 struct srvsvc_NetSrvInfo402 *object = (struct srvsvc_NetSrvInfo402 *)pytalloc_get_ptr(py_obj);
7625 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
7626 object->diskalert = PyInt_AsLong(value);
7630 static PyObject *py_srvsvc_NetSrvInfo402_get_netioalert(PyObject *obj, void *closure)
7632 struct srvsvc_NetSrvInfo402 *object = (struct srvsvc_NetSrvInfo402 *)pytalloc_get_ptr(obj);
7633 PyObject *py_netioalert;
7634 py_netioalert = PyInt_FromLong(object->netioalert);
7635 return py_netioalert;
7638 static int py_srvsvc_NetSrvInfo402_set_netioalert(PyObject *py_obj, PyObject *value, void *closure)
7640 struct srvsvc_NetSrvInfo402 *object = (struct srvsvc_NetSrvInfo402 *)pytalloc_get_ptr(py_obj);
7641 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
7642 object->netioalert = PyInt_AsLong(value);
7646 static PyObject *py_srvsvc_NetSrvInfo402_get_maxaudits(PyObject *obj, void *closure)
7648 struct srvsvc_NetSrvInfo402 *object = (struct srvsvc_NetSrvInfo402 *)pytalloc_get_ptr(obj);
7649 PyObject *py_maxaudits;
7650 py_maxaudits = PyInt_FromLong(object->maxaudits);
7651 return py_maxaudits;
7654 static int py_srvsvc_NetSrvInfo402_set_maxaudits(PyObject *py_obj, PyObject *value, void *closure)
7656 struct srvsvc_NetSrvInfo402 *object = (struct srvsvc_NetSrvInfo402 *)pytalloc_get_ptr(py_obj);
7657 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
7658 object->maxaudits = PyInt_AsLong(value);
7662 static PyObject *py_srvsvc_NetSrvInfo402_get_srvheuristics(PyObject *obj, void *closure)
7664 struct srvsvc_NetSrvInfo402 *object = (struct srvsvc_NetSrvInfo402 *)pytalloc_get_ptr(obj);
7665 PyObject *py_srvheuristics;
7666 if (object->srvheuristics == NULL) {
7667 py_srvheuristics = Py_None;
7668 Py_INCREF(py_srvheuristics);
7670 if (object->srvheuristics == NULL) {
7671 py_srvheuristics = Py_None;
7672 Py_INCREF(py_srvheuristics);
7674 py_srvheuristics = PyUnicode_Decode(object->srvheuristics, strlen(object->srvheuristics), "utf-8", "ignore");
7677 return py_srvheuristics;
7680 static int py_srvsvc_NetSrvInfo402_set_srvheuristics(PyObject *py_obj, PyObject *value, void *closure)
7682 struct srvsvc_NetSrvInfo402 *object = (struct srvsvc_NetSrvInfo402 *)pytalloc_get_ptr(py_obj);
7683 if (value == Py_None) {
7684 object->srvheuristics = NULL;
7686 object->srvheuristics = NULL;
7687 if (PyUnicode_Check(value)) {
7688 object->srvheuristics = PyString_AS_STRING(PyUnicode_AsEncodedString(value, "utf-8", "ignore"));
7689 } else if (PyString_Check(value)) {
7690 object->srvheuristics = PyString_AS_STRING(value);
7692 PyErr_Format(PyExc_TypeError, "Expected string or unicode object, got %s", Py_TYPE(value)->tp_name);
7699 static PyGetSetDef py_srvsvc_NetSrvInfo402_getsetters[] = {
7700 { discard_const_p(char, "ulist_mtime"), py_srvsvc_NetSrvInfo402_get_ulist_mtime, py_srvsvc_NetSrvInfo402_set_ulist_mtime },
7701 { discard_const_p(char, "glist_mtime"), py_srvsvc_NetSrvInfo402_get_glist_mtime, py_srvsvc_NetSrvInfo402_set_glist_mtime },
7702 { discard_const_p(char, "alist_mtime"), py_srvsvc_NetSrvInfo402_get_alist_mtime, py_srvsvc_NetSrvInfo402_set_alist_mtime },
7703 { discard_const_p(char, "alerts"), py_srvsvc_NetSrvInfo402_get_alerts, py_srvsvc_NetSrvInfo402_set_alerts },
7704 { discard_const_p(char, "security"), py_srvsvc_NetSrvInfo402_get_security, py_srvsvc_NetSrvInfo402_set_security },
7705 { discard_const_p(char, "numadmin"), py_srvsvc_NetSrvInfo402_get_numadmin, py_srvsvc_NetSrvInfo402_set_numadmin },
7706 { discard_const_p(char, "lanmask"), py_srvsvc_NetSrvInfo402_get_lanmask, py_srvsvc_NetSrvInfo402_set_lanmask },
7707 { discard_const_p(char, "guestaccount"), py_srvsvc_NetSrvInfo402_get_guestaccount, py_srvsvc_NetSrvInfo402_set_guestaccount },
7708 { discard_const_p(char, "chdevs"), py_srvsvc_NetSrvInfo402_get_chdevs, py_srvsvc_NetSrvInfo402_set_chdevs },
7709 { discard_const_p(char, "chdevqs"), py_srvsvc_NetSrvInfo402_get_chdevqs, py_srvsvc_NetSrvInfo402_set_chdevqs },
7710 { discard_const_p(char, "chdevjobs"), py_srvsvc_NetSrvInfo402_get_chdevjobs, py_srvsvc_NetSrvInfo402_set_chdevjobs },
7711 { discard_const_p(char, "connections"), py_srvsvc_NetSrvInfo402_get_connections, py_srvsvc_NetSrvInfo402_set_connections },
7712 { discard_const_p(char, "shares"), py_srvsvc_NetSrvInfo402_get_shares, py_srvsvc_NetSrvInfo402_set_shares },
7713 { discard_const_p(char, "openfiles"), py_srvsvc_NetSrvInfo402_get_openfiles, py_srvsvc_NetSrvInfo402_set_openfiles },
7714 { discard_const_p(char, "sessopen"), py_srvsvc_NetSrvInfo402_get_sessopen, py_srvsvc_NetSrvInfo402_set_sessopen },
7715 { discard_const_p(char, "sesssvc"), py_srvsvc_NetSrvInfo402_get_sesssvc, py_srvsvc_NetSrvInfo402_set_sesssvc },
7716 { discard_const_p(char, "sessreqs"), py_srvsvc_NetSrvInfo402_get_sessreqs, py_srvsvc_NetSrvInfo402_set_sessreqs },
7717 { discard_const_p(char, "opensearch"), py_srvsvc_NetSrvInfo402_get_opensearch, py_srvsvc_NetSrvInfo402_set_opensearch },
7718 { discard_const_p(char, "activelocks"), py_srvsvc_NetSrvInfo402_get_activelocks, py_srvsvc_NetSrvInfo402_set_activelocks },
7719 { discard_const_p(char, "numreqbufs"), py_srvsvc_NetSrvInfo402_get_numreqbufs, py_srvsvc_NetSrvInfo402_set_numreqbufs },
7720 { discard_const_p(char, "sizereqbufs"), py_srvsvc_NetSrvInfo402_get_sizereqbufs, py_srvsvc_NetSrvInfo402_set_sizereqbufs },
7721 { discard_const_p(char, "numbigbufs"), py_srvsvc_NetSrvInfo402_get_numbigbufs, py_srvsvc_NetSrvInfo402_set_numbigbufs },
7722 { discard_const_p(char, "numfiletasks"), py_srvsvc_NetSrvInfo402_get_numfiletasks, py_srvsvc_NetSrvInfo402_set_numfiletasks },
7723 { discard_const_p(char, "alertsched"), py_srvsvc_NetSrvInfo402_get_alertsched, py_srvsvc_NetSrvInfo402_set_alertsched },
7724 { discard_const_p(char, "erroralert"), py_srvsvc_NetSrvInfo402_get_erroralert, py_srvsvc_NetSrvInfo402_set_erroralert },
7725 { discard_const_p(char, "logonalert"), py_srvsvc_NetSrvInfo402_get_logonalert, py_srvsvc_NetSrvInfo402_set_logonalert },
7726 { discard_const_p(char, "accessalert"), py_srvsvc_NetSrvInfo402_get_accessalert, py_srvsvc_NetSrvInfo402_set_accessalert },
7727 { discard_const_p(char, "diskalert"), py_srvsvc_NetSrvInfo402_get_diskalert, py_srvsvc_NetSrvInfo402_set_diskalert },
7728 { discard_const_p(char, "netioalert"), py_srvsvc_NetSrvInfo402_get_netioalert, py_srvsvc_NetSrvInfo402_set_netioalert },
7729 { discard_const_p(char, "maxaudits"), py_srvsvc_NetSrvInfo402_get_maxaudits, py_srvsvc_NetSrvInfo402_set_maxaudits },
7730 { discard_const_p(char, "srvheuristics"), py_srvsvc_NetSrvInfo402_get_srvheuristics, py_srvsvc_NetSrvInfo402_set_srvheuristics },
7734 static PyObject *py_srvsvc_NetSrvInfo402_new(PyTypeObject *type, PyObject *args, PyObject *kwargs)
7736 return pytalloc_new(struct srvsvc_NetSrvInfo402, type);
7740 static PyTypeObject srvsvc_NetSrvInfo402_Type = {
7741 PyObject_HEAD_INIT(NULL) 0,
7742 .tp_name = "srvsvc.NetSrvInfo402",
7743 .tp_getset = py_srvsvc_NetSrvInfo402_getsetters,
7745 .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
7746 .tp_basicsize = sizeof(pytalloc_Object),
7747 .tp_new = py_srvsvc_NetSrvInfo402_new,
7751 static PyObject *py_srvsvc_NetSrvInfo403_get_ulist_mtime(PyObject *obj, void *closure)
7753 struct srvsvc_NetSrvInfo403 *object = (struct srvsvc_NetSrvInfo403 *)pytalloc_get_ptr(obj);
7754 PyObject *py_ulist_mtime;
7755 py_ulist_mtime = PyInt_FromLong(object->ulist_mtime);
7756 return py_ulist_mtime;
7759 static int py_srvsvc_NetSrvInfo403_set_ulist_mtime(PyObject *py_obj, PyObject *value, void *closure)
7761 struct srvsvc_NetSrvInfo403 *object = (struct srvsvc_NetSrvInfo403 *)pytalloc_get_ptr(py_obj);
7762 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
7763 object->ulist_mtime = PyInt_AsLong(value);
7767 static PyObject *py_srvsvc_NetSrvInfo403_get_glist_mtime(PyObject *obj, void *closure)
7769 struct srvsvc_NetSrvInfo403 *object = (struct srvsvc_NetSrvInfo403 *)pytalloc_get_ptr(obj);
7770 PyObject *py_glist_mtime;
7771 py_glist_mtime = PyInt_FromLong(object->glist_mtime);
7772 return py_glist_mtime;
7775 static int py_srvsvc_NetSrvInfo403_set_glist_mtime(PyObject *py_obj, PyObject *value, void *closure)
7777 struct srvsvc_NetSrvInfo403 *object = (struct srvsvc_NetSrvInfo403 *)pytalloc_get_ptr(py_obj);
7778 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
7779 object->glist_mtime = PyInt_AsLong(value);
7783 static PyObject *py_srvsvc_NetSrvInfo403_get_alist_mtime(PyObject *obj, void *closure)
7785 struct srvsvc_NetSrvInfo403 *object = (struct srvsvc_NetSrvInfo403 *)pytalloc_get_ptr(obj);
7786 PyObject *py_alist_mtime;
7787 py_alist_mtime = PyInt_FromLong(object->alist_mtime);
7788 return py_alist_mtime;
7791 static int py_srvsvc_NetSrvInfo403_set_alist_mtime(PyObject *py_obj, PyObject *value, void *closure)
7793 struct srvsvc_NetSrvInfo403 *object = (struct srvsvc_NetSrvInfo403 *)pytalloc_get_ptr(py_obj);
7794 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
7795 object->alist_mtime = PyInt_AsLong(value);
7799 static PyObject *py_srvsvc_NetSrvInfo403_get_alerts(PyObject *obj, void *closure)
7801 struct srvsvc_NetSrvInfo403 *object = (struct srvsvc_NetSrvInfo403 *)pytalloc_get_ptr(obj);
7802 PyObject *py_alerts;
7803 if (object->alerts == NULL) {
7804 py_alerts = Py_None;
7805 Py_INCREF(py_alerts);
7807 if (object->alerts == NULL) {
7808 py_alerts = Py_None;
7809 Py_INCREF(py_alerts);
7811 py_alerts = PyUnicode_Decode(object->alerts, strlen(object->alerts), "utf-8", "ignore");
7817 static int py_srvsvc_NetSrvInfo403_set_alerts(PyObject *py_obj, PyObject *value, void *closure)
7819 struct srvsvc_NetSrvInfo403 *object = (struct srvsvc_NetSrvInfo403 *)pytalloc_get_ptr(py_obj);
7820 if (value == Py_None) {
7821 object->alerts = NULL;
7823 object->alerts = NULL;
7824 if (PyUnicode_Check(value)) {
7825 object->alerts = PyString_AS_STRING(PyUnicode_AsEncodedString(value, "utf-8", "ignore"));
7826 } else if (PyString_Check(value)) {
7827 object->alerts = PyString_AS_STRING(value);
7829 PyErr_Format(PyExc_TypeError, "Expected string or unicode object, got %s", Py_TYPE(value)->tp_name);
7836 static PyObject *py_srvsvc_NetSrvInfo403_get_security(PyObject *obj, void *closure)
7838 struct srvsvc_NetSrvInfo403 *object = (struct srvsvc_NetSrvInfo403 *)pytalloc_get_ptr(obj);
7839 PyObject *py_security;
7840 py_security = PyInt_FromLong(object->security);
7844 static int py_srvsvc_NetSrvInfo403_set_security(PyObject *py_obj, PyObject *value, void *closure)
7846 struct srvsvc_NetSrvInfo403 *object = (struct srvsvc_NetSrvInfo403 *)pytalloc_get_ptr(py_obj);
7847 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
7848 object->security = PyInt_AsLong(value);
7852 static PyObject *py_srvsvc_NetSrvInfo403_get_numadmin(PyObject *obj, void *closure)
7854 struct srvsvc_NetSrvInfo403 *object = (struct srvsvc_NetSrvInfo403 *)pytalloc_get_ptr(obj);
7855 PyObject *py_numadmin;
7856 py_numadmin = PyInt_FromLong(object->numadmin);
7860 static int py_srvsvc_NetSrvInfo403_set_numadmin(PyObject *py_obj, PyObject *value, void *closure)
7862 struct srvsvc_NetSrvInfo403 *object = (struct srvsvc_NetSrvInfo403 *)pytalloc_get_ptr(py_obj);
7863 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
7864 object->numadmin = PyInt_AsLong(value);
7868 static PyObject *py_srvsvc_NetSrvInfo403_get_lanmask(PyObject *obj, void *closure)
7870 struct srvsvc_NetSrvInfo403 *object = (struct srvsvc_NetSrvInfo403 *)pytalloc_get_ptr(obj);
7871 PyObject *py_lanmask;
7872 py_lanmask = PyInt_FromLong(object->lanmask);
7876 static int py_srvsvc_NetSrvInfo403_set_lanmask(PyObject *py_obj, PyObject *value, void *closure)
7878 struct srvsvc_NetSrvInfo403 *object = (struct srvsvc_NetSrvInfo403 *)pytalloc_get_ptr(py_obj);
7879 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
7880 object->lanmask = PyInt_AsLong(value);
7884 static PyObject *py_srvsvc_NetSrvInfo403_get_guestaccount(PyObject *obj, void *closure)
7886 struct srvsvc_NetSrvInfo403 *object = (struct srvsvc_NetSrvInfo403 *)pytalloc_get_ptr(obj);
7887 PyObject *py_guestaccount;
7888 if (object->guestaccount == NULL) {
7889 py_guestaccount = Py_None;
7890 Py_INCREF(py_guestaccount);
7892 if (object->guestaccount == NULL) {
7893 py_guestaccount = Py_None;
7894 Py_INCREF(py_guestaccount);
7896 py_guestaccount = PyUnicode_Decode(object->guestaccount, strlen(object->guestaccount), "utf-8", "ignore");
7899 return py_guestaccount;
7902 static int py_srvsvc_NetSrvInfo403_set_guestaccount(PyObject *py_obj, PyObject *value, void *closure)
7904 struct srvsvc_NetSrvInfo403 *object = (struct srvsvc_NetSrvInfo403 *)pytalloc_get_ptr(py_obj);
7905 if (value == Py_None) {
7906 object->guestaccount = NULL;
7908 object->guestaccount = NULL;
7909 if (PyUnicode_Check(value)) {
7910 object->guestaccount = PyString_AS_STRING(PyUnicode_AsEncodedString(value, "utf-8", "ignore"));
7911 } else if (PyString_Check(value)) {
7912 object->guestaccount = PyString_AS_STRING(value);
7914 PyErr_Format(PyExc_TypeError, "Expected string or unicode object, got %s", Py_TYPE(value)->tp_name);
7921 static PyObject *py_srvsvc_NetSrvInfo403_get_chdevs(PyObject *obj, void *closure)
7923 struct srvsvc_NetSrvInfo403 *object = (struct srvsvc_NetSrvInfo403 *)pytalloc_get_ptr(obj);
7924 PyObject *py_chdevs;
7925 py_chdevs = PyInt_FromLong(object->chdevs);
7929 static int py_srvsvc_NetSrvInfo403_set_chdevs(PyObject *py_obj, PyObject *value, void *closure)
7931 struct srvsvc_NetSrvInfo403 *object = (struct srvsvc_NetSrvInfo403 *)pytalloc_get_ptr(py_obj);
7932 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
7933 object->chdevs = PyInt_AsLong(value);
7937 static PyObject *py_srvsvc_NetSrvInfo403_get_chdevqs(PyObject *obj, void *closure)
7939 struct srvsvc_NetSrvInfo403 *object = (struct srvsvc_NetSrvInfo403 *)pytalloc_get_ptr(obj);
7940 PyObject *py_chdevqs;
7941 py_chdevqs = PyInt_FromLong(object->chdevqs);
7945 static int py_srvsvc_NetSrvInfo403_set_chdevqs(PyObject *py_obj, PyObject *value, void *closure)
7947 struct srvsvc_NetSrvInfo403 *object = (struct srvsvc_NetSrvInfo403 *)pytalloc_get_ptr(py_obj);
7948 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
7949 object->chdevqs = PyInt_AsLong(value);
7953 static PyObject *py_srvsvc_NetSrvInfo403_get_chdevjobs(PyObject *obj, void *closure)
7955 struct srvsvc_NetSrvInfo403 *object = (struct srvsvc_NetSrvInfo403 *)pytalloc_get_ptr(obj);
7956 PyObject *py_chdevjobs;
7957 py_chdevjobs = PyInt_FromLong(object->chdevjobs);
7958 return py_chdevjobs;
7961 static int py_srvsvc_NetSrvInfo403_set_chdevjobs(PyObject *py_obj, PyObject *value, void *closure)
7963 struct srvsvc_NetSrvInfo403 *object = (struct srvsvc_NetSrvInfo403 *)pytalloc_get_ptr(py_obj);
7964 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
7965 object->chdevjobs = PyInt_AsLong(value);
7969 static PyObject *py_srvsvc_NetSrvInfo403_get_connections(PyObject *obj, void *closure)
7971 struct srvsvc_NetSrvInfo403 *object = (struct srvsvc_NetSrvInfo403 *)pytalloc_get_ptr(obj);
7972 PyObject *py_connections;
7973 py_connections = PyInt_FromLong(object->connections);
7974 return py_connections;
7977 static int py_srvsvc_NetSrvInfo403_set_connections(PyObject *py_obj, PyObject *value, void *closure)
7979 struct srvsvc_NetSrvInfo403 *object = (struct srvsvc_NetSrvInfo403 *)pytalloc_get_ptr(py_obj);
7980 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
7981 object->connections = PyInt_AsLong(value);
7985 static PyObject *py_srvsvc_NetSrvInfo403_get_shares(PyObject *obj, void *closure)
7987 struct srvsvc_NetSrvInfo403 *object = (struct srvsvc_NetSrvInfo403 *)pytalloc_get_ptr(obj);
7988 PyObject *py_shares;
7989 py_shares = PyInt_FromLong(object->shares);
7993 static int py_srvsvc_NetSrvInfo403_set_shares(PyObject *py_obj, PyObject *value, void *closure)
7995 struct srvsvc_NetSrvInfo403 *object = (struct srvsvc_NetSrvInfo403 *)pytalloc_get_ptr(py_obj);
7996 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
7997 object->shares = PyInt_AsLong(value);
8001 static PyObject *py_srvsvc_NetSrvInfo403_get_openfiles(PyObject *obj, void *closure)
8003 struct srvsvc_NetSrvInfo403 *object = (struct srvsvc_NetSrvInfo403 *)pytalloc_get_ptr(obj);
8004 PyObject *py_openfiles;
8005 py_openfiles = PyInt_FromLong(object->openfiles);
8006 return py_openfiles;
8009 static int py_srvsvc_NetSrvInfo403_set_openfiles(PyObject *py_obj, PyObject *value, void *closure)
8011 struct srvsvc_NetSrvInfo403 *object = (struct srvsvc_NetSrvInfo403 *)pytalloc_get_ptr(py_obj);
8012 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
8013 object->openfiles = PyInt_AsLong(value);
8017 static PyObject *py_srvsvc_NetSrvInfo403_get_sessopen(PyObject *obj, void *closure)
8019 struct srvsvc_NetSrvInfo403 *object = (struct srvsvc_NetSrvInfo403 *)pytalloc_get_ptr(obj);
8020 PyObject *py_sessopen;
8021 py_sessopen = PyInt_FromLong(object->sessopen);
8025 static int py_srvsvc_NetSrvInfo403_set_sessopen(PyObject *py_obj, PyObject *value, void *closure)
8027 struct srvsvc_NetSrvInfo403 *object = (struct srvsvc_NetSrvInfo403 *)pytalloc_get_ptr(py_obj);
8028 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
8029 object->sessopen = PyInt_AsLong(value);
8033 static PyObject *py_srvsvc_NetSrvInfo403_get_sesssvc(PyObject *obj, void *closure)
8035 struct srvsvc_NetSrvInfo403 *object = (struct srvsvc_NetSrvInfo403 *)pytalloc_get_ptr(obj);
8036 PyObject *py_sesssvc;
8037 py_sesssvc = PyInt_FromLong(object->sesssvc);
8041 static int py_srvsvc_NetSrvInfo403_set_sesssvc(PyObject *py_obj, PyObject *value, void *closure)
8043 struct srvsvc_NetSrvInfo403 *object = (struct srvsvc_NetSrvInfo403 *)pytalloc_get_ptr(py_obj);
8044 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
8045 object->sesssvc = PyInt_AsLong(value);
8049 static PyObject *py_srvsvc_NetSrvInfo403_get_sessreqs(PyObject *obj, void *closure)
8051 struct srvsvc_NetSrvInfo403 *object = (struct srvsvc_NetSrvInfo403 *)pytalloc_get_ptr(obj);
8052 PyObject *py_sessreqs;
8053 py_sessreqs = PyInt_FromLong(object->sessreqs);
8057 static int py_srvsvc_NetSrvInfo403_set_sessreqs(PyObject *py_obj, PyObject *value, void *closure)
8059 struct srvsvc_NetSrvInfo403 *object = (struct srvsvc_NetSrvInfo403 *)pytalloc_get_ptr(py_obj);
8060 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
8061 object->sessreqs = PyInt_AsLong(value);
8065 static PyObject *py_srvsvc_NetSrvInfo403_get_opensearch(PyObject *obj, void *closure)
8067 struct srvsvc_NetSrvInfo403 *object = (struct srvsvc_NetSrvInfo403 *)pytalloc_get_ptr(obj);
8068 PyObject *py_opensearch;
8069 py_opensearch = PyInt_FromLong(object->opensearch);
8070 return py_opensearch;
8073 static int py_srvsvc_NetSrvInfo403_set_opensearch(PyObject *py_obj, PyObject *value, void *closure)
8075 struct srvsvc_NetSrvInfo403 *object = (struct srvsvc_NetSrvInfo403 *)pytalloc_get_ptr(py_obj);
8076 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
8077 object->opensearch = PyInt_AsLong(value);
8081 static PyObject *py_srvsvc_NetSrvInfo403_get_activelocks(PyObject *obj, void *closure)
8083 struct srvsvc_NetSrvInfo403 *object = (struct srvsvc_NetSrvInfo403 *)pytalloc_get_ptr(obj);
8084 PyObject *py_activelocks;
8085 py_activelocks = PyInt_FromLong(object->activelocks);
8086 return py_activelocks;
8089 static int py_srvsvc_NetSrvInfo403_set_activelocks(PyObject *py_obj, PyObject *value, void *closure)
8091 struct srvsvc_NetSrvInfo403 *object = (struct srvsvc_NetSrvInfo403 *)pytalloc_get_ptr(py_obj);
8092 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
8093 object->activelocks = PyInt_AsLong(value);
8097 static PyObject *py_srvsvc_NetSrvInfo403_get_numreqbufs(PyObject *obj, void *closure)
8099 struct srvsvc_NetSrvInfo403 *object = (struct srvsvc_NetSrvInfo403 *)pytalloc_get_ptr(obj);
8100 PyObject *py_numreqbufs;
8101 py_numreqbufs = PyInt_FromLong(object->numreqbufs);
8102 return py_numreqbufs;
8105 static int py_srvsvc_NetSrvInfo403_set_numreqbufs(PyObject *py_obj, PyObject *value, void *closure)
8107 struct srvsvc_NetSrvInfo403 *object = (struct srvsvc_NetSrvInfo403 *)pytalloc_get_ptr(py_obj);
8108 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
8109 object->numreqbufs = PyInt_AsLong(value);
8113 static PyObject *py_srvsvc_NetSrvInfo403_get_sizereqbufs(PyObject *obj, void *closure)
8115 struct srvsvc_NetSrvInfo403 *object = (struct srvsvc_NetSrvInfo403 *)pytalloc_get_ptr(obj);
8116 PyObject *py_sizereqbufs;
8117 py_sizereqbufs = PyInt_FromLong(object->sizereqbufs);
8118 return py_sizereqbufs;
8121 static int py_srvsvc_NetSrvInfo403_set_sizereqbufs(PyObject *py_obj, PyObject *value, void *closure)
8123 struct srvsvc_NetSrvInfo403 *object = (struct srvsvc_NetSrvInfo403 *)pytalloc_get_ptr(py_obj);
8124 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
8125 object->sizereqbufs = PyInt_AsLong(value);
8129 static PyObject *py_srvsvc_NetSrvInfo403_get_numbigbufs(PyObject *obj, void *closure)
8131 struct srvsvc_NetSrvInfo403 *object = (struct srvsvc_NetSrvInfo403 *)pytalloc_get_ptr(obj);
8132 PyObject *py_numbigbufs;
8133 py_numbigbufs = PyInt_FromLong(object->numbigbufs);
8134 return py_numbigbufs;
8137 static int py_srvsvc_NetSrvInfo403_set_numbigbufs(PyObject *py_obj, PyObject *value, void *closure)
8139 struct srvsvc_NetSrvInfo403 *object = (struct srvsvc_NetSrvInfo403 *)pytalloc_get_ptr(py_obj);
8140 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
8141 object->numbigbufs = PyInt_AsLong(value);
8145 static PyObject *py_srvsvc_NetSrvInfo403_get_numfiletasks(PyObject *obj, void *closure)
8147 struct srvsvc_NetSrvInfo403 *object = (struct srvsvc_NetSrvInfo403 *)pytalloc_get_ptr(obj);
8148 PyObject *py_numfiletasks;
8149 py_numfiletasks = PyInt_FromLong(object->numfiletasks);
8150 return py_numfiletasks;
8153 static int py_srvsvc_NetSrvInfo403_set_numfiletasks(PyObject *py_obj, PyObject *value, void *closure)
8155 struct srvsvc_NetSrvInfo403 *object = (struct srvsvc_NetSrvInfo403 *)pytalloc_get_ptr(py_obj);
8156 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
8157 object->numfiletasks = PyInt_AsLong(value);
8161 static PyObject *py_srvsvc_NetSrvInfo403_get_alertsched(PyObject *obj, void *closure)
8163 struct srvsvc_NetSrvInfo403 *object = (struct srvsvc_NetSrvInfo403 *)pytalloc_get_ptr(obj);
8164 PyObject *py_alertsched;
8165 py_alertsched = PyInt_FromLong(object->alertsched);
8166 return py_alertsched;
8169 static int py_srvsvc_NetSrvInfo403_set_alertsched(PyObject *py_obj, PyObject *value, void *closure)
8171 struct srvsvc_NetSrvInfo403 *object = (struct srvsvc_NetSrvInfo403 *)pytalloc_get_ptr(py_obj);
8172 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
8173 object->alertsched = PyInt_AsLong(value);
8177 static PyObject *py_srvsvc_NetSrvInfo403_get_erroralert(PyObject *obj, void *closure)
8179 struct srvsvc_NetSrvInfo403 *object = (struct srvsvc_NetSrvInfo403 *)pytalloc_get_ptr(obj);
8180 PyObject *py_erroralert;
8181 py_erroralert = PyInt_FromLong(object->erroralert);
8182 return py_erroralert;
8185 static int py_srvsvc_NetSrvInfo403_set_erroralert(PyObject *py_obj, PyObject *value, void *closure)
8187 struct srvsvc_NetSrvInfo403 *object = (struct srvsvc_NetSrvInfo403 *)pytalloc_get_ptr(py_obj);
8188 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
8189 object->erroralert = PyInt_AsLong(value);
8193 static PyObject *py_srvsvc_NetSrvInfo403_get_logonalert(PyObject *obj, void *closure)
8195 struct srvsvc_NetSrvInfo403 *object = (struct srvsvc_NetSrvInfo403 *)pytalloc_get_ptr(obj);
8196 PyObject *py_logonalert;
8197 py_logonalert = PyInt_FromLong(object->logonalert);
8198 return py_logonalert;
8201 static int py_srvsvc_NetSrvInfo403_set_logonalert(PyObject *py_obj, PyObject *value, void *closure)
8203 struct srvsvc_NetSrvInfo403 *object = (struct srvsvc_NetSrvInfo403 *)pytalloc_get_ptr(py_obj);
8204 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
8205 object->logonalert = PyInt_AsLong(value);
8209 static PyObject *py_srvsvc_NetSrvInfo403_get_accessalert(PyObject *obj, void *closure)
8211 struct srvsvc_NetSrvInfo403 *object = (struct srvsvc_NetSrvInfo403 *)pytalloc_get_ptr(obj);
8212 PyObject *py_accessalert;
8213 py_accessalert = PyInt_FromLong(object->accessalert);
8214 return py_accessalert;
8217 static int py_srvsvc_NetSrvInfo403_set_accessalert(PyObject *py_obj, PyObject *value, void *closure)
8219 struct srvsvc_NetSrvInfo403 *object = (struct srvsvc_NetSrvInfo403 *)pytalloc_get_ptr(py_obj);
8220 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
8221 object->accessalert = PyInt_AsLong(value);
8225 static PyObject *py_srvsvc_NetSrvInfo403_get_diskalert(PyObject *obj, void *closure)
8227 struct srvsvc_NetSrvInfo403 *object = (struct srvsvc_NetSrvInfo403 *)pytalloc_get_ptr(obj);
8228 PyObject *py_diskalert;
8229 py_diskalert = PyInt_FromLong(object->diskalert);
8230 return py_diskalert;
8233 static int py_srvsvc_NetSrvInfo403_set_diskalert(PyObject *py_obj, PyObject *value, void *closure)
8235 struct srvsvc_NetSrvInfo403 *object = (struct srvsvc_NetSrvInfo403 *)pytalloc_get_ptr(py_obj);
8236 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
8237 object->diskalert = PyInt_AsLong(value);
8241 static PyObject *py_srvsvc_NetSrvInfo403_get_netioalert(PyObject *obj, void *closure)
8243 struct srvsvc_NetSrvInfo403 *object = (struct srvsvc_NetSrvInfo403 *)pytalloc_get_ptr(obj);
8244 PyObject *py_netioalert;
8245 py_netioalert = PyInt_FromLong(object->netioalert);
8246 return py_netioalert;
8249 static int py_srvsvc_NetSrvInfo403_set_netioalert(PyObject *py_obj, PyObject *value, void *closure)
8251 struct srvsvc_NetSrvInfo403 *object = (struct srvsvc_NetSrvInfo403 *)pytalloc_get_ptr(py_obj);
8252 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
8253 object->netioalert = PyInt_AsLong(value);
8257 static PyObject *py_srvsvc_NetSrvInfo403_get_maxaudits(PyObject *obj, void *closure)
8259 struct srvsvc_NetSrvInfo403 *object = (struct srvsvc_NetSrvInfo403 *)pytalloc_get_ptr(obj);
8260 PyObject *py_maxaudits;
8261 py_maxaudits = PyInt_FromLong(object->maxaudits);
8262 return py_maxaudits;
8265 static int py_srvsvc_NetSrvInfo403_set_maxaudits(PyObject *py_obj, PyObject *value, void *closure)
8267 struct srvsvc_NetSrvInfo403 *object = (struct srvsvc_NetSrvInfo403 *)pytalloc_get_ptr(py_obj);
8268 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
8269 object->maxaudits = PyInt_AsLong(value);
8273 static PyObject *py_srvsvc_NetSrvInfo403_get_srvheuristics(PyObject *obj, void *closure)
8275 struct srvsvc_NetSrvInfo403 *object = (struct srvsvc_NetSrvInfo403 *)pytalloc_get_ptr(obj);
8276 PyObject *py_srvheuristics;
8277 if (object->srvheuristics == NULL) {
8278 py_srvheuristics = Py_None;
8279 Py_INCREF(py_srvheuristics);
8281 if (object->srvheuristics == NULL) {
8282 py_srvheuristics = Py_None;
8283 Py_INCREF(py_srvheuristics);
8285 py_srvheuristics = PyUnicode_Decode(object->srvheuristics, strlen(object->srvheuristics), "utf-8", "ignore");
8288 return py_srvheuristics;
8291 static int py_srvsvc_NetSrvInfo403_set_srvheuristics(PyObject *py_obj, PyObject *value, void *closure)
8293 struct srvsvc_NetSrvInfo403 *object = (struct srvsvc_NetSrvInfo403 *)pytalloc_get_ptr(py_obj);
8294 if (value == Py_None) {
8295 object->srvheuristics = NULL;
8297 object->srvheuristics = NULL;
8298 if (PyUnicode_Check(value)) {
8299 object->srvheuristics = PyString_AS_STRING(PyUnicode_AsEncodedString(value, "utf-8", "ignore"));
8300 } else if (PyString_Check(value)) {
8301 object->srvheuristics = PyString_AS_STRING(value);
8303 PyErr_Format(PyExc_TypeError, "Expected string or unicode object, got %s", Py_TYPE(value)->tp_name);
8310 static PyObject *py_srvsvc_NetSrvInfo403_get_auditedevents(PyObject *obj, void *closure)
8312 struct srvsvc_NetSrvInfo403 *object = (struct srvsvc_NetSrvInfo403 *)pytalloc_get_ptr(obj);
8313 PyObject *py_auditedevents;
8314 py_auditedevents = PyInt_FromLong(object->auditedevents);
8315 return py_auditedevents;
8318 static int py_srvsvc_NetSrvInfo403_set_auditedevents(PyObject *py_obj, PyObject *value, void *closure)
8320 struct srvsvc_NetSrvInfo403 *object = (struct srvsvc_NetSrvInfo403 *)pytalloc_get_ptr(py_obj);
8321 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
8322 object->auditedevents = PyInt_AsLong(value);
8326 static PyObject *py_srvsvc_NetSrvInfo403_get_auditprofile(PyObject *obj, void *closure)
8328 struct srvsvc_NetSrvInfo403 *object = (struct srvsvc_NetSrvInfo403 *)pytalloc_get_ptr(obj);
8329 PyObject *py_auditprofile;
8330 py_auditprofile = PyInt_FromLong(object->auditprofile);
8331 return py_auditprofile;
8334 static int py_srvsvc_NetSrvInfo403_set_auditprofile(PyObject *py_obj, PyObject *value, void *closure)
8336 struct srvsvc_NetSrvInfo403 *object = (struct srvsvc_NetSrvInfo403 *)pytalloc_get_ptr(py_obj);
8337 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
8338 object->auditprofile = PyInt_AsLong(value);
8342 static PyObject *py_srvsvc_NetSrvInfo403_get_autopath(PyObject *obj, void *closure)
8344 struct srvsvc_NetSrvInfo403 *object = (struct srvsvc_NetSrvInfo403 *)pytalloc_get_ptr(obj);
8345 PyObject *py_autopath;
8346 if (object->autopath == NULL) {
8347 py_autopath = Py_None;
8348 Py_INCREF(py_autopath);
8350 if (object->autopath == NULL) {
8351 py_autopath = Py_None;
8352 Py_INCREF(py_autopath);
8354 py_autopath = PyUnicode_Decode(object->autopath, strlen(object->autopath), "utf-8", "ignore");
8360 static int py_srvsvc_NetSrvInfo403_set_autopath(PyObject *py_obj, PyObject *value, void *closure)
8362 struct srvsvc_NetSrvInfo403 *object = (struct srvsvc_NetSrvInfo403 *)pytalloc_get_ptr(py_obj);
8363 if (value == Py_None) {
8364 object->autopath = NULL;
8366 object->autopath = NULL;
8367 if (PyUnicode_Check(value)) {
8368 object->autopath = PyString_AS_STRING(PyUnicode_AsEncodedString(value, "utf-8", "ignore"));
8369 } else if (PyString_Check(value)) {
8370 object->autopath = PyString_AS_STRING(value);
8372 PyErr_Format(PyExc_TypeError, "Expected string or unicode object, got %s", Py_TYPE(value)->tp_name);
8379 static PyGetSetDef py_srvsvc_NetSrvInfo403_getsetters[] = {
8380 { discard_const_p(char, "ulist_mtime"), py_srvsvc_NetSrvInfo403_get_ulist_mtime, py_srvsvc_NetSrvInfo403_set_ulist_mtime },
8381 { discard_const_p(char, "glist_mtime"), py_srvsvc_NetSrvInfo403_get_glist_mtime, py_srvsvc_NetSrvInfo403_set_glist_mtime },
8382 { discard_const_p(char, "alist_mtime"), py_srvsvc_NetSrvInfo403_get_alist_mtime, py_srvsvc_NetSrvInfo403_set_alist_mtime },
8383 { discard_const_p(char, "alerts"), py_srvsvc_NetSrvInfo403_get_alerts, py_srvsvc_NetSrvInfo403_set_alerts },
8384 { discard_const_p(char, "security"), py_srvsvc_NetSrvInfo403_get_security, py_srvsvc_NetSrvInfo403_set_security },
8385 { discard_const_p(char, "numadmin"), py_srvsvc_NetSrvInfo403_get_numadmin, py_srvsvc_NetSrvInfo403_set_numadmin },
8386 { discard_const_p(char, "lanmask"), py_srvsvc_NetSrvInfo403_get_lanmask, py_srvsvc_NetSrvInfo403_set_lanmask },
8387 { discard_const_p(char, "guestaccount"), py_srvsvc_NetSrvInfo403_get_guestaccount, py_srvsvc_NetSrvInfo403_set_guestaccount },
8388 { discard_const_p(char, "chdevs"), py_srvsvc_NetSrvInfo403_get_chdevs, py_srvsvc_NetSrvInfo403_set_chdevs },
8389 { discard_const_p(char, "chdevqs"), py_srvsvc_NetSrvInfo403_get_chdevqs, py_srvsvc_NetSrvInfo403_set_chdevqs },
8390 { discard_const_p(char, "chdevjobs"), py_srvsvc_NetSrvInfo403_get_chdevjobs, py_srvsvc_NetSrvInfo403_set_chdevjobs },
8391 { discard_const_p(char, "connections"), py_srvsvc_NetSrvInfo403_get_connections, py_srvsvc_NetSrvInfo403_set_connections },
8392 { discard_const_p(char, "shares"), py_srvsvc_NetSrvInfo403_get_shares, py_srvsvc_NetSrvInfo403_set_shares },
8393 { discard_const_p(char, "openfiles"), py_srvsvc_NetSrvInfo403_get_openfiles, py_srvsvc_NetSrvInfo403_set_openfiles },
8394 { discard_const_p(char, "sessopen"), py_srvsvc_NetSrvInfo403_get_sessopen, py_srvsvc_NetSrvInfo403_set_sessopen },
8395 { discard_const_p(char, "sesssvc"), py_srvsvc_NetSrvInfo403_get_sesssvc, py_srvsvc_NetSrvInfo403_set_sesssvc },
8396 { discard_const_p(char, "sessreqs"), py_srvsvc_NetSrvInfo403_get_sessreqs, py_srvsvc_NetSrvInfo403_set_sessreqs },
8397 { discard_const_p(char, "opensearch"), py_srvsvc_NetSrvInfo403_get_opensearch, py_srvsvc_NetSrvInfo403_set_opensearch },
8398 { discard_const_p(char, "activelocks"), py_srvsvc_NetSrvInfo403_get_activelocks, py_srvsvc_NetSrvInfo403_set_activelocks },
8399 { discard_const_p(char, "numreqbufs"), py_srvsvc_NetSrvInfo403_get_numreqbufs, py_srvsvc_NetSrvInfo403_set_numreqbufs },
8400 { discard_const_p(char, "sizereqbufs"), py_srvsvc_NetSrvInfo403_get_sizereqbufs, py_srvsvc_NetSrvInfo403_set_sizereqbufs },
8401 { discard_const_p(char, "numbigbufs"), py_srvsvc_NetSrvInfo403_get_numbigbufs, py_srvsvc_NetSrvInfo403_set_numbigbufs },
8402 { discard_const_p(char, "numfiletasks"), py_srvsvc_NetSrvInfo403_get_numfiletasks, py_srvsvc_NetSrvInfo403_set_numfiletasks },
8403 { discard_const_p(char, "alertsched"), py_srvsvc_NetSrvInfo403_get_alertsched, py_srvsvc_NetSrvInfo403_set_alertsched },
8404 { discard_const_p(char, "erroralert"), py_srvsvc_NetSrvInfo403_get_erroralert, py_srvsvc_NetSrvInfo403_set_erroralert },
8405 { discard_const_p(char, "logonalert"), py_srvsvc_NetSrvInfo403_get_logonalert, py_srvsvc_NetSrvInfo403_set_logonalert },
8406 { discard_const_p(char, "accessalert"), py_srvsvc_NetSrvInfo403_get_accessalert, py_srvsvc_NetSrvInfo403_set_accessalert },
8407 { discard_const_p(char, "diskalert"), py_srvsvc_NetSrvInfo403_get_diskalert, py_srvsvc_NetSrvInfo403_set_diskalert },
8408 { discard_const_p(char, "netioalert"), py_srvsvc_NetSrvInfo403_get_netioalert, py_srvsvc_NetSrvInfo403_set_netioalert },
8409 { discard_const_p(char, "maxaudits"), py_srvsvc_NetSrvInfo403_get_maxaudits, py_srvsvc_NetSrvInfo403_set_maxaudits },
8410 { discard_const_p(char, "srvheuristics"), py_srvsvc_NetSrvInfo403_get_srvheuristics, py_srvsvc_NetSrvInfo403_set_srvheuristics },
8411 { discard_const_p(char, "auditedevents"), py_srvsvc_NetSrvInfo403_get_auditedevents, py_srvsvc_NetSrvInfo403_set_auditedevents },
8412 { discard_const_p(char, "auditprofile"), py_srvsvc_NetSrvInfo403_get_auditprofile, py_srvsvc_NetSrvInfo403_set_auditprofile },
8413 { discard_const_p(char, "autopath"), py_srvsvc_NetSrvInfo403_get_autopath, py_srvsvc_NetSrvInfo403_set_autopath },
8417 static PyObject *py_srvsvc_NetSrvInfo403_new(PyTypeObject *type, PyObject *args, PyObject *kwargs)
8419 return pytalloc_new(struct srvsvc_NetSrvInfo403, type);
8423 static PyTypeObject srvsvc_NetSrvInfo403_Type = {
8424 PyObject_HEAD_INIT(NULL) 0,
8425 .tp_name = "srvsvc.NetSrvInfo403",
8426 .tp_getset = py_srvsvc_NetSrvInfo403_getsetters,
8428 .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
8429 .tp_basicsize = sizeof(pytalloc_Object),
8430 .tp_new = py_srvsvc_NetSrvInfo403_new,
8434 static PyObject *py_srvsvc_NetSrvInfo502_get_sessopen(PyObject *obj, void *closure)
8436 struct srvsvc_NetSrvInfo502 *object = (struct srvsvc_NetSrvInfo502 *)pytalloc_get_ptr(obj);
8437 PyObject *py_sessopen;
8438 py_sessopen = PyInt_FromLong(object->sessopen);
8442 static int py_srvsvc_NetSrvInfo502_set_sessopen(PyObject *py_obj, PyObject *value, void *closure)
8444 struct srvsvc_NetSrvInfo502 *object = (struct srvsvc_NetSrvInfo502 *)pytalloc_get_ptr(py_obj);
8445 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
8446 object->sessopen = PyInt_AsLong(value);
8450 static PyObject *py_srvsvc_NetSrvInfo502_get_sesssvc(PyObject *obj, void *closure)
8452 struct srvsvc_NetSrvInfo502 *object = (struct srvsvc_NetSrvInfo502 *)pytalloc_get_ptr(obj);
8453 PyObject *py_sesssvc;
8454 py_sesssvc = PyInt_FromLong(object->sesssvc);
8458 static int py_srvsvc_NetSrvInfo502_set_sesssvc(PyObject *py_obj, PyObject *value, void *closure)
8460 struct srvsvc_NetSrvInfo502 *object = (struct srvsvc_NetSrvInfo502 *)pytalloc_get_ptr(py_obj);
8461 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
8462 object->sesssvc = PyInt_AsLong(value);
8466 static PyObject *py_srvsvc_NetSrvInfo502_get_opensearch(PyObject *obj, void *closure)
8468 struct srvsvc_NetSrvInfo502 *object = (struct srvsvc_NetSrvInfo502 *)pytalloc_get_ptr(obj);
8469 PyObject *py_opensearch;
8470 py_opensearch = PyInt_FromLong(object->opensearch);
8471 return py_opensearch;
8474 static int py_srvsvc_NetSrvInfo502_set_opensearch(PyObject *py_obj, PyObject *value, void *closure)
8476 struct srvsvc_NetSrvInfo502 *object = (struct srvsvc_NetSrvInfo502 *)pytalloc_get_ptr(py_obj);
8477 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
8478 object->opensearch = PyInt_AsLong(value);
8482 static PyObject *py_srvsvc_NetSrvInfo502_get_sizereqbufs(PyObject *obj, void *closure)
8484 struct srvsvc_NetSrvInfo502 *object = (struct srvsvc_NetSrvInfo502 *)pytalloc_get_ptr(obj);
8485 PyObject *py_sizereqbufs;
8486 py_sizereqbufs = PyInt_FromLong(object->sizereqbufs);
8487 return py_sizereqbufs;
8490 static int py_srvsvc_NetSrvInfo502_set_sizereqbufs(PyObject *py_obj, PyObject *value, void *closure)
8492 struct srvsvc_NetSrvInfo502 *object = (struct srvsvc_NetSrvInfo502 *)pytalloc_get_ptr(py_obj);
8493 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
8494 object->sizereqbufs = PyInt_AsLong(value);
8498 static PyObject *py_srvsvc_NetSrvInfo502_get_initworkitems(PyObject *obj, void *closure)
8500 struct srvsvc_NetSrvInfo502 *object = (struct srvsvc_NetSrvInfo502 *)pytalloc_get_ptr(obj);
8501 PyObject *py_initworkitems;
8502 py_initworkitems = PyInt_FromLong(object->initworkitems);
8503 return py_initworkitems;
8506 static int py_srvsvc_NetSrvInfo502_set_initworkitems(PyObject *py_obj, PyObject *value, void *closure)
8508 struct srvsvc_NetSrvInfo502 *object = (struct srvsvc_NetSrvInfo502 *)pytalloc_get_ptr(py_obj);
8509 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
8510 object->initworkitems = PyInt_AsLong(value);
8514 static PyObject *py_srvsvc_NetSrvInfo502_get_maxworkitems(PyObject *obj, void *closure)
8516 struct srvsvc_NetSrvInfo502 *object = (struct srvsvc_NetSrvInfo502 *)pytalloc_get_ptr(obj);
8517 PyObject *py_maxworkitems;
8518 py_maxworkitems = PyInt_FromLong(object->maxworkitems);
8519 return py_maxworkitems;
8522 static int py_srvsvc_NetSrvInfo502_set_maxworkitems(PyObject *py_obj, PyObject *value, void *closure)
8524 struct srvsvc_NetSrvInfo502 *object = (struct srvsvc_NetSrvInfo502 *)pytalloc_get_ptr(py_obj);
8525 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
8526 object->maxworkitems = PyInt_AsLong(value);
8530 static PyObject *py_srvsvc_NetSrvInfo502_get_rawworkitems(PyObject *obj, void *closure)
8532 struct srvsvc_NetSrvInfo502 *object = (struct srvsvc_NetSrvInfo502 *)pytalloc_get_ptr(obj);
8533 PyObject *py_rawworkitems;
8534 py_rawworkitems = PyInt_FromLong(object->rawworkitems);
8535 return py_rawworkitems;
8538 static int py_srvsvc_NetSrvInfo502_set_rawworkitems(PyObject *py_obj, PyObject *value, void *closure)
8540 struct srvsvc_NetSrvInfo502 *object = (struct srvsvc_NetSrvInfo502 *)pytalloc_get_ptr(py_obj);
8541 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
8542 object->rawworkitems = PyInt_AsLong(value);
8546 static PyObject *py_srvsvc_NetSrvInfo502_get_irpstacksize(PyObject *obj, void *closure)
8548 struct srvsvc_NetSrvInfo502 *object = (struct srvsvc_NetSrvInfo502 *)pytalloc_get_ptr(obj);
8549 PyObject *py_irpstacksize;
8550 py_irpstacksize = PyInt_FromLong(object->irpstacksize);
8551 return py_irpstacksize;
8554 static int py_srvsvc_NetSrvInfo502_set_irpstacksize(PyObject *py_obj, PyObject *value, void *closure)
8556 struct srvsvc_NetSrvInfo502 *object = (struct srvsvc_NetSrvInfo502 *)pytalloc_get_ptr(py_obj);
8557 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
8558 object->irpstacksize = PyInt_AsLong(value);
8562 static PyObject *py_srvsvc_NetSrvInfo502_get_maxrawbuflen(PyObject *obj, void *closure)
8564 struct srvsvc_NetSrvInfo502 *object = (struct srvsvc_NetSrvInfo502 *)pytalloc_get_ptr(obj);
8565 PyObject *py_maxrawbuflen;
8566 py_maxrawbuflen = PyInt_FromLong(object->maxrawbuflen);
8567 return py_maxrawbuflen;
8570 static int py_srvsvc_NetSrvInfo502_set_maxrawbuflen(PyObject *py_obj, PyObject *value, void *closure)
8572 struct srvsvc_NetSrvInfo502 *object = (struct srvsvc_NetSrvInfo502 *)pytalloc_get_ptr(py_obj);
8573 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
8574 object->maxrawbuflen = PyInt_AsLong(value);
8578 static PyObject *py_srvsvc_NetSrvInfo502_get_sessusers(PyObject *obj, void *closure)
8580 struct srvsvc_NetSrvInfo502 *object = (struct srvsvc_NetSrvInfo502 *)pytalloc_get_ptr(obj);
8581 PyObject *py_sessusers;
8582 py_sessusers = PyInt_FromLong(object->sessusers);
8583 return py_sessusers;
8586 static int py_srvsvc_NetSrvInfo502_set_sessusers(PyObject *py_obj, PyObject *value, void *closure)
8588 struct srvsvc_NetSrvInfo502 *object = (struct srvsvc_NetSrvInfo502 *)pytalloc_get_ptr(py_obj);
8589 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
8590 object->sessusers = PyInt_AsLong(value);
8594 static PyObject *py_srvsvc_NetSrvInfo502_get_sessconns(PyObject *obj, void *closure)
8596 struct srvsvc_NetSrvInfo502 *object = (struct srvsvc_NetSrvInfo502 *)pytalloc_get_ptr(obj);
8597 PyObject *py_sessconns;
8598 py_sessconns = PyInt_FromLong(object->sessconns);
8599 return py_sessconns;
8602 static int py_srvsvc_NetSrvInfo502_set_sessconns(PyObject *py_obj, PyObject *value, void *closure)
8604 struct srvsvc_NetSrvInfo502 *object = (struct srvsvc_NetSrvInfo502 *)pytalloc_get_ptr(py_obj);
8605 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
8606 object->sessconns = PyInt_AsLong(value);
8610 static PyObject *py_srvsvc_NetSrvInfo502_get_maxpagedmemoryusage(PyObject *obj, void *closure)
8612 struct srvsvc_NetSrvInfo502 *object = (struct srvsvc_NetSrvInfo502 *)pytalloc_get_ptr(obj);
8613 PyObject *py_maxpagedmemoryusage;
8614 py_maxpagedmemoryusage = PyInt_FromLong(object->maxpagedmemoryusage);
8615 return py_maxpagedmemoryusage;
8618 static int py_srvsvc_NetSrvInfo502_set_maxpagedmemoryusage(PyObject *py_obj, PyObject *value, void *closure)
8620 struct srvsvc_NetSrvInfo502 *object = (struct srvsvc_NetSrvInfo502 *)pytalloc_get_ptr(py_obj);
8621 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
8622 object->maxpagedmemoryusage = PyInt_AsLong(value);
8626 static PyObject *py_srvsvc_NetSrvInfo502_get_maxnonpagedmemoryusage(PyObject *obj, void *closure)
8628 struct srvsvc_NetSrvInfo502 *object = (struct srvsvc_NetSrvInfo502 *)pytalloc_get_ptr(obj);
8629 PyObject *py_maxnonpagedmemoryusage;
8630 py_maxnonpagedmemoryusage = PyInt_FromLong(object->maxnonpagedmemoryusage);
8631 return py_maxnonpagedmemoryusage;
8634 static int py_srvsvc_NetSrvInfo502_set_maxnonpagedmemoryusage(PyObject *py_obj, PyObject *value, void *closure)
8636 struct srvsvc_NetSrvInfo502 *object = (struct srvsvc_NetSrvInfo502 *)pytalloc_get_ptr(py_obj);
8637 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
8638 object->maxnonpagedmemoryusage = PyInt_AsLong(value);
8642 static PyObject *py_srvsvc_NetSrvInfo502_get_enablesoftcompat(PyObject *obj, void *closure)
8644 struct srvsvc_NetSrvInfo502 *object = (struct srvsvc_NetSrvInfo502 *)pytalloc_get_ptr(obj);
8645 PyObject *py_enablesoftcompat;
8646 py_enablesoftcompat = PyInt_FromLong(object->enablesoftcompat);
8647 return py_enablesoftcompat;
8650 static int py_srvsvc_NetSrvInfo502_set_enablesoftcompat(PyObject *py_obj, PyObject *value, void *closure)
8652 struct srvsvc_NetSrvInfo502 *object = (struct srvsvc_NetSrvInfo502 *)pytalloc_get_ptr(py_obj);
8653 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
8654 object->enablesoftcompat = PyInt_AsLong(value);
8658 static PyObject *py_srvsvc_NetSrvInfo502_get_enableforcedlogoff(PyObject *obj, void *closure)
8660 struct srvsvc_NetSrvInfo502 *object = (struct srvsvc_NetSrvInfo502 *)pytalloc_get_ptr(obj);
8661 PyObject *py_enableforcedlogoff;
8662 py_enableforcedlogoff = PyInt_FromLong(object->enableforcedlogoff);
8663 return py_enableforcedlogoff;
8666 static int py_srvsvc_NetSrvInfo502_set_enableforcedlogoff(PyObject *py_obj, PyObject *value, void *closure)
8668 struct srvsvc_NetSrvInfo502 *object = (struct srvsvc_NetSrvInfo502 *)pytalloc_get_ptr(py_obj);
8669 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
8670 object->enableforcedlogoff = PyInt_AsLong(value);
8674 static PyObject *py_srvsvc_NetSrvInfo502_get_timesource(PyObject *obj, void *closure)
8676 struct srvsvc_NetSrvInfo502 *object = (struct srvsvc_NetSrvInfo502 *)pytalloc_get_ptr(obj);
8677 PyObject *py_timesource;
8678 py_timesource = PyInt_FromLong(object->timesource);
8679 return py_timesource;
8682 static int py_srvsvc_NetSrvInfo502_set_timesource(PyObject *py_obj, PyObject *value, void *closure)
8684 struct srvsvc_NetSrvInfo502 *object = (struct srvsvc_NetSrvInfo502 *)pytalloc_get_ptr(py_obj);
8685 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
8686 object->timesource = PyInt_AsLong(value);
8690 static PyObject *py_srvsvc_NetSrvInfo502_get_acceptdownlevelapis(PyObject *obj, void *closure)
8692 struct srvsvc_NetSrvInfo502 *object = (struct srvsvc_NetSrvInfo502 *)pytalloc_get_ptr(obj);
8693 PyObject *py_acceptdownlevelapis;
8694 py_acceptdownlevelapis = PyInt_FromLong(object->acceptdownlevelapis);
8695 return py_acceptdownlevelapis;
8698 static int py_srvsvc_NetSrvInfo502_set_acceptdownlevelapis(PyObject *py_obj, PyObject *value, void *closure)
8700 struct srvsvc_NetSrvInfo502 *object = (struct srvsvc_NetSrvInfo502 *)pytalloc_get_ptr(py_obj);
8701 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
8702 object->acceptdownlevelapis = PyInt_AsLong(value);
8706 static PyObject *py_srvsvc_NetSrvInfo502_get_lmannounce(PyObject *obj, void *closure)
8708 struct srvsvc_NetSrvInfo502 *object = (struct srvsvc_NetSrvInfo502 *)pytalloc_get_ptr(obj);
8709 PyObject *py_lmannounce;
8710 py_lmannounce = PyInt_FromLong(object->lmannounce);
8711 return py_lmannounce;
8714 static int py_srvsvc_NetSrvInfo502_set_lmannounce(PyObject *py_obj, PyObject *value, void *closure)
8716 struct srvsvc_NetSrvInfo502 *object = (struct srvsvc_NetSrvInfo502 *)pytalloc_get_ptr(py_obj);
8717 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
8718 object->lmannounce = PyInt_AsLong(value);
8722 static PyGetSetDef py_srvsvc_NetSrvInfo502_getsetters[] = {
8723 { discard_const_p(char, "sessopen"), py_srvsvc_NetSrvInfo502_get_sessopen, py_srvsvc_NetSrvInfo502_set_sessopen },
8724 { discard_const_p(char, "sesssvc"), py_srvsvc_NetSrvInfo502_get_sesssvc, py_srvsvc_NetSrvInfo502_set_sesssvc },
8725 { discard_const_p(char, "opensearch"), py_srvsvc_NetSrvInfo502_get_opensearch, py_srvsvc_NetSrvInfo502_set_opensearch },
8726 { discard_const_p(char, "sizereqbufs"), py_srvsvc_NetSrvInfo502_get_sizereqbufs, py_srvsvc_NetSrvInfo502_set_sizereqbufs },
8727 { discard_const_p(char, "initworkitems"), py_srvsvc_NetSrvInfo502_get_initworkitems, py_srvsvc_NetSrvInfo502_set_initworkitems },
8728 { discard_const_p(char, "maxworkitems"), py_srvsvc_NetSrvInfo502_get_maxworkitems, py_srvsvc_NetSrvInfo502_set_maxworkitems },
8729 { discard_const_p(char, "rawworkitems"), py_srvsvc_NetSrvInfo502_get_rawworkitems, py_srvsvc_NetSrvInfo502_set_rawworkitems },
8730 { discard_const_p(char, "irpstacksize"), py_srvsvc_NetSrvInfo502_get_irpstacksize, py_srvsvc_NetSrvInfo502_set_irpstacksize },
8731 { discard_const_p(char, "maxrawbuflen"), py_srvsvc_NetSrvInfo502_get_maxrawbuflen, py_srvsvc_NetSrvInfo502_set_maxrawbuflen },
8732 { discard_const_p(char, "sessusers"), py_srvsvc_NetSrvInfo502_get_sessusers, py_srvsvc_NetSrvInfo502_set_sessusers },
8733 { discard_const_p(char, "sessconns"), py_srvsvc_NetSrvInfo502_get_sessconns, py_srvsvc_NetSrvInfo502_set_sessconns },
8734 { discard_const_p(char, "maxpagedmemoryusage"), py_srvsvc_NetSrvInfo502_get_maxpagedmemoryusage, py_srvsvc_NetSrvInfo502_set_maxpagedmemoryusage },
8735 { discard_const_p(char, "maxnonpagedmemoryusage"), py_srvsvc_NetSrvInfo502_get_maxnonpagedmemoryusage, py_srvsvc_NetSrvInfo502_set_maxnonpagedmemoryusage },
8736 { discard_const_p(char, "enablesoftcompat"), py_srvsvc_NetSrvInfo502_get_enablesoftcompat, py_srvsvc_NetSrvInfo502_set_enablesoftcompat },
8737 { discard_const_p(char, "enableforcedlogoff"), py_srvsvc_NetSrvInfo502_get_enableforcedlogoff, py_srvsvc_NetSrvInfo502_set_enableforcedlogoff },
8738 { discard_const_p(char, "timesource"), py_srvsvc_NetSrvInfo502_get_timesource, py_srvsvc_NetSrvInfo502_set_timesource },
8739 { discard_const_p(char, "acceptdownlevelapis"), py_srvsvc_NetSrvInfo502_get_acceptdownlevelapis, py_srvsvc_NetSrvInfo502_set_acceptdownlevelapis },
8740 { discard_const_p(char, "lmannounce"), py_srvsvc_NetSrvInfo502_get_lmannounce, py_srvsvc_NetSrvInfo502_set_lmannounce },
8744 static PyObject *py_srvsvc_NetSrvInfo502_new(PyTypeObject *type, PyObject *args, PyObject *kwargs)
8746 return pytalloc_new(struct srvsvc_NetSrvInfo502, type);
8750 static PyTypeObject srvsvc_NetSrvInfo502_Type = {
8751 PyObject_HEAD_INIT(NULL) 0,
8752 .tp_name = "srvsvc.NetSrvInfo502",
8753 .tp_getset = py_srvsvc_NetSrvInfo502_getsetters,
8755 .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
8756 .tp_basicsize = sizeof(pytalloc_Object),
8757 .tp_new = py_srvsvc_NetSrvInfo502_new,
8761 static PyObject *py_srvsvc_NetSrvInfo503_get_sessopen(PyObject *obj, void *closure)
8763 struct srvsvc_NetSrvInfo503 *object = (struct srvsvc_NetSrvInfo503 *)pytalloc_get_ptr(obj);
8764 PyObject *py_sessopen;
8765 py_sessopen = PyInt_FromLong(object->sessopen);
8769 static int py_srvsvc_NetSrvInfo503_set_sessopen(PyObject *py_obj, PyObject *value, void *closure)
8771 struct srvsvc_NetSrvInfo503 *object = (struct srvsvc_NetSrvInfo503 *)pytalloc_get_ptr(py_obj);
8772 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
8773 object->sessopen = PyInt_AsLong(value);
8777 static PyObject *py_srvsvc_NetSrvInfo503_get_sesssvc(PyObject *obj, void *closure)
8779 struct srvsvc_NetSrvInfo503 *object = (struct srvsvc_NetSrvInfo503 *)pytalloc_get_ptr(obj);
8780 PyObject *py_sesssvc;
8781 py_sesssvc = PyInt_FromLong(object->sesssvc);
8785 static int py_srvsvc_NetSrvInfo503_set_sesssvc(PyObject *py_obj, PyObject *value, void *closure)
8787 struct srvsvc_NetSrvInfo503 *object = (struct srvsvc_NetSrvInfo503 *)pytalloc_get_ptr(py_obj);
8788 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
8789 object->sesssvc = PyInt_AsLong(value);
8793 static PyObject *py_srvsvc_NetSrvInfo503_get_opensearch(PyObject *obj, void *closure)
8795 struct srvsvc_NetSrvInfo503 *object = (struct srvsvc_NetSrvInfo503 *)pytalloc_get_ptr(obj);
8796 PyObject *py_opensearch;
8797 py_opensearch = PyInt_FromLong(object->opensearch);
8798 return py_opensearch;
8801 static int py_srvsvc_NetSrvInfo503_set_opensearch(PyObject *py_obj, PyObject *value, void *closure)
8803 struct srvsvc_NetSrvInfo503 *object = (struct srvsvc_NetSrvInfo503 *)pytalloc_get_ptr(py_obj);
8804 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
8805 object->opensearch = PyInt_AsLong(value);
8809 static PyObject *py_srvsvc_NetSrvInfo503_get_sizereqbufs(PyObject *obj, void *closure)
8811 struct srvsvc_NetSrvInfo503 *object = (struct srvsvc_NetSrvInfo503 *)pytalloc_get_ptr(obj);
8812 PyObject *py_sizereqbufs;
8813 py_sizereqbufs = PyInt_FromLong(object->sizereqbufs);
8814 return py_sizereqbufs;
8817 static int py_srvsvc_NetSrvInfo503_set_sizereqbufs(PyObject *py_obj, PyObject *value, void *closure)
8819 struct srvsvc_NetSrvInfo503 *object = (struct srvsvc_NetSrvInfo503 *)pytalloc_get_ptr(py_obj);
8820 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
8821 object->sizereqbufs = PyInt_AsLong(value);
8825 static PyObject *py_srvsvc_NetSrvInfo503_get_initworkitems(PyObject *obj, void *closure)
8827 struct srvsvc_NetSrvInfo503 *object = (struct srvsvc_NetSrvInfo503 *)pytalloc_get_ptr(obj);
8828 PyObject *py_initworkitems;
8829 py_initworkitems = PyInt_FromLong(object->initworkitems);
8830 return py_initworkitems;
8833 static int py_srvsvc_NetSrvInfo503_set_initworkitems(PyObject *py_obj, PyObject *value, void *closure)
8835 struct srvsvc_NetSrvInfo503 *object = (struct srvsvc_NetSrvInfo503 *)pytalloc_get_ptr(py_obj);
8836 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
8837 object->initworkitems = PyInt_AsLong(value);
8841 static PyObject *py_srvsvc_NetSrvInfo503_get_maxworkitems(PyObject *obj, void *closure)
8843 struct srvsvc_NetSrvInfo503 *object = (struct srvsvc_NetSrvInfo503 *)pytalloc_get_ptr(obj);
8844 PyObject *py_maxworkitems;
8845 py_maxworkitems = PyInt_FromLong(object->maxworkitems);
8846 return py_maxworkitems;
8849 static int py_srvsvc_NetSrvInfo503_set_maxworkitems(PyObject *py_obj, PyObject *value, void *closure)
8851 struct srvsvc_NetSrvInfo503 *object = (struct srvsvc_NetSrvInfo503 *)pytalloc_get_ptr(py_obj);
8852 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
8853 object->maxworkitems = PyInt_AsLong(value);
8857 static PyObject *py_srvsvc_NetSrvInfo503_get_rawworkitems(PyObject *obj, void *closure)
8859 struct srvsvc_NetSrvInfo503 *object = (struct srvsvc_NetSrvInfo503 *)pytalloc_get_ptr(obj);
8860 PyObject *py_rawworkitems;
8861 py_rawworkitems = PyInt_FromLong(object->rawworkitems);
8862 return py_rawworkitems;
8865 static int py_srvsvc_NetSrvInfo503_set_rawworkitems(PyObject *py_obj, PyObject *value, void *closure)
8867 struct srvsvc_NetSrvInfo503 *object = (struct srvsvc_NetSrvInfo503 *)pytalloc_get_ptr(py_obj);
8868 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
8869 object->rawworkitems = PyInt_AsLong(value);
8873 static PyObject *py_srvsvc_NetSrvInfo503_get_irpstacksize(PyObject *obj, void *closure)
8875 struct srvsvc_NetSrvInfo503 *object = (struct srvsvc_NetSrvInfo503 *)pytalloc_get_ptr(obj);
8876 PyObject *py_irpstacksize;
8877 py_irpstacksize = PyInt_FromLong(object->irpstacksize);
8878 return py_irpstacksize;
8881 static int py_srvsvc_NetSrvInfo503_set_irpstacksize(PyObject *py_obj, PyObject *value, void *closure)
8883 struct srvsvc_NetSrvInfo503 *object = (struct srvsvc_NetSrvInfo503 *)pytalloc_get_ptr(py_obj);
8884 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
8885 object->irpstacksize = PyInt_AsLong(value);
8889 static PyObject *py_srvsvc_NetSrvInfo503_get_maxrawbuflen(PyObject *obj, void *closure)
8891 struct srvsvc_NetSrvInfo503 *object = (struct srvsvc_NetSrvInfo503 *)pytalloc_get_ptr(obj);
8892 PyObject *py_maxrawbuflen;
8893 py_maxrawbuflen = PyInt_FromLong(object->maxrawbuflen);
8894 return py_maxrawbuflen;
8897 static int py_srvsvc_NetSrvInfo503_set_maxrawbuflen(PyObject *py_obj, PyObject *value, void *closure)
8899 struct srvsvc_NetSrvInfo503 *object = (struct srvsvc_NetSrvInfo503 *)pytalloc_get_ptr(py_obj);
8900 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
8901 object->maxrawbuflen = PyInt_AsLong(value);
8905 static PyObject *py_srvsvc_NetSrvInfo503_get_sessusers(PyObject *obj, void *closure)
8907 struct srvsvc_NetSrvInfo503 *object = (struct srvsvc_NetSrvInfo503 *)pytalloc_get_ptr(obj);
8908 PyObject *py_sessusers;
8909 py_sessusers = PyInt_FromLong(object->sessusers);
8910 return py_sessusers;
8913 static int py_srvsvc_NetSrvInfo503_set_sessusers(PyObject *py_obj, PyObject *value, void *closure)
8915 struct srvsvc_NetSrvInfo503 *object = (struct srvsvc_NetSrvInfo503 *)pytalloc_get_ptr(py_obj);
8916 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
8917 object->sessusers = PyInt_AsLong(value);
8921 static PyObject *py_srvsvc_NetSrvInfo503_get_sessconns(PyObject *obj, void *closure)
8923 struct srvsvc_NetSrvInfo503 *object = (struct srvsvc_NetSrvInfo503 *)pytalloc_get_ptr(obj);
8924 PyObject *py_sessconns;
8925 py_sessconns = PyInt_FromLong(object->sessconns);
8926 return py_sessconns;
8929 static int py_srvsvc_NetSrvInfo503_set_sessconns(PyObject *py_obj, PyObject *value, void *closure)
8931 struct srvsvc_NetSrvInfo503 *object = (struct srvsvc_NetSrvInfo503 *)pytalloc_get_ptr(py_obj);
8932 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
8933 object->sessconns = PyInt_AsLong(value);
8937 static PyObject *py_srvsvc_NetSrvInfo503_get_maxpagedmemoryusage(PyObject *obj, void *closure)
8939 struct srvsvc_NetSrvInfo503 *object = (struct srvsvc_NetSrvInfo503 *)pytalloc_get_ptr(obj);
8940 PyObject *py_maxpagedmemoryusage;
8941 py_maxpagedmemoryusage = PyInt_FromLong(object->maxpagedmemoryusage);
8942 return py_maxpagedmemoryusage;
8945 static int py_srvsvc_NetSrvInfo503_set_maxpagedmemoryusage(PyObject *py_obj, PyObject *value, void *closure)
8947 struct srvsvc_NetSrvInfo503 *object = (struct srvsvc_NetSrvInfo503 *)pytalloc_get_ptr(py_obj);
8948 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
8949 object->maxpagedmemoryusage = PyInt_AsLong(value);
8953 static PyObject *py_srvsvc_NetSrvInfo503_get_maxnonpagedmemoryusage(PyObject *obj, void *closure)
8955 struct srvsvc_NetSrvInfo503 *object = (struct srvsvc_NetSrvInfo503 *)pytalloc_get_ptr(obj);
8956 PyObject *py_maxnonpagedmemoryusage;
8957 py_maxnonpagedmemoryusage = PyInt_FromLong(object->maxnonpagedmemoryusage);
8958 return py_maxnonpagedmemoryusage;
8961 static int py_srvsvc_NetSrvInfo503_set_maxnonpagedmemoryusage(PyObject *py_obj, PyObject *value, void *closure)
8963 struct srvsvc_NetSrvInfo503 *object = (struct srvsvc_NetSrvInfo503 *)pytalloc_get_ptr(py_obj);
8964 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
8965 object->maxnonpagedmemoryusage = PyInt_AsLong(value);
8969 static PyObject *py_srvsvc_NetSrvInfo503_get_enablesoftcompat(PyObject *obj, void *closure)
8971 struct srvsvc_NetSrvInfo503 *object = (struct srvsvc_NetSrvInfo503 *)pytalloc_get_ptr(obj);
8972 PyObject *py_enablesoftcompat;
8973 py_enablesoftcompat = PyInt_FromLong(object->enablesoftcompat);
8974 return py_enablesoftcompat;
8977 static int py_srvsvc_NetSrvInfo503_set_enablesoftcompat(PyObject *py_obj, PyObject *value, void *closure)
8979 struct srvsvc_NetSrvInfo503 *object = (struct srvsvc_NetSrvInfo503 *)pytalloc_get_ptr(py_obj);
8980 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
8981 object->enablesoftcompat = PyInt_AsLong(value);
8985 static PyObject *py_srvsvc_NetSrvInfo503_get_enableforcedlogoff(PyObject *obj, void *closure)
8987 struct srvsvc_NetSrvInfo503 *object = (struct srvsvc_NetSrvInfo503 *)pytalloc_get_ptr(obj);
8988 PyObject *py_enableforcedlogoff;
8989 py_enableforcedlogoff = PyInt_FromLong(object->enableforcedlogoff);
8990 return py_enableforcedlogoff;
8993 static int py_srvsvc_NetSrvInfo503_set_enableforcedlogoff(PyObject *py_obj, PyObject *value, void *closure)
8995 struct srvsvc_NetSrvInfo503 *object = (struct srvsvc_NetSrvInfo503 *)pytalloc_get_ptr(py_obj);
8996 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
8997 object->enableforcedlogoff = PyInt_AsLong(value);
9001 static PyObject *py_srvsvc_NetSrvInfo503_get_timesource(PyObject *obj, void *closure)
9003 struct srvsvc_NetSrvInfo503 *object = (struct srvsvc_NetSrvInfo503 *)pytalloc_get_ptr(obj);
9004 PyObject *py_timesource;
9005 py_timesource = PyInt_FromLong(object->timesource);
9006 return py_timesource;
9009 static int py_srvsvc_NetSrvInfo503_set_timesource(PyObject *py_obj, PyObject *value, void *closure)
9011 struct srvsvc_NetSrvInfo503 *object = (struct srvsvc_NetSrvInfo503 *)pytalloc_get_ptr(py_obj);
9012 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
9013 object->timesource = PyInt_AsLong(value);
9017 static PyObject *py_srvsvc_NetSrvInfo503_get_acceptdownlevelapis(PyObject *obj, void *closure)
9019 struct srvsvc_NetSrvInfo503 *object = (struct srvsvc_NetSrvInfo503 *)pytalloc_get_ptr(obj);
9020 PyObject *py_acceptdownlevelapis;
9021 py_acceptdownlevelapis = PyInt_FromLong(object->acceptdownlevelapis);
9022 return py_acceptdownlevelapis;
9025 static int py_srvsvc_NetSrvInfo503_set_acceptdownlevelapis(PyObject *py_obj, PyObject *value, void *closure)
9027 struct srvsvc_NetSrvInfo503 *object = (struct srvsvc_NetSrvInfo503 *)pytalloc_get_ptr(py_obj);
9028 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
9029 object->acceptdownlevelapis = PyInt_AsLong(value);
9033 static PyObject *py_srvsvc_NetSrvInfo503_get_lmannounce(PyObject *obj, void *closure)
9035 struct srvsvc_NetSrvInfo503 *object = (struct srvsvc_NetSrvInfo503 *)pytalloc_get_ptr(obj);
9036 PyObject *py_lmannounce;
9037 py_lmannounce = PyInt_FromLong(object->lmannounce);
9038 return py_lmannounce;
9041 static int py_srvsvc_NetSrvInfo503_set_lmannounce(PyObject *py_obj, PyObject *value, void *closure)
9043 struct srvsvc_NetSrvInfo503 *object = (struct srvsvc_NetSrvInfo503 *)pytalloc_get_ptr(py_obj);
9044 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
9045 object->lmannounce = PyInt_AsLong(value);
9049 static PyObject *py_srvsvc_NetSrvInfo503_get_domain(PyObject *obj, void *closure)
9051 struct srvsvc_NetSrvInfo503 *object = (struct srvsvc_NetSrvInfo503 *)pytalloc_get_ptr(obj);
9052 PyObject *py_domain;
9053 if (object->domain == NULL) {
9054 py_domain = Py_None;
9055 Py_INCREF(py_domain);
9057 if (object->domain == NULL) {
9058 py_domain = Py_None;
9059 Py_INCREF(py_domain);
9061 py_domain = PyUnicode_Decode(object->domain, strlen(object->domain), "utf-8", "ignore");
9067 static int py_srvsvc_NetSrvInfo503_set_domain(PyObject *py_obj, PyObject *value, void *closure)
9069 struct srvsvc_NetSrvInfo503 *object = (struct srvsvc_NetSrvInfo503 *)pytalloc_get_ptr(py_obj);
9070 if (value == Py_None) {
9071 object->domain = NULL;
9073 object->domain = NULL;
9074 if (PyUnicode_Check(value)) {
9075 object->domain = PyString_AS_STRING(PyUnicode_AsEncodedString(value, "utf-8", "ignore"));
9076 } else if (PyString_Check(value)) {
9077 object->domain = PyString_AS_STRING(value);
9079 PyErr_Format(PyExc_TypeError, "Expected string or unicode object, got %s", Py_TYPE(value)->tp_name);
9086 static PyObject *py_srvsvc_NetSrvInfo503_get_maxcopyreadlen(PyObject *obj, void *closure)
9088 struct srvsvc_NetSrvInfo503 *object = (struct srvsvc_NetSrvInfo503 *)pytalloc_get_ptr(obj);
9089 PyObject *py_maxcopyreadlen;
9090 py_maxcopyreadlen = PyInt_FromLong(object->maxcopyreadlen);
9091 return py_maxcopyreadlen;
9094 static int py_srvsvc_NetSrvInfo503_set_maxcopyreadlen(PyObject *py_obj, PyObject *value, void *closure)
9096 struct srvsvc_NetSrvInfo503 *object = (struct srvsvc_NetSrvInfo503 *)pytalloc_get_ptr(py_obj);
9097 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
9098 object->maxcopyreadlen = PyInt_AsLong(value);
9102 static PyObject *py_srvsvc_NetSrvInfo503_get_maxcopywritelen(PyObject *obj, void *closure)
9104 struct srvsvc_NetSrvInfo503 *object = (struct srvsvc_NetSrvInfo503 *)pytalloc_get_ptr(obj);
9105 PyObject *py_maxcopywritelen;
9106 py_maxcopywritelen = PyInt_FromLong(object->maxcopywritelen);
9107 return py_maxcopywritelen;
9110 static int py_srvsvc_NetSrvInfo503_set_maxcopywritelen(PyObject *py_obj, PyObject *value, void *closure)
9112 struct srvsvc_NetSrvInfo503 *object = (struct srvsvc_NetSrvInfo503 *)pytalloc_get_ptr(py_obj);
9113 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
9114 object->maxcopywritelen = PyInt_AsLong(value);
9118 static PyObject *py_srvsvc_NetSrvInfo503_get_minkeepsearch(PyObject *obj, void *closure)
9120 struct srvsvc_NetSrvInfo503 *object = (struct srvsvc_NetSrvInfo503 *)pytalloc_get_ptr(obj);
9121 PyObject *py_minkeepsearch;
9122 py_minkeepsearch = PyInt_FromLong(object->minkeepsearch);
9123 return py_minkeepsearch;
9126 static int py_srvsvc_NetSrvInfo503_set_minkeepsearch(PyObject *py_obj, PyObject *value, void *closure)
9128 struct srvsvc_NetSrvInfo503 *object = (struct srvsvc_NetSrvInfo503 *)pytalloc_get_ptr(py_obj);
9129 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
9130 object->minkeepsearch = PyInt_AsLong(value);
9134 static PyObject *py_srvsvc_NetSrvInfo503_get_maxkeepsearch(PyObject *obj, void *closure)
9136 struct srvsvc_NetSrvInfo503 *object = (struct srvsvc_NetSrvInfo503 *)pytalloc_get_ptr(obj);
9137 PyObject *py_maxkeepsearch;
9138 py_maxkeepsearch = PyInt_FromLong(object->maxkeepsearch);
9139 return py_maxkeepsearch;
9142 static int py_srvsvc_NetSrvInfo503_set_maxkeepsearch(PyObject *py_obj, PyObject *value, void *closure)
9144 struct srvsvc_NetSrvInfo503 *object = (struct srvsvc_NetSrvInfo503 *)pytalloc_get_ptr(py_obj);
9145 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
9146 object->maxkeepsearch = PyInt_AsLong(value);
9150 static PyObject *py_srvsvc_NetSrvInfo503_get_minkeepcomplsearch(PyObject *obj, void *closure)
9152 struct srvsvc_NetSrvInfo503 *object = (struct srvsvc_NetSrvInfo503 *)pytalloc_get_ptr(obj);
9153 PyObject *py_minkeepcomplsearch;
9154 py_minkeepcomplsearch = PyInt_FromLong(object->minkeepcomplsearch);
9155 return py_minkeepcomplsearch;
9158 static int py_srvsvc_NetSrvInfo503_set_minkeepcomplsearch(PyObject *py_obj, PyObject *value, void *closure)
9160 struct srvsvc_NetSrvInfo503 *object = (struct srvsvc_NetSrvInfo503 *)pytalloc_get_ptr(py_obj);
9161 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
9162 object->minkeepcomplsearch = PyInt_AsLong(value);
9166 static PyObject *py_srvsvc_NetSrvInfo503_get_maxkeepcomplsearch(PyObject *obj, void *closure)
9168 struct srvsvc_NetSrvInfo503 *object = (struct srvsvc_NetSrvInfo503 *)pytalloc_get_ptr(obj);
9169 PyObject *py_maxkeepcomplsearch;
9170 py_maxkeepcomplsearch = PyInt_FromLong(object->maxkeepcomplsearch);
9171 return py_maxkeepcomplsearch;
9174 static int py_srvsvc_NetSrvInfo503_set_maxkeepcomplsearch(PyObject *py_obj, PyObject *value, void *closure)
9176 struct srvsvc_NetSrvInfo503 *object = (struct srvsvc_NetSrvInfo503 *)pytalloc_get_ptr(py_obj);
9177 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
9178 object->maxkeepcomplsearch = PyInt_AsLong(value);
9182 static PyObject *py_srvsvc_NetSrvInfo503_get_threadcountadd(PyObject *obj, void *closure)
9184 struct srvsvc_NetSrvInfo503 *object = (struct srvsvc_NetSrvInfo503 *)pytalloc_get_ptr(obj);
9185 PyObject *py_threadcountadd;
9186 py_threadcountadd = PyInt_FromLong(object->threadcountadd);
9187 return py_threadcountadd;
9190 static int py_srvsvc_NetSrvInfo503_set_threadcountadd(PyObject *py_obj, PyObject *value, void *closure)
9192 struct srvsvc_NetSrvInfo503 *object = (struct srvsvc_NetSrvInfo503 *)pytalloc_get_ptr(py_obj);
9193 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
9194 object->threadcountadd = PyInt_AsLong(value);
9198 static PyObject *py_srvsvc_NetSrvInfo503_get_numlockthreads(PyObject *obj, void *closure)
9200 struct srvsvc_NetSrvInfo503 *object = (struct srvsvc_NetSrvInfo503 *)pytalloc_get_ptr(obj);
9201 PyObject *py_numlockthreads;
9202 py_numlockthreads = PyInt_FromLong(object->numlockthreads);
9203 return py_numlockthreads;
9206 static int py_srvsvc_NetSrvInfo503_set_numlockthreads(PyObject *py_obj, PyObject *value, void *closure)
9208 struct srvsvc_NetSrvInfo503 *object = (struct srvsvc_NetSrvInfo503 *)pytalloc_get_ptr(py_obj);
9209 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
9210 object->numlockthreads = PyInt_AsLong(value);
9214 static PyObject *py_srvsvc_NetSrvInfo503_get_scavtimeout(PyObject *obj, void *closure)
9216 struct srvsvc_NetSrvInfo503 *object = (struct srvsvc_NetSrvInfo503 *)pytalloc_get_ptr(obj);
9217 PyObject *py_scavtimeout;
9218 py_scavtimeout = PyInt_FromLong(object->scavtimeout);
9219 return py_scavtimeout;
9222 static int py_srvsvc_NetSrvInfo503_set_scavtimeout(PyObject *py_obj, PyObject *value, void *closure)
9224 struct srvsvc_NetSrvInfo503 *object = (struct srvsvc_NetSrvInfo503 *)pytalloc_get_ptr(py_obj);
9225 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
9226 object->scavtimeout = PyInt_AsLong(value);
9230 static PyObject *py_srvsvc_NetSrvInfo503_get_minrcvqueue(PyObject *obj, void *closure)
9232 struct srvsvc_NetSrvInfo503 *object = (struct srvsvc_NetSrvInfo503 *)pytalloc_get_ptr(obj);
9233 PyObject *py_minrcvqueue;
9234 py_minrcvqueue = PyInt_FromLong(object->minrcvqueue);
9235 return py_minrcvqueue;
9238 static int py_srvsvc_NetSrvInfo503_set_minrcvqueue(PyObject *py_obj, PyObject *value, void *closure)
9240 struct srvsvc_NetSrvInfo503 *object = (struct srvsvc_NetSrvInfo503 *)pytalloc_get_ptr(py_obj);
9241 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
9242 object->minrcvqueue = PyInt_AsLong(value);
9246 static PyObject *py_srvsvc_NetSrvInfo503_get_minfreeworkitems(PyObject *obj, void *closure)
9248 struct srvsvc_NetSrvInfo503 *object = (struct srvsvc_NetSrvInfo503 *)pytalloc_get_ptr(obj);
9249 PyObject *py_minfreeworkitems;
9250 py_minfreeworkitems = PyInt_FromLong(object->minfreeworkitems);
9251 return py_minfreeworkitems;
9254 static int py_srvsvc_NetSrvInfo503_set_minfreeworkitems(PyObject *py_obj, PyObject *value, void *closure)
9256 struct srvsvc_NetSrvInfo503 *object = (struct srvsvc_NetSrvInfo503 *)pytalloc_get_ptr(py_obj);
9257 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
9258 object->minfreeworkitems = PyInt_AsLong(value);
9262 static PyObject *py_srvsvc_NetSrvInfo503_get_xactmemsize(PyObject *obj, void *closure)
9264 struct srvsvc_NetSrvInfo503 *object = (struct srvsvc_NetSrvInfo503 *)pytalloc_get_ptr(obj);
9265 PyObject *py_xactmemsize;
9266 py_xactmemsize = PyInt_FromLong(object->xactmemsize);
9267 return py_xactmemsize;
9270 static int py_srvsvc_NetSrvInfo503_set_xactmemsize(PyObject *py_obj, PyObject *value, void *closure)
9272 struct srvsvc_NetSrvInfo503 *object = (struct srvsvc_NetSrvInfo503 *)pytalloc_get_ptr(py_obj);
9273 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
9274 object->xactmemsize = PyInt_AsLong(value);
9278 static PyObject *py_srvsvc_NetSrvInfo503_get_threadpriority(PyObject *obj, void *closure)
9280 struct srvsvc_NetSrvInfo503 *object = (struct srvsvc_NetSrvInfo503 *)pytalloc_get_ptr(obj);
9281 PyObject *py_threadpriority;
9282 py_threadpriority = PyInt_FromLong(object->threadpriority);
9283 return py_threadpriority;
9286 static int py_srvsvc_NetSrvInfo503_set_threadpriority(PyObject *py_obj, PyObject *value, void *closure)
9288 struct srvsvc_NetSrvInfo503 *object = (struct srvsvc_NetSrvInfo503 *)pytalloc_get_ptr(py_obj);
9289 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
9290 object->threadpriority = PyInt_AsLong(value);
9294 static PyObject *py_srvsvc_NetSrvInfo503_get_maxmpxct(PyObject *obj, void *closure)
9296 struct srvsvc_NetSrvInfo503 *object = (struct srvsvc_NetSrvInfo503 *)pytalloc_get_ptr(obj);
9297 PyObject *py_maxmpxct;
9298 py_maxmpxct = PyInt_FromLong(object->maxmpxct);
9302 static int py_srvsvc_NetSrvInfo503_set_maxmpxct(PyObject *py_obj, PyObject *value, void *closure)
9304 struct srvsvc_NetSrvInfo503 *object = (struct srvsvc_NetSrvInfo503 *)pytalloc_get_ptr(py_obj);
9305 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
9306 object->maxmpxct = PyInt_AsLong(value);
9310 static PyObject *py_srvsvc_NetSrvInfo503_get_oplockbreakwait(PyObject *obj, void *closure)
9312 struct srvsvc_NetSrvInfo503 *object = (struct srvsvc_NetSrvInfo503 *)pytalloc_get_ptr(obj);
9313 PyObject *py_oplockbreakwait;
9314 py_oplockbreakwait = PyInt_FromLong(object->oplockbreakwait);
9315 return py_oplockbreakwait;
9318 static int py_srvsvc_NetSrvInfo503_set_oplockbreakwait(PyObject *py_obj, PyObject *value, void *closure)
9320 struct srvsvc_NetSrvInfo503 *object = (struct srvsvc_NetSrvInfo503 *)pytalloc_get_ptr(py_obj);
9321 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
9322 object->oplockbreakwait = PyInt_AsLong(value);
9326 static PyObject *py_srvsvc_NetSrvInfo503_get_oplockbreakresponsewait(PyObject *obj, void *closure)
9328 struct srvsvc_NetSrvInfo503 *object = (struct srvsvc_NetSrvInfo503 *)pytalloc_get_ptr(obj);
9329 PyObject *py_oplockbreakresponsewait;
9330 py_oplockbreakresponsewait = PyInt_FromLong(object->oplockbreakresponsewait);
9331 return py_oplockbreakresponsewait;
9334 static int py_srvsvc_NetSrvInfo503_set_oplockbreakresponsewait(PyObject *py_obj, PyObject *value, void *closure)
9336 struct srvsvc_NetSrvInfo503 *object = (struct srvsvc_NetSrvInfo503 *)pytalloc_get_ptr(py_obj);
9337 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
9338 object->oplockbreakresponsewait = PyInt_AsLong(value);
9342 static PyObject *py_srvsvc_NetSrvInfo503_get_enableoplocks(PyObject *obj, void *closure)
9344 struct srvsvc_NetSrvInfo503 *object = (struct srvsvc_NetSrvInfo503 *)pytalloc_get_ptr(obj);
9345 PyObject *py_enableoplocks;
9346 py_enableoplocks = PyInt_FromLong(object->enableoplocks);
9347 return py_enableoplocks;
9350 static int py_srvsvc_NetSrvInfo503_set_enableoplocks(PyObject *py_obj, PyObject *value, void *closure)
9352 struct srvsvc_NetSrvInfo503 *object = (struct srvsvc_NetSrvInfo503 *)pytalloc_get_ptr(py_obj);
9353 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
9354 object->enableoplocks = PyInt_AsLong(value);
9358 static PyObject *py_srvsvc_NetSrvInfo503_get_enableoplockforceclose(PyObject *obj, void *closure)
9360 struct srvsvc_NetSrvInfo503 *object = (struct srvsvc_NetSrvInfo503 *)pytalloc_get_ptr(obj);
9361 PyObject *py_enableoplockforceclose;
9362 py_enableoplockforceclose = PyInt_FromLong(object->enableoplockforceclose);
9363 return py_enableoplockforceclose;
9366 static int py_srvsvc_NetSrvInfo503_set_enableoplockforceclose(PyObject *py_obj, PyObject *value, void *closure)
9368 struct srvsvc_NetSrvInfo503 *object = (struct srvsvc_NetSrvInfo503 *)pytalloc_get_ptr(py_obj);
9369 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
9370 object->enableoplockforceclose = PyInt_AsLong(value);
9374 static PyObject *py_srvsvc_NetSrvInfo503_get_enablefcbopens(PyObject *obj, void *closure)
9376 struct srvsvc_NetSrvInfo503 *object = (struct srvsvc_NetSrvInfo503 *)pytalloc_get_ptr(obj);
9377 PyObject *py_enablefcbopens;
9378 py_enablefcbopens = PyInt_FromLong(object->enablefcbopens);
9379 return py_enablefcbopens;
9382 static int py_srvsvc_NetSrvInfo503_set_enablefcbopens(PyObject *py_obj, PyObject *value, void *closure)
9384 struct srvsvc_NetSrvInfo503 *object = (struct srvsvc_NetSrvInfo503 *)pytalloc_get_ptr(py_obj);
9385 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
9386 object->enablefcbopens = PyInt_AsLong(value);
9390 static PyObject *py_srvsvc_NetSrvInfo503_get_enableraw(PyObject *obj, void *closure)
9392 struct srvsvc_NetSrvInfo503 *object = (struct srvsvc_NetSrvInfo503 *)pytalloc_get_ptr(obj);
9393 PyObject *py_enableraw;
9394 py_enableraw = PyInt_FromLong(object->enableraw);
9395 return py_enableraw;
9398 static int py_srvsvc_NetSrvInfo503_set_enableraw(PyObject *py_obj, PyObject *value, void *closure)
9400 struct srvsvc_NetSrvInfo503 *object = (struct srvsvc_NetSrvInfo503 *)pytalloc_get_ptr(py_obj);
9401 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
9402 object->enableraw = PyInt_AsLong(value);
9406 static PyObject *py_srvsvc_NetSrvInfo503_get_enablesharednetdrives(PyObject *obj, void *closure)
9408 struct srvsvc_NetSrvInfo503 *object = (struct srvsvc_NetSrvInfo503 *)pytalloc_get_ptr(obj);
9409 PyObject *py_enablesharednetdrives;
9410 py_enablesharednetdrives = PyInt_FromLong(object->enablesharednetdrives);
9411 return py_enablesharednetdrives;
9414 static int py_srvsvc_NetSrvInfo503_set_enablesharednetdrives(PyObject *py_obj, PyObject *value, void *closure)
9416 struct srvsvc_NetSrvInfo503 *object = (struct srvsvc_NetSrvInfo503 *)pytalloc_get_ptr(py_obj);
9417 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
9418 object->enablesharednetdrives = PyInt_AsLong(value);
9422 static PyObject *py_srvsvc_NetSrvInfo503_get_minfreeconnections(PyObject *obj, void *closure)
9424 struct srvsvc_NetSrvInfo503 *object = (struct srvsvc_NetSrvInfo503 *)pytalloc_get_ptr(obj);
9425 PyObject *py_minfreeconnections;
9426 py_minfreeconnections = PyInt_FromLong(object->minfreeconnections);
9427 return py_minfreeconnections;
9430 static int py_srvsvc_NetSrvInfo503_set_minfreeconnections(PyObject *py_obj, PyObject *value, void *closure)
9432 struct srvsvc_NetSrvInfo503 *object = (struct srvsvc_NetSrvInfo503 *)pytalloc_get_ptr(py_obj);
9433 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
9434 object->minfreeconnections = PyInt_AsLong(value);
9438 static PyObject *py_srvsvc_NetSrvInfo503_get_maxfreeconnections(PyObject *obj, void *closure)
9440 struct srvsvc_NetSrvInfo503 *object = (struct srvsvc_NetSrvInfo503 *)pytalloc_get_ptr(obj);
9441 PyObject *py_maxfreeconnections;
9442 py_maxfreeconnections = PyInt_FromLong(object->maxfreeconnections);
9443 return py_maxfreeconnections;
9446 static int py_srvsvc_NetSrvInfo503_set_maxfreeconnections(PyObject *py_obj, PyObject *value, void *closure)
9448 struct srvsvc_NetSrvInfo503 *object = (struct srvsvc_NetSrvInfo503 *)pytalloc_get_ptr(py_obj);
9449 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
9450 object->maxfreeconnections = PyInt_AsLong(value);
9454 static PyGetSetDef py_srvsvc_NetSrvInfo503_getsetters[] = {
9455 { discard_const_p(char, "sessopen"), py_srvsvc_NetSrvInfo503_get_sessopen, py_srvsvc_NetSrvInfo503_set_sessopen },
9456 { discard_const_p(char, "sesssvc"), py_srvsvc_NetSrvInfo503_get_sesssvc, py_srvsvc_NetSrvInfo503_set_sesssvc },
9457 { discard_const_p(char, "opensearch"), py_srvsvc_NetSrvInfo503_get_opensearch, py_srvsvc_NetSrvInfo503_set_opensearch },
9458 { discard_const_p(char, "sizereqbufs"), py_srvsvc_NetSrvInfo503_get_sizereqbufs, py_srvsvc_NetSrvInfo503_set_sizereqbufs },
9459 { discard_const_p(char, "initworkitems"), py_srvsvc_NetSrvInfo503_get_initworkitems, py_srvsvc_NetSrvInfo503_set_initworkitems },
9460 { discard_const_p(char, "maxworkitems"), py_srvsvc_NetSrvInfo503_get_maxworkitems, py_srvsvc_NetSrvInfo503_set_maxworkitems },
9461 { discard_const_p(char, "rawworkitems"), py_srvsvc_NetSrvInfo503_get_rawworkitems, py_srvsvc_NetSrvInfo503_set_rawworkitems },
9462 { discard_const_p(char, "irpstacksize"), py_srvsvc_NetSrvInfo503_get_irpstacksize, py_srvsvc_NetSrvInfo503_set_irpstacksize },
9463 { discard_const_p(char, "maxrawbuflen"), py_srvsvc_NetSrvInfo503_get_maxrawbuflen, py_srvsvc_NetSrvInfo503_set_maxrawbuflen },
9464 { discard_const_p(char, "sessusers"), py_srvsvc_NetSrvInfo503_get_sessusers, py_srvsvc_NetSrvInfo503_set_sessusers },
9465 { discard_const_p(char, "sessconns"), py_srvsvc_NetSrvInfo503_get_sessconns, py_srvsvc_NetSrvInfo503_set_sessconns },
9466 { discard_const_p(char, "maxpagedmemoryusage"), py_srvsvc_NetSrvInfo503_get_maxpagedmemoryusage, py_srvsvc_NetSrvInfo503_set_maxpagedmemoryusage },
9467 { discard_const_p(char, "maxnonpagedmemoryusage"), py_srvsvc_NetSrvInfo503_get_maxnonpagedmemoryusage, py_srvsvc_NetSrvInfo503_set_maxnonpagedmemoryusage },
9468 { discard_const_p(char, "enablesoftcompat"), py_srvsvc_NetSrvInfo503_get_enablesoftcompat, py_srvsvc_NetSrvInfo503_set_enablesoftcompat },
9469 { discard_const_p(char, "enableforcedlogoff"), py_srvsvc_NetSrvInfo503_get_enableforcedlogoff, py_srvsvc_NetSrvInfo503_set_enableforcedlogoff },
9470 { discard_const_p(char, "timesource"), py_srvsvc_NetSrvInfo503_get_timesource, py_srvsvc_NetSrvInfo503_set_timesource },
9471 { discard_const_p(char, "acceptdownlevelapis"), py_srvsvc_NetSrvInfo503_get_acceptdownlevelapis, py_srvsvc_NetSrvInfo503_set_acceptdownlevelapis },
9472 { discard_const_p(char, "lmannounce"), py_srvsvc_NetSrvInfo503_get_lmannounce, py_srvsvc_NetSrvInfo503_set_lmannounce },
9473 { discard_const_p(char, "domain"), py_srvsvc_NetSrvInfo503_get_domain, py_srvsvc_NetSrvInfo503_set_domain },
9474 { discard_const_p(char, "maxcopyreadlen"), py_srvsvc_NetSrvInfo503_get_maxcopyreadlen, py_srvsvc_NetSrvInfo503_set_maxcopyreadlen },
9475 { discard_const_p(char, "maxcopywritelen"), py_srvsvc_NetSrvInfo503_get_maxcopywritelen, py_srvsvc_NetSrvInfo503_set_maxcopywritelen },
9476 { discard_const_p(char, "minkeepsearch"), py_srvsvc_NetSrvInfo503_get_minkeepsearch, py_srvsvc_NetSrvInfo503_set_minkeepsearch },
9477 { discard_const_p(char, "maxkeepsearch"), py_srvsvc_NetSrvInfo503_get_maxkeepsearch, py_srvsvc_NetSrvInfo503_set_maxkeepsearch },
9478 { discard_const_p(char, "minkeepcomplsearch"), py_srvsvc_NetSrvInfo503_get_minkeepcomplsearch, py_srvsvc_NetSrvInfo503_set_minkeepcomplsearch },
9479 { discard_const_p(char, "maxkeepcomplsearch"), py_srvsvc_NetSrvInfo503_get_maxkeepcomplsearch, py_srvsvc_NetSrvInfo503_set_maxkeepcomplsearch },
9480 { discard_const_p(char, "threadcountadd"), py_srvsvc_NetSrvInfo503_get_threadcountadd, py_srvsvc_NetSrvInfo503_set_threadcountadd },
9481 { discard_const_p(char, "numlockthreads"), py_srvsvc_NetSrvInfo503_get_numlockthreads, py_srvsvc_NetSrvInfo503_set_numlockthreads },
9482 { discard_const_p(char, "scavtimeout"), py_srvsvc_NetSrvInfo503_get_scavtimeout, py_srvsvc_NetSrvInfo503_set_scavtimeout },
9483 { discard_const_p(char, "minrcvqueue"), py_srvsvc_NetSrvInfo503_get_minrcvqueue, py_srvsvc_NetSrvInfo503_set_minrcvqueue },
9484 { discard_const_p(char, "minfreeworkitems"), py_srvsvc_NetSrvInfo503_get_minfreeworkitems, py_srvsvc_NetSrvInfo503_set_minfreeworkitems },
9485 { discard_const_p(char, "xactmemsize"), py_srvsvc_NetSrvInfo503_get_xactmemsize, py_srvsvc_NetSrvInfo503_set_xactmemsize },
9486 { discard_const_p(char, "threadpriority"), py_srvsvc_NetSrvInfo503_get_threadpriority, py_srvsvc_NetSrvInfo503_set_threadpriority },
9487 { discard_const_p(char, "maxmpxct"), py_srvsvc_NetSrvInfo503_get_maxmpxct, py_srvsvc_NetSrvInfo503_set_maxmpxct },
9488 { discard_const_p(char, "oplockbreakwait"), py_srvsvc_NetSrvInfo503_get_oplockbreakwait, py_srvsvc_NetSrvInfo503_set_oplockbreakwait },
9489 { discard_const_p(char, "oplockbreakresponsewait"), py_srvsvc_NetSrvInfo503_get_oplockbreakresponsewait, py_srvsvc_NetSrvInfo503_set_oplockbreakresponsewait },
9490 { discard_const_p(char, "enableoplocks"), py_srvsvc_NetSrvInfo503_get_enableoplocks, py_srvsvc_NetSrvInfo503_set_enableoplocks },
9491 { discard_const_p(char, "enableoplockforceclose"), py_srvsvc_NetSrvInfo503_get_enableoplockforceclose, py_srvsvc_NetSrvInfo503_set_enableoplockforceclose },
9492 { discard_const_p(char, "enablefcbopens"), py_srvsvc_NetSrvInfo503_get_enablefcbopens, py_srvsvc_NetSrvInfo503_set_enablefcbopens },
9493 { discard_const_p(char, "enableraw"), py_srvsvc_NetSrvInfo503_get_enableraw, py_srvsvc_NetSrvInfo503_set_enableraw },
9494 { discard_const_p(char, "enablesharednetdrives"), py_srvsvc_NetSrvInfo503_get_enablesharednetdrives, py_srvsvc_NetSrvInfo503_set_enablesharednetdrives },
9495 { discard_const_p(char, "minfreeconnections"), py_srvsvc_NetSrvInfo503_get_minfreeconnections, py_srvsvc_NetSrvInfo503_set_minfreeconnections },
9496 { discard_const_p(char, "maxfreeconnections"), py_srvsvc_NetSrvInfo503_get_maxfreeconnections, py_srvsvc_NetSrvInfo503_set_maxfreeconnections },
9500 static PyObject *py_srvsvc_NetSrvInfo503_new(PyTypeObject *type, PyObject *args, PyObject *kwargs)
9502 return pytalloc_new(struct srvsvc_NetSrvInfo503, type);
9506 static PyTypeObject srvsvc_NetSrvInfo503_Type = {
9507 PyObject_HEAD_INIT(NULL) 0,
9508 .tp_name = "srvsvc.NetSrvInfo503",
9509 .tp_getset = py_srvsvc_NetSrvInfo503_getsetters,
9511 .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
9512 .tp_basicsize = sizeof(pytalloc_Object),
9513 .tp_new = py_srvsvc_NetSrvInfo503_new,
9517 static PyObject *py_srvsvc_NetSrvInfo599_get_sessopen(PyObject *obj, void *closure)
9519 struct srvsvc_NetSrvInfo599 *object = (struct srvsvc_NetSrvInfo599 *)pytalloc_get_ptr(obj);
9520 PyObject *py_sessopen;
9521 py_sessopen = PyInt_FromLong(object->sessopen);
9525 static int py_srvsvc_NetSrvInfo599_set_sessopen(PyObject *py_obj, PyObject *value, void *closure)
9527 struct srvsvc_NetSrvInfo599 *object = (struct srvsvc_NetSrvInfo599 *)pytalloc_get_ptr(py_obj);
9528 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
9529 object->sessopen = PyInt_AsLong(value);
9533 static PyObject *py_srvsvc_NetSrvInfo599_get_sesssvc(PyObject *obj, void *closure)
9535 struct srvsvc_NetSrvInfo599 *object = (struct srvsvc_NetSrvInfo599 *)pytalloc_get_ptr(obj);
9536 PyObject *py_sesssvc;
9537 py_sesssvc = PyInt_FromLong(object->sesssvc);
9541 static int py_srvsvc_NetSrvInfo599_set_sesssvc(PyObject *py_obj, PyObject *value, void *closure)
9543 struct srvsvc_NetSrvInfo599 *object = (struct srvsvc_NetSrvInfo599 *)pytalloc_get_ptr(py_obj);
9544 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
9545 object->sesssvc = PyInt_AsLong(value);
9549 static PyObject *py_srvsvc_NetSrvInfo599_get_opensearch(PyObject *obj, void *closure)
9551 struct srvsvc_NetSrvInfo599 *object = (struct srvsvc_NetSrvInfo599 *)pytalloc_get_ptr(obj);
9552 PyObject *py_opensearch;
9553 py_opensearch = PyInt_FromLong(object->opensearch);
9554 return py_opensearch;
9557 static int py_srvsvc_NetSrvInfo599_set_opensearch(PyObject *py_obj, PyObject *value, void *closure)
9559 struct srvsvc_NetSrvInfo599 *object = (struct srvsvc_NetSrvInfo599 *)pytalloc_get_ptr(py_obj);
9560 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
9561 object->opensearch = PyInt_AsLong(value);
9565 static PyObject *py_srvsvc_NetSrvInfo599_get_sizereqbufs(PyObject *obj, void *closure)
9567 struct srvsvc_NetSrvInfo599 *object = (struct srvsvc_NetSrvInfo599 *)pytalloc_get_ptr(obj);
9568 PyObject *py_sizereqbufs;
9569 py_sizereqbufs = PyInt_FromLong(object->sizereqbufs);
9570 return py_sizereqbufs;
9573 static int py_srvsvc_NetSrvInfo599_set_sizereqbufs(PyObject *py_obj, PyObject *value, void *closure)
9575 struct srvsvc_NetSrvInfo599 *object = (struct srvsvc_NetSrvInfo599 *)pytalloc_get_ptr(py_obj);
9576 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
9577 object->sizereqbufs = PyInt_AsLong(value);
9581 static PyObject *py_srvsvc_NetSrvInfo599_get_initworkitems(PyObject *obj, void *closure)
9583 struct srvsvc_NetSrvInfo599 *object = (struct srvsvc_NetSrvInfo599 *)pytalloc_get_ptr(obj);
9584 PyObject *py_initworkitems;
9585 py_initworkitems = PyInt_FromLong(object->initworkitems);
9586 return py_initworkitems;
9589 static int py_srvsvc_NetSrvInfo599_set_initworkitems(PyObject *py_obj, PyObject *value, void *closure)
9591 struct srvsvc_NetSrvInfo599 *object = (struct srvsvc_NetSrvInfo599 *)pytalloc_get_ptr(py_obj);
9592 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
9593 object->initworkitems = PyInt_AsLong(value);
9597 static PyObject *py_srvsvc_NetSrvInfo599_get_maxworkitems(PyObject *obj, void *closure)
9599 struct srvsvc_NetSrvInfo599 *object = (struct srvsvc_NetSrvInfo599 *)pytalloc_get_ptr(obj);
9600 PyObject *py_maxworkitems;
9601 py_maxworkitems = PyInt_FromLong(object->maxworkitems);
9602 return py_maxworkitems;
9605 static int py_srvsvc_NetSrvInfo599_set_maxworkitems(PyObject *py_obj, PyObject *value, void *closure)
9607 struct srvsvc_NetSrvInfo599 *object = (struct srvsvc_NetSrvInfo599 *)pytalloc_get_ptr(py_obj);
9608 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
9609 object->maxworkitems = PyInt_AsLong(value);
9613 static PyObject *py_srvsvc_NetSrvInfo599_get_rawworkitems(PyObject *obj, void *closure)
9615 struct srvsvc_NetSrvInfo599 *object = (struct srvsvc_NetSrvInfo599 *)pytalloc_get_ptr(obj);
9616 PyObject *py_rawworkitems;
9617 py_rawworkitems = PyInt_FromLong(object->rawworkitems);
9618 return py_rawworkitems;
9621 static int py_srvsvc_NetSrvInfo599_set_rawworkitems(PyObject *py_obj, PyObject *value, void *closure)
9623 struct srvsvc_NetSrvInfo599 *object = (struct srvsvc_NetSrvInfo599 *)pytalloc_get_ptr(py_obj);
9624 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
9625 object->rawworkitems = PyInt_AsLong(value);
9629 static PyObject *py_srvsvc_NetSrvInfo599_get_irpstacksize(PyObject *obj, void *closure)
9631 struct srvsvc_NetSrvInfo599 *object = (struct srvsvc_NetSrvInfo599 *)pytalloc_get_ptr(obj);
9632 PyObject *py_irpstacksize;
9633 py_irpstacksize = PyInt_FromLong(object->irpstacksize);
9634 return py_irpstacksize;
9637 static int py_srvsvc_NetSrvInfo599_set_irpstacksize(PyObject *py_obj, PyObject *value, void *closure)
9639 struct srvsvc_NetSrvInfo599 *object = (struct srvsvc_NetSrvInfo599 *)pytalloc_get_ptr(py_obj);
9640 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
9641 object->irpstacksize = PyInt_AsLong(value);
9645 static PyObject *py_srvsvc_NetSrvInfo599_get_maxrawbuflen(PyObject *obj, void *closure)
9647 struct srvsvc_NetSrvInfo599 *object = (struct srvsvc_NetSrvInfo599 *)pytalloc_get_ptr(obj);
9648 PyObject *py_maxrawbuflen;
9649 py_maxrawbuflen = PyInt_FromLong(object->maxrawbuflen);
9650 return py_maxrawbuflen;
9653 static int py_srvsvc_NetSrvInfo599_set_maxrawbuflen(PyObject *py_obj, PyObject *value, void *closure)
9655 struct srvsvc_NetSrvInfo599 *object = (struct srvsvc_NetSrvInfo599 *)pytalloc_get_ptr(py_obj);
9656 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
9657 object->maxrawbuflen = PyInt_AsLong(value);
9661 static PyObject *py_srvsvc_NetSrvInfo599_get_sessusers(PyObject *obj, void *closure)
9663 struct srvsvc_NetSrvInfo599 *object = (struct srvsvc_NetSrvInfo599 *)pytalloc_get_ptr(obj);
9664 PyObject *py_sessusers;
9665 py_sessusers = PyInt_FromLong(object->sessusers);
9666 return py_sessusers;
9669 static int py_srvsvc_NetSrvInfo599_set_sessusers(PyObject *py_obj, PyObject *value, void *closure)
9671 struct srvsvc_NetSrvInfo599 *object = (struct srvsvc_NetSrvInfo599 *)pytalloc_get_ptr(py_obj);
9672 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
9673 object->sessusers = PyInt_AsLong(value);
9677 static PyObject *py_srvsvc_NetSrvInfo599_get_sessconns(PyObject *obj, void *closure)
9679 struct srvsvc_NetSrvInfo599 *object = (struct srvsvc_NetSrvInfo599 *)pytalloc_get_ptr(obj);
9680 PyObject *py_sessconns;
9681 py_sessconns = PyInt_FromLong(object->sessconns);
9682 return py_sessconns;
9685 static int py_srvsvc_NetSrvInfo599_set_sessconns(PyObject *py_obj, PyObject *value, void *closure)
9687 struct srvsvc_NetSrvInfo599 *object = (struct srvsvc_NetSrvInfo599 *)pytalloc_get_ptr(py_obj);
9688 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
9689 object->sessconns = PyInt_AsLong(value);
9693 static PyObject *py_srvsvc_NetSrvInfo599_get_maxpagedmemoryusage(PyObject *obj, void *closure)
9695 struct srvsvc_NetSrvInfo599 *object = (struct srvsvc_NetSrvInfo599 *)pytalloc_get_ptr(obj);
9696 PyObject *py_maxpagedmemoryusage;
9697 py_maxpagedmemoryusage = PyInt_FromLong(object->maxpagedmemoryusage);
9698 return py_maxpagedmemoryusage;
9701 static int py_srvsvc_NetSrvInfo599_set_maxpagedmemoryusage(PyObject *py_obj, PyObject *value, void *closure)
9703 struct srvsvc_NetSrvInfo599 *object = (struct srvsvc_NetSrvInfo599 *)pytalloc_get_ptr(py_obj);
9704 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
9705 object->maxpagedmemoryusage = PyInt_AsLong(value);
9709 static PyObject *py_srvsvc_NetSrvInfo599_get_maxnonpagedmemoryusage(PyObject *obj, void *closure)
9711 struct srvsvc_NetSrvInfo599 *object = (struct srvsvc_NetSrvInfo599 *)pytalloc_get_ptr(obj);
9712 PyObject *py_maxnonpagedmemoryusage;
9713 py_maxnonpagedmemoryusage = PyInt_FromLong(object->maxnonpagedmemoryusage);
9714 return py_maxnonpagedmemoryusage;
9717 static int py_srvsvc_NetSrvInfo599_set_maxnonpagedmemoryusage(PyObject *py_obj, PyObject *value, void *closure)
9719 struct srvsvc_NetSrvInfo599 *object = (struct srvsvc_NetSrvInfo599 *)pytalloc_get_ptr(py_obj);
9720 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
9721 object->maxnonpagedmemoryusage = PyInt_AsLong(value);
9725 static PyObject *py_srvsvc_NetSrvInfo599_get_enablesoftcompat(PyObject *obj, void *closure)
9727 struct srvsvc_NetSrvInfo599 *object = (struct srvsvc_NetSrvInfo599 *)pytalloc_get_ptr(obj);
9728 PyObject *py_enablesoftcompat;
9729 py_enablesoftcompat = PyInt_FromLong(object->enablesoftcompat);
9730 return py_enablesoftcompat;
9733 static int py_srvsvc_NetSrvInfo599_set_enablesoftcompat(PyObject *py_obj, PyObject *value, void *closure)
9735 struct srvsvc_NetSrvInfo599 *object = (struct srvsvc_NetSrvInfo599 *)pytalloc_get_ptr(py_obj);
9736 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
9737 object->enablesoftcompat = PyInt_AsLong(value);
9741 static PyObject *py_srvsvc_NetSrvInfo599_get_enableforcedlogoff(PyObject *obj, void *closure)
9743 struct srvsvc_NetSrvInfo599 *object = (struct srvsvc_NetSrvInfo599 *)pytalloc_get_ptr(obj);
9744 PyObject *py_enableforcedlogoff;
9745 py_enableforcedlogoff = PyInt_FromLong(object->enableforcedlogoff);
9746 return py_enableforcedlogoff;
9749 static int py_srvsvc_NetSrvInfo599_set_enableforcedlogoff(PyObject *py_obj, PyObject *value, void *closure)
9751 struct srvsvc_NetSrvInfo599 *object = (struct srvsvc_NetSrvInfo599 *)pytalloc_get_ptr(py_obj);
9752 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
9753 object->enableforcedlogoff = PyInt_AsLong(value);
9757 static PyObject *py_srvsvc_NetSrvInfo599_get_timesource(PyObject *obj, void *closure)
9759 struct srvsvc_NetSrvInfo599 *object = (struct srvsvc_NetSrvInfo599 *)pytalloc_get_ptr(obj);
9760 PyObject *py_timesource;
9761 py_timesource = PyInt_FromLong(object->timesource);
9762 return py_timesource;
9765 static int py_srvsvc_NetSrvInfo599_set_timesource(PyObject *py_obj, PyObject *value, void *closure)
9767 struct srvsvc_NetSrvInfo599 *object = (struct srvsvc_NetSrvInfo599 *)pytalloc_get_ptr(py_obj);
9768 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
9769 object->timesource = PyInt_AsLong(value);
9773 static PyObject *py_srvsvc_NetSrvInfo599_get_acceptdownlevelapis(PyObject *obj, void *closure)
9775 struct srvsvc_NetSrvInfo599 *object = (struct srvsvc_NetSrvInfo599 *)pytalloc_get_ptr(obj);
9776 PyObject *py_acceptdownlevelapis;
9777 py_acceptdownlevelapis = PyInt_FromLong(object->acceptdownlevelapis);
9778 return py_acceptdownlevelapis;
9781 static int py_srvsvc_NetSrvInfo599_set_acceptdownlevelapis(PyObject *py_obj, PyObject *value, void *closure)
9783 struct srvsvc_NetSrvInfo599 *object = (struct srvsvc_NetSrvInfo599 *)pytalloc_get_ptr(py_obj);
9784 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
9785 object->acceptdownlevelapis = PyInt_AsLong(value);
9789 static PyObject *py_srvsvc_NetSrvInfo599_get_lmannounce(PyObject *obj, void *closure)
9791 struct srvsvc_NetSrvInfo599 *object = (struct srvsvc_NetSrvInfo599 *)pytalloc_get_ptr(obj);
9792 PyObject *py_lmannounce;
9793 py_lmannounce = PyInt_FromLong(object->lmannounce);
9794 return py_lmannounce;
9797 static int py_srvsvc_NetSrvInfo599_set_lmannounce(PyObject *py_obj, PyObject *value, void *closure)
9799 struct srvsvc_NetSrvInfo599 *object = (struct srvsvc_NetSrvInfo599 *)pytalloc_get_ptr(py_obj);
9800 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
9801 object->lmannounce = PyInt_AsLong(value);
9805 static PyObject *py_srvsvc_NetSrvInfo599_get_domain(PyObject *obj, void *closure)
9807 struct srvsvc_NetSrvInfo599 *object = (struct srvsvc_NetSrvInfo599 *)pytalloc_get_ptr(obj);
9808 PyObject *py_domain;
9809 if (object->domain == NULL) {
9810 py_domain = Py_None;
9811 Py_INCREF(py_domain);
9813 if (object->domain == NULL) {
9814 py_domain = Py_None;
9815 Py_INCREF(py_domain);
9817 py_domain = PyUnicode_Decode(object->domain, strlen(object->domain), "utf-8", "ignore");
9823 static int py_srvsvc_NetSrvInfo599_set_domain(PyObject *py_obj, PyObject *value, void *closure)
9825 struct srvsvc_NetSrvInfo599 *object = (struct srvsvc_NetSrvInfo599 *)pytalloc_get_ptr(py_obj);
9826 if (value == Py_None) {
9827 object->domain = NULL;
9829 object->domain = NULL;
9830 if (PyUnicode_Check(value)) {
9831 object->domain = PyString_AS_STRING(PyUnicode_AsEncodedString(value, "utf-8", "ignore"));
9832 } else if (PyString_Check(value)) {
9833 object->domain = PyString_AS_STRING(value);
9835 PyErr_Format(PyExc_TypeError, "Expected string or unicode object, got %s", Py_TYPE(value)->tp_name);
9842 static PyObject *py_srvsvc_NetSrvInfo599_get_maxcopyreadlen(PyObject *obj, void *closure)
9844 struct srvsvc_NetSrvInfo599 *object = (struct srvsvc_NetSrvInfo599 *)pytalloc_get_ptr(obj);
9845 PyObject *py_maxcopyreadlen;
9846 py_maxcopyreadlen = PyInt_FromLong(object->maxcopyreadlen);
9847 return py_maxcopyreadlen;
9850 static int py_srvsvc_NetSrvInfo599_set_maxcopyreadlen(PyObject *py_obj, PyObject *value, void *closure)
9852 struct srvsvc_NetSrvInfo599 *object = (struct srvsvc_NetSrvInfo599 *)pytalloc_get_ptr(py_obj);
9853 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
9854 object->maxcopyreadlen = PyInt_AsLong(value);
9858 static PyObject *py_srvsvc_NetSrvInfo599_get_maxcopywritelen(PyObject *obj, void *closure)
9860 struct srvsvc_NetSrvInfo599 *object = (struct srvsvc_NetSrvInfo599 *)pytalloc_get_ptr(obj);
9861 PyObject *py_maxcopywritelen;
9862 py_maxcopywritelen = PyInt_FromLong(object->maxcopywritelen);
9863 return py_maxcopywritelen;
9866 static int py_srvsvc_NetSrvInfo599_set_maxcopywritelen(PyObject *py_obj, PyObject *value, void *closure)
9868 struct srvsvc_NetSrvInfo599 *object = (struct srvsvc_NetSrvInfo599 *)pytalloc_get_ptr(py_obj);
9869 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
9870 object->maxcopywritelen = PyInt_AsLong(value);
9874 static PyObject *py_srvsvc_NetSrvInfo599_get_minkeepsearch(PyObject *obj, void *closure)
9876 struct srvsvc_NetSrvInfo599 *object = (struct srvsvc_NetSrvInfo599 *)pytalloc_get_ptr(obj);
9877 PyObject *py_minkeepsearch;
9878 py_minkeepsearch = PyInt_FromLong(object->minkeepsearch);
9879 return py_minkeepsearch;
9882 static int py_srvsvc_NetSrvInfo599_set_minkeepsearch(PyObject *py_obj, PyObject *value, void *closure)
9884 struct srvsvc_NetSrvInfo599 *object = (struct srvsvc_NetSrvInfo599 *)pytalloc_get_ptr(py_obj);
9885 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
9886 object->minkeepsearch = PyInt_AsLong(value);
9890 static PyObject *py_srvsvc_NetSrvInfo599_get_minkeepcomplsearch(PyObject *obj, void *closure)
9892 struct srvsvc_NetSrvInfo599 *object = (struct srvsvc_NetSrvInfo599 *)pytalloc_get_ptr(obj);
9893 PyObject *py_minkeepcomplsearch;
9894 py_minkeepcomplsearch = PyInt_FromLong(object->minkeepcomplsearch);
9895 return py_minkeepcomplsearch;
9898 static int py_srvsvc_NetSrvInfo599_set_minkeepcomplsearch(PyObject *py_obj, PyObject *value, void *closure)
9900 struct srvsvc_NetSrvInfo599 *object = (struct srvsvc_NetSrvInfo599 *)pytalloc_get_ptr(py_obj);
9901 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
9902 object->minkeepcomplsearch = PyInt_AsLong(value);
9906 static PyObject *py_srvsvc_NetSrvInfo599_get_maxkeepcomplsearch(PyObject *obj, void *closure)
9908 struct srvsvc_NetSrvInfo599 *object = (struct srvsvc_NetSrvInfo599 *)pytalloc_get_ptr(obj);
9909 PyObject *py_maxkeepcomplsearch;
9910 py_maxkeepcomplsearch = PyInt_FromLong(object->maxkeepcomplsearch);
9911 return py_maxkeepcomplsearch;
9914 static int py_srvsvc_NetSrvInfo599_set_maxkeepcomplsearch(PyObject *py_obj, PyObject *value, void *closure)
9916 struct srvsvc_NetSrvInfo599 *object = (struct srvsvc_NetSrvInfo599 *)pytalloc_get_ptr(py_obj);
9917 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
9918 object->maxkeepcomplsearch = PyInt_AsLong(value);
9922 static PyObject *py_srvsvc_NetSrvInfo599_get_threadcountadd(PyObject *obj, void *closure)
9924 struct srvsvc_NetSrvInfo599 *object = (struct srvsvc_NetSrvInfo599 *)pytalloc_get_ptr(obj);
9925 PyObject *py_threadcountadd;
9926 py_threadcountadd = PyInt_FromLong(object->threadcountadd);
9927 return py_threadcountadd;
9930 static int py_srvsvc_NetSrvInfo599_set_threadcountadd(PyObject *py_obj, PyObject *value, void *closure)
9932 struct srvsvc_NetSrvInfo599 *object = (struct srvsvc_NetSrvInfo599 *)pytalloc_get_ptr(py_obj);
9933 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
9934 object->threadcountadd = PyInt_AsLong(value);
9938 static PyObject *py_srvsvc_NetSrvInfo599_get_numlockthreads(PyObject *obj, void *closure)
9940 struct srvsvc_NetSrvInfo599 *object = (struct srvsvc_NetSrvInfo599 *)pytalloc_get_ptr(obj);
9941 PyObject *py_numlockthreads;
9942 py_numlockthreads = PyInt_FromLong(object->numlockthreads);
9943 return py_numlockthreads;
9946 static int py_srvsvc_NetSrvInfo599_set_numlockthreads(PyObject *py_obj, PyObject *value, void *closure)
9948 struct srvsvc_NetSrvInfo599 *object = (struct srvsvc_NetSrvInfo599 *)pytalloc_get_ptr(py_obj);
9949 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
9950 object->numlockthreads = PyInt_AsLong(value);
9954 static PyObject *py_srvsvc_NetSrvInfo599_get_scavtimeout(PyObject *obj, void *closure)
9956 struct srvsvc_NetSrvInfo599 *object = (struct srvsvc_NetSrvInfo599 *)pytalloc_get_ptr(obj);
9957 PyObject *py_scavtimeout;
9958 py_scavtimeout = PyInt_FromLong(object->scavtimeout);
9959 return py_scavtimeout;
9962 static int py_srvsvc_NetSrvInfo599_set_scavtimeout(PyObject *py_obj, PyObject *value, void *closure)
9964 struct srvsvc_NetSrvInfo599 *object = (struct srvsvc_NetSrvInfo599 *)pytalloc_get_ptr(py_obj);
9965 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
9966 object->scavtimeout = PyInt_AsLong(value);
9970 static PyObject *py_srvsvc_NetSrvInfo599_get_minrcvqueue(PyObject *obj, void *closure)
9972 struct srvsvc_NetSrvInfo599 *object = (struct srvsvc_NetSrvInfo599 *)pytalloc_get_ptr(obj);
9973 PyObject *py_minrcvqueue;
9974 py_minrcvqueue = PyInt_FromLong(object->minrcvqueue);
9975 return py_minrcvqueue;
9978 static int py_srvsvc_NetSrvInfo599_set_minrcvqueue(PyObject *py_obj, PyObject *value, void *closure)
9980 struct srvsvc_NetSrvInfo599 *object = (struct srvsvc_NetSrvInfo599 *)pytalloc_get_ptr(py_obj);
9981 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
9982 object->minrcvqueue = PyInt_AsLong(value);
9986 static PyObject *py_srvsvc_NetSrvInfo599_get_minfreeworkitems(PyObject *obj, void *closure)
9988 struct srvsvc_NetSrvInfo599 *object = (struct srvsvc_NetSrvInfo599 *)pytalloc_get_ptr(obj);
9989 PyObject *py_minfreeworkitems;
9990 py_minfreeworkitems = PyInt_FromLong(object->minfreeworkitems);
9991 return py_minfreeworkitems;
9994 static int py_srvsvc_NetSrvInfo599_set_minfreeworkitems(PyObject *py_obj, PyObject *value, void *closure)
9996 struct srvsvc_NetSrvInfo599 *object = (struct srvsvc_NetSrvInfo599 *)pytalloc_get_ptr(py_obj);
9997 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
9998 object->minfreeworkitems = PyInt_AsLong(value);
10002 static PyObject *py_srvsvc_NetSrvInfo599_get_xactmemsize(PyObject *obj, void *closure)
10004 struct srvsvc_NetSrvInfo599 *object = (struct srvsvc_NetSrvInfo599 *)pytalloc_get_ptr(obj);
10005 PyObject *py_xactmemsize;
10006 py_xactmemsize = PyInt_FromLong(object->xactmemsize);
10007 return py_xactmemsize;
10010 static int py_srvsvc_NetSrvInfo599_set_xactmemsize(PyObject *py_obj, PyObject *value, void *closure)
10012 struct srvsvc_NetSrvInfo599 *object = (struct srvsvc_NetSrvInfo599 *)pytalloc_get_ptr(py_obj);
10013 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
10014 object->xactmemsize = PyInt_AsLong(value);
10018 static PyObject *py_srvsvc_NetSrvInfo599_get_threadpriority(PyObject *obj, void *closure)
10020 struct srvsvc_NetSrvInfo599 *object = (struct srvsvc_NetSrvInfo599 *)pytalloc_get_ptr(obj);
10021 PyObject *py_threadpriority;
10022 py_threadpriority = PyInt_FromLong(object->threadpriority);
10023 return py_threadpriority;
10026 static int py_srvsvc_NetSrvInfo599_set_threadpriority(PyObject *py_obj, PyObject *value, void *closure)
10028 struct srvsvc_NetSrvInfo599 *object = (struct srvsvc_NetSrvInfo599 *)pytalloc_get_ptr(py_obj);
10029 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
10030 object->threadpriority = PyInt_AsLong(value);
10034 static PyObject *py_srvsvc_NetSrvInfo599_get_maxmpxct(PyObject *obj, void *closure)
10036 struct srvsvc_NetSrvInfo599 *object = (struct srvsvc_NetSrvInfo599 *)pytalloc_get_ptr(obj);
10037 PyObject *py_maxmpxct;
10038 py_maxmpxct = PyInt_FromLong(object->maxmpxct);
10039 return py_maxmpxct;
10042 static int py_srvsvc_NetSrvInfo599_set_maxmpxct(PyObject *py_obj, PyObject *value, void *closure)
10044 struct srvsvc_NetSrvInfo599 *object = (struct srvsvc_NetSrvInfo599 *)pytalloc_get_ptr(py_obj);
10045 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
10046 object->maxmpxct = PyInt_AsLong(value);
10050 static PyObject *py_srvsvc_NetSrvInfo599_get_oplockbreakwait(PyObject *obj, void *closure)
10052 struct srvsvc_NetSrvInfo599 *object = (struct srvsvc_NetSrvInfo599 *)pytalloc_get_ptr(obj);
10053 PyObject *py_oplockbreakwait;
10054 py_oplockbreakwait = PyInt_FromLong(object->oplockbreakwait);
10055 return py_oplockbreakwait;
10058 static int py_srvsvc_NetSrvInfo599_set_oplockbreakwait(PyObject *py_obj, PyObject *value, void *closure)
10060 struct srvsvc_NetSrvInfo599 *object = (struct srvsvc_NetSrvInfo599 *)pytalloc_get_ptr(py_obj);
10061 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
10062 object->oplockbreakwait = PyInt_AsLong(value);
10066 static PyObject *py_srvsvc_NetSrvInfo599_get_oplockbreakresponsewait(PyObject *obj, void *closure)
10068 struct srvsvc_NetSrvInfo599 *object = (struct srvsvc_NetSrvInfo599 *)pytalloc_get_ptr(obj);
10069 PyObject *py_oplockbreakresponsewait;
10070 py_oplockbreakresponsewait = PyInt_FromLong(object->oplockbreakresponsewait);
10071 return py_oplockbreakresponsewait;
10074 static int py_srvsvc_NetSrvInfo599_set_oplockbreakresponsewait(PyObject *py_obj, PyObject *value, void *closure)
10076 struct srvsvc_NetSrvInfo599 *object = (struct srvsvc_NetSrvInfo599 *)pytalloc_get_ptr(py_obj);
10077 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
10078 object->oplockbreakresponsewait = PyInt_AsLong(value);
10082 static PyObject *py_srvsvc_NetSrvInfo599_get_enableoplocks(PyObject *obj, void *closure)
10084 struct srvsvc_NetSrvInfo599 *object = (struct srvsvc_NetSrvInfo599 *)pytalloc_get_ptr(obj);
10085 PyObject *py_enableoplocks;
10086 py_enableoplocks = PyInt_FromLong(object->enableoplocks);
10087 return py_enableoplocks;
10090 static int py_srvsvc_NetSrvInfo599_set_enableoplocks(PyObject *py_obj, PyObject *value, void *closure)
10092 struct srvsvc_NetSrvInfo599 *object = (struct srvsvc_NetSrvInfo599 *)pytalloc_get_ptr(py_obj);
10093 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
10094 object->enableoplocks = PyInt_AsLong(value);
10098 static PyObject *py_srvsvc_NetSrvInfo599_get_enableoplockforceclose(PyObject *obj, void *closure)
10100 struct srvsvc_NetSrvInfo599 *object = (struct srvsvc_NetSrvInfo599 *)pytalloc_get_ptr(obj);
10101 PyObject *py_enableoplockforceclose;
10102 py_enableoplockforceclose = PyInt_FromLong(object->enableoplockforceclose);
10103 return py_enableoplockforceclose;
10106 static int py_srvsvc_NetSrvInfo599_set_enableoplockforceclose(PyObject *py_obj, PyObject *value, void *closure)
10108 struct srvsvc_NetSrvInfo599 *object = (struct srvsvc_NetSrvInfo599 *)pytalloc_get_ptr(py_obj);
10109 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
10110 object->enableoplockforceclose = PyInt_AsLong(value);
10114 static PyObject *py_srvsvc_NetSrvInfo599_get_enablefcbopens(PyObject *obj, void *closure)
10116 struct srvsvc_NetSrvInfo599 *object = (struct srvsvc_NetSrvInfo599 *)pytalloc_get_ptr(obj);
10117 PyObject *py_enablefcbopens;
10118 py_enablefcbopens = PyInt_FromLong(object->enablefcbopens);
10119 return py_enablefcbopens;
10122 static int py_srvsvc_NetSrvInfo599_set_enablefcbopens(PyObject *py_obj, PyObject *value, void *closure)
10124 struct srvsvc_NetSrvInfo599 *object = (struct srvsvc_NetSrvInfo599 *)pytalloc_get_ptr(py_obj);
10125 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
10126 object->enablefcbopens = PyInt_AsLong(value);
10130 static PyObject *py_srvsvc_NetSrvInfo599_get_enableraw(PyObject *obj, void *closure)
10132 struct srvsvc_NetSrvInfo599 *object = (struct srvsvc_NetSrvInfo599 *)pytalloc_get_ptr(obj);
10133 PyObject *py_enableraw;
10134 py_enableraw = PyInt_FromLong(object->enableraw);
10135 return py_enableraw;
10138 static int py_srvsvc_NetSrvInfo599_set_enableraw(PyObject *py_obj, PyObject *value, void *closure)
10140 struct srvsvc_NetSrvInfo599 *object = (struct srvsvc_NetSrvInfo599 *)pytalloc_get_ptr(py_obj);
10141 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
10142 object->enableraw = PyInt_AsLong(value);
10146 static PyObject *py_srvsvc_NetSrvInfo599_get_enablesharednetdrives(PyObject *obj, void *closure)
10148 struct srvsvc_NetSrvInfo599 *object = (struct srvsvc_NetSrvInfo599 *)pytalloc_get_ptr(obj);
10149 PyObject *py_enablesharednetdrives;
10150 py_enablesharednetdrives = PyInt_FromLong(object->enablesharednetdrives);
10151 return py_enablesharednetdrives;
10154 static int py_srvsvc_NetSrvInfo599_set_enablesharednetdrives(PyObject *py_obj, PyObject *value, void *closure)
10156 struct srvsvc_NetSrvInfo599 *object = (struct srvsvc_NetSrvInfo599 *)pytalloc_get_ptr(py_obj);
10157 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
10158 object->enablesharednetdrives = PyInt_AsLong(value);
10162 static PyObject *py_srvsvc_NetSrvInfo599_get_minfreeconnections(PyObject *obj, void *closure)
10164 struct srvsvc_NetSrvInfo599 *object = (struct srvsvc_NetSrvInfo599 *)pytalloc_get_ptr(obj);
10165 PyObject *py_minfreeconnections;
10166 py_minfreeconnections = PyInt_FromLong(object->minfreeconnections);
10167 return py_minfreeconnections;
10170 static int py_srvsvc_NetSrvInfo599_set_minfreeconnections(PyObject *py_obj, PyObject *value, void *closure)
10172 struct srvsvc_NetSrvInfo599 *object = (struct srvsvc_NetSrvInfo599 *)pytalloc_get_ptr(py_obj);
10173 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
10174 object->minfreeconnections = PyInt_AsLong(value);
10178 static PyObject *py_srvsvc_NetSrvInfo599_get_maxfreeconnections(PyObject *obj, void *closure)
10180 struct srvsvc_NetSrvInfo599 *object = (struct srvsvc_NetSrvInfo599 *)pytalloc_get_ptr(obj);
10181 PyObject *py_maxfreeconnections;
10182 py_maxfreeconnections = PyInt_FromLong(object->maxfreeconnections);
10183 return py_maxfreeconnections;
10186 static int py_srvsvc_NetSrvInfo599_set_maxfreeconnections(PyObject *py_obj, PyObject *value, void *closure)
10188 struct srvsvc_NetSrvInfo599 *object = (struct srvsvc_NetSrvInfo599 *)pytalloc_get_ptr(py_obj);
10189 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
10190 object->maxfreeconnections = PyInt_AsLong(value);
10194 static PyObject *py_srvsvc_NetSrvInfo599_get_initsesstable(PyObject *obj, void *closure)
10196 struct srvsvc_NetSrvInfo599 *object = (struct srvsvc_NetSrvInfo599 *)pytalloc_get_ptr(obj);
10197 PyObject *py_initsesstable;
10198 py_initsesstable = PyInt_FromLong(object->initsesstable);
10199 return py_initsesstable;
10202 static int py_srvsvc_NetSrvInfo599_set_initsesstable(PyObject *py_obj, PyObject *value, void *closure)
10204 struct srvsvc_NetSrvInfo599 *object = (struct srvsvc_NetSrvInfo599 *)pytalloc_get_ptr(py_obj);
10205 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
10206 object->initsesstable = PyInt_AsLong(value);
10210 static PyObject *py_srvsvc_NetSrvInfo599_get_initconntable(PyObject *obj, void *closure)
10212 struct srvsvc_NetSrvInfo599 *object = (struct srvsvc_NetSrvInfo599 *)pytalloc_get_ptr(obj);
10213 PyObject *py_initconntable;
10214 py_initconntable = PyInt_FromLong(object->initconntable);
10215 return py_initconntable;
10218 static int py_srvsvc_NetSrvInfo599_set_initconntable(PyObject *py_obj, PyObject *value, void *closure)
10220 struct srvsvc_NetSrvInfo599 *object = (struct srvsvc_NetSrvInfo599 *)pytalloc_get_ptr(py_obj);
10221 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
10222 object->initconntable = PyInt_AsLong(value);
10226 static PyObject *py_srvsvc_NetSrvInfo599_get_initfiletable(PyObject *obj, void *closure)
10228 struct srvsvc_NetSrvInfo599 *object = (struct srvsvc_NetSrvInfo599 *)pytalloc_get_ptr(obj);
10229 PyObject *py_initfiletable;
10230 py_initfiletable = PyInt_FromLong(object->initfiletable);
10231 return py_initfiletable;
10234 static int py_srvsvc_NetSrvInfo599_set_initfiletable(PyObject *py_obj, PyObject *value, void *closure)
10236 struct srvsvc_NetSrvInfo599 *object = (struct srvsvc_NetSrvInfo599 *)pytalloc_get_ptr(py_obj);
10237 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
10238 object->initfiletable = PyInt_AsLong(value);
10242 static PyObject *py_srvsvc_NetSrvInfo599_get_initsearchtable(PyObject *obj, void *closure)
10244 struct srvsvc_NetSrvInfo599 *object = (struct srvsvc_NetSrvInfo599 *)pytalloc_get_ptr(obj);
10245 PyObject *py_initsearchtable;
10246 py_initsearchtable = PyInt_FromLong(object->initsearchtable);
10247 return py_initsearchtable;
10250 static int py_srvsvc_NetSrvInfo599_set_initsearchtable(PyObject *py_obj, PyObject *value, void *closure)
10252 struct srvsvc_NetSrvInfo599 *object = (struct srvsvc_NetSrvInfo599 *)pytalloc_get_ptr(py_obj);
10253 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
10254 object->initsearchtable = PyInt_AsLong(value);
10258 static PyObject *py_srvsvc_NetSrvInfo599_get_alertsched(PyObject *obj, void *closure)
10260 struct srvsvc_NetSrvInfo599 *object = (struct srvsvc_NetSrvInfo599 *)pytalloc_get_ptr(obj);
10261 PyObject *py_alertsched;
10262 py_alertsched = PyInt_FromLong(object->alertsched);
10263 return py_alertsched;
10266 static int py_srvsvc_NetSrvInfo599_set_alertsched(PyObject *py_obj, PyObject *value, void *closure)
10268 struct srvsvc_NetSrvInfo599 *object = (struct srvsvc_NetSrvInfo599 *)pytalloc_get_ptr(py_obj);
10269 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
10270 object->alertsched = PyInt_AsLong(value);
10274 static PyObject *py_srvsvc_NetSrvInfo599_get_errortreshold(PyObject *obj, void *closure)
10276 struct srvsvc_NetSrvInfo599 *object = (struct srvsvc_NetSrvInfo599 *)pytalloc_get_ptr(obj);
10277 PyObject *py_errortreshold;
10278 py_errortreshold = PyInt_FromLong(object->errortreshold);
10279 return py_errortreshold;
10282 static int py_srvsvc_NetSrvInfo599_set_errortreshold(PyObject *py_obj, PyObject *value, void *closure)
10284 struct srvsvc_NetSrvInfo599 *object = (struct srvsvc_NetSrvInfo599 *)pytalloc_get_ptr(py_obj);
10285 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
10286 object->errortreshold = PyInt_AsLong(value);
10290 static PyObject *py_srvsvc_NetSrvInfo599_get_networkerrortreshold(PyObject *obj, void *closure)
10292 struct srvsvc_NetSrvInfo599 *object = (struct srvsvc_NetSrvInfo599 *)pytalloc_get_ptr(obj);
10293 PyObject *py_networkerrortreshold;
10294 py_networkerrortreshold = PyInt_FromLong(object->networkerrortreshold);
10295 return py_networkerrortreshold;
10298 static int py_srvsvc_NetSrvInfo599_set_networkerrortreshold(PyObject *py_obj, PyObject *value, void *closure)
10300 struct srvsvc_NetSrvInfo599 *object = (struct srvsvc_NetSrvInfo599 *)pytalloc_get_ptr(py_obj);
10301 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
10302 object->networkerrortreshold = PyInt_AsLong(value);
10306 static PyObject *py_srvsvc_NetSrvInfo599_get_diskspacetreshold(PyObject *obj, void *closure)
10308 struct srvsvc_NetSrvInfo599 *object = (struct srvsvc_NetSrvInfo599 *)pytalloc_get_ptr(obj);
10309 PyObject *py_diskspacetreshold;
10310 py_diskspacetreshold = PyInt_FromLong(object->diskspacetreshold);
10311 return py_diskspacetreshold;
10314 static int py_srvsvc_NetSrvInfo599_set_diskspacetreshold(PyObject *py_obj, PyObject *value, void *closure)
10316 struct srvsvc_NetSrvInfo599 *object = (struct srvsvc_NetSrvInfo599 *)pytalloc_get_ptr(py_obj);
10317 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
10318 object->diskspacetreshold = PyInt_AsLong(value);
10322 static PyObject *py_srvsvc_NetSrvInfo599_get_reserved(PyObject *obj, void *closure)
10324 struct srvsvc_NetSrvInfo599 *object = (struct srvsvc_NetSrvInfo599 *)pytalloc_get_ptr(obj);
10325 PyObject *py_reserved;
10326 py_reserved = PyInt_FromLong(object->reserved);
10327 return py_reserved;
10330 static int py_srvsvc_NetSrvInfo599_set_reserved(PyObject *py_obj, PyObject *value, void *closure)
10332 struct srvsvc_NetSrvInfo599 *object = (struct srvsvc_NetSrvInfo599 *)pytalloc_get_ptr(py_obj);
10333 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
10334 object->reserved = PyInt_AsLong(value);
10338 static PyObject *py_srvsvc_NetSrvInfo599_get_maxlinkdelay(PyObject *obj, void *closure)
10340 struct srvsvc_NetSrvInfo599 *object = (struct srvsvc_NetSrvInfo599 *)pytalloc_get_ptr(obj);
10341 PyObject *py_maxlinkdelay;
10342 py_maxlinkdelay = PyInt_FromLong(object->maxlinkdelay);
10343 return py_maxlinkdelay;
10346 static int py_srvsvc_NetSrvInfo599_set_maxlinkdelay(PyObject *py_obj, PyObject *value, void *closure)
10348 struct srvsvc_NetSrvInfo599 *object = (struct srvsvc_NetSrvInfo599 *)pytalloc_get_ptr(py_obj);
10349 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
10350 object->maxlinkdelay = PyInt_AsLong(value);
10354 static PyObject *py_srvsvc_NetSrvInfo599_get_minlinkthroughput(PyObject *obj, void *closure)
10356 struct srvsvc_NetSrvInfo599 *object = (struct srvsvc_NetSrvInfo599 *)pytalloc_get_ptr(obj);
10357 PyObject *py_minlinkthroughput;
10358 py_minlinkthroughput = PyInt_FromLong(object->minlinkthroughput);
10359 return py_minlinkthroughput;
10362 static int py_srvsvc_NetSrvInfo599_set_minlinkthroughput(PyObject *py_obj, PyObject *value, void *closure)
10364 struct srvsvc_NetSrvInfo599 *object = (struct srvsvc_NetSrvInfo599 *)pytalloc_get_ptr(py_obj);
10365 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
10366 object->minlinkthroughput = PyInt_AsLong(value);
10370 static PyObject *py_srvsvc_NetSrvInfo599_get_linkinfovalidtime(PyObject *obj, void *closure)
10372 struct srvsvc_NetSrvInfo599 *object = (struct srvsvc_NetSrvInfo599 *)pytalloc_get_ptr(obj);
10373 PyObject *py_linkinfovalidtime;
10374 py_linkinfovalidtime = PyInt_FromLong(object->linkinfovalidtime);
10375 return py_linkinfovalidtime;
10378 static int py_srvsvc_NetSrvInfo599_set_linkinfovalidtime(PyObject *py_obj, PyObject *value, void *closure)
10380 struct srvsvc_NetSrvInfo599 *object = (struct srvsvc_NetSrvInfo599 *)pytalloc_get_ptr(py_obj);
10381 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
10382 object->linkinfovalidtime = PyInt_AsLong(value);
10386 static PyObject *py_srvsvc_NetSrvInfo599_get_scavqosinfoupdatetime(PyObject *obj, void *closure)
10388 struct srvsvc_NetSrvInfo599 *object = (struct srvsvc_NetSrvInfo599 *)pytalloc_get_ptr(obj);
10389 PyObject *py_scavqosinfoupdatetime;
10390 py_scavqosinfoupdatetime = PyInt_FromLong(object->scavqosinfoupdatetime);
10391 return py_scavqosinfoupdatetime;
10394 static int py_srvsvc_NetSrvInfo599_set_scavqosinfoupdatetime(PyObject *py_obj, PyObject *value, void *closure)
10396 struct srvsvc_NetSrvInfo599 *object = (struct srvsvc_NetSrvInfo599 *)pytalloc_get_ptr(py_obj);
10397 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
10398 object->scavqosinfoupdatetime = PyInt_AsLong(value);
10402 static PyObject *py_srvsvc_NetSrvInfo599_get_maxworkitemidletime(PyObject *obj, void *closure)
10404 struct srvsvc_NetSrvInfo599 *object = (struct srvsvc_NetSrvInfo599 *)pytalloc_get_ptr(obj);
10405 PyObject *py_maxworkitemidletime;
10406 py_maxworkitemidletime = PyInt_FromLong(object->maxworkitemidletime);
10407 return py_maxworkitemidletime;
10410 static int py_srvsvc_NetSrvInfo599_set_maxworkitemidletime(PyObject *py_obj, PyObject *value, void *closure)
10412 struct srvsvc_NetSrvInfo599 *object = (struct srvsvc_NetSrvInfo599 *)pytalloc_get_ptr(py_obj);
10413 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
10414 object->maxworkitemidletime = PyInt_AsLong(value);
10418 static PyGetSetDef py_srvsvc_NetSrvInfo599_getsetters[] = {
10419 { discard_const_p(char, "sessopen"), py_srvsvc_NetSrvInfo599_get_sessopen, py_srvsvc_NetSrvInfo599_set_sessopen },
10420 { discard_const_p(char, "sesssvc"), py_srvsvc_NetSrvInfo599_get_sesssvc, py_srvsvc_NetSrvInfo599_set_sesssvc },
10421 { discard_const_p(char, "opensearch"), py_srvsvc_NetSrvInfo599_get_opensearch, py_srvsvc_NetSrvInfo599_set_opensearch },
10422 { discard_const_p(char, "sizereqbufs"), py_srvsvc_NetSrvInfo599_get_sizereqbufs, py_srvsvc_NetSrvInfo599_set_sizereqbufs },
10423 { discard_const_p(char, "initworkitems"), py_srvsvc_NetSrvInfo599_get_initworkitems, py_srvsvc_NetSrvInfo599_set_initworkitems },
10424 { discard_const_p(char, "maxworkitems"), py_srvsvc_NetSrvInfo599_get_maxworkitems, py_srvsvc_NetSrvInfo599_set_maxworkitems },
10425 { discard_const_p(char, "rawworkitems"), py_srvsvc_NetSrvInfo599_get_rawworkitems, py_srvsvc_NetSrvInfo599_set_rawworkitems },
10426 { discard_const_p(char, "irpstacksize"), py_srvsvc_NetSrvInfo599_get_irpstacksize, py_srvsvc_NetSrvInfo599_set_irpstacksize },
10427 { discard_const_p(char, "maxrawbuflen"), py_srvsvc_NetSrvInfo599_get_maxrawbuflen, py_srvsvc_NetSrvInfo599_set_maxrawbuflen },
10428 { discard_const_p(char, "sessusers"), py_srvsvc_NetSrvInfo599_get_sessusers, py_srvsvc_NetSrvInfo599_set_sessusers },
10429 { discard_const_p(char, "sessconns"), py_srvsvc_NetSrvInfo599_get_sessconns, py_srvsvc_NetSrvInfo599_set_sessconns },
10430 { discard_const_p(char, "maxpagedmemoryusage"), py_srvsvc_NetSrvInfo599_get_maxpagedmemoryusage, py_srvsvc_NetSrvInfo599_set_maxpagedmemoryusage },
10431 { discard_const_p(char, "maxnonpagedmemoryusage"), py_srvsvc_NetSrvInfo599_get_maxnonpagedmemoryusage, py_srvsvc_NetSrvInfo599_set_maxnonpagedmemoryusage },
10432 { discard_const_p(char, "enablesoftcompat"), py_srvsvc_NetSrvInfo599_get_enablesoftcompat, py_srvsvc_NetSrvInfo599_set_enablesoftcompat },
10433 { discard_const_p(char, "enableforcedlogoff"), py_srvsvc_NetSrvInfo599_get_enableforcedlogoff, py_srvsvc_NetSrvInfo599_set_enableforcedlogoff },
10434 { discard_const_p(char, "timesource"), py_srvsvc_NetSrvInfo599_get_timesource, py_srvsvc_NetSrvInfo599_set_timesource },
10435 { discard_const_p(char, "acceptdownlevelapis"), py_srvsvc_NetSrvInfo599_get_acceptdownlevelapis, py_srvsvc_NetSrvInfo599_set_acceptdownlevelapis },
10436 { discard_const_p(char, "lmannounce"), py_srvsvc_NetSrvInfo599_get_lmannounce, py_srvsvc_NetSrvInfo599_set_lmannounce },
10437 { discard_const_p(char, "domain"), py_srvsvc_NetSrvInfo599_get_domain, py_srvsvc_NetSrvInfo599_set_domain },
10438 { discard_const_p(char, "maxcopyreadlen"), py_srvsvc_NetSrvInfo599_get_maxcopyreadlen, py_srvsvc_NetSrvInfo599_set_maxcopyreadlen },
10439 { discard_const_p(char, "maxcopywritelen"), py_srvsvc_NetSrvInfo599_get_maxcopywritelen, py_srvsvc_NetSrvInfo599_set_maxcopywritelen },
10440 { discard_const_p(char, "minkeepsearch"), py_srvsvc_NetSrvInfo599_get_minkeepsearch, py_srvsvc_NetSrvInfo599_set_minkeepsearch },
10441 { discard_const_p(char, "minkeepcomplsearch"), py_srvsvc_NetSrvInfo599_get_minkeepcomplsearch, py_srvsvc_NetSrvInfo599_set_minkeepcomplsearch },
10442 { discard_const_p(char, "maxkeepcomplsearch"), py_srvsvc_NetSrvInfo599_get_maxkeepcomplsearch, py_srvsvc_NetSrvInfo599_set_maxkeepcomplsearch },
10443 { discard_const_p(char, "threadcountadd"), py_srvsvc_NetSrvInfo599_get_threadcountadd, py_srvsvc_NetSrvInfo599_set_threadcountadd },
10444 { discard_const_p(char, "numlockthreads"), py_srvsvc_NetSrvInfo599_get_numlockthreads, py_srvsvc_NetSrvInfo599_set_numlockthreads },
10445 { discard_const_p(char, "scavtimeout"), py_srvsvc_NetSrvInfo599_get_scavtimeout, py_srvsvc_NetSrvInfo599_set_scavtimeout },
10446 { discard_const_p(char, "minrcvqueue"), py_srvsvc_NetSrvInfo599_get_minrcvqueue, py_srvsvc_NetSrvInfo599_set_minrcvqueue },
10447 { discard_const_p(char, "minfreeworkitems"), py_srvsvc_NetSrvInfo599_get_minfreeworkitems, py_srvsvc_NetSrvInfo599_set_minfreeworkitems },
10448 { discard_const_p(char, "xactmemsize"), py_srvsvc_NetSrvInfo599_get_xactmemsize, py_srvsvc_NetSrvInfo599_set_xactmemsize },
10449 { discard_const_p(char, "threadpriority"), py_srvsvc_NetSrvInfo599_get_threadpriority, py_srvsvc_NetSrvInfo599_set_threadpriority },
10450 { discard_const_p(char, "maxmpxct"), py_srvsvc_NetSrvInfo599_get_maxmpxct, py_srvsvc_NetSrvInfo599_set_maxmpxct },
10451 { discard_const_p(char, "oplockbreakwait"), py_srvsvc_NetSrvInfo599_get_oplockbreakwait, py_srvsvc_NetSrvInfo599_set_oplockbreakwait },
10452 { discard_const_p(char, "oplockbreakresponsewait"), py_srvsvc_NetSrvInfo599_get_oplockbreakresponsewait, py_srvsvc_NetSrvInfo599_set_oplockbreakresponsewait },
10453 { discard_const_p(char, "enableoplocks"), py_srvsvc_NetSrvInfo599_get_enableoplocks, py_srvsvc_NetSrvInfo599_set_enableoplocks },
10454 { discard_const_p(char, "enableoplockforceclose"), py_srvsvc_NetSrvInfo599_get_enableoplockforceclose, py_srvsvc_NetSrvInfo599_set_enableoplockforceclose },
10455 { discard_const_p(char, "enablefcbopens"), py_srvsvc_NetSrvInfo599_get_enablefcbopens, py_srvsvc_NetSrvInfo599_set_enablefcbopens },
10456 { discard_const_p(char, "enableraw"), py_srvsvc_NetSrvInfo599_get_enableraw, py_srvsvc_NetSrvInfo599_set_enableraw },
10457 { discard_const_p(char, "enablesharednetdrives"), py_srvsvc_NetSrvInfo599_get_enablesharednetdrives, py_srvsvc_NetSrvInfo599_set_enablesharednetdrives },
10458 { discard_const_p(char, "minfreeconnections"), py_srvsvc_NetSrvInfo599_get_minfreeconnections, py_srvsvc_NetSrvInfo599_set_minfreeconnections },
10459 { discard_const_p(char, "maxfreeconnections"), py_srvsvc_NetSrvInfo599_get_maxfreeconnections, py_srvsvc_NetSrvInfo599_set_maxfreeconnections },
10460 { discard_const_p(char, "initsesstable"), py_srvsvc_NetSrvInfo599_get_initsesstable, py_srvsvc_NetSrvInfo599_set_initsesstable },
10461 { discard_const_p(char, "initconntable"), py_srvsvc_NetSrvInfo599_get_initconntable, py_srvsvc_NetSrvInfo599_set_initconntable },
10462 { discard_const_p(char, "initfiletable"), py_srvsvc_NetSrvInfo599_get_initfiletable, py_srvsvc_NetSrvInfo599_set_initfiletable },
10463 { discard_const_p(char, "initsearchtable"), py_srvsvc_NetSrvInfo599_get_initsearchtable, py_srvsvc_NetSrvInfo599_set_initsearchtable },
10464 { discard_const_p(char, "alertsched"), py_srvsvc_NetSrvInfo599_get_alertsched, py_srvsvc_NetSrvInfo599_set_alertsched },
10465 { discard_const_p(char, "errortreshold"), py_srvsvc_NetSrvInfo599_get_errortreshold, py_srvsvc_NetSrvInfo599_set_errortreshold },
10466 { discard_const_p(char, "networkerrortreshold"), py_srvsvc_NetSrvInfo599_get_networkerrortreshold, py_srvsvc_NetSrvInfo599_set_networkerrortreshold },
10467 { discard_const_p(char, "diskspacetreshold"), py_srvsvc_NetSrvInfo599_get_diskspacetreshold, py_srvsvc_NetSrvInfo599_set_diskspacetreshold },
10468 { discard_const_p(char, "reserved"), py_srvsvc_NetSrvInfo599_get_reserved, py_srvsvc_NetSrvInfo599_set_reserved },
10469 { discard_const_p(char, "maxlinkdelay"), py_srvsvc_NetSrvInfo599_get_maxlinkdelay, py_srvsvc_NetSrvInfo599_set_maxlinkdelay },
10470 { discard_const_p(char, "minlinkthroughput"), py_srvsvc_NetSrvInfo599_get_minlinkthroughput, py_srvsvc_NetSrvInfo599_set_minlinkthroughput },
10471 { discard_const_p(char, "linkinfovalidtime"), py_srvsvc_NetSrvInfo599_get_linkinfovalidtime, py_srvsvc_NetSrvInfo599_set_linkinfovalidtime },
10472 { discard_const_p(char, "scavqosinfoupdatetime"), py_srvsvc_NetSrvInfo599_get_scavqosinfoupdatetime, py_srvsvc_NetSrvInfo599_set_scavqosinfoupdatetime },
10473 { discard_const_p(char, "maxworkitemidletime"), py_srvsvc_NetSrvInfo599_get_maxworkitemidletime, py_srvsvc_NetSrvInfo599_set_maxworkitemidletime },
10477 static PyObject *py_srvsvc_NetSrvInfo599_new(PyTypeObject *type, PyObject *args, PyObject *kwargs)
10479 return pytalloc_new(struct srvsvc_NetSrvInfo599, type);
10483 static PyTypeObject srvsvc_NetSrvInfo599_Type = {
10484 PyObject_HEAD_INIT(NULL) 0,
10485 .tp_name = "srvsvc.NetSrvInfo599",
10486 .tp_getset = py_srvsvc_NetSrvInfo599_getsetters,
10487 .tp_methods = NULL,
10488 .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
10489 .tp_basicsize = sizeof(pytalloc_Object),
10490 .tp_new = py_srvsvc_NetSrvInfo599_new,
10494 static PyObject *py_srvsvc_NetSrvInfo1005_get_comment(PyObject *obj, void *closure)
10496 struct srvsvc_NetSrvInfo1005 *object = (struct srvsvc_NetSrvInfo1005 *)pytalloc_get_ptr(obj);
10497 PyObject *py_comment;
10498 if (object->comment == NULL) {
10499 py_comment = Py_None;
10500 Py_INCREF(py_comment);
10502 if (object->comment == NULL) {
10503 py_comment = Py_None;
10504 Py_INCREF(py_comment);
10506 py_comment = PyUnicode_Decode(object->comment, strlen(object->comment), "utf-8", "ignore");
10512 static int py_srvsvc_NetSrvInfo1005_set_comment(PyObject *py_obj, PyObject *value, void *closure)
10514 struct srvsvc_NetSrvInfo1005 *object = (struct srvsvc_NetSrvInfo1005 *)pytalloc_get_ptr(py_obj);
10515 if (value == Py_None) {
10516 object->comment = NULL;
10518 object->comment = NULL;
10519 if (PyUnicode_Check(value)) {
10520 object->comment = PyString_AS_STRING(PyUnicode_AsEncodedString(value, "utf-8", "ignore"));
10521 } else if (PyString_Check(value)) {
10522 object->comment = PyString_AS_STRING(value);
10524 PyErr_Format(PyExc_TypeError, "Expected string or unicode object, got %s", Py_TYPE(value)->tp_name);
10531 static PyGetSetDef py_srvsvc_NetSrvInfo1005_getsetters[] = {
10532 { discard_const_p(char, "comment"), py_srvsvc_NetSrvInfo1005_get_comment, py_srvsvc_NetSrvInfo1005_set_comment },
10536 static PyObject *py_srvsvc_NetSrvInfo1005_new(PyTypeObject *type, PyObject *args, PyObject *kwargs)
10538 return pytalloc_new(struct srvsvc_NetSrvInfo1005, type);
10542 static PyTypeObject srvsvc_NetSrvInfo1005_Type = {
10543 PyObject_HEAD_INIT(NULL) 0,
10544 .tp_name = "srvsvc.NetSrvInfo1005",
10545 .tp_getset = py_srvsvc_NetSrvInfo1005_getsetters,
10546 .tp_methods = NULL,
10547 .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
10548 .tp_basicsize = sizeof(pytalloc_Object),
10549 .tp_new = py_srvsvc_NetSrvInfo1005_new,
10553 static PyObject *py_srvsvc_NetSrvInfo1010_get_disc(PyObject *obj, void *closure)
10555 struct srvsvc_NetSrvInfo1010 *object = (struct srvsvc_NetSrvInfo1010 *)pytalloc_get_ptr(obj);
10557 py_disc = PyInt_FromLong(object->disc);
10561 static int py_srvsvc_NetSrvInfo1010_set_disc(PyObject *py_obj, PyObject *value, void *closure)
10563 struct srvsvc_NetSrvInfo1010 *object = (struct srvsvc_NetSrvInfo1010 *)pytalloc_get_ptr(py_obj);
10564 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
10565 object->disc = PyInt_AsLong(value);
10569 static PyGetSetDef py_srvsvc_NetSrvInfo1010_getsetters[] = {
10570 { discard_const_p(char, "disc"), py_srvsvc_NetSrvInfo1010_get_disc, py_srvsvc_NetSrvInfo1010_set_disc },
10574 static PyObject *py_srvsvc_NetSrvInfo1010_new(PyTypeObject *type, PyObject *args, PyObject *kwargs)
10576 return pytalloc_new(struct srvsvc_NetSrvInfo1010, type);
10580 static PyTypeObject srvsvc_NetSrvInfo1010_Type = {
10581 PyObject_HEAD_INIT(NULL) 0,
10582 .tp_name = "srvsvc.NetSrvInfo1010",
10583 .tp_getset = py_srvsvc_NetSrvInfo1010_getsetters,
10584 .tp_methods = NULL,
10585 .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
10586 .tp_basicsize = sizeof(pytalloc_Object),
10587 .tp_new = py_srvsvc_NetSrvInfo1010_new,
10591 static PyObject *py_srvsvc_NetSrvInfo1016_get_hidden(PyObject *obj, void *closure)
10593 struct srvsvc_NetSrvInfo1016 *object = (struct srvsvc_NetSrvInfo1016 *)pytalloc_get_ptr(obj);
10594 PyObject *py_hidden;
10595 py_hidden = PyInt_FromLong(object->hidden);
10599 static int py_srvsvc_NetSrvInfo1016_set_hidden(PyObject *py_obj, PyObject *value, void *closure)
10601 struct srvsvc_NetSrvInfo1016 *object = (struct srvsvc_NetSrvInfo1016 *)pytalloc_get_ptr(py_obj);
10602 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
10603 object->hidden = PyInt_AsLong(value);
10607 static PyGetSetDef py_srvsvc_NetSrvInfo1016_getsetters[] = {
10608 { discard_const_p(char, "hidden"), py_srvsvc_NetSrvInfo1016_get_hidden, py_srvsvc_NetSrvInfo1016_set_hidden },
10612 static PyObject *py_srvsvc_NetSrvInfo1016_new(PyTypeObject *type, PyObject *args, PyObject *kwargs)
10614 return pytalloc_new(struct srvsvc_NetSrvInfo1016, type);
10618 static PyTypeObject srvsvc_NetSrvInfo1016_Type = {
10619 PyObject_HEAD_INIT(NULL) 0,
10620 .tp_name = "srvsvc.NetSrvInfo1016",
10621 .tp_getset = py_srvsvc_NetSrvInfo1016_getsetters,
10622 .tp_methods = NULL,
10623 .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
10624 .tp_basicsize = sizeof(pytalloc_Object),
10625 .tp_new = py_srvsvc_NetSrvInfo1016_new,
10629 static PyObject *py_srvsvc_NetSrvInfo1017_get_announce(PyObject *obj, void *closure)
10631 struct srvsvc_NetSrvInfo1017 *object = (struct srvsvc_NetSrvInfo1017 *)pytalloc_get_ptr(obj);
10632 PyObject *py_announce;
10633 py_announce = PyInt_FromLong(object->announce);
10634 return py_announce;
10637 static int py_srvsvc_NetSrvInfo1017_set_announce(PyObject *py_obj, PyObject *value, void *closure)
10639 struct srvsvc_NetSrvInfo1017 *object = (struct srvsvc_NetSrvInfo1017 *)pytalloc_get_ptr(py_obj);
10640 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
10641 object->announce = PyInt_AsLong(value);
10645 static PyGetSetDef py_srvsvc_NetSrvInfo1017_getsetters[] = {
10646 { discard_const_p(char, "announce"), py_srvsvc_NetSrvInfo1017_get_announce, py_srvsvc_NetSrvInfo1017_set_announce },
10650 static PyObject *py_srvsvc_NetSrvInfo1017_new(PyTypeObject *type, PyObject *args, PyObject *kwargs)
10652 return pytalloc_new(struct srvsvc_NetSrvInfo1017, type);
10656 static PyTypeObject srvsvc_NetSrvInfo1017_Type = {
10657 PyObject_HEAD_INIT(NULL) 0,
10658 .tp_name = "srvsvc.NetSrvInfo1017",
10659 .tp_getset = py_srvsvc_NetSrvInfo1017_getsetters,
10660 .tp_methods = NULL,
10661 .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
10662 .tp_basicsize = sizeof(pytalloc_Object),
10663 .tp_new = py_srvsvc_NetSrvInfo1017_new,
10667 static PyObject *py_srvsvc_NetSrvInfo1018_get_anndelta(PyObject *obj, void *closure)
10669 struct srvsvc_NetSrvInfo1018 *object = (struct srvsvc_NetSrvInfo1018 *)pytalloc_get_ptr(obj);
10670 PyObject *py_anndelta;
10671 py_anndelta = PyInt_FromLong(object->anndelta);
10672 return py_anndelta;
10675 static int py_srvsvc_NetSrvInfo1018_set_anndelta(PyObject *py_obj, PyObject *value, void *closure)
10677 struct srvsvc_NetSrvInfo1018 *object = (struct srvsvc_NetSrvInfo1018 *)pytalloc_get_ptr(py_obj);
10678 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
10679 object->anndelta = PyInt_AsLong(value);
10683 static PyGetSetDef py_srvsvc_NetSrvInfo1018_getsetters[] = {
10684 { discard_const_p(char, "anndelta"), py_srvsvc_NetSrvInfo1018_get_anndelta, py_srvsvc_NetSrvInfo1018_set_anndelta },
10688 static PyObject *py_srvsvc_NetSrvInfo1018_new(PyTypeObject *type, PyObject *args, PyObject *kwargs)
10690 return pytalloc_new(struct srvsvc_NetSrvInfo1018, type);
10694 static PyTypeObject srvsvc_NetSrvInfo1018_Type = {
10695 PyObject_HEAD_INIT(NULL) 0,
10696 .tp_name = "srvsvc.NetSrvInfo1018",
10697 .tp_getset = py_srvsvc_NetSrvInfo1018_getsetters,
10698 .tp_methods = NULL,
10699 .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
10700 .tp_basicsize = sizeof(pytalloc_Object),
10701 .tp_new = py_srvsvc_NetSrvInfo1018_new,
10705 static PyObject *py_srvsvc_NetSrvInfo1107_get_users(PyObject *obj, void *closure)
10707 struct srvsvc_NetSrvInfo1107 *object = (struct srvsvc_NetSrvInfo1107 *)pytalloc_get_ptr(obj);
10708 PyObject *py_users;
10709 py_users = PyInt_FromLong(object->users);
10713 static int py_srvsvc_NetSrvInfo1107_set_users(PyObject *py_obj, PyObject *value, void *closure)
10715 struct srvsvc_NetSrvInfo1107 *object = (struct srvsvc_NetSrvInfo1107 *)pytalloc_get_ptr(py_obj);
10716 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
10717 object->users = PyInt_AsLong(value);
10721 static PyGetSetDef py_srvsvc_NetSrvInfo1107_getsetters[] = {
10722 { discard_const_p(char, "users"), py_srvsvc_NetSrvInfo1107_get_users, py_srvsvc_NetSrvInfo1107_set_users },
10726 static PyObject *py_srvsvc_NetSrvInfo1107_new(PyTypeObject *type, PyObject *args, PyObject *kwargs)
10728 return pytalloc_new(struct srvsvc_NetSrvInfo1107, type);
10732 static PyTypeObject srvsvc_NetSrvInfo1107_Type = {
10733 PyObject_HEAD_INIT(NULL) 0,
10734 .tp_name = "srvsvc.NetSrvInfo1107",
10735 .tp_getset = py_srvsvc_NetSrvInfo1107_getsetters,
10736 .tp_methods = NULL,
10737 .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
10738 .tp_basicsize = sizeof(pytalloc_Object),
10739 .tp_new = py_srvsvc_NetSrvInfo1107_new,
10743 static PyObject *py_srvsvc_NetSrvInfo1501_get_sessopens(PyObject *obj, void *closure)
10745 struct srvsvc_NetSrvInfo1501 *object = (struct srvsvc_NetSrvInfo1501 *)pytalloc_get_ptr(obj);
10746 PyObject *py_sessopens;
10747 py_sessopens = PyInt_FromLong(object->sessopens);
10748 return py_sessopens;
10751 static int py_srvsvc_NetSrvInfo1501_set_sessopens(PyObject *py_obj, PyObject *value, void *closure)
10753 struct srvsvc_NetSrvInfo1501 *object = (struct srvsvc_NetSrvInfo1501 *)pytalloc_get_ptr(py_obj);
10754 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
10755 object->sessopens = PyInt_AsLong(value);
10759 static PyGetSetDef py_srvsvc_NetSrvInfo1501_getsetters[] = {
10760 { discard_const_p(char, "sessopens"), py_srvsvc_NetSrvInfo1501_get_sessopens, py_srvsvc_NetSrvInfo1501_set_sessopens },
10764 static PyObject *py_srvsvc_NetSrvInfo1501_new(PyTypeObject *type, PyObject *args, PyObject *kwargs)
10766 return pytalloc_new(struct srvsvc_NetSrvInfo1501, type);
10770 static PyTypeObject srvsvc_NetSrvInfo1501_Type = {
10771 PyObject_HEAD_INIT(NULL) 0,
10772 .tp_name = "srvsvc.NetSrvInfo1501",
10773 .tp_getset = py_srvsvc_NetSrvInfo1501_getsetters,
10774 .tp_methods = NULL,
10775 .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
10776 .tp_basicsize = sizeof(pytalloc_Object),
10777 .tp_new = py_srvsvc_NetSrvInfo1501_new,
10781 static PyObject *py_srvsvc_NetSrvInfo1502_get_sessvcs(PyObject *obj, void *closure)
10783 struct srvsvc_NetSrvInfo1502 *object = (struct srvsvc_NetSrvInfo1502 *)pytalloc_get_ptr(obj);
10784 PyObject *py_sessvcs;
10785 py_sessvcs = PyInt_FromLong(object->sessvcs);
10789 static int py_srvsvc_NetSrvInfo1502_set_sessvcs(PyObject *py_obj, PyObject *value, void *closure)
10791 struct srvsvc_NetSrvInfo1502 *object = (struct srvsvc_NetSrvInfo1502 *)pytalloc_get_ptr(py_obj);
10792 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
10793 object->sessvcs = PyInt_AsLong(value);
10797 static PyGetSetDef py_srvsvc_NetSrvInfo1502_getsetters[] = {
10798 { discard_const_p(char, "sessvcs"), py_srvsvc_NetSrvInfo1502_get_sessvcs, py_srvsvc_NetSrvInfo1502_set_sessvcs },
10802 static PyObject *py_srvsvc_NetSrvInfo1502_new(PyTypeObject *type, PyObject *args, PyObject *kwargs)
10804 return pytalloc_new(struct srvsvc_NetSrvInfo1502, type);
10808 static PyTypeObject srvsvc_NetSrvInfo1502_Type = {
10809 PyObject_HEAD_INIT(NULL) 0,
10810 .tp_name = "srvsvc.NetSrvInfo1502",
10811 .tp_getset = py_srvsvc_NetSrvInfo1502_getsetters,
10812 .tp_methods = NULL,
10813 .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
10814 .tp_basicsize = sizeof(pytalloc_Object),
10815 .tp_new = py_srvsvc_NetSrvInfo1502_new,
10819 static PyObject *py_srvsvc_NetSrvInfo1503_get_opensearch(PyObject *obj, void *closure)
10821 struct srvsvc_NetSrvInfo1503 *object = (struct srvsvc_NetSrvInfo1503 *)pytalloc_get_ptr(obj);
10822 PyObject *py_opensearch;
10823 py_opensearch = PyInt_FromLong(object->opensearch);
10824 return py_opensearch;
10827 static int py_srvsvc_NetSrvInfo1503_set_opensearch(PyObject *py_obj, PyObject *value, void *closure)
10829 struct srvsvc_NetSrvInfo1503 *object = (struct srvsvc_NetSrvInfo1503 *)pytalloc_get_ptr(py_obj);
10830 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
10831 object->opensearch = PyInt_AsLong(value);
10835 static PyGetSetDef py_srvsvc_NetSrvInfo1503_getsetters[] = {
10836 { discard_const_p(char, "opensearch"), py_srvsvc_NetSrvInfo1503_get_opensearch, py_srvsvc_NetSrvInfo1503_set_opensearch },
10840 static PyObject *py_srvsvc_NetSrvInfo1503_new(PyTypeObject *type, PyObject *args, PyObject *kwargs)
10842 return pytalloc_new(struct srvsvc_NetSrvInfo1503, type);
10846 static PyTypeObject srvsvc_NetSrvInfo1503_Type = {
10847 PyObject_HEAD_INIT(NULL) 0,
10848 .tp_name = "srvsvc.NetSrvInfo1503",
10849 .tp_getset = py_srvsvc_NetSrvInfo1503_getsetters,
10850 .tp_methods = NULL,
10851 .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
10852 .tp_basicsize = sizeof(pytalloc_Object),
10853 .tp_new = py_srvsvc_NetSrvInfo1503_new,
10857 static PyObject *py_srvsvc_NetSrvInfo1506_get_maxworkitems(PyObject *obj, void *closure)
10859 struct srvsvc_NetSrvInfo1506 *object = (struct srvsvc_NetSrvInfo1506 *)pytalloc_get_ptr(obj);
10860 PyObject *py_maxworkitems;
10861 py_maxworkitems = PyInt_FromLong(object->maxworkitems);
10862 return py_maxworkitems;
10865 static int py_srvsvc_NetSrvInfo1506_set_maxworkitems(PyObject *py_obj, PyObject *value, void *closure)
10867 struct srvsvc_NetSrvInfo1506 *object = (struct srvsvc_NetSrvInfo1506 *)pytalloc_get_ptr(py_obj);
10868 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
10869 object->maxworkitems = PyInt_AsLong(value);
10873 static PyGetSetDef py_srvsvc_NetSrvInfo1506_getsetters[] = {
10874 { discard_const_p(char, "maxworkitems"), py_srvsvc_NetSrvInfo1506_get_maxworkitems, py_srvsvc_NetSrvInfo1506_set_maxworkitems },
10878 static PyObject *py_srvsvc_NetSrvInfo1506_new(PyTypeObject *type, PyObject *args, PyObject *kwargs)
10880 return pytalloc_new(struct srvsvc_NetSrvInfo1506, type);
10884 static PyTypeObject srvsvc_NetSrvInfo1506_Type = {
10885 PyObject_HEAD_INIT(NULL) 0,
10886 .tp_name = "srvsvc.NetSrvInfo1506",
10887 .tp_getset = py_srvsvc_NetSrvInfo1506_getsetters,
10888 .tp_methods = NULL,
10889 .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
10890 .tp_basicsize = sizeof(pytalloc_Object),
10891 .tp_new = py_srvsvc_NetSrvInfo1506_new,
10895 static PyObject *py_srvsvc_NetSrvInfo1509_get_maxrawbuflen(PyObject *obj, void *closure)
10897 struct srvsvc_NetSrvInfo1509 *object = (struct srvsvc_NetSrvInfo1509 *)pytalloc_get_ptr(obj);
10898 PyObject *py_maxrawbuflen;
10899 py_maxrawbuflen = PyInt_FromLong(object->maxrawbuflen);
10900 return py_maxrawbuflen;
10903 static int py_srvsvc_NetSrvInfo1509_set_maxrawbuflen(PyObject *py_obj, PyObject *value, void *closure)
10905 struct srvsvc_NetSrvInfo1509 *object = (struct srvsvc_NetSrvInfo1509 *)pytalloc_get_ptr(py_obj);
10906 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
10907 object->maxrawbuflen = PyInt_AsLong(value);
10911 static PyGetSetDef py_srvsvc_NetSrvInfo1509_getsetters[] = {
10912 { discard_const_p(char, "maxrawbuflen"), py_srvsvc_NetSrvInfo1509_get_maxrawbuflen, py_srvsvc_NetSrvInfo1509_set_maxrawbuflen },
10916 static PyObject *py_srvsvc_NetSrvInfo1509_new(PyTypeObject *type, PyObject *args, PyObject *kwargs)
10918 return pytalloc_new(struct srvsvc_NetSrvInfo1509, type);
10922 static PyTypeObject srvsvc_NetSrvInfo1509_Type = {
10923 PyObject_HEAD_INIT(NULL) 0,
10924 .tp_name = "srvsvc.NetSrvInfo1509",
10925 .tp_getset = py_srvsvc_NetSrvInfo1509_getsetters,
10926 .tp_methods = NULL,
10927 .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
10928 .tp_basicsize = sizeof(pytalloc_Object),
10929 .tp_new = py_srvsvc_NetSrvInfo1509_new,
10933 static PyObject *py_srvsvc_NetSrvInfo1510_get_sessusers(PyObject *obj, void *closure)
10935 struct srvsvc_NetSrvInfo1510 *object = (struct srvsvc_NetSrvInfo1510 *)pytalloc_get_ptr(obj);
10936 PyObject *py_sessusers;
10937 py_sessusers = PyInt_FromLong(object->sessusers);
10938 return py_sessusers;
10941 static int py_srvsvc_NetSrvInfo1510_set_sessusers(PyObject *py_obj, PyObject *value, void *closure)
10943 struct srvsvc_NetSrvInfo1510 *object = (struct srvsvc_NetSrvInfo1510 *)pytalloc_get_ptr(py_obj);
10944 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
10945 object->sessusers = PyInt_AsLong(value);
10949 static PyGetSetDef py_srvsvc_NetSrvInfo1510_getsetters[] = {
10950 { discard_const_p(char, "sessusers"), py_srvsvc_NetSrvInfo1510_get_sessusers, py_srvsvc_NetSrvInfo1510_set_sessusers },
10954 static PyObject *py_srvsvc_NetSrvInfo1510_new(PyTypeObject *type, PyObject *args, PyObject *kwargs)
10956 return pytalloc_new(struct srvsvc_NetSrvInfo1510, type);
10960 static PyTypeObject srvsvc_NetSrvInfo1510_Type = {
10961 PyObject_HEAD_INIT(NULL) 0,
10962 .tp_name = "srvsvc.NetSrvInfo1510",
10963 .tp_getset = py_srvsvc_NetSrvInfo1510_getsetters,
10964 .tp_methods = NULL,
10965 .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
10966 .tp_basicsize = sizeof(pytalloc_Object),
10967 .tp_new = py_srvsvc_NetSrvInfo1510_new,
10971 static PyObject *py_srvsvc_NetSrvInfo1511_get_sesscons(PyObject *obj, void *closure)
10973 struct srvsvc_NetSrvInfo1511 *object = (struct srvsvc_NetSrvInfo1511 *)pytalloc_get_ptr(obj);
10974 PyObject *py_sesscons;
10975 py_sesscons = PyInt_FromLong(object->sesscons);
10976 return py_sesscons;
10979 static int py_srvsvc_NetSrvInfo1511_set_sesscons(PyObject *py_obj, PyObject *value, void *closure)
10981 struct srvsvc_NetSrvInfo1511 *object = (struct srvsvc_NetSrvInfo1511 *)pytalloc_get_ptr(py_obj);
10982 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
10983 object->sesscons = PyInt_AsLong(value);
10987 static PyGetSetDef py_srvsvc_NetSrvInfo1511_getsetters[] = {
10988 { discard_const_p(char, "sesscons"), py_srvsvc_NetSrvInfo1511_get_sesscons, py_srvsvc_NetSrvInfo1511_set_sesscons },
10992 static PyObject *py_srvsvc_NetSrvInfo1511_new(PyTypeObject *type, PyObject *args, PyObject *kwargs)
10994 return pytalloc_new(struct srvsvc_NetSrvInfo1511, type);
10998 static PyTypeObject srvsvc_NetSrvInfo1511_Type = {
10999 PyObject_HEAD_INIT(NULL) 0,
11000 .tp_name = "srvsvc.NetSrvInfo1511",
11001 .tp_getset = py_srvsvc_NetSrvInfo1511_getsetters,
11002 .tp_methods = NULL,
11003 .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
11004 .tp_basicsize = sizeof(pytalloc_Object),
11005 .tp_new = py_srvsvc_NetSrvInfo1511_new,
11009 static PyObject *py_srvsvc_NetSrvInfo1512_get_maxnonpagedmemoryusage(PyObject *obj, void *closure)
11011 struct srvsvc_NetSrvInfo1512 *object = (struct srvsvc_NetSrvInfo1512 *)pytalloc_get_ptr(obj);
11012 PyObject *py_maxnonpagedmemoryusage;
11013 py_maxnonpagedmemoryusage = PyInt_FromLong(object->maxnonpagedmemoryusage);
11014 return py_maxnonpagedmemoryusage;
11017 static int py_srvsvc_NetSrvInfo1512_set_maxnonpagedmemoryusage(PyObject *py_obj, PyObject *value, void *closure)
11019 struct srvsvc_NetSrvInfo1512 *object = (struct srvsvc_NetSrvInfo1512 *)pytalloc_get_ptr(py_obj);
11020 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
11021 object->maxnonpagedmemoryusage = PyInt_AsLong(value);
11025 static PyGetSetDef py_srvsvc_NetSrvInfo1512_getsetters[] = {
11026 { discard_const_p(char, "maxnonpagedmemoryusage"), py_srvsvc_NetSrvInfo1512_get_maxnonpagedmemoryusage, py_srvsvc_NetSrvInfo1512_set_maxnonpagedmemoryusage },
11030 static PyObject *py_srvsvc_NetSrvInfo1512_new(PyTypeObject *type, PyObject *args, PyObject *kwargs)
11032 return pytalloc_new(struct srvsvc_NetSrvInfo1512, type);
11036 static PyTypeObject srvsvc_NetSrvInfo1512_Type = {
11037 PyObject_HEAD_INIT(NULL) 0,
11038 .tp_name = "srvsvc.NetSrvInfo1512",
11039 .tp_getset = py_srvsvc_NetSrvInfo1512_getsetters,
11040 .tp_methods = NULL,
11041 .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
11042 .tp_basicsize = sizeof(pytalloc_Object),
11043 .tp_new = py_srvsvc_NetSrvInfo1512_new,
11047 static PyObject *py_srvsvc_NetSrvInfo1513_get_maxpagedmemoryusage(PyObject *obj, void *closure)
11049 struct srvsvc_NetSrvInfo1513 *object = (struct srvsvc_NetSrvInfo1513 *)pytalloc_get_ptr(obj);
11050 PyObject *py_maxpagedmemoryusage;
11051 py_maxpagedmemoryusage = PyInt_FromLong(object->maxpagedmemoryusage);
11052 return py_maxpagedmemoryusage;
11055 static int py_srvsvc_NetSrvInfo1513_set_maxpagedmemoryusage(PyObject *py_obj, PyObject *value, void *closure)
11057 struct srvsvc_NetSrvInfo1513 *object = (struct srvsvc_NetSrvInfo1513 *)pytalloc_get_ptr(py_obj);
11058 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
11059 object->maxpagedmemoryusage = PyInt_AsLong(value);
11063 static PyGetSetDef py_srvsvc_NetSrvInfo1513_getsetters[] = {
11064 { discard_const_p(char, "maxpagedmemoryusage"), py_srvsvc_NetSrvInfo1513_get_maxpagedmemoryusage, py_srvsvc_NetSrvInfo1513_set_maxpagedmemoryusage },
11068 static PyObject *py_srvsvc_NetSrvInfo1513_new(PyTypeObject *type, PyObject *args, PyObject *kwargs)
11070 return pytalloc_new(struct srvsvc_NetSrvInfo1513, type);
11074 static PyTypeObject srvsvc_NetSrvInfo1513_Type = {
11075 PyObject_HEAD_INIT(NULL) 0,
11076 .tp_name = "srvsvc.NetSrvInfo1513",
11077 .tp_getset = py_srvsvc_NetSrvInfo1513_getsetters,
11078 .tp_methods = NULL,
11079 .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
11080 .tp_basicsize = sizeof(pytalloc_Object),
11081 .tp_new = py_srvsvc_NetSrvInfo1513_new,
11085 static PyObject *py_srvsvc_NetSrvInfo1514_get_enablesoftcompat(PyObject *obj, void *closure)
11087 struct srvsvc_NetSrvInfo1514 *object = (struct srvsvc_NetSrvInfo1514 *)pytalloc_get_ptr(obj);
11088 PyObject *py_enablesoftcompat;
11089 py_enablesoftcompat = PyInt_FromLong(object->enablesoftcompat);
11090 return py_enablesoftcompat;
11093 static int py_srvsvc_NetSrvInfo1514_set_enablesoftcompat(PyObject *py_obj, PyObject *value, void *closure)
11095 struct srvsvc_NetSrvInfo1514 *object = (struct srvsvc_NetSrvInfo1514 *)pytalloc_get_ptr(py_obj);
11096 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
11097 object->enablesoftcompat = PyInt_AsLong(value);
11101 static PyGetSetDef py_srvsvc_NetSrvInfo1514_getsetters[] = {
11102 { discard_const_p(char, "enablesoftcompat"), py_srvsvc_NetSrvInfo1514_get_enablesoftcompat, py_srvsvc_NetSrvInfo1514_set_enablesoftcompat },
11106 static PyObject *py_srvsvc_NetSrvInfo1514_new(PyTypeObject *type, PyObject *args, PyObject *kwargs)
11108 return pytalloc_new(struct srvsvc_NetSrvInfo1514, type);
11112 static PyTypeObject srvsvc_NetSrvInfo1514_Type = {
11113 PyObject_HEAD_INIT(NULL) 0,
11114 .tp_name = "srvsvc.NetSrvInfo1514",
11115 .tp_getset = py_srvsvc_NetSrvInfo1514_getsetters,
11116 .tp_methods = NULL,
11117 .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
11118 .tp_basicsize = sizeof(pytalloc_Object),
11119 .tp_new = py_srvsvc_NetSrvInfo1514_new,
11123 static PyObject *py_srvsvc_NetSrvInfo1515_get_enableforcedlogoff(PyObject *obj, void *closure)
11125 struct srvsvc_NetSrvInfo1515 *object = (struct srvsvc_NetSrvInfo1515 *)pytalloc_get_ptr(obj);
11126 PyObject *py_enableforcedlogoff;
11127 py_enableforcedlogoff = PyInt_FromLong(object->enableforcedlogoff);
11128 return py_enableforcedlogoff;
11131 static int py_srvsvc_NetSrvInfo1515_set_enableforcedlogoff(PyObject *py_obj, PyObject *value, void *closure)
11133 struct srvsvc_NetSrvInfo1515 *object = (struct srvsvc_NetSrvInfo1515 *)pytalloc_get_ptr(py_obj);
11134 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
11135 object->enableforcedlogoff = PyInt_AsLong(value);
11139 static PyGetSetDef py_srvsvc_NetSrvInfo1515_getsetters[] = {
11140 { discard_const_p(char, "enableforcedlogoff"), py_srvsvc_NetSrvInfo1515_get_enableforcedlogoff, py_srvsvc_NetSrvInfo1515_set_enableforcedlogoff },
11144 static PyObject *py_srvsvc_NetSrvInfo1515_new(PyTypeObject *type, PyObject *args, PyObject *kwargs)
11146 return pytalloc_new(struct srvsvc_NetSrvInfo1515, type);
11150 static PyTypeObject srvsvc_NetSrvInfo1515_Type = {
11151 PyObject_HEAD_INIT(NULL) 0,
11152 .tp_name = "srvsvc.NetSrvInfo1515",
11153 .tp_getset = py_srvsvc_NetSrvInfo1515_getsetters,
11154 .tp_methods = NULL,
11155 .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
11156 .tp_basicsize = sizeof(pytalloc_Object),
11157 .tp_new = py_srvsvc_NetSrvInfo1515_new,
11161 static PyObject *py_srvsvc_NetSrvInfo1516_get_timesource(PyObject *obj, void *closure)
11163 struct srvsvc_NetSrvInfo1516 *object = (struct srvsvc_NetSrvInfo1516 *)pytalloc_get_ptr(obj);
11164 PyObject *py_timesource;
11165 py_timesource = PyInt_FromLong(object->timesource);
11166 return py_timesource;
11169 static int py_srvsvc_NetSrvInfo1516_set_timesource(PyObject *py_obj, PyObject *value, void *closure)
11171 struct srvsvc_NetSrvInfo1516 *object = (struct srvsvc_NetSrvInfo1516 *)pytalloc_get_ptr(py_obj);
11172 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
11173 object->timesource = PyInt_AsLong(value);
11177 static PyGetSetDef py_srvsvc_NetSrvInfo1516_getsetters[] = {
11178 { discard_const_p(char, "timesource"), py_srvsvc_NetSrvInfo1516_get_timesource, py_srvsvc_NetSrvInfo1516_set_timesource },
11182 static PyObject *py_srvsvc_NetSrvInfo1516_new(PyTypeObject *type, PyObject *args, PyObject *kwargs)
11184 return pytalloc_new(struct srvsvc_NetSrvInfo1516, type);
11188 static PyTypeObject srvsvc_NetSrvInfo1516_Type = {
11189 PyObject_HEAD_INIT(NULL) 0,
11190 .tp_name = "srvsvc.NetSrvInfo1516",
11191 .tp_getset = py_srvsvc_NetSrvInfo1516_getsetters,
11192 .tp_methods = NULL,
11193 .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
11194 .tp_basicsize = sizeof(pytalloc_Object),
11195 .tp_new = py_srvsvc_NetSrvInfo1516_new,
11199 static PyObject *py_srvsvc_NetSrvInfo1518_get_lmannounce(PyObject *obj, void *closure)
11201 struct srvsvc_NetSrvInfo1518 *object = (struct srvsvc_NetSrvInfo1518 *)pytalloc_get_ptr(obj);
11202 PyObject *py_lmannounce;
11203 py_lmannounce = PyInt_FromLong(object->lmannounce);
11204 return py_lmannounce;
11207 static int py_srvsvc_NetSrvInfo1518_set_lmannounce(PyObject *py_obj, PyObject *value, void *closure)
11209 struct srvsvc_NetSrvInfo1518 *object = (struct srvsvc_NetSrvInfo1518 *)pytalloc_get_ptr(py_obj);
11210 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
11211 object->lmannounce = PyInt_AsLong(value);
11215 static PyGetSetDef py_srvsvc_NetSrvInfo1518_getsetters[] = {
11216 { discard_const_p(char, "lmannounce"), py_srvsvc_NetSrvInfo1518_get_lmannounce, py_srvsvc_NetSrvInfo1518_set_lmannounce },
11220 static PyObject *py_srvsvc_NetSrvInfo1518_new(PyTypeObject *type, PyObject *args, PyObject *kwargs)
11222 return pytalloc_new(struct srvsvc_NetSrvInfo1518, type);
11226 static PyTypeObject srvsvc_NetSrvInfo1518_Type = {
11227 PyObject_HEAD_INIT(NULL) 0,
11228 .tp_name = "srvsvc.NetSrvInfo1518",
11229 .tp_getset = py_srvsvc_NetSrvInfo1518_getsetters,
11230 .tp_methods = NULL,
11231 .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
11232 .tp_basicsize = sizeof(pytalloc_Object),
11233 .tp_new = py_srvsvc_NetSrvInfo1518_new,
11237 static PyObject *py_srvsvc_NetSrvInfo1520_get_maxcopyreadlen(PyObject *obj, void *closure)
11239 struct srvsvc_NetSrvInfo1520 *object = (struct srvsvc_NetSrvInfo1520 *)pytalloc_get_ptr(obj);
11240 PyObject *py_maxcopyreadlen;
11241 py_maxcopyreadlen = PyInt_FromLong(object->maxcopyreadlen);
11242 return py_maxcopyreadlen;
11245 static int py_srvsvc_NetSrvInfo1520_set_maxcopyreadlen(PyObject *py_obj, PyObject *value, void *closure)
11247 struct srvsvc_NetSrvInfo1520 *object = (struct srvsvc_NetSrvInfo1520 *)pytalloc_get_ptr(py_obj);
11248 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
11249 object->maxcopyreadlen = PyInt_AsLong(value);
11253 static PyGetSetDef py_srvsvc_NetSrvInfo1520_getsetters[] = {
11254 { discard_const_p(char, "maxcopyreadlen"), py_srvsvc_NetSrvInfo1520_get_maxcopyreadlen, py_srvsvc_NetSrvInfo1520_set_maxcopyreadlen },
11258 static PyObject *py_srvsvc_NetSrvInfo1520_new(PyTypeObject *type, PyObject *args, PyObject *kwargs)
11260 return pytalloc_new(struct srvsvc_NetSrvInfo1520, type);
11264 static PyTypeObject srvsvc_NetSrvInfo1520_Type = {
11265 PyObject_HEAD_INIT(NULL) 0,
11266 .tp_name = "srvsvc.NetSrvInfo1520",
11267 .tp_getset = py_srvsvc_NetSrvInfo1520_getsetters,
11268 .tp_methods = NULL,
11269 .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
11270 .tp_basicsize = sizeof(pytalloc_Object),
11271 .tp_new = py_srvsvc_NetSrvInfo1520_new,
11275 static PyObject *py_srvsvc_NetSrvInfo1521_get_maxcopywritelen(PyObject *obj, void *closure)
11277 struct srvsvc_NetSrvInfo1521 *object = (struct srvsvc_NetSrvInfo1521 *)pytalloc_get_ptr(obj);
11278 PyObject *py_maxcopywritelen;
11279 py_maxcopywritelen = PyInt_FromLong(object->maxcopywritelen);
11280 return py_maxcopywritelen;
11283 static int py_srvsvc_NetSrvInfo1521_set_maxcopywritelen(PyObject *py_obj, PyObject *value, void *closure)
11285 struct srvsvc_NetSrvInfo1521 *object = (struct srvsvc_NetSrvInfo1521 *)pytalloc_get_ptr(py_obj);
11286 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
11287 object->maxcopywritelen = PyInt_AsLong(value);
11291 static PyGetSetDef py_srvsvc_NetSrvInfo1521_getsetters[] = {
11292 { discard_const_p(char, "maxcopywritelen"), py_srvsvc_NetSrvInfo1521_get_maxcopywritelen, py_srvsvc_NetSrvInfo1521_set_maxcopywritelen },
11296 static PyObject *py_srvsvc_NetSrvInfo1521_new(PyTypeObject *type, PyObject *args, PyObject *kwargs)
11298 return pytalloc_new(struct srvsvc_NetSrvInfo1521, type);
11302 static PyTypeObject srvsvc_NetSrvInfo1521_Type = {
11303 PyObject_HEAD_INIT(NULL) 0,
11304 .tp_name = "srvsvc.NetSrvInfo1521",
11305 .tp_getset = py_srvsvc_NetSrvInfo1521_getsetters,
11306 .tp_methods = NULL,
11307 .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
11308 .tp_basicsize = sizeof(pytalloc_Object),
11309 .tp_new = py_srvsvc_NetSrvInfo1521_new,
11313 static PyObject *py_srvsvc_NetSrvInfo1522_get_minkeepsearch(PyObject *obj, void *closure)
11315 struct srvsvc_NetSrvInfo1522 *object = (struct srvsvc_NetSrvInfo1522 *)pytalloc_get_ptr(obj);
11316 PyObject *py_minkeepsearch;
11317 py_minkeepsearch = PyInt_FromLong(object->minkeepsearch);
11318 return py_minkeepsearch;
11321 static int py_srvsvc_NetSrvInfo1522_set_minkeepsearch(PyObject *py_obj, PyObject *value, void *closure)
11323 struct srvsvc_NetSrvInfo1522 *object = (struct srvsvc_NetSrvInfo1522 *)pytalloc_get_ptr(py_obj);
11324 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
11325 object->minkeepsearch = PyInt_AsLong(value);
11329 static PyGetSetDef py_srvsvc_NetSrvInfo1522_getsetters[] = {
11330 { discard_const_p(char, "minkeepsearch"), py_srvsvc_NetSrvInfo1522_get_minkeepsearch, py_srvsvc_NetSrvInfo1522_set_minkeepsearch },
11334 static PyObject *py_srvsvc_NetSrvInfo1522_new(PyTypeObject *type, PyObject *args, PyObject *kwargs)
11336 return pytalloc_new(struct srvsvc_NetSrvInfo1522, type);
11340 static PyTypeObject srvsvc_NetSrvInfo1522_Type = {
11341 PyObject_HEAD_INIT(NULL) 0,
11342 .tp_name = "srvsvc.NetSrvInfo1522",
11343 .tp_getset = py_srvsvc_NetSrvInfo1522_getsetters,
11344 .tp_methods = NULL,
11345 .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
11346 .tp_basicsize = sizeof(pytalloc_Object),
11347 .tp_new = py_srvsvc_NetSrvInfo1522_new,
11351 static PyObject *py_srvsvc_NetSrvInfo1523_get_maxkeepsearch(PyObject *obj, void *closure)
11353 struct srvsvc_NetSrvInfo1523 *object = (struct srvsvc_NetSrvInfo1523 *)pytalloc_get_ptr(obj);
11354 PyObject *py_maxkeepsearch;
11355 py_maxkeepsearch = PyInt_FromLong(object->maxkeepsearch);
11356 return py_maxkeepsearch;
11359 static int py_srvsvc_NetSrvInfo1523_set_maxkeepsearch(PyObject *py_obj, PyObject *value, void *closure)
11361 struct srvsvc_NetSrvInfo1523 *object = (struct srvsvc_NetSrvInfo1523 *)pytalloc_get_ptr(py_obj);
11362 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
11363 object->maxkeepsearch = PyInt_AsLong(value);
11367 static PyGetSetDef py_srvsvc_NetSrvInfo1523_getsetters[] = {
11368 { discard_const_p(char, "maxkeepsearch"), py_srvsvc_NetSrvInfo1523_get_maxkeepsearch, py_srvsvc_NetSrvInfo1523_set_maxkeepsearch },
11372 static PyObject *py_srvsvc_NetSrvInfo1523_new(PyTypeObject *type, PyObject *args, PyObject *kwargs)
11374 return pytalloc_new(struct srvsvc_NetSrvInfo1523, type);
11378 static PyTypeObject srvsvc_NetSrvInfo1523_Type = {
11379 PyObject_HEAD_INIT(NULL) 0,
11380 .tp_name = "srvsvc.NetSrvInfo1523",
11381 .tp_getset = py_srvsvc_NetSrvInfo1523_getsetters,
11382 .tp_methods = NULL,
11383 .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
11384 .tp_basicsize = sizeof(pytalloc_Object),
11385 .tp_new = py_srvsvc_NetSrvInfo1523_new,
11389 static PyObject *py_srvsvc_NetSrvInfo1524_get_minkeepcomplsearch(PyObject *obj, void *closure)
11391 struct srvsvc_NetSrvInfo1524 *object = (struct srvsvc_NetSrvInfo1524 *)pytalloc_get_ptr(obj);
11392 PyObject *py_minkeepcomplsearch;
11393 py_minkeepcomplsearch = PyInt_FromLong(object->minkeepcomplsearch);
11394 return py_minkeepcomplsearch;
11397 static int py_srvsvc_NetSrvInfo1524_set_minkeepcomplsearch(PyObject *py_obj, PyObject *value, void *closure)
11399 struct srvsvc_NetSrvInfo1524 *object = (struct srvsvc_NetSrvInfo1524 *)pytalloc_get_ptr(py_obj);
11400 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
11401 object->minkeepcomplsearch = PyInt_AsLong(value);
11405 static PyGetSetDef py_srvsvc_NetSrvInfo1524_getsetters[] = {
11406 { discard_const_p(char, "minkeepcomplsearch"), py_srvsvc_NetSrvInfo1524_get_minkeepcomplsearch, py_srvsvc_NetSrvInfo1524_set_minkeepcomplsearch },
11410 static PyObject *py_srvsvc_NetSrvInfo1524_new(PyTypeObject *type, PyObject *args, PyObject *kwargs)
11412 return pytalloc_new(struct srvsvc_NetSrvInfo1524, type);
11416 static PyTypeObject srvsvc_NetSrvInfo1524_Type = {
11417 PyObject_HEAD_INIT(NULL) 0,
11418 .tp_name = "srvsvc.NetSrvInfo1524",
11419 .tp_getset = py_srvsvc_NetSrvInfo1524_getsetters,
11420 .tp_methods = NULL,
11421 .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
11422 .tp_basicsize = sizeof(pytalloc_Object),
11423 .tp_new = py_srvsvc_NetSrvInfo1524_new,
11427 static PyObject *py_srvsvc_NetSrvInfo1525_get_maxkeepcomplsearch(PyObject *obj, void *closure)
11429 struct srvsvc_NetSrvInfo1525 *object = (struct srvsvc_NetSrvInfo1525 *)pytalloc_get_ptr(obj);
11430 PyObject *py_maxkeepcomplsearch;
11431 py_maxkeepcomplsearch = PyInt_FromLong(object->maxkeepcomplsearch);
11432 return py_maxkeepcomplsearch;
11435 static int py_srvsvc_NetSrvInfo1525_set_maxkeepcomplsearch(PyObject *py_obj, PyObject *value, void *closure)
11437 struct srvsvc_NetSrvInfo1525 *object = (struct srvsvc_NetSrvInfo1525 *)pytalloc_get_ptr(py_obj);
11438 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
11439 object->maxkeepcomplsearch = PyInt_AsLong(value);
11443 static PyGetSetDef py_srvsvc_NetSrvInfo1525_getsetters[] = {
11444 { discard_const_p(char, "maxkeepcomplsearch"), py_srvsvc_NetSrvInfo1525_get_maxkeepcomplsearch, py_srvsvc_NetSrvInfo1525_set_maxkeepcomplsearch },
11448 static PyObject *py_srvsvc_NetSrvInfo1525_new(PyTypeObject *type, PyObject *args, PyObject *kwargs)
11450 return pytalloc_new(struct srvsvc_NetSrvInfo1525, type);
11454 static PyTypeObject srvsvc_NetSrvInfo1525_Type = {
11455 PyObject_HEAD_INIT(NULL) 0,
11456 .tp_name = "srvsvc.NetSrvInfo1525",
11457 .tp_getset = py_srvsvc_NetSrvInfo1525_getsetters,
11458 .tp_methods = NULL,
11459 .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
11460 .tp_basicsize = sizeof(pytalloc_Object),
11461 .tp_new = py_srvsvc_NetSrvInfo1525_new,
11465 static PyObject *py_srvsvc_NetSrvInfo1528_get_scavtimeout(PyObject *obj, void *closure)
11467 struct srvsvc_NetSrvInfo1528 *object = (struct srvsvc_NetSrvInfo1528 *)pytalloc_get_ptr(obj);
11468 PyObject *py_scavtimeout;
11469 py_scavtimeout = PyInt_FromLong(object->scavtimeout);
11470 return py_scavtimeout;
11473 static int py_srvsvc_NetSrvInfo1528_set_scavtimeout(PyObject *py_obj, PyObject *value, void *closure)
11475 struct srvsvc_NetSrvInfo1528 *object = (struct srvsvc_NetSrvInfo1528 *)pytalloc_get_ptr(py_obj);
11476 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
11477 object->scavtimeout = PyInt_AsLong(value);
11481 static PyGetSetDef py_srvsvc_NetSrvInfo1528_getsetters[] = {
11482 { discard_const_p(char, "scavtimeout"), py_srvsvc_NetSrvInfo1528_get_scavtimeout, py_srvsvc_NetSrvInfo1528_set_scavtimeout },
11486 static PyObject *py_srvsvc_NetSrvInfo1528_new(PyTypeObject *type, PyObject *args, PyObject *kwargs)
11488 return pytalloc_new(struct srvsvc_NetSrvInfo1528, type);
11492 static PyTypeObject srvsvc_NetSrvInfo1528_Type = {
11493 PyObject_HEAD_INIT(NULL) 0,
11494 .tp_name = "srvsvc.NetSrvInfo1528",
11495 .tp_getset = py_srvsvc_NetSrvInfo1528_getsetters,
11496 .tp_methods = NULL,
11497 .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
11498 .tp_basicsize = sizeof(pytalloc_Object),
11499 .tp_new = py_srvsvc_NetSrvInfo1528_new,
11503 static PyObject *py_srvsvc_NetSrvInfo1529_get_minrcvqueue(PyObject *obj, void *closure)
11505 struct srvsvc_NetSrvInfo1529 *object = (struct srvsvc_NetSrvInfo1529 *)pytalloc_get_ptr(obj);
11506 PyObject *py_minrcvqueue;
11507 py_minrcvqueue = PyInt_FromLong(object->minrcvqueue);
11508 return py_minrcvqueue;
11511 static int py_srvsvc_NetSrvInfo1529_set_minrcvqueue(PyObject *py_obj, PyObject *value, void *closure)
11513 struct srvsvc_NetSrvInfo1529 *object = (struct srvsvc_NetSrvInfo1529 *)pytalloc_get_ptr(py_obj);
11514 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
11515 object->minrcvqueue = PyInt_AsLong(value);
11519 static PyGetSetDef py_srvsvc_NetSrvInfo1529_getsetters[] = {
11520 { discard_const_p(char, "minrcvqueue"), py_srvsvc_NetSrvInfo1529_get_minrcvqueue, py_srvsvc_NetSrvInfo1529_set_minrcvqueue },
11524 static PyObject *py_srvsvc_NetSrvInfo1529_new(PyTypeObject *type, PyObject *args, PyObject *kwargs)
11526 return pytalloc_new(struct srvsvc_NetSrvInfo1529, type);
11530 static PyTypeObject srvsvc_NetSrvInfo1529_Type = {
11531 PyObject_HEAD_INIT(NULL) 0,
11532 .tp_name = "srvsvc.NetSrvInfo1529",
11533 .tp_getset = py_srvsvc_NetSrvInfo1529_getsetters,
11534 .tp_methods = NULL,
11535 .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
11536 .tp_basicsize = sizeof(pytalloc_Object),
11537 .tp_new = py_srvsvc_NetSrvInfo1529_new,
11541 static PyObject *py_srvsvc_NetSrvInfo1530_get_minfreeworkitems(PyObject *obj, void *closure)
11543 struct srvsvc_NetSrvInfo1530 *object = (struct srvsvc_NetSrvInfo1530 *)pytalloc_get_ptr(obj);
11544 PyObject *py_minfreeworkitems;
11545 py_minfreeworkitems = PyInt_FromLong(object->minfreeworkitems);
11546 return py_minfreeworkitems;
11549 static int py_srvsvc_NetSrvInfo1530_set_minfreeworkitems(PyObject *py_obj, PyObject *value, void *closure)
11551 struct srvsvc_NetSrvInfo1530 *object = (struct srvsvc_NetSrvInfo1530 *)pytalloc_get_ptr(py_obj);
11552 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
11553 object->minfreeworkitems = PyInt_AsLong(value);
11557 static PyGetSetDef py_srvsvc_NetSrvInfo1530_getsetters[] = {
11558 { discard_const_p(char, "minfreeworkitems"), py_srvsvc_NetSrvInfo1530_get_minfreeworkitems, py_srvsvc_NetSrvInfo1530_set_minfreeworkitems },
11562 static PyObject *py_srvsvc_NetSrvInfo1530_new(PyTypeObject *type, PyObject *args, PyObject *kwargs)
11564 return pytalloc_new(struct srvsvc_NetSrvInfo1530, type);
11568 static PyTypeObject srvsvc_NetSrvInfo1530_Type = {
11569 PyObject_HEAD_INIT(NULL) 0,
11570 .tp_name = "srvsvc.NetSrvInfo1530",
11571 .tp_getset = py_srvsvc_NetSrvInfo1530_getsetters,
11572 .tp_methods = NULL,
11573 .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
11574 .tp_basicsize = sizeof(pytalloc_Object),
11575 .tp_new = py_srvsvc_NetSrvInfo1530_new,
11579 static PyObject *py_srvsvc_NetSrvInfo1533_get_maxmpxct(PyObject *obj, void *closure)
11581 struct srvsvc_NetSrvInfo1533 *object = (struct srvsvc_NetSrvInfo1533 *)pytalloc_get_ptr(obj);
11582 PyObject *py_maxmpxct;
11583 py_maxmpxct = PyInt_FromLong(object->maxmpxct);
11584 return py_maxmpxct;
11587 static int py_srvsvc_NetSrvInfo1533_set_maxmpxct(PyObject *py_obj, PyObject *value, void *closure)
11589 struct srvsvc_NetSrvInfo1533 *object = (struct srvsvc_NetSrvInfo1533 *)pytalloc_get_ptr(py_obj);
11590 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
11591 object->maxmpxct = PyInt_AsLong(value);
11595 static PyGetSetDef py_srvsvc_NetSrvInfo1533_getsetters[] = {
11596 { discard_const_p(char, "maxmpxct"), py_srvsvc_NetSrvInfo1533_get_maxmpxct, py_srvsvc_NetSrvInfo1533_set_maxmpxct },
11600 static PyObject *py_srvsvc_NetSrvInfo1533_new(PyTypeObject *type, PyObject *args, PyObject *kwargs)
11602 return pytalloc_new(struct srvsvc_NetSrvInfo1533, type);
11606 static PyTypeObject srvsvc_NetSrvInfo1533_Type = {
11607 PyObject_HEAD_INIT(NULL) 0,
11608 .tp_name = "srvsvc.NetSrvInfo1533",
11609 .tp_getset = py_srvsvc_NetSrvInfo1533_getsetters,
11610 .tp_methods = NULL,
11611 .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
11612 .tp_basicsize = sizeof(pytalloc_Object),
11613 .tp_new = py_srvsvc_NetSrvInfo1533_new,
11617 static PyObject *py_srvsvc_NetSrvInfo1534_get_oplockbreakwait(PyObject *obj, void *closure)
11619 struct srvsvc_NetSrvInfo1534 *object = (struct srvsvc_NetSrvInfo1534 *)pytalloc_get_ptr(obj);
11620 PyObject *py_oplockbreakwait;
11621 py_oplockbreakwait = PyInt_FromLong(object->oplockbreakwait);
11622 return py_oplockbreakwait;
11625 static int py_srvsvc_NetSrvInfo1534_set_oplockbreakwait(PyObject *py_obj, PyObject *value, void *closure)
11627 struct srvsvc_NetSrvInfo1534 *object = (struct srvsvc_NetSrvInfo1534 *)pytalloc_get_ptr(py_obj);
11628 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
11629 object->oplockbreakwait = PyInt_AsLong(value);
11633 static PyGetSetDef py_srvsvc_NetSrvInfo1534_getsetters[] = {
11634 { discard_const_p(char, "oplockbreakwait"), py_srvsvc_NetSrvInfo1534_get_oplockbreakwait, py_srvsvc_NetSrvInfo1534_set_oplockbreakwait },
11638 static PyObject *py_srvsvc_NetSrvInfo1534_new(PyTypeObject *type, PyObject *args, PyObject *kwargs)
11640 return pytalloc_new(struct srvsvc_NetSrvInfo1534, type);
11644 static PyTypeObject srvsvc_NetSrvInfo1534_Type = {
11645 PyObject_HEAD_INIT(NULL) 0,
11646 .tp_name = "srvsvc.NetSrvInfo1534",
11647 .tp_getset = py_srvsvc_NetSrvInfo1534_getsetters,
11648 .tp_methods = NULL,
11649 .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
11650 .tp_basicsize = sizeof(pytalloc_Object),
11651 .tp_new = py_srvsvc_NetSrvInfo1534_new,
11655 static PyObject *py_srvsvc_NetSrvInfo1535_get_oplockbreakresponsewait(PyObject *obj, void *closure)
11657 struct srvsvc_NetSrvInfo1535 *object = (struct srvsvc_NetSrvInfo1535 *)pytalloc_get_ptr(obj);
11658 PyObject *py_oplockbreakresponsewait;
11659 py_oplockbreakresponsewait = PyInt_FromLong(object->oplockbreakresponsewait);
11660 return py_oplockbreakresponsewait;
11663 static int py_srvsvc_NetSrvInfo1535_set_oplockbreakresponsewait(PyObject *py_obj, PyObject *value, void *closure)
11665 struct srvsvc_NetSrvInfo1535 *object = (struct srvsvc_NetSrvInfo1535 *)pytalloc_get_ptr(py_obj);
11666 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
11667 object->oplockbreakresponsewait = PyInt_AsLong(value);
11671 static PyGetSetDef py_srvsvc_NetSrvInfo1535_getsetters[] = {
11672 { discard_const_p(char, "oplockbreakresponsewait"), py_srvsvc_NetSrvInfo1535_get_oplockbreakresponsewait, py_srvsvc_NetSrvInfo1535_set_oplockbreakresponsewait },
11676 static PyObject *py_srvsvc_NetSrvInfo1535_new(PyTypeObject *type, PyObject *args, PyObject *kwargs)
11678 return pytalloc_new(struct srvsvc_NetSrvInfo1535, type);
11682 static PyTypeObject srvsvc_NetSrvInfo1535_Type = {
11683 PyObject_HEAD_INIT(NULL) 0,
11684 .tp_name = "srvsvc.NetSrvInfo1535",
11685 .tp_getset = py_srvsvc_NetSrvInfo1535_getsetters,
11686 .tp_methods = NULL,
11687 .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
11688 .tp_basicsize = sizeof(pytalloc_Object),
11689 .tp_new = py_srvsvc_NetSrvInfo1535_new,
11693 static PyObject *py_srvsvc_NetSrvInfo1536_get_enableoplocks(PyObject *obj, void *closure)
11695 struct srvsvc_NetSrvInfo1536 *object = (struct srvsvc_NetSrvInfo1536 *)pytalloc_get_ptr(obj);
11696 PyObject *py_enableoplocks;
11697 py_enableoplocks = PyInt_FromLong(object->enableoplocks);
11698 return py_enableoplocks;
11701 static int py_srvsvc_NetSrvInfo1536_set_enableoplocks(PyObject *py_obj, PyObject *value, void *closure)
11703 struct srvsvc_NetSrvInfo1536 *object = (struct srvsvc_NetSrvInfo1536 *)pytalloc_get_ptr(py_obj);
11704 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
11705 object->enableoplocks = PyInt_AsLong(value);
11709 static PyGetSetDef py_srvsvc_NetSrvInfo1536_getsetters[] = {
11710 { discard_const_p(char, "enableoplocks"), py_srvsvc_NetSrvInfo1536_get_enableoplocks, py_srvsvc_NetSrvInfo1536_set_enableoplocks },
11714 static PyObject *py_srvsvc_NetSrvInfo1536_new(PyTypeObject *type, PyObject *args, PyObject *kwargs)
11716 return pytalloc_new(struct srvsvc_NetSrvInfo1536, type);
11720 static PyTypeObject srvsvc_NetSrvInfo1536_Type = {
11721 PyObject_HEAD_INIT(NULL) 0,
11722 .tp_name = "srvsvc.NetSrvInfo1536",
11723 .tp_getset = py_srvsvc_NetSrvInfo1536_getsetters,
11724 .tp_methods = NULL,
11725 .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
11726 .tp_basicsize = sizeof(pytalloc_Object),
11727 .tp_new = py_srvsvc_NetSrvInfo1536_new,
11731 static PyObject *py_srvsvc_NetSrvInfo1537_get_enableoplockforceclose(PyObject *obj, void *closure)
11733 struct srvsvc_NetSrvInfo1537 *object = (struct srvsvc_NetSrvInfo1537 *)pytalloc_get_ptr(obj);
11734 PyObject *py_enableoplockforceclose;
11735 py_enableoplockforceclose = PyInt_FromLong(object->enableoplockforceclose);
11736 return py_enableoplockforceclose;
11739 static int py_srvsvc_NetSrvInfo1537_set_enableoplockforceclose(PyObject *py_obj, PyObject *value, void *closure)
11741 struct srvsvc_NetSrvInfo1537 *object = (struct srvsvc_NetSrvInfo1537 *)pytalloc_get_ptr(py_obj);
11742 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
11743 object->enableoplockforceclose = PyInt_AsLong(value);
11747 static PyGetSetDef py_srvsvc_NetSrvInfo1537_getsetters[] = {
11748 { discard_const_p(char, "enableoplockforceclose"), py_srvsvc_NetSrvInfo1537_get_enableoplockforceclose, py_srvsvc_NetSrvInfo1537_set_enableoplockforceclose },
11752 static PyObject *py_srvsvc_NetSrvInfo1537_new(PyTypeObject *type, PyObject *args, PyObject *kwargs)
11754 return pytalloc_new(struct srvsvc_NetSrvInfo1537, type);
11758 static PyTypeObject srvsvc_NetSrvInfo1537_Type = {
11759 PyObject_HEAD_INIT(NULL) 0,
11760 .tp_name = "srvsvc.NetSrvInfo1537",
11761 .tp_getset = py_srvsvc_NetSrvInfo1537_getsetters,
11762 .tp_methods = NULL,
11763 .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
11764 .tp_basicsize = sizeof(pytalloc_Object),
11765 .tp_new = py_srvsvc_NetSrvInfo1537_new,
11769 static PyObject *py_srvsvc_NetSrvInfo1538_get_enablefcbopens(PyObject *obj, void *closure)
11771 struct srvsvc_NetSrvInfo1538 *object = (struct srvsvc_NetSrvInfo1538 *)pytalloc_get_ptr(obj);
11772 PyObject *py_enablefcbopens;
11773 py_enablefcbopens = PyInt_FromLong(object->enablefcbopens);
11774 return py_enablefcbopens;
11777 static int py_srvsvc_NetSrvInfo1538_set_enablefcbopens(PyObject *py_obj, PyObject *value, void *closure)
11779 struct srvsvc_NetSrvInfo1538 *object = (struct srvsvc_NetSrvInfo1538 *)pytalloc_get_ptr(py_obj);
11780 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
11781 object->enablefcbopens = PyInt_AsLong(value);
11785 static PyGetSetDef py_srvsvc_NetSrvInfo1538_getsetters[] = {
11786 { discard_const_p(char, "enablefcbopens"), py_srvsvc_NetSrvInfo1538_get_enablefcbopens, py_srvsvc_NetSrvInfo1538_set_enablefcbopens },
11790 static PyObject *py_srvsvc_NetSrvInfo1538_new(PyTypeObject *type, PyObject *args, PyObject *kwargs)
11792 return pytalloc_new(struct srvsvc_NetSrvInfo1538, type);
11796 static PyTypeObject srvsvc_NetSrvInfo1538_Type = {
11797 PyObject_HEAD_INIT(NULL) 0,
11798 .tp_name = "srvsvc.NetSrvInfo1538",
11799 .tp_getset = py_srvsvc_NetSrvInfo1538_getsetters,
11800 .tp_methods = NULL,
11801 .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
11802 .tp_basicsize = sizeof(pytalloc_Object),
11803 .tp_new = py_srvsvc_NetSrvInfo1538_new,
11807 static PyObject *py_srvsvc_NetSrvInfo1539_get_enableraw(PyObject *obj, void *closure)
11809 struct srvsvc_NetSrvInfo1539 *object = (struct srvsvc_NetSrvInfo1539 *)pytalloc_get_ptr(obj);
11810 PyObject *py_enableraw;
11811 py_enableraw = PyInt_FromLong(object->enableraw);
11812 return py_enableraw;
11815 static int py_srvsvc_NetSrvInfo1539_set_enableraw(PyObject *py_obj, PyObject *value, void *closure)
11817 struct srvsvc_NetSrvInfo1539 *object = (struct srvsvc_NetSrvInfo1539 *)pytalloc_get_ptr(py_obj);
11818 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
11819 object->enableraw = PyInt_AsLong(value);
11823 static PyGetSetDef py_srvsvc_NetSrvInfo1539_getsetters[] = {
11824 { discard_const_p(char, "enableraw"), py_srvsvc_NetSrvInfo1539_get_enableraw, py_srvsvc_NetSrvInfo1539_set_enableraw },
11828 static PyObject *py_srvsvc_NetSrvInfo1539_new(PyTypeObject *type, PyObject *args, PyObject *kwargs)
11830 return pytalloc_new(struct srvsvc_NetSrvInfo1539, type);
11834 static PyTypeObject srvsvc_NetSrvInfo1539_Type = {
11835 PyObject_HEAD_INIT(NULL) 0,
11836 .tp_name = "srvsvc.NetSrvInfo1539",
11837 .tp_getset = py_srvsvc_NetSrvInfo1539_getsetters,
11838 .tp_methods = NULL,
11839 .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
11840 .tp_basicsize = sizeof(pytalloc_Object),
11841 .tp_new = py_srvsvc_NetSrvInfo1539_new,
11845 static PyObject *py_srvsvc_NetSrvInfo1540_get_enablesharednetdrives(PyObject *obj, void *closure)
11847 struct srvsvc_NetSrvInfo1540 *object = (struct srvsvc_NetSrvInfo1540 *)pytalloc_get_ptr(obj);
11848 PyObject *py_enablesharednetdrives;
11849 py_enablesharednetdrives = PyInt_FromLong(object->enablesharednetdrives);
11850 return py_enablesharednetdrives;
11853 static int py_srvsvc_NetSrvInfo1540_set_enablesharednetdrives(PyObject *py_obj, PyObject *value, void *closure)
11855 struct srvsvc_NetSrvInfo1540 *object = (struct srvsvc_NetSrvInfo1540 *)pytalloc_get_ptr(py_obj);
11856 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
11857 object->enablesharednetdrives = PyInt_AsLong(value);
11861 static PyGetSetDef py_srvsvc_NetSrvInfo1540_getsetters[] = {
11862 { discard_const_p(char, "enablesharednetdrives"), py_srvsvc_NetSrvInfo1540_get_enablesharednetdrives, py_srvsvc_NetSrvInfo1540_set_enablesharednetdrives },
11866 static PyObject *py_srvsvc_NetSrvInfo1540_new(PyTypeObject *type, PyObject *args, PyObject *kwargs)
11868 return pytalloc_new(struct srvsvc_NetSrvInfo1540, type);
11872 static PyTypeObject srvsvc_NetSrvInfo1540_Type = {
11873 PyObject_HEAD_INIT(NULL) 0,
11874 .tp_name = "srvsvc.NetSrvInfo1540",
11875 .tp_getset = py_srvsvc_NetSrvInfo1540_getsetters,
11876 .tp_methods = NULL,
11877 .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
11878 .tp_basicsize = sizeof(pytalloc_Object),
11879 .tp_new = py_srvsvc_NetSrvInfo1540_new,
11883 static PyObject *py_srvsvc_NetSrvInfo1541_get_minfreeconnections(PyObject *obj, void *closure)
11885 struct srvsvc_NetSrvInfo1541 *object = (struct srvsvc_NetSrvInfo1541 *)pytalloc_get_ptr(obj);
11886 PyObject *py_minfreeconnections;
11887 py_minfreeconnections = PyInt_FromLong(object->minfreeconnections);
11888 return py_minfreeconnections;
11891 static int py_srvsvc_NetSrvInfo1541_set_minfreeconnections(PyObject *py_obj, PyObject *value, void *closure)
11893 struct srvsvc_NetSrvInfo1541 *object = (struct srvsvc_NetSrvInfo1541 *)pytalloc_get_ptr(py_obj);
11894 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
11895 object->minfreeconnections = PyInt_AsLong(value);
11899 static PyGetSetDef py_srvsvc_NetSrvInfo1541_getsetters[] = {
11900 { discard_const_p(char, "minfreeconnections"), py_srvsvc_NetSrvInfo1541_get_minfreeconnections, py_srvsvc_NetSrvInfo1541_set_minfreeconnections },
11904 static PyObject *py_srvsvc_NetSrvInfo1541_new(PyTypeObject *type, PyObject *args, PyObject *kwargs)
11906 return pytalloc_new(struct srvsvc_NetSrvInfo1541, type);
11910 static PyTypeObject srvsvc_NetSrvInfo1541_Type = {
11911 PyObject_HEAD_INIT(NULL) 0,
11912 .tp_name = "srvsvc.NetSrvInfo1541",
11913 .tp_getset = py_srvsvc_NetSrvInfo1541_getsetters,
11914 .tp_methods = NULL,
11915 .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
11916 .tp_basicsize = sizeof(pytalloc_Object),
11917 .tp_new = py_srvsvc_NetSrvInfo1541_new,
11921 static PyObject *py_srvsvc_NetSrvInfo1542_get_maxfreeconnections(PyObject *obj, void *closure)
11923 struct srvsvc_NetSrvInfo1542 *object = (struct srvsvc_NetSrvInfo1542 *)pytalloc_get_ptr(obj);
11924 PyObject *py_maxfreeconnections;
11925 py_maxfreeconnections = PyInt_FromLong(object->maxfreeconnections);
11926 return py_maxfreeconnections;
11929 static int py_srvsvc_NetSrvInfo1542_set_maxfreeconnections(PyObject *py_obj, PyObject *value, void *closure)
11931 struct srvsvc_NetSrvInfo1542 *object = (struct srvsvc_NetSrvInfo1542 *)pytalloc_get_ptr(py_obj);
11932 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
11933 object->maxfreeconnections = PyInt_AsLong(value);
11937 static PyGetSetDef py_srvsvc_NetSrvInfo1542_getsetters[] = {
11938 { discard_const_p(char, "maxfreeconnections"), py_srvsvc_NetSrvInfo1542_get_maxfreeconnections, py_srvsvc_NetSrvInfo1542_set_maxfreeconnections },
11942 static PyObject *py_srvsvc_NetSrvInfo1542_new(PyTypeObject *type, PyObject *args, PyObject *kwargs)
11944 return pytalloc_new(struct srvsvc_NetSrvInfo1542, type);
11948 static PyTypeObject srvsvc_NetSrvInfo1542_Type = {
11949 PyObject_HEAD_INIT(NULL) 0,
11950 .tp_name = "srvsvc.NetSrvInfo1542",
11951 .tp_getset = py_srvsvc_NetSrvInfo1542_getsetters,
11952 .tp_methods = NULL,
11953 .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
11954 .tp_basicsize = sizeof(pytalloc_Object),
11955 .tp_new = py_srvsvc_NetSrvInfo1542_new,
11959 static PyObject *py_srvsvc_NetSrvInfo1543_get_initsesstable(PyObject *obj, void *closure)
11961 struct srvsvc_NetSrvInfo1543 *object = (struct srvsvc_NetSrvInfo1543 *)pytalloc_get_ptr(obj);
11962 PyObject *py_initsesstable;
11963 py_initsesstable = PyInt_FromLong(object->initsesstable);
11964 return py_initsesstable;
11967 static int py_srvsvc_NetSrvInfo1543_set_initsesstable(PyObject *py_obj, PyObject *value, void *closure)
11969 struct srvsvc_NetSrvInfo1543 *object = (struct srvsvc_NetSrvInfo1543 *)pytalloc_get_ptr(py_obj);
11970 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
11971 object->initsesstable = PyInt_AsLong(value);
11975 static PyGetSetDef py_srvsvc_NetSrvInfo1543_getsetters[] = {
11976 { discard_const_p(char, "initsesstable"), py_srvsvc_NetSrvInfo1543_get_initsesstable, py_srvsvc_NetSrvInfo1543_set_initsesstable },
11980 static PyObject *py_srvsvc_NetSrvInfo1543_new(PyTypeObject *type, PyObject *args, PyObject *kwargs)
11982 return pytalloc_new(struct srvsvc_NetSrvInfo1543, type);
11986 static PyTypeObject srvsvc_NetSrvInfo1543_Type = {
11987 PyObject_HEAD_INIT(NULL) 0,
11988 .tp_name = "srvsvc.NetSrvInfo1543",
11989 .tp_getset = py_srvsvc_NetSrvInfo1543_getsetters,
11990 .tp_methods = NULL,
11991 .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
11992 .tp_basicsize = sizeof(pytalloc_Object),
11993 .tp_new = py_srvsvc_NetSrvInfo1543_new,
11997 static PyObject *py_srvsvc_NetSrvInfo1544_get_initconntable(PyObject *obj, void *closure)
11999 struct srvsvc_NetSrvInfo1544 *object = (struct srvsvc_NetSrvInfo1544 *)pytalloc_get_ptr(obj);
12000 PyObject *py_initconntable;
12001 py_initconntable = PyInt_FromLong(object->initconntable);
12002 return py_initconntable;
12005 static int py_srvsvc_NetSrvInfo1544_set_initconntable(PyObject *py_obj, PyObject *value, void *closure)
12007 struct srvsvc_NetSrvInfo1544 *object = (struct srvsvc_NetSrvInfo1544 *)pytalloc_get_ptr(py_obj);
12008 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
12009 object->initconntable = PyInt_AsLong(value);
12013 static PyGetSetDef py_srvsvc_NetSrvInfo1544_getsetters[] = {
12014 { discard_const_p(char, "initconntable"), py_srvsvc_NetSrvInfo1544_get_initconntable, py_srvsvc_NetSrvInfo1544_set_initconntable },
12018 static PyObject *py_srvsvc_NetSrvInfo1544_new(PyTypeObject *type, PyObject *args, PyObject *kwargs)
12020 return pytalloc_new(struct srvsvc_NetSrvInfo1544, type);
12024 static PyTypeObject srvsvc_NetSrvInfo1544_Type = {
12025 PyObject_HEAD_INIT(NULL) 0,
12026 .tp_name = "srvsvc.NetSrvInfo1544",
12027 .tp_getset = py_srvsvc_NetSrvInfo1544_getsetters,
12028 .tp_methods = NULL,
12029 .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
12030 .tp_basicsize = sizeof(pytalloc_Object),
12031 .tp_new = py_srvsvc_NetSrvInfo1544_new,
12035 static PyObject *py_srvsvc_NetSrvInfo1545_get_initfiletable(PyObject *obj, void *closure)
12037 struct srvsvc_NetSrvInfo1545 *object = (struct srvsvc_NetSrvInfo1545 *)pytalloc_get_ptr(obj);
12038 PyObject *py_initfiletable;
12039 py_initfiletable = PyInt_FromLong(object->initfiletable);
12040 return py_initfiletable;
12043 static int py_srvsvc_NetSrvInfo1545_set_initfiletable(PyObject *py_obj, PyObject *value, void *closure)
12045 struct srvsvc_NetSrvInfo1545 *object = (struct srvsvc_NetSrvInfo1545 *)pytalloc_get_ptr(py_obj);
12046 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
12047 object->initfiletable = PyInt_AsLong(value);
12051 static PyGetSetDef py_srvsvc_NetSrvInfo1545_getsetters[] = {
12052 { discard_const_p(char, "initfiletable"), py_srvsvc_NetSrvInfo1545_get_initfiletable, py_srvsvc_NetSrvInfo1545_set_initfiletable },
12056 static PyObject *py_srvsvc_NetSrvInfo1545_new(PyTypeObject *type, PyObject *args, PyObject *kwargs)
12058 return pytalloc_new(struct srvsvc_NetSrvInfo1545, type);
12062 static PyTypeObject srvsvc_NetSrvInfo1545_Type = {
12063 PyObject_HEAD_INIT(NULL) 0,
12064 .tp_name = "srvsvc.NetSrvInfo1545",
12065 .tp_getset = py_srvsvc_NetSrvInfo1545_getsetters,
12066 .tp_methods = NULL,
12067 .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
12068 .tp_basicsize = sizeof(pytalloc_Object),
12069 .tp_new = py_srvsvc_NetSrvInfo1545_new,
12073 static PyObject *py_srvsvc_NetSrvInfo1546_get_initsearchtable(PyObject *obj, void *closure)
12075 struct srvsvc_NetSrvInfo1546 *object = (struct srvsvc_NetSrvInfo1546 *)pytalloc_get_ptr(obj);
12076 PyObject *py_initsearchtable;
12077 py_initsearchtable = PyInt_FromLong(object->initsearchtable);
12078 return py_initsearchtable;
12081 static int py_srvsvc_NetSrvInfo1546_set_initsearchtable(PyObject *py_obj, PyObject *value, void *closure)
12083 struct srvsvc_NetSrvInfo1546 *object = (struct srvsvc_NetSrvInfo1546 *)pytalloc_get_ptr(py_obj);
12084 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
12085 object->initsearchtable = PyInt_AsLong(value);
12089 static PyGetSetDef py_srvsvc_NetSrvInfo1546_getsetters[] = {
12090 { discard_const_p(char, "initsearchtable"), py_srvsvc_NetSrvInfo1546_get_initsearchtable, py_srvsvc_NetSrvInfo1546_set_initsearchtable },
12094 static PyObject *py_srvsvc_NetSrvInfo1546_new(PyTypeObject *type, PyObject *args, PyObject *kwargs)
12096 return pytalloc_new(struct srvsvc_NetSrvInfo1546, type);
12100 static PyTypeObject srvsvc_NetSrvInfo1546_Type = {
12101 PyObject_HEAD_INIT(NULL) 0,
12102 .tp_name = "srvsvc.NetSrvInfo1546",
12103 .tp_getset = py_srvsvc_NetSrvInfo1546_getsetters,
12104 .tp_methods = NULL,
12105 .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
12106 .tp_basicsize = sizeof(pytalloc_Object),
12107 .tp_new = py_srvsvc_NetSrvInfo1546_new,
12111 static PyObject *py_srvsvc_NetSrvInfo1547_get_alertsched(PyObject *obj, void *closure)
12113 struct srvsvc_NetSrvInfo1547 *object = (struct srvsvc_NetSrvInfo1547 *)pytalloc_get_ptr(obj);
12114 PyObject *py_alertsched;
12115 py_alertsched = PyInt_FromLong(object->alertsched);
12116 return py_alertsched;
12119 static int py_srvsvc_NetSrvInfo1547_set_alertsched(PyObject *py_obj, PyObject *value, void *closure)
12121 struct srvsvc_NetSrvInfo1547 *object = (struct srvsvc_NetSrvInfo1547 *)pytalloc_get_ptr(py_obj);
12122 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
12123 object->alertsched = PyInt_AsLong(value);
12127 static PyGetSetDef py_srvsvc_NetSrvInfo1547_getsetters[] = {
12128 { discard_const_p(char, "alertsched"), py_srvsvc_NetSrvInfo1547_get_alertsched, py_srvsvc_NetSrvInfo1547_set_alertsched },
12132 static PyObject *py_srvsvc_NetSrvInfo1547_new(PyTypeObject *type, PyObject *args, PyObject *kwargs)
12134 return pytalloc_new(struct srvsvc_NetSrvInfo1547, type);
12138 static PyTypeObject srvsvc_NetSrvInfo1547_Type = {
12139 PyObject_HEAD_INIT(NULL) 0,
12140 .tp_name = "srvsvc.NetSrvInfo1547",
12141 .tp_getset = py_srvsvc_NetSrvInfo1547_getsetters,
12142 .tp_methods = NULL,
12143 .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
12144 .tp_basicsize = sizeof(pytalloc_Object),
12145 .tp_new = py_srvsvc_NetSrvInfo1547_new,
12149 static PyObject *py_srvsvc_NetSrvInfo1548_get_errortreshold(PyObject *obj, void *closure)
12151 struct srvsvc_NetSrvInfo1548 *object = (struct srvsvc_NetSrvInfo1548 *)pytalloc_get_ptr(obj);
12152 PyObject *py_errortreshold;
12153 py_errortreshold = PyInt_FromLong(object->errortreshold);
12154 return py_errortreshold;
12157 static int py_srvsvc_NetSrvInfo1548_set_errortreshold(PyObject *py_obj, PyObject *value, void *closure)
12159 struct srvsvc_NetSrvInfo1548 *object = (struct srvsvc_NetSrvInfo1548 *)pytalloc_get_ptr(py_obj);
12160 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
12161 object->errortreshold = PyInt_AsLong(value);
12165 static PyGetSetDef py_srvsvc_NetSrvInfo1548_getsetters[] = {
12166 { discard_const_p(char, "errortreshold"), py_srvsvc_NetSrvInfo1548_get_errortreshold, py_srvsvc_NetSrvInfo1548_set_errortreshold },
12170 static PyObject *py_srvsvc_NetSrvInfo1548_new(PyTypeObject *type, PyObject *args, PyObject *kwargs)
12172 return pytalloc_new(struct srvsvc_NetSrvInfo1548, type);
12176 static PyTypeObject srvsvc_NetSrvInfo1548_Type = {
12177 PyObject_HEAD_INIT(NULL) 0,
12178 .tp_name = "srvsvc.NetSrvInfo1548",
12179 .tp_getset = py_srvsvc_NetSrvInfo1548_getsetters,
12180 .tp_methods = NULL,
12181 .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
12182 .tp_basicsize = sizeof(pytalloc_Object),
12183 .tp_new = py_srvsvc_NetSrvInfo1548_new,
12187 static PyObject *py_srvsvc_NetSrvInfo1549_get_networkerrortreshold(PyObject *obj, void *closure)
12189 struct srvsvc_NetSrvInfo1549 *object = (struct srvsvc_NetSrvInfo1549 *)pytalloc_get_ptr(obj);
12190 PyObject *py_networkerrortreshold;
12191 py_networkerrortreshold = PyInt_FromLong(object->networkerrortreshold);
12192 return py_networkerrortreshold;
12195 static int py_srvsvc_NetSrvInfo1549_set_networkerrortreshold(PyObject *py_obj, PyObject *value, void *closure)
12197 struct srvsvc_NetSrvInfo1549 *object = (struct srvsvc_NetSrvInfo1549 *)pytalloc_get_ptr(py_obj);
12198 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
12199 object->networkerrortreshold = PyInt_AsLong(value);
12203 static PyGetSetDef py_srvsvc_NetSrvInfo1549_getsetters[] = {
12204 { discard_const_p(char, "networkerrortreshold"), py_srvsvc_NetSrvInfo1549_get_networkerrortreshold, py_srvsvc_NetSrvInfo1549_set_networkerrortreshold },
12208 static PyObject *py_srvsvc_NetSrvInfo1549_new(PyTypeObject *type, PyObject *args, PyObject *kwargs)
12210 return pytalloc_new(struct srvsvc_NetSrvInfo1549, type);
12214 static PyTypeObject srvsvc_NetSrvInfo1549_Type = {
12215 PyObject_HEAD_INIT(NULL) 0,
12216 .tp_name = "srvsvc.NetSrvInfo1549",
12217 .tp_getset = py_srvsvc_NetSrvInfo1549_getsetters,
12218 .tp_methods = NULL,
12219 .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
12220 .tp_basicsize = sizeof(pytalloc_Object),
12221 .tp_new = py_srvsvc_NetSrvInfo1549_new,
12225 static PyObject *py_srvsvc_NetSrvInfo1550_get_diskspacetreshold(PyObject *obj, void *closure)
12227 struct srvsvc_NetSrvInfo1550 *object = (struct srvsvc_NetSrvInfo1550 *)pytalloc_get_ptr(obj);
12228 PyObject *py_diskspacetreshold;
12229 py_diskspacetreshold = PyInt_FromLong(object->diskspacetreshold);
12230 return py_diskspacetreshold;
12233 static int py_srvsvc_NetSrvInfo1550_set_diskspacetreshold(PyObject *py_obj, PyObject *value, void *closure)
12235 struct srvsvc_NetSrvInfo1550 *object = (struct srvsvc_NetSrvInfo1550 *)pytalloc_get_ptr(py_obj);
12236 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
12237 object->diskspacetreshold = PyInt_AsLong(value);
12241 static PyGetSetDef py_srvsvc_NetSrvInfo1550_getsetters[] = {
12242 { discard_const_p(char, "diskspacetreshold"), py_srvsvc_NetSrvInfo1550_get_diskspacetreshold, py_srvsvc_NetSrvInfo1550_set_diskspacetreshold },
12246 static PyObject *py_srvsvc_NetSrvInfo1550_new(PyTypeObject *type, PyObject *args, PyObject *kwargs)
12248 return pytalloc_new(struct srvsvc_NetSrvInfo1550, type);
12252 static PyTypeObject srvsvc_NetSrvInfo1550_Type = {
12253 PyObject_HEAD_INIT(NULL) 0,
12254 .tp_name = "srvsvc.NetSrvInfo1550",
12255 .tp_getset = py_srvsvc_NetSrvInfo1550_getsetters,
12256 .tp_methods = NULL,
12257 .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
12258 .tp_basicsize = sizeof(pytalloc_Object),
12259 .tp_new = py_srvsvc_NetSrvInfo1550_new,
12263 static PyObject *py_srvsvc_NetSrvInfo1552_get_maxlinkdelay(PyObject *obj, void *closure)
12265 struct srvsvc_NetSrvInfo1552 *object = (struct srvsvc_NetSrvInfo1552 *)pytalloc_get_ptr(obj);
12266 PyObject *py_maxlinkdelay;
12267 py_maxlinkdelay = PyInt_FromLong(object->maxlinkdelay);
12268 return py_maxlinkdelay;
12271 static int py_srvsvc_NetSrvInfo1552_set_maxlinkdelay(PyObject *py_obj, PyObject *value, void *closure)
12273 struct srvsvc_NetSrvInfo1552 *object = (struct srvsvc_NetSrvInfo1552 *)pytalloc_get_ptr(py_obj);
12274 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
12275 object->maxlinkdelay = PyInt_AsLong(value);
12279 static PyGetSetDef py_srvsvc_NetSrvInfo1552_getsetters[] = {
12280 { discard_const_p(char, "maxlinkdelay"), py_srvsvc_NetSrvInfo1552_get_maxlinkdelay, py_srvsvc_NetSrvInfo1552_set_maxlinkdelay },
12284 static PyObject *py_srvsvc_NetSrvInfo1552_new(PyTypeObject *type, PyObject *args, PyObject *kwargs)
12286 return pytalloc_new(struct srvsvc_NetSrvInfo1552, type);
12290 static PyTypeObject srvsvc_NetSrvInfo1552_Type = {
12291 PyObject_HEAD_INIT(NULL) 0,
12292 .tp_name = "srvsvc.NetSrvInfo1552",
12293 .tp_getset = py_srvsvc_NetSrvInfo1552_getsetters,
12294 .tp_methods = NULL,
12295 .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
12296 .tp_basicsize = sizeof(pytalloc_Object),
12297 .tp_new = py_srvsvc_NetSrvInfo1552_new,
12301 static PyObject *py_srvsvc_NetSrvInfo1553_get_minlinkthroughput(PyObject *obj, void *closure)
12303 struct srvsvc_NetSrvInfo1553 *object = (struct srvsvc_NetSrvInfo1553 *)pytalloc_get_ptr(obj);
12304 PyObject *py_minlinkthroughput;
12305 py_minlinkthroughput = PyInt_FromLong(object->minlinkthroughput);
12306 return py_minlinkthroughput;
12309 static int py_srvsvc_NetSrvInfo1553_set_minlinkthroughput(PyObject *py_obj, PyObject *value, void *closure)
12311 struct srvsvc_NetSrvInfo1553 *object = (struct srvsvc_NetSrvInfo1553 *)pytalloc_get_ptr(py_obj);
12312 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
12313 object->minlinkthroughput = PyInt_AsLong(value);
12317 static PyGetSetDef py_srvsvc_NetSrvInfo1553_getsetters[] = {
12318 { discard_const_p(char, "minlinkthroughput"), py_srvsvc_NetSrvInfo1553_get_minlinkthroughput, py_srvsvc_NetSrvInfo1553_set_minlinkthroughput },
12322 static PyObject *py_srvsvc_NetSrvInfo1553_new(PyTypeObject *type, PyObject *args, PyObject *kwargs)
12324 return pytalloc_new(struct srvsvc_NetSrvInfo1553, type);
12328 static PyTypeObject srvsvc_NetSrvInfo1553_Type = {
12329 PyObject_HEAD_INIT(NULL) 0,
12330 .tp_name = "srvsvc.NetSrvInfo1553",
12331 .tp_getset = py_srvsvc_NetSrvInfo1553_getsetters,
12332 .tp_methods = NULL,
12333 .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
12334 .tp_basicsize = sizeof(pytalloc_Object),
12335 .tp_new = py_srvsvc_NetSrvInfo1553_new,
12339 static PyObject *py_srvsvc_NetSrvInfo1554_get_linkinfovalidtime(PyObject *obj, void *closure)
12341 struct srvsvc_NetSrvInfo1554 *object = (struct srvsvc_NetSrvInfo1554 *)pytalloc_get_ptr(obj);
12342 PyObject *py_linkinfovalidtime;
12343 py_linkinfovalidtime = PyInt_FromLong(object->linkinfovalidtime);
12344 return py_linkinfovalidtime;
12347 static int py_srvsvc_NetSrvInfo1554_set_linkinfovalidtime(PyObject *py_obj, PyObject *value, void *closure)
12349 struct srvsvc_NetSrvInfo1554 *object = (struct srvsvc_NetSrvInfo1554 *)pytalloc_get_ptr(py_obj);
12350 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
12351 object->linkinfovalidtime = PyInt_AsLong(value);
12355 static PyGetSetDef py_srvsvc_NetSrvInfo1554_getsetters[] = {
12356 { discard_const_p(char, "linkinfovalidtime"), py_srvsvc_NetSrvInfo1554_get_linkinfovalidtime, py_srvsvc_NetSrvInfo1554_set_linkinfovalidtime },
12360 static PyObject *py_srvsvc_NetSrvInfo1554_new(PyTypeObject *type, PyObject *args, PyObject *kwargs)
12362 return pytalloc_new(struct srvsvc_NetSrvInfo1554, type);
12366 static PyTypeObject srvsvc_NetSrvInfo1554_Type = {
12367 PyObject_HEAD_INIT(NULL) 0,
12368 .tp_name = "srvsvc.NetSrvInfo1554",
12369 .tp_getset = py_srvsvc_NetSrvInfo1554_getsetters,
12370 .tp_methods = NULL,
12371 .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
12372 .tp_basicsize = sizeof(pytalloc_Object),
12373 .tp_new = py_srvsvc_NetSrvInfo1554_new,
12377 static PyObject *py_srvsvc_NetSrvInfo1555_get_scavqosinfoupdatetime(PyObject *obj, void *closure)
12379 struct srvsvc_NetSrvInfo1555 *object = (struct srvsvc_NetSrvInfo1555 *)pytalloc_get_ptr(obj);
12380 PyObject *py_scavqosinfoupdatetime;
12381 py_scavqosinfoupdatetime = PyInt_FromLong(object->scavqosinfoupdatetime);
12382 return py_scavqosinfoupdatetime;
12385 static int py_srvsvc_NetSrvInfo1555_set_scavqosinfoupdatetime(PyObject *py_obj, PyObject *value, void *closure)
12387 struct srvsvc_NetSrvInfo1555 *object = (struct srvsvc_NetSrvInfo1555 *)pytalloc_get_ptr(py_obj);
12388 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
12389 object->scavqosinfoupdatetime = PyInt_AsLong(value);
12393 static PyGetSetDef py_srvsvc_NetSrvInfo1555_getsetters[] = {
12394 { discard_const_p(char, "scavqosinfoupdatetime"), py_srvsvc_NetSrvInfo1555_get_scavqosinfoupdatetime, py_srvsvc_NetSrvInfo1555_set_scavqosinfoupdatetime },
12398 static PyObject *py_srvsvc_NetSrvInfo1555_new(PyTypeObject *type, PyObject *args, PyObject *kwargs)
12400 return pytalloc_new(struct srvsvc_NetSrvInfo1555, type);
12404 static PyTypeObject srvsvc_NetSrvInfo1555_Type = {
12405 PyObject_HEAD_INIT(NULL) 0,
12406 .tp_name = "srvsvc.NetSrvInfo1555",
12407 .tp_getset = py_srvsvc_NetSrvInfo1555_getsetters,
12408 .tp_methods = NULL,
12409 .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
12410 .tp_basicsize = sizeof(pytalloc_Object),
12411 .tp_new = py_srvsvc_NetSrvInfo1555_new,
12415 static PyObject *py_srvsvc_NetSrvInfo1556_get_maxworkitemidletime(PyObject *obj, void *closure)
12417 struct srvsvc_NetSrvInfo1556 *object = (struct srvsvc_NetSrvInfo1556 *)pytalloc_get_ptr(obj);
12418 PyObject *py_maxworkitemidletime;
12419 py_maxworkitemidletime = PyInt_FromLong(object->maxworkitemidletime);
12420 return py_maxworkitemidletime;
12423 static int py_srvsvc_NetSrvInfo1556_set_maxworkitemidletime(PyObject *py_obj, PyObject *value, void *closure)
12425 struct srvsvc_NetSrvInfo1556 *object = (struct srvsvc_NetSrvInfo1556 *)pytalloc_get_ptr(py_obj);
12426 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
12427 object->maxworkitemidletime = PyInt_AsLong(value);
12431 static PyGetSetDef py_srvsvc_NetSrvInfo1556_getsetters[] = {
12432 { discard_const_p(char, "maxworkitemidletime"), py_srvsvc_NetSrvInfo1556_get_maxworkitemidletime, py_srvsvc_NetSrvInfo1556_set_maxworkitemidletime },
12436 static PyObject *py_srvsvc_NetSrvInfo1556_new(PyTypeObject *type, PyObject *args, PyObject *kwargs)
12438 return pytalloc_new(struct srvsvc_NetSrvInfo1556, type);
12442 static PyTypeObject srvsvc_NetSrvInfo1556_Type = {
12443 PyObject_HEAD_INIT(NULL) 0,
12444 .tp_name = "srvsvc.NetSrvInfo1556",
12445 .tp_getset = py_srvsvc_NetSrvInfo1556_getsetters,
12446 .tp_methods = NULL,
12447 .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
12448 .tp_basicsize = sizeof(pytalloc_Object),
12449 .tp_new = py_srvsvc_NetSrvInfo1556_new,
12452 static PyObject *py_import_srvsvc_NetSrvInfo(TALLOC_CTX *mem_ctx, int level, union srvsvc_NetSrvInfo *in)
12458 if (in->info100 == NULL) {
12462 ret = pytalloc_reference_ex(&srvsvc_NetSrvInfo100_Type, in->info100, in->info100);
12467 if (in->info101 == NULL) {
12471 ret = pytalloc_reference_ex(&srvsvc_NetSrvInfo101_Type, in->info101, in->info101);
12476 if (in->info102 == NULL) {
12480 ret = pytalloc_reference_ex(&srvsvc_NetSrvInfo102_Type, in->info102, in->info102);
12485 if (in->info402 == NULL) {
12489 ret = pytalloc_reference_ex(&srvsvc_NetSrvInfo402_Type, in->info402, in->info402);
12494 if (in->info403 == NULL) {
12498 ret = pytalloc_reference_ex(&srvsvc_NetSrvInfo403_Type, in->info403, in->info403);
12503 if (in->info502 == NULL) {
12507 ret = pytalloc_reference_ex(&srvsvc_NetSrvInfo502_Type, in->info502, in->info502);
12512 if (in->info503 == NULL) {
12516 ret = pytalloc_reference_ex(&srvsvc_NetSrvInfo503_Type, in->info503, in->info503);
12521 if (in->info599 == NULL) {
12525 ret = pytalloc_reference_ex(&srvsvc_NetSrvInfo599_Type, in->info599, in->info599);
12530 if (in->info1005 == NULL) {
12534 ret = pytalloc_reference_ex(&srvsvc_NetSrvInfo1005_Type, in->info1005, in->info1005);
12539 if (in->info1010 == NULL) {
12543 ret = pytalloc_reference_ex(&srvsvc_NetSrvInfo1010_Type, in->info1010, in->info1010);
12548 if (in->info1016 == NULL) {
12552 ret = pytalloc_reference_ex(&srvsvc_NetSrvInfo1016_Type, in->info1016, in->info1016);
12557 if (in->info1017 == NULL) {
12561 ret = pytalloc_reference_ex(&srvsvc_NetSrvInfo1017_Type, in->info1017, in->info1017);
12566 if (in->info1018 == NULL) {
12570 ret = pytalloc_reference_ex(&srvsvc_NetSrvInfo1018_Type, in->info1018, in->info1018);
12575 if (in->info1107 == NULL) {
12579 ret = pytalloc_reference_ex(&srvsvc_NetSrvInfo1107_Type, in->info1107, in->info1107);
12584 if (in->info1501 == NULL) {
12588 ret = pytalloc_reference_ex(&srvsvc_NetSrvInfo1501_Type, in->info1501, in->info1501);
12593 if (in->info1502 == NULL) {
12597 ret = pytalloc_reference_ex(&srvsvc_NetSrvInfo1502_Type, in->info1502, in->info1502);
12602 if (in->info1503 == NULL) {
12606 ret = pytalloc_reference_ex(&srvsvc_NetSrvInfo1503_Type, in->info1503, in->info1503);
12611 if (in->info1506 == NULL) {
12615 ret = pytalloc_reference_ex(&srvsvc_NetSrvInfo1506_Type, in->info1506, in->info1506);
12620 if (in->info1509 == NULL) {
12624 ret = pytalloc_reference_ex(&srvsvc_NetSrvInfo1509_Type, in->info1509, in->info1509);
12629 if (in->info1510 == NULL) {
12633 ret = pytalloc_reference_ex(&srvsvc_NetSrvInfo1510_Type, in->info1510, in->info1510);
12638 if (in->info1511 == NULL) {
12642 ret = pytalloc_reference_ex(&srvsvc_NetSrvInfo1511_Type, in->info1511, in->info1511);
12647 if (in->info1512 == NULL) {
12651 ret = pytalloc_reference_ex(&srvsvc_NetSrvInfo1512_Type, in->info1512, in->info1512);
12656 if (in->info1513 == NULL) {
12660 ret = pytalloc_reference_ex(&srvsvc_NetSrvInfo1513_Type, in->info1513, in->info1513);
12665 if (in->info1514 == NULL) {
12669 ret = pytalloc_reference_ex(&srvsvc_NetSrvInfo1514_Type, in->info1514, in->info1514);
12674 if (in->info1515 == NULL) {
12678 ret = pytalloc_reference_ex(&srvsvc_NetSrvInfo1515_Type, in->info1515, in->info1515);
12683 if (in->info1516 == NULL) {
12687 ret = pytalloc_reference_ex(&srvsvc_NetSrvInfo1516_Type, in->info1516, in->info1516);
12692 if (in->info1518 == NULL) {
12696 ret = pytalloc_reference_ex(&srvsvc_NetSrvInfo1518_Type, in->info1518, in->info1518);
12701 if (in->info1520 == NULL) {
12705 ret = pytalloc_reference_ex(&srvsvc_NetSrvInfo1520_Type, in->info1520, in->info1520);
12710 if (in->info1521 == NULL) {
12714 ret = pytalloc_reference_ex(&srvsvc_NetSrvInfo1521_Type, in->info1521, in->info1521);
12719 if (in->info1522 == NULL) {
12723 ret = pytalloc_reference_ex(&srvsvc_NetSrvInfo1522_Type, in->info1522, in->info1522);
12728 if (in->info1523 == NULL) {
12732 ret = pytalloc_reference_ex(&srvsvc_NetSrvInfo1523_Type, in->info1523, in->info1523);
12737 if (in->info1524 == NULL) {
12741 ret = pytalloc_reference_ex(&srvsvc_NetSrvInfo1524_Type, in->info1524, in->info1524);
12746 if (in->info1525 == NULL) {
12750 ret = pytalloc_reference_ex(&srvsvc_NetSrvInfo1525_Type, in->info1525, in->info1525);
12755 if (in->info1528 == NULL) {
12759 ret = pytalloc_reference_ex(&srvsvc_NetSrvInfo1528_Type, in->info1528, in->info1528);
12764 if (in->info1529 == NULL) {
12768 ret = pytalloc_reference_ex(&srvsvc_NetSrvInfo1529_Type, in->info1529, in->info1529);
12773 if (in->info1530 == NULL) {
12777 ret = pytalloc_reference_ex(&srvsvc_NetSrvInfo1530_Type, in->info1530, in->info1530);
12782 if (in->info1533 == NULL) {
12786 ret = pytalloc_reference_ex(&srvsvc_NetSrvInfo1533_Type, in->info1533, in->info1533);
12791 if (in->info1534 == NULL) {
12795 ret = pytalloc_reference_ex(&srvsvc_NetSrvInfo1534_Type, in->info1534, in->info1534);
12800 if (in->info1535 == NULL) {
12804 ret = pytalloc_reference_ex(&srvsvc_NetSrvInfo1535_Type, in->info1535, in->info1535);
12809 if (in->info1536 == NULL) {
12813 ret = pytalloc_reference_ex(&srvsvc_NetSrvInfo1536_Type, in->info1536, in->info1536);
12818 if (in->info1537 == NULL) {
12822 ret = pytalloc_reference_ex(&srvsvc_NetSrvInfo1537_Type, in->info1537, in->info1537);
12827 if (in->info1538 == NULL) {
12831 ret = pytalloc_reference_ex(&srvsvc_NetSrvInfo1538_Type, in->info1538, in->info1538);
12836 if (in->info1539 == NULL) {
12840 ret = pytalloc_reference_ex(&srvsvc_NetSrvInfo1539_Type, in->info1539, in->info1539);
12845 if (in->info1540 == NULL) {
12849 ret = pytalloc_reference_ex(&srvsvc_NetSrvInfo1540_Type, in->info1540, in->info1540);
12854 if (in->info1541 == NULL) {
12858 ret = pytalloc_reference_ex(&srvsvc_NetSrvInfo1541_Type, in->info1541, in->info1541);
12863 if (in->info1542 == NULL) {
12867 ret = pytalloc_reference_ex(&srvsvc_NetSrvInfo1542_Type, in->info1542, in->info1542);
12872 if (in->info1543 == NULL) {
12876 ret = pytalloc_reference_ex(&srvsvc_NetSrvInfo1543_Type, in->info1543, in->info1543);
12881 if (in->info1544 == NULL) {
12885 ret = pytalloc_reference_ex(&srvsvc_NetSrvInfo1544_Type, in->info1544, in->info1544);
12890 if (in->info1545 == NULL) {
12894 ret = pytalloc_reference_ex(&srvsvc_NetSrvInfo1545_Type, in->info1545, in->info1545);
12899 if (in->info1546 == NULL) {
12903 ret = pytalloc_reference_ex(&srvsvc_NetSrvInfo1546_Type, in->info1546, in->info1546);
12908 if (in->info1547 == NULL) {
12912 ret = pytalloc_reference_ex(&srvsvc_NetSrvInfo1547_Type, in->info1547, in->info1547);
12917 if (in->info1548 == NULL) {
12921 ret = pytalloc_reference_ex(&srvsvc_NetSrvInfo1548_Type, in->info1548, in->info1548);
12926 if (in->info1549 == NULL) {
12930 ret = pytalloc_reference_ex(&srvsvc_NetSrvInfo1549_Type, in->info1549, in->info1549);
12935 if (in->info1550 == NULL) {
12939 ret = pytalloc_reference_ex(&srvsvc_NetSrvInfo1550_Type, in->info1550, in->info1550);
12944 if (in->info1552 == NULL) {
12948 ret = pytalloc_reference_ex(&srvsvc_NetSrvInfo1552_Type, in->info1552, in->info1552);
12953 if (in->info1553 == NULL) {
12957 ret = pytalloc_reference_ex(&srvsvc_NetSrvInfo1553_Type, in->info1553, in->info1553);
12962 if (in->info1554 == NULL) {
12966 ret = pytalloc_reference_ex(&srvsvc_NetSrvInfo1554_Type, in->info1554, in->info1554);
12971 if (in->info1555 == NULL) {
12975 ret = pytalloc_reference_ex(&srvsvc_NetSrvInfo1555_Type, in->info1555, in->info1555);
12980 if (in->info1556 == NULL) {
12984 ret = pytalloc_reference_ex(&srvsvc_NetSrvInfo1556_Type, in->info1556, in->info1556);
12994 PyErr_SetString(PyExc_TypeError, "unknown union level");
12998 static union srvsvc_NetSrvInfo *py_export_srvsvc_NetSrvInfo(TALLOC_CTX *mem_ctx, int level, PyObject *in)
13000 union srvsvc_NetSrvInfo *ret = talloc_zero(mem_ctx, union srvsvc_NetSrvInfo);
13003 if (in == Py_None) {
13004 ret->info100 = NULL;
13006 ret->info100 = NULL;
13007 PY_CHECK_TYPE(&srvsvc_NetSrvInfo100_Type, in, talloc_free(ret); return NULL;);
13008 if (talloc_reference(mem_ctx, pytalloc_get_mem_ctx(in)) == NULL) {
13010 talloc_free(ret); return NULL;
13012 ret->info100 = (struct srvsvc_NetSrvInfo100 *)pytalloc_get_ptr(in);
13017 if (in == Py_None) {
13018 ret->info101 = NULL;
13020 ret->info101 = NULL;
13021 PY_CHECK_TYPE(&srvsvc_NetSrvInfo101_Type, in, talloc_free(ret); return NULL;);
13022 if (talloc_reference(mem_ctx, pytalloc_get_mem_ctx(in)) == NULL) {
13024 talloc_free(ret); return NULL;
13026 ret->info101 = (struct srvsvc_NetSrvInfo101 *)pytalloc_get_ptr(in);
13031 if (in == Py_None) {
13032 ret->info102 = NULL;
13034 ret->info102 = NULL;
13035 PY_CHECK_TYPE(&srvsvc_NetSrvInfo102_Type, in, talloc_free(ret); return NULL;);
13036 if (talloc_reference(mem_ctx, pytalloc_get_mem_ctx(in)) == NULL) {
13038 talloc_free(ret); return NULL;
13040 ret->info102 = (struct srvsvc_NetSrvInfo102 *)pytalloc_get_ptr(in);
13045 if (in == Py_None) {
13046 ret->info402 = NULL;
13048 ret->info402 = NULL;
13049 PY_CHECK_TYPE(&srvsvc_NetSrvInfo402_Type, in, talloc_free(ret); return NULL;);
13050 if (talloc_reference(mem_ctx, pytalloc_get_mem_ctx(in)) == NULL) {
13052 talloc_free(ret); return NULL;
13054 ret->info402 = (struct srvsvc_NetSrvInfo402 *)pytalloc_get_ptr(in);
13059 if (in == Py_None) {
13060 ret->info403 = NULL;
13062 ret->info403 = NULL;
13063 PY_CHECK_TYPE(&srvsvc_NetSrvInfo403_Type, in, talloc_free(ret); return NULL;);
13064 if (talloc_reference(mem_ctx, pytalloc_get_mem_ctx(in)) == NULL) {
13066 talloc_free(ret); return NULL;
13068 ret->info403 = (struct srvsvc_NetSrvInfo403 *)pytalloc_get_ptr(in);
13073 if (in == Py_None) {
13074 ret->info502 = NULL;
13076 ret->info502 = NULL;
13077 PY_CHECK_TYPE(&srvsvc_NetSrvInfo502_Type, in, talloc_free(ret); return NULL;);
13078 if (talloc_reference(mem_ctx, pytalloc_get_mem_ctx(in)) == NULL) {
13080 talloc_free(ret); return NULL;
13082 ret->info502 = (struct srvsvc_NetSrvInfo502 *)pytalloc_get_ptr(in);
13087 if (in == Py_None) {
13088 ret->info503 = NULL;
13090 ret->info503 = NULL;
13091 PY_CHECK_TYPE(&srvsvc_NetSrvInfo503_Type, in, talloc_free(ret); return NULL;);
13092 if (talloc_reference(mem_ctx, pytalloc_get_mem_ctx(in)) == NULL) {
13094 talloc_free(ret); return NULL;
13096 ret->info503 = (struct srvsvc_NetSrvInfo503 *)pytalloc_get_ptr(in);
13101 if (in == Py_None) {
13102 ret->info599 = NULL;
13104 ret->info599 = NULL;
13105 PY_CHECK_TYPE(&srvsvc_NetSrvInfo599_Type, in, talloc_free(ret); return NULL;);
13106 if (talloc_reference(mem_ctx, pytalloc_get_mem_ctx(in)) == NULL) {
13108 talloc_free(ret); return NULL;
13110 ret->info599 = (struct srvsvc_NetSrvInfo599 *)pytalloc_get_ptr(in);
13115 if (in == Py_None) {
13116 ret->info1005 = NULL;
13118 ret->info1005 = NULL;
13119 PY_CHECK_TYPE(&srvsvc_NetSrvInfo1005_Type, in, talloc_free(ret); return NULL;);
13120 if (talloc_reference(mem_ctx, pytalloc_get_mem_ctx(in)) == NULL) {
13122 talloc_free(ret); return NULL;
13124 ret->info1005 = (struct srvsvc_NetSrvInfo1005 *)pytalloc_get_ptr(in);
13129 if (in == Py_None) {
13130 ret->info1010 = NULL;
13132 ret->info1010 = NULL;
13133 PY_CHECK_TYPE(&srvsvc_NetSrvInfo1010_Type, in, talloc_free(ret); return NULL;);
13134 if (talloc_reference(mem_ctx, pytalloc_get_mem_ctx(in)) == NULL) {
13136 talloc_free(ret); return NULL;
13138 ret->info1010 = (struct srvsvc_NetSrvInfo1010 *)pytalloc_get_ptr(in);
13143 if (in == Py_None) {
13144 ret->info1016 = NULL;
13146 ret->info1016 = NULL;
13147 PY_CHECK_TYPE(&srvsvc_NetSrvInfo1016_Type, in, talloc_free(ret); return NULL;);
13148 if (talloc_reference(mem_ctx, pytalloc_get_mem_ctx(in)) == NULL) {
13150 talloc_free(ret); return NULL;
13152 ret->info1016 = (struct srvsvc_NetSrvInfo1016 *)pytalloc_get_ptr(in);
13157 if (in == Py_None) {
13158 ret->info1017 = NULL;
13160 ret->info1017 = NULL;
13161 PY_CHECK_TYPE(&srvsvc_NetSrvInfo1017_Type, in, talloc_free(ret); return NULL;);
13162 if (talloc_reference(mem_ctx, pytalloc_get_mem_ctx(in)) == NULL) {
13164 talloc_free(ret); return NULL;
13166 ret->info1017 = (struct srvsvc_NetSrvInfo1017 *)pytalloc_get_ptr(in);
13171 if (in == Py_None) {
13172 ret->info1018 = NULL;
13174 ret->info1018 = NULL;
13175 PY_CHECK_TYPE(&srvsvc_NetSrvInfo1018_Type, in, talloc_free(ret); return NULL;);
13176 if (talloc_reference(mem_ctx, pytalloc_get_mem_ctx(in)) == NULL) {
13178 talloc_free(ret); return NULL;
13180 ret->info1018 = (struct srvsvc_NetSrvInfo1018 *)pytalloc_get_ptr(in);
13185 if (in == Py_None) {
13186 ret->info1107 = NULL;
13188 ret->info1107 = NULL;
13189 PY_CHECK_TYPE(&srvsvc_NetSrvInfo1107_Type, in, talloc_free(ret); return NULL;);
13190 if (talloc_reference(mem_ctx, pytalloc_get_mem_ctx(in)) == NULL) {
13192 talloc_free(ret); return NULL;
13194 ret->info1107 = (struct srvsvc_NetSrvInfo1107 *)pytalloc_get_ptr(in);
13199 if (in == Py_None) {
13200 ret->info1501 = NULL;
13202 ret->info1501 = NULL;
13203 PY_CHECK_TYPE(&srvsvc_NetSrvInfo1501_Type, in, talloc_free(ret); return NULL;);
13204 if (talloc_reference(mem_ctx, pytalloc_get_mem_ctx(in)) == NULL) {
13206 talloc_free(ret); return NULL;
13208 ret->info1501 = (struct srvsvc_NetSrvInfo1501 *)pytalloc_get_ptr(in);
13213 if (in == Py_None) {
13214 ret->info1502 = NULL;
13216 ret->info1502 = NULL;
13217 PY_CHECK_TYPE(&srvsvc_NetSrvInfo1502_Type, in, talloc_free(ret); return NULL;);
13218 if (talloc_reference(mem_ctx, pytalloc_get_mem_ctx(in)) == NULL) {
13220 talloc_free(ret); return NULL;
13222 ret->info1502 = (struct srvsvc_NetSrvInfo1502 *)pytalloc_get_ptr(in);
13227 if (in == Py_None) {
13228 ret->info1503 = NULL;
13230 ret->info1503 = NULL;
13231 PY_CHECK_TYPE(&srvsvc_NetSrvInfo1503_Type, in, talloc_free(ret); return NULL;);
13232 if (talloc_reference(mem_ctx, pytalloc_get_mem_ctx(in)) == NULL) {
13234 talloc_free(ret); return NULL;
13236 ret->info1503 = (struct srvsvc_NetSrvInfo1503 *)pytalloc_get_ptr(in);
13241 if (in == Py_None) {
13242 ret->info1506 = NULL;
13244 ret->info1506 = NULL;
13245 PY_CHECK_TYPE(&srvsvc_NetSrvInfo1506_Type, in, talloc_free(ret); return NULL;);
13246 if (talloc_reference(mem_ctx, pytalloc_get_mem_ctx(in)) == NULL) {
13248 talloc_free(ret); return NULL;
13250 ret->info1506 = (struct srvsvc_NetSrvInfo1506 *)pytalloc_get_ptr(in);
13255 if (in == Py_None) {
13256 ret->info1509 = NULL;
13258 ret->info1509 = NULL;
13259 PY_CHECK_TYPE(&srvsvc_NetSrvInfo1509_Type, in, talloc_free(ret); return NULL;);
13260 if (talloc_reference(mem_ctx, pytalloc_get_mem_ctx(in)) == NULL) {
13262 talloc_free(ret); return NULL;
13264 ret->info1509 = (struct srvsvc_NetSrvInfo1509 *)pytalloc_get_ptr(in);
13269 if (in == Py_None) {
13270 ret->info1510 = NULL;
13272 ret->info1510 = NULL;
13273 PY_CHECK_TYPE(&srvsvc_NetSrvInfo1510_Type, in, talloc_free(ret); return NULL;);
13274 if (talloc_reference(mem_ctx, pytalloc_get_mem_ctx(in)) == NULL) {
13276 talloc_free(ret); return NULL;
13278 ret->info1510 = (struct srvsvc_NetSrvInfo1510 *)pytalloc_get_ptr(in);
13283 if (in == Py_None) {
13284 ret->info1511 = NULL;
13286 ret->info1511 = NULL;
13287 PY_CHECK_TYPE(&srvsvc_NetSrvInfo1511_Type, in, talloc_free(ret); return NULL;);
13288 if (talloc_reference(mem_ctx, pytalloc_get_mem_ctx(in)) == NULL) {
13290 talloc_free(ret); return NULL;
13292 ret->info1511 = (struct srvsvc_NetSrvInfo1511 *)pytalloc_get_ptr(in);
13297 if (in == Py_None) {
13298 ret->info1512 = NULL;
13300 ret->info1512 = NULL;
13301 PY_CHECK_TYPE(&srvsvc_NetSrvInfo1512_Type, in, talloc_free(ret); return NULL;);
13302 if (talloc_reference(mem_ctx, pytalloc_get_mem_ctx(in)) == NULL) {
13304 talloc_free(ret); return NULL;
13306 ret->info1512 = (struct srvsvc_NetSrvInfo1512 *)pytalloc_get_ptr(in);
13311 if (in == Py_None) {
13312 ret->info1513 = NULL;
13314 ret->info1513 = NULL;
13315 PY_CHECK_TYPE(&srvsvc_NetSrvInfo1513_Type, in, talloc_free(ret); return NULL;);
13316 if (talloc_reference(mem_ctx, pytalloc_get_mem_ctx(in)) == NULL) {
13318 talloc_free(ret); return NULL;
13320 ret->info1513 = (struct srvsvc_NetSrvInfo1513 *)pytalloc_get_ptr(in);
13325 if (in == Py_None) {
13326 ret->info1514 = NULL;
13328 ret->info1514 = NULL;
13329 PY_CHECK_TYPE(&srvsvc_NetSrvInfo1514_Type, in, talloc_free(ret); return NULL;);
13330 if (talloc_reference(mem_ctx, pytalloc_get_mem_ctx(in)) == NULL) {
13332 talloc_free(ret); return NULL;
13334 ret->info1514 = (struct srvsvc_NetSrvInfo1514 *)pytalloc_get_ptr(in);
13339 if (in == Py_None) {
13340 ret->info1515 = NULL;
13342 ret->info1515 = NULL;
13343 PY_CHECK_TYPE(&srvsvc_NetSrvInfo1515_Type, in, talloc_free(ret); return NULL;);
13344 if (talloc_reference(mem_ctx, pytalloc_get_mem_ctx(in)) == NULL) {
13346 talloc_free(ret); return NULL;
13348 ret->info1515 = (struct srvsvc_NetSrvInfo1515 *)pytalloc_get_ptr(in);
13353 if (in == Py_None) {
13354 ret->info1516 = NULL;
13356 ret->info1516 = NULL;
13357 PY_CHECK_TYPE(&srvsvc_NetSrvInfo1516_Type, in, talloc_free(ret); return NULL;);
13358 if (talloc_reference(mem_ctx, pytalloc_get_mem_ctx(in)) == NULL) {
13360 talloc_free(ret); return NULL;
13362 ret->info1516 = (struct srvsvc_NetSrvInfo1516 *)pytalloc_get_ptr(in);
13367 if (in == Py_None) {
13368 ret->info1518 = NULL;
13370 ret->info1518 = NULL;
13371 PY_CHECK_TYPE(&srvsvc_NetSrvInfo1518_Type, in, talloc_free(ret); return NULL;);
13372 if (talloc_reference(mem_ctx, pytalloc_get_mem_ctx(in)) == NULL) {
13374 talloc_free(ret); return NULL;
13376 ret->info1518 = (struct srvsvc_NetSrvInfo1518 *)pytalloc_get_ptr(in);
13381 if (in == Py_None) {
13382 ret->info1520 = NULL;
13384 ret->info1520 = NULL;
13385 PY_CHECK_TYPE(&srvsvc_NetSrvInfo1520_Type, in, talloc_free(ret); return NULL;);
13386 if (talloc_reference(mem_ctx, pytalloc_get_mem_ctx(in)) == NULL) {
13388 talloc_free(ret); return NULL;
13390 ret->info1520 = (struct srvsvc_NetSrvInfo1520 *)pytalloc_get_ptr(in);
13395 if (in == Py_None) {
13396 ret->info1521 = NULL;
13398 ret->info1521 = NULL;
13399 PY_CHECK_TYPE(&srvsvc_NetSrvInfo1521_Type, in, talloc_free(ret); return NULL;);
13400 if (talloc_reference(mem_ctx, pytalloc_get_mem_ctx(in)) == NULL) {
13402 talloc_free(ret); return NULL;
13404 ret->info1521 = (struct srvsvc_NetSrvInfo1521 *)pytalloc_get_ptr(in);
13409 if (in == Py_None) {
13410 ret->info1522 = NULL;
13412 ret->info1522 = NULL;
13413 PY_CHECK_TYPE(&srvsvc_NetSrvInfo1522_Type, in, talloc_free(ret); return NULL;);
13414 if (talloc_reference(mem_ctx, pytalloc_get_mem_ctx(in)) == NULL) {
13416 talloc_free(ret); return NULL;
13418 ret->info1522 = (struct srvsvc_NetSrvInfo1522 *)pytalloc_get_ptr(in);
13423 if (in == Py_None) {
13424 ret->info1523 = NULL;
13426 ret->info1523 = NULL;
13427 PY_CHECK_TYPE(&srvsvc_NetSrvInfo1523_Type, in, talloc_free(ret); return NULL;);
13428 if (talloc_reference(mem_ctx, pytalloc_get_mem_ctx(in)) == NULL) {
13430 talloc_free(ret); return NULL;
13432 ret->info1523 = (struct srvsvc_NetSrvInfo1523 *)pytalloc_get_ptr(in);
13437 if (in == Py_None) {
13438 ret->info1524 = NULL;
13440 ret->info1524 = NULL;
13441 PY_CHECK_TYPE(&srvsvc_NetSrvInfo1524_Type, in, talloc_free(ret); return NULL;);
13442 if (talloc_reference(mem_ctx, pytalloc_get_mem_ctx(in)) == NULL) {
13444 talloc_free(ret); return NULL;
13446 ret->info1524 = (struct srvsvc_NetSrvInfo1524 *)pytalloc_get_ptr(in);
13451 if (in == Py_None) {
13452 ret->info1525 = NULL;
13454 ret->info1525 = NULL;
13455 PY_CHECK_TYPE(&srvsvc_NetSrvInfo1525_Type, in, talloc_free(ret); return NULL;);
13456 if (talloc_reference(mem_ctx, pytalloc_get_mem_ctx(in)) == NULL) {
13458 talloc_free(ret); return NULL;
13460 ret->info1525 = (struct srvsvc_NetSrvInfo1525 *)pytalloc_get_ptr(in);
13465 if (in == Py_None) {
13466 ret->info1528 = NULL;
13468 ret->info1528 = NULL;
13469 PY_CHECK_TYPE(&srvsvc_NetSrvInfo1528_Type, in, talloc_free(ret); return NULL;);
13470 if (talloc_reference(mem_ctx, pytalloc_get_mem_ctx(in)) == NULL) {
13472 talloc_free(ret); return NULL;
13474 ret->info1528 = (struct srvsvc_NetSrvInfo1528 *)pytalloc_get_ptr(in);
13479 if (in == Py_None) {
13480 ret->info1529 = NULL;
13482 ret->info1529 = NULL;
13483 PY_CHECK_TYPE(&srvsvc_NetSrvInfo1529_Type, in, talloc_free(ret); return NULL;);
13484 if (talloc_reference(mem_ctx, pytalloc_get_mem_ctx(in)) == NULL) {
13486 talloc_free(ret); return NULL;
13488 ret->info1529 = (struct srvsvc_NetSrvInfo1529 *)pytalloc_get_ptr(in);
13493 if (in == Py_None) {
13494 ret->info1530 = NULL;
13496 ret->info1530 = NULL;
13497 PY_CHECK_TYPE(&srvsvc_NetSrvInfo1530_Type, in, talloc_free(ret); return NULL;);
13498 if (talloc_reference(mem_ctx, pytalloc_get_mem_ctx(in)) == NULL) {
13500 talloc_free(ret); return NULL;
13502 ret->info1530 = (struct srvsvc_NetSrvInfo1530 *)pytalloc_get_ptr(in);
13507 if (in == Py_None) {
13508 ret->info1533 = NULL;
13510 ret->info1533 = NULL;
13511 PY_CHECK_TYPE(&srvsvc_NetSrvInfo1533_Type, in, talloc_free(ret); return NULL;);
13512 if (talloc_reference(mem_ctx, pytalloc_get_mem_ctx(in)) == NULL) {
13514 talloc_free(ret); return NULL;
13516 ret->info1533 = (struct srvsvc_NetSrvInfo1533 *)pytalloc_get_ptr(in);
13521 if (in == Py_None) {
13522 ret->info1534 = NULL;
13524 ret->info1534 = NULL;
13525 PY_CHECK_TYPE(&srvsvc_NetSrvInfo1534_Type, in, talloc_free(ret); return NULL;);
13526 if (talloc_reference(mem_ctx, pytalloc_get_mem_ctx(in)) == NULL) {
13528 talloc_free(ret); return NULL;
13530 ret->info1534 = (struct srvsvc_NetSrvInfo1534 *)pytalloc_get_ptr(in);
13535 if (in == Py_None) {
13536 ret->info1535 = NULL;
13538 ret->info1535 = NULL;
13539 PY_CHECK_TYPE(&srvsvc_NetSrvInfo1535_Type, in, talloc_free(ret); return NULL;);
13540 if (talloc_reference(mem_ctx, pytalloc_get_mem_ctx(in)) == NULL) {
13542 talloc_free(ret); return NULL;
13544 ret->info1535 = (struct srvsvc_NetSrvInfo1535 *)pytalloc_get_ptr(in);
13549 if (in == Py_None) {
13550 ret->info1536 = NULL;
13552 ret->info1536 = NULL;
13553 PY_CHECK_TYPE(&srvsvc_NetSrvInfo1536_Type, in, talloc_free(ret); return NULL;);
13554 if (talloc_reference(mem_ctx, pytalloc_get_mem_ctx(in)) == NULL) {
13556 talloc_free(ret); return NULL;
13558 ret->info1536 = (struct srvsvc_NetSrvInfo1536 *)pytalloc_get_ptr(in);
13563 if (in == Py_None) {
13564 ret->info1537 = NULL;
13566 ret->info1537 = NULL;
13567 PY_CHECK_TYPE(&srvsvc_NetSrvInfo1537_Type, in, talloc_free(ret); return NULL;);
13568 if (talloc_reference(mem_ctx, pytalloc_get_mem_ctx(in)) == NULL) {
13570 talloc_free(ret); return NULL;
13572 ret->info1537 = (struct srvsvc_NetSrvInfo1537 *)pytalloc_get_ptr(in);
13577 if (in == Py_None) {
13578 ret->info1538 = NULL;
13580 ret->info1538 = NULL;
13581 PY_CHECK_TYPE(&srvsvc_NetSrvInfo1538_Type, in, talloc_free(ret); return NULL;);
13582 if (talloc_reference(mem_ctx, pytalloc_get_mem_ctx(in)) == NULL) {
13584 talloc_free(ret); return NULL;
13586 ret->info1538 = (struct srvsvc_NetSrvInfo1538 *)pytalloc_get_ptr(in);
13591 if (in == Py_None) {
13592 ret->info1539 = NULL;
13594 ret->info1539 = NULL;
13595 PY_CHECK_TYPE(&srvsvc_NetSrvInfo1539_Type, in, talloc_free(ret); return NULL;);
13596 if (talloc_reference(mem_ctx, pytalloc_get_mem_ctx(in)) == NULL) {
13598 talloc_free(ret); return NULL;
13600 ret->info1539 = (struct srvsvc_NetSrvInfo1539 *)pytalloc_get_ptr(in);
13605 if (in == Py_None) {
13606 ret->info1540 = NULL;
13608 ret->info1540 = NULL;
13609 PY_CHECK_TYPE(&srvsvc_NetSrvInfo1540_Type, in, talloc_free(ret); return NULL;);
13610 if (talloc_reference(mem_ctx, pytalloc_get_mem_ctx(in)) == NULL) {
13612 talloc_free(ret); return NULL;
13614 ret->info1540 = (struct srvsvc_NetSrvInfo1540 *)pytalloc_get_ptr(in);
13619 if (in == Py_None) {
13620 ret->info1541 = NULL;
13622 ret->info1541 = NULL;
13623 PY_CHECK_TYPE(&srvsvc_NetSrvInfo1541_Type, in, talloc_free(ret); return NULL;);
13624 if (talloc_reference(mem_ctx, pytalloc_get_mem_ctx(in)) == NULL) {
13626 talloc_free(ret); return NULL;
13628 ret->info1541 = (struct srvsvc_NetSrvInfo1541 *)pytalloc_get_ptr(in);
13633 if (in == Py_None) {
13634 ret->info1542 = NULL;
13636 ret->info1542 = NULL;
13637 PY_CHECK_TYPE(&srvsvc_NetSrvInfo1542_Type, in, talloc_free(ret); return NULL;);
13638 if (talloc_reference(mem_ctx, pytalloc_get_mem_ctx(in)) == NULL) {
13640 talloc_free(ret); return NULL;
13642 ret->info1542 = (struct srvsvc_NetSrvInfo1542 *)pytalloc_get_ptr(in);
13647 if (in == Py_None) {
13648 ret->info1543 = NULL;
13650 ret->info1543 = NULL;
13651 PY_CHECK_TYPE(&srvsvc_NetSrvInfo1543_Type, in, talloc_free(ret); return NULL;);
13652 if (talloc_reference(mem_ctx, pytalloc_get_mem_ctx(in)) == NULL) {
13654 talloc_free(ret); return NULL;
13656 ret->info1543 = (struct srvsvc_NetSrvInfo1543 *)pytalloc_get_ptr(in);
13661 if (in == Py_None) {
13662 ret->info1544 = NULL;
13664 ret->info1544 = NULL;
13665 PY_CHECK_TYPE(&srvsvc_NetSrvInfo1544_Type, in, talloc_free(ret); return NULL;);
13666 if (talloc_reference(mem_ctx, pytalloc_get_mem_ctx(in)) == NULL) {
13668 talloc_free(ret); return NULL;
13670 ret->info1544 = (struct srvsvc_NetSrvInfo1544 *)pytalloc_get_ptr(in);
13675 if (in == Py_None) {
13676 ret->info1545 = NULL;
13678 ret->info1545 = NULL;
13679 PY_CHECK_TYPE(&srvsvc_NetSrvInfo1545_Type, in, talloc_free(ret); return NULL;);
13680 if (talloc_reference(mem_ctx, pytalloc_get_mem_ctx(in)) == NULL) {
13682 talloc_free(ret); return NULL;
13684 ret->info1545 = (struct srvsvc_NetSrvInfo1545 *)pytalloc_get_ptr(in);
13689 if (in == Py_None) {
13690 ret->info1546 = NULL;
13692 ret->info1546 = NULL;
13693 PY_CHECK_TYPE(&srvsvc_NetSrvInfo1546_Type, in, talloc_free(ret); return NULL;);
13694 if (talloc_reference(mem_ctx, pytalloc_get_mem_ctx(in)) == NULL) {
13696 talloc_free(ret); return NULL;
13698 ret->info1546 = (struct srvsvc_NetSrvInfo1546 *)pytalloc_get_ptr(in);
13703 if (in == Py_None) {
13704 ret->info1547 = NULL;
13706 ret->info1547 = NULL;
13707 PY_CHECK_TYPE(&srvsvc_NetSrvInfo1547_Type, in, talloc_free(ret); return NULL;);
13708 if (talloc_reference(mem_ctx, pytalloc_get_mem_ctx(in)) == NULL) {
13710 talloc_free(ret); return NULL;
13712 ret->info1547 = (struct srvsvc_NetSrvInfo1547 *)pytalloc_get_ptr(in);
13717 if (in == Py_None) {
13718 ret->info1548 = NULL;
13720 ret->info1548 = NULL;
13721 PY_CHECK_TYPE(&srvsvc_NetSrvInfo1548_Type, in, talloc_free(ret); return NULL;);
13722 if (talloc_reference(mem_ctx, pytalloc_get_mem_ctx(in)) == NULL) {
13724 talloc_free(ret); return NULL;
13726 ret->info1548 = (struct srvsvc_NetSrvInfo1548 *)pytalloc_get_ptr(in);
13731 if (in == Py_None) {
13732 ret->info1549 = NULL;
13734 ret->info1549 = NULL;
13735 PY_CHECK_TYPE(&srvsvc_NetSrvInfo1549_Type, in, talloc_free(ret); return NULL;);
13736 if (talloc_reference(mem_ctx, pytalloc_get_mem_ctx(in)) == NULL) {
13738 talloc_free(ret); return NULL;
13740 ret->info1549 = (struct srvsvc_NetSrvInfo1549 *)pytalloc_get_ptr(in);
13745 if (in == Py_None) {
13746 ret->info1550 = NULL;
13748 ret->info1550 = NULL;
13749 PY_CHECK_TYPE(&srvsvc_NetSrvInfo1550_Type, in, talloc_free(ret); return NULL;);
13750 if (talloc_reference(mem_ctx, pytalloc_get_mem_ctx(in)) == NULL) {
13752 talloc_free(ret); return NULL;
13754 ret->info1550 = (struct srvsvc_NetSrvInfo1550 *)pytalloc_get_ptr(in);
13759 if (in == Py_None) {
13760 ret->info1552 = NULL;
13762 ret->info1552 = NULL;
13763 PY_CHECK_TYPE(&srvsvc_NetSrvInfo1552_Type, in, talloc_free(ret); return NULL;);
13764 if (talloc_reference(mem_ctx, pytalloc_get_mem_ctx(in)) == NULL) {
13766 talloc_free(ret); return NULL;
13768 ret->info1552 = (struct srvsvc_NetSrvInfo1552 *)pytalloc_get_ptr(in);
13773 if (in == Py_None) {
13774 ret->info1553 = NULL;
13776 ret->info1553 = NULL;
13777 PY_CHECK_TYPE(&srvsvc_NetSrvInfo1553_Type, in, talloc_free(ret); return NULL;);
13778 if (talloc_reference(mem_ctx, pytalloc_get_mem_ctx(in)) == NULL) {
13780 talloc_free(ret); return NULL;
13782 ret->info1553 = (struct srvsvc_NetSrvInfo1553 *)pytalloc_get_ptr(in);
13787 if (in == Py_None) {
13788 ret->info1554 = NULL;
13790 ret->info1554 = NULL;
13791 PY_CHECK_TYPE(&srvsvc_NetSrvInfo1554_Type, in, talloc_free(ret); return NULL;);
13792 if (talloc_reference(mem_ctx, pytalloc_get_mem_ctx(in)) == NULL) {
13794 talloc_free(ret); return NULL;
13796 ret->info1554 = (struct srvsvc_NetSrvInfo1554 *)pytalloc_get_ptr(in);
13801 if (in == Py_None) {
13802 ret->info1555 = NULL;
13804 ret->info1555 = NULL;
13805 PY_CHECK_TYPE(&srvsvc_NetSrvInfo1555_Type, in, talloc_free(ret); return NULL;);
13806 if (talloc_reference(mem_ctx, pytalloc_get_mem_ctx(in)) == NULL) {
13808 talloc_free(ret); return NULL;
13810 ret->info1555 = (struct srvsvc_NetSrvInfo1555 *)pytalloc_get_ptr(in);
13815 if (in == Py_None) {
13816 ret->info1556 = NULL;
13818 ret->info1556 = NULL;
13819 PY_CHECK_TYPE(&srvsvc_NetSrvInfo1556_Type, in, talloc_free(ret); return NULL;);
13820 if (talloc_reference(mem_ctx, pytalloc_get_mem_ctx(in)) == NULL) {
13822 talloc_free(ret); return NULL;
13824 ret->info1556 = (struct srvsvc_NetSrvInfo1556 *)pytalloc_get_ptr(in);
13837 static PyObject *py_srvsvc_NetDiskInfo0_get___disk_offset(PyObject *obj, void *closure)
13839 struct srvsvc_NetDiskInfo0 *object = (struct srvsvc_NetDiskInfo0 *)pytalloc_get_ptr(obj);
13840 PyObject *py___disk_offset;
13841 py___disk_offset = PyInt_FromLong(object->__disk_offset);
13842 return py___disk_offset;
13845 static int py_srvsvc_NetDiskInfo0_set___disk_offset(PyObject *py_obj, PyObject *value, void *closure)
13847 struct srvsvc_NetDiskInfo0 *object = (struct srvsvc_NetDiskInfo0 *)pytalloc_get_ptr(py_obj);
13848 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
13849 object->__disk_offset = PyInt_AsLong(value);
13853 static PyObject *py_srvsvc_NetDiskInfo0_get___disk_length(PyObject *obj, void *closure)
13855 struct srvsvc_NetDiskInfo0 *object = (struct srvsvc_NetDiskInfo0 *)pytalloc_get_ptr(obj);
13856 PyObject *py___disk_length;
13857 py___disk_length = PyInt_FromLong(object->__disk_length);
13858 return py___disk_length;
13861 static int py_srvsvc_NetDiskInfo0_set___disk_length(PyObject *py_obj, PyObject *value, void *closure)
13863 struct srvsvc_NetDiskInfo0 *object = (struct srvsvc_NetDiskInfo0 *)pytalloc_get_ptr(py_obj);
13864 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
13865 object->__disk_length = PyInt_AsLong(value);
13869 static PyObject *py_srvsvc_NetDiskInfo0_get_disk(PyObject *obj, void *closure)
13871 struct srvsvc_NetDiskInfo0 *object = (struct srvsvc_NetDiskInfo0 *)pytalloc_get_ptr(obj);
13873 if (object->disk == NULL) {
13875 Py_INCREF(py_disk);
13877 py_disk = PyUnicode_Decode(object->disk, strlen(object->disk), "utf-8", "ignore");
13882 static int py_srvsvc_NetDiskInfo0_set_disk(PyObject *py_obj, PyObject *value, void *closure)
13884 struct srvsvc_NetDiskInfo0 *object = (struct srvsvc_NetDiskInfo0 *)pytalloc_get_ptr(py_obj);
13885 if (PyUnicode_Check(value)) {
13886 object->disk = PyString_AS_STRING(PyUnicode_AsEncodedString(value, "utf-8", "ignore"));
13887 } else if (PyString_Check(value)) {
13888 object->disk = PyString_AS_STRING(value);
13890 PyErr_Format(PyExc_TypeError, "Expected string or unicode object, got %s", Py_TYPE(value)->tp_name);
13896 static PyGetSetDef py_srvsvc_NetDiskInfo0_getsetters[] = {
13897 { discard_const_p(char, "__disk_offset"), py_srvsvc_NetDiskInfo0_get___disk_offset, py_srvsvc_NetDiskInfo0_set___disk_offset },
13898 { discard_const_p(char, "__disk_length"), py_srvsvc_NetDiskInfo0_get___disk_length, py_srvsvc_NetDiskInfo0_set___disk_length },
13899 { discard_const_p(char, "disk"), py_srvsvc_NetDiskInfo0_get_disk, py_srvsvc_NetDiskInfo0_set_disk },
13903 static PyObject *py_srvsvc_NetDiskInfo0_new(PyTypeObject *type, PyObject *args, PyObject *kwargs)
13905 return pytalloc_new(struct srvsvc_NetDiskInfo0, type);
13909 static PyTypeObject srvsvc_NetDiskInfo0_Type = {
13910 PyObject_HEAD_INIT(NULL) 0,
13911 .tp_name = "srvsvc.NetDiskInfo0",
13912 .tp_getset = py_srvsvc_NetDiskInfo0_getsetters,
13913 .tp_methods = NULL,
13914 .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
13915 .tp_basicsize = sizeof(pytalloc_Object),
13916 .tp_new = py_srvsvc_NetDiskInfo0_new,
13920 static PyObject *py_srvsvc_NetDiskInfo_get_count(PyObject *obj, void *closure)
13922 struct srvsvc_NetDiskInfo *object = (struct srvsvc_NetDiskInfo *)pytalloc_get_ptr(obj);
13923 PyObject *py_count;
13924 py_count = PyInt_FromLong(object->count);
13928 static int py_srvsvc_NetDiskInfo_set_count(PyObject *py_obj, PyObject *value, void *closure)
13930 struct srvsvc_NetDiskInfo *object = (struct srvsvc_NetDiskInfo *)pytalloc_get_ptr(py_obj);
13931 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
13932 object->count = PyInt_AsLong(value);
13936 static PyObject *py_srvsvc_NetDiskInfo_get_disks(PyObject *obj, void *closure)
13938 struct srvsvc_NetDiskInfo *object = (struct srvsvc_NetDiskInfo *)pytalloc_get_ptr(obj);
13939 PyObject *py_disks;
13940 if (object->disks == NULL) {
13941 py_disks = Py_None;
13942 Py_INCREF(py_disks);
13944 py_disks = PyList_New(object->count);
13945 if (py_disks == NULL) {
13950 for (disks_cntr_1 = 0; disks_cntr_1 < object->count; disks_cntr_1++) {
13951 PyObject *py_disks_1;
13952 py_disks_1 = pytalloc_reference_ex(&srvsvc_NetDiskInfo0_Type, object->disks, &object->disks[disks_cntr_1]);
13953 PyList_SetItem(py_disks, disks_cntr_1, py_disks_1);
13960 static int py_srvsvc_NetDiskInfo_set_disks(PyObject *py_obj, PyObject *value, void *closure)
13962 struct srvsvc_NetDiskInfo *object = (struct srvsvc_NetDiskInfo *)pytalloc_get_ptr(py_obj);
13963 talloc_unlink(pytalloc_get_mem_ctx(py_obj), object->disks);
13964 if (value == Py_None) {
13965 object->disks = NULL;
13967 object->disks = NULL;
13968 PY_CHECK_TYPE(&PyList_Type, value, return -1;);
13971 object->disks = talloc_array_ptrtype(pytalloc_get_mem_ctx(py_obj), object->disks, PyList_GET_SIZE(value));
13972 if (!object->disks) { return -1;; }
13973 talloc_set_name_const(object->disks, "ARRAY: object->disks");
13974 for (disks_cntr_1 = 0; disks_cntr_1 < PyList_GET_SIZE(value); disks_cntr_1++) {
13975 PY_CHECK_TYPE(&srvsvc_NetDiskInfo0_Type, PyList_GET_ITEM(value, disks_cntr_1), return -1;);
13976 if (talloc_reference(object->disks, pytalloc_get_mem_ctx(PyList_GET_ITEM(value, disks_cntr_1))) == NULL) {
13980 object->disks[disks_cntr_1] = *(struct srvsvc_NetDiskInfo0 *)pytalloc_get_ptr(PyList_GET_ITEM(value, disks_cntr_1));
13987 static PyGetSetDef py_srvsvc_NetDiskInfo_getsetters[] = {
13988 { discard_const_p(char, "count"), py_srvsvc_NetDiskInfo_get_count, py_srvsvc_NetDiskInfo_set_count },
13989 { discard_const_p(char, "disks"), py_srvsvc_NetDiskInfo_get_disks, py_srvsvc_NetDiskInfo_set_disks },
13993 static PyObject *py_srvsvc_NetDiskInfo_new(PyTypeObject *type, PyObject *args, PyObject *kwargs)
13995 return pytalloc_new(struct srvsvc_NetDiskInfo, type);
13999 static PyTypeObject srvsvc_NetDiskInfo_Type = {
14000 PyObject_HEAD_INIT(NULL) 0,
14001 .tp_name = "srvsvc.NetDiskInfo",
14002 .tp_getset = py_srvsvc_NetDiskInfo_getsetters,
14003 .tp_methods = NULL,
14004 .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
14005 .tp_basicsize = sizeof(pytalloc_Object),
14006 .tp_new = py_srvsvc_NetDiskInfo_new,
14010 static PyObject *py_srvsvc_Statistics_get_start(PyObject *obj, void *closure)
14012 struct srvsvc_Statistics *object = (struct srvsvc_Statistics *)pytalloc_get_ptr(obj);
14013 PyObject *py_start;
14014 py_start = PyInt_FromLong(object->start);
14018 static int py_srvsvc_Statistics_set_start(PyObject *py_obj, PyObject *value, void *closure)
14020 struct srvsvc_Statistics *object = (struct srvsvc_Statistics *)pytalloc_get_ptr(py_obj);
14021 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
14022 object->start = PyInt_AsLong(value);
14026 static PyObject *py_srvsvc_Statistics_get_fopens(PyObject *obj, void *closure)
14028 struct srvsvc_Statistics *object = (struct srvsvc_Statistics *)pytalloc_get_ptr(obj);
14029 PyObject *py_fopens;
14030 py_fopens = PyInt_FromLong(object->fopens);
14034 static int py_srvsvc_Statistics_set_fopens(PyObject *py_obj, PyObject *value, void *closure)
14036 struct srvsvc_Statistics *object = (struct srvsvc_Statistics *)pytalloc_get_ptr(py_obj);
14037 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
14038 object->fopens = PyInt_AsLong(value);
14042 static PyObject *py_srvsvc_Statistics_get_devopens(PyObject *obj, void *closure)
14044 struct srvsvc_Statistics *object = (struct srvsvc_Statistics *)pytalloc_get_ptr(obj);
14045 PyObject *py_devopens;
14046 py_devopens = PyInt_FromLong(object->devopens);
14047 return py_devopens;
14050 static int py_srvsvc_Statistics_set_devopens(PyObject *py_obj, PyObject *value, void *closure)
14052 struct srvsvc_Statistics *object = (struct srvsvc_Statistics *)pytalloc_get_ptr(py_obj);
14053 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
14054 object->devopens = PyInt_AsLong(value);
14058 static PyObject *py_srvsvc_Statistics_get_jobsqueued(PyObject *obj, void *closure)
14060 struct srvsvc_Statistics *object = (struct srvsvc_Statistics *)pytalloc_get_ptr(obj);
14061 PyObject *py_jobsqueued;
14062 py_jobsqueued = PyInt_FromLong(object->jobsqueued);
14063 return py_jobsqueued;
14066 static int py_srvsvc_Statistics_set_jobsqueued(PyObject *py_obj, PyObject *value, void *closure)
14068 struct srvsvc_Statistics *object = (struct srvsvc_Statistics *)pytalloc_get_ptr(py_obj);
14069 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
14070 object->jobsqueued = PyInt_AsLong(value);
14074 static PyObject *py_srvsvc_Statistics_get_sopens(PyObject *obj, void *closure)
14076 struct srvsvc_Statistics *object = (struct srvsvc_Statistics *)pytalloc_get_ptr(obj);
14077 PyObject *py_sopens;
14078 py_sopens = PyInt_FromLong(object->sopens);
14082 static int py_srvsvc_Statistics_set_sopens(PyObject *py_obj, PyObject *value, void *closure)
14084 struct srvsvc_Statistics *object = (struct srvsvc_Statistics *)pytalloc_get_ptr(py_obj);
14085 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
14086 object->sopens = PyInt_AsLong(value);
14090 static PyObject *py_srvsvc_Statistics_get_stimeouts(PyObject *obj, void *closure)
14092 struct srvsvc_Statistics *object = (struct srvsvc_Statistics *)pytalloc_get_ptr(obj);
14093 PyObject *py_stimeouts;
14094 py_stimeouts = PyInt_FromLong(object->stimeouts);
14095 return py_stimeouts;
14098 static int py_srvsvc_Statistics_set_stimeouts(PyObject *py_obj, PyObject *value, void *closure)
14100 struct srvsvc_Statistics *object = (struct srvsvc_Statistics *)pytalloc_get_ptr(py_obj);
14101 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
14102 object->stimeouts = PyInt_AsLong(value);
14106 static PyObject *py_srvsvc_Statistics_get_serrorout(PyObject *obj, void *closure)
14108 struct srvsvc_Statistics *object = (struct srvsvc_Statistics *)pytalloc_get_ptr(obj);
14109 PyObject *py_serrorout;
14110 py_serrorout = PyInt_FromLong(object->serrorout);
14111 return py_serrorout;
14114 static int py_srvsvc_Statistics_set_serrorout(PyObject *py_obj, PyObject *value, void *closure)
14116 struct srvsvc_Statistics *object = (struct srvsvc_Statistics *)pytalloc_get_ptr(py_obj);
14117 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
14118 object->serrorout = PyInt_AsLong(value);
14122 static PyObject *py_srvsvc_Statistics_get_pwerrors(PyObject *obj, void *closure)
14124 struct srvsvc_Statistics *object = (struct srvsvc_Statistics *)pytalloc_get_ptr(obj);
14125 PyObject *py_pwerrors;
14126 py_pwerrors = PyInt_FromLong(object->pwerrors);
14127 return py_pwerrors;
14130 static int py_srvsvc_Statistics_set_pwerrors(PyObject *py_obj, PyObject *value, void *closure)
14132 struct srvsvc_Statistics *object = (struct srvsvc_Statistics *)pytalloc_get_ptr(py_obj);
14133 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
14134 object->pwerrors = PyInt_AsLong(value);
14138 static PyObject *py_srvsvc_Statistics_get_permerrors(PyObject *obj, void *closure)
14140 struct srvsvc_Statistics *object = (struct srvsvc_Statistics *)pytalloc_get_ptr(obj);
14141 PyObject *py_permerrors;
14142 py_permerrors = PyInt_FromLong(object->permerrors);
14143 return py_permerrors;
14146 static int py_srvsvc_Statistics_set_permerrors(PyObject *py_obj, PyObject *value, void *closure)
14148 struct srvsvc_Statistics *object = (struct srvsvc_Statistics *)pytalloc_get_ptr(py_obj);
14149 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
14150 object->permerrors = PyInt_AsLong(value);
14154 static PyObject *py_srvsvc_Statistics_get_syserrors(PyObject *obj, void *closure)
14156 struct srvsvc_Statistics *object = (struct srvsvc_Statistics *)pytalloc_get_ptr(obj);
14157 PyObject *py_syserrors;
14158 py_syserrors = PyInt_FromLong(object->syserrors);
14159 return py_syserrors;
14162 static int py_srvsvc_Statistics_set_syserrors(PyObject *py_obj, PyObject *value, void *closure)
14164 struct srvsvc_Statistics *object = (struct srvsvc_Statistics *)pytalloc_get_ptr(py_obj);
14165 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
14166 object->syserrors = PyInt_AsLong(value);
14170 static PyObject *py_srvsvc_Statistics_get_bytessent_low(PyObject *obj, void *closure)
14172 struct srvsvc_Statistics *object = (struct srvsvc_Statistics *)pytalloc_get_ptr(obj);
14173 PyObject *py_bytessent_low;
14174 py_bytessent_low = PyInt_FromLong(object->bytessent_low);
14175 return py_bytessent_low;
14178 static int py_srvsvc_Statistics_set_bytessent_low(PyObject *py_obj, PyObject *value, void *closure)
14180 struct srvsvc_Statistics *object = (struct srvsvc_Statistics *)pytalloc_get_ptr(py_obj);
14181 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
14182 object->bytessent_low = PyInt_AsLong(value);
14186 static PyObject *py_srvsvc_Statistics_get_bytessent_high(PyObject *obj, void *closure)
14188 struct srvsvc_Statistics *object = (struct srvsvc_Statistics *)pytalloc_get_ptr(obj);
14189 PyObject *py_bytessent_high;
14190 py_bytessent_high = PyInt_FromLong(object->bytessent_high);
14191 return py_bytessent_high;
14194 static int py_srvsvc_Statistics_set_bytessent_high(PyObject *py_obj, PyObject *value, void *closure)
14196 struct srvsvc_Statistics *object = (struct srvsvc_Statistics *)pytalloc_get_ptr(py_obj);
14197 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
14198 object->bytessent_high = PyInt_AsLong(value);
14202 static PyObject *py_srvsvc_Statistics_get_bytesrcvd_low(PyObject *obj, void *closure)
14204 struct srvsvc_Statistics *object = (struct srvsvc_Statistics *)pytalloc_get_ptr(obj);
14205 PyObject *py_bytesrcvd_low;
14206 py_bytesrcvd_low = PyInt_FromLong(object->bytesrcvd_low);
14207 return py_bytesrcvd_low;
14210 static int py_srvsvc_Statistics_set_bytesrcvd_low(PyObject *py_obj, PyObject *value, void *closure)
14212 struct srvsvc_Statistics *object = (struct srvsvc_Statistics *)pytalloc_get_ptr(py_obj);
14213 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
14214 object->bytesrcvd_low = PyInt_AsLong(value);
14218 static PyObject *py_srvsvc_Statistics_get_bytesrcvd_high(PyObject *obj, void *closure)
14220 struct srvsvc_Statistics *object = (struct srvsvc_Statistics *)pytalloc_get_ptr(obj);
14221 PyObject *py_bytesrcvd_high;
14222 py_bytesrcvd_high = PyInt_FromLong(object->bytesrcvd_high);
14223 return py_bytesrcvd_high;
14226 static int py_srvsvc_Statistics_set_bytesrcvd_high(PyObject *py_obj, PyObject *value, void *closure)
14228 struct srvsvc_Statistics *object = (struct srvsvc_Statistics *)pytalloc_get_ptr(py_obj);
14229 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
14230 object->bytesrcvd_high = PyInt_AsLong(value);
14234 static PyObject *py_srvsvc_Statistics_get_avresponse(PyObject *obj, void *closure)
14236 struct srvsvc_Statistics *object = (struct srvsvc_Statistics *)pytalloc_get_ptr(obj);
14237 PyObject *py_avresponse;
14238 py_avresponse = PyInt_FromLong(object->avresponse);
14239 return py_avresponse;
14242 static int py_srvsvc_Statistics_set_avresponse(PyObject *py_obj, PyObject *value, void *closure)
14244 struct srvsvc_Statistics *object = (struct srvsvc_Statistics *)pytalloc_get_ptr(py_obj);
14245 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
14246 object->avresponse = PyInt_AsLong(value);
14250 static PyObject *py_srvsvc_Statistics_get_reqbufneed(PyObject *obj, void *closure)
14252 struct srvsvc_Statistics *object = (struct srvsvc_Statistics *)pytalloc_get_ptr(obj);
14253 PyObject *py_reqbufneed;
14254 py_reqbufneed = PyInt_FromLong(object->reqbufneed);
14255 return py_reqbufneed;
14258 static int py_srvsvc_Statistics_set_reqbufneed(PyObject *py_obj, PyObject *value, void *closure)
14260 struct srvsvc_Statistics *object = (struct srvsvc_Statistics *)pytalloc_get_ptr(py_obj);
14261 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
14262 object->reqbufneed = PyInt_AsLong(value);
14266 static PyObject *py_srvsvc_Statistics_get_bigbufneed(PyObject *obj, void *closure)
14268 struct srvsvc_Statistics *object = (struct srvsvc_Statistics *)pytalloc_get_ptr(obj);
14269 PyObject *py_bigbufneed;
14270 py_bigbufneed = PyInt_FromLong(object->bigbufneed);
14271 return py_bigbufneed;
14274 static int py_srvsvc_Statistics_set_bigbufneed(PyObject *py_obj, PyObject *value, void *closure)
14276 struct srvsvc_Statistics *object = (struct srvsvc_Statistics *)pytalloc_get_ptr(py_obj);
14277 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
14278 object->bigbufneed = PyInt_AsLong(value);
14282 static PyGetSetDef py_srvsvc_Statistics_getsetters[] = {
14283 { discard_const_p(char, "start"), py_srvsvc_Statistics_get_start, py_srvsvc_Statistics_set_start },
14284 { discard_const_p(char, "fopens"), py_srvsvc_Statistics_get_fopens, py_srvsvc_Statistics_set_fopens },
14285 { discard_const_p(char, "devopens"), py_srvsvc_Statistics_get_devopens, py_srvsvc_Statistics_set_devopens },
14286 { discard_const_p(char, "jobsqueued"), py_srvsvc_Statistics_get_jobsqueued, py_srvsvc_Statistics_set_jobsqueued },
14287 { discard_const_p(char, "sopens"), py_srvsvc_Statistics_get_sopens, py_srvsvc_Statistics_set_sopens },
14288 { discard_const_p(char, "stimeouts"), py_srvsvc_Statistics_get_stimeouts, py_srvsvc_Statistics_set_stimeouts },
14289 { discard_const_p(char, "serrorout"), py_srvsvc_Statistics_get_serrorout, py_srvsvc_Statistics_set_serrorout },
14290 { discard_const_p(char, "pwerrors"), py_srvsvc_Statistics_get_pwerrors, py_srvsvc_Statistics_set_pwerrors },
14291 { discard_const_p(char, "permerrors"), py_srvsvc_Statistics_get_permerrors, py_srvsvc_Statistics_set_permerrors },
14292 { discard_const_p(char, "syserrors"), py_srvsvc_Statistics_get_syserrors, py_srvsvc_Statistics_set_syserrors },
14293 { discard_const_p(char, "bytessent_low"), py_srvsvc_Statistics_get_bytessent_low, py_srvsvc_Statistics_set_bytessent_low },
14294 { discard_const_p(char, "bytessent_high"), py_srvsvc_Statistics_get_bytessent_high, py_srvsvc_Statistics_set_bytessent_high },
14295 { discard_const_p(char, "bytesrcvd_low"), py_srvsvc_Statistics_get_bytesrcvd_low, py_srvsvc_Statistics_set_bytesrcvd_low },
14296 { discard_const_p(char, "bytesrcvd_high"), py_srvsvc_Statistics_get_bytesrcvd_high, py_srvsvc_Statistics_set_bytesrcvd_high },
14297 { discard_const_p(char, "avresponse"), py_srvsvc_Statistics_get_avresponse, py_srvsvc_Statistics_set_avresponse },
14298 { discard_const_p(char, "reqbufneed"), py_srvsvc_Statistics_get_reqbufneed, py_srvsvc_Statistics_set_reqbufneed },
14299 { discard_const_p(char, "bigbufneed"), py_srvsvc_Statistics_get_bigbufneed, py_srvsvc_Statistics_set_bigbufneed },
14303 static PyObject *py_srvsvc_Statistics_new(PyTypeObject *type, PyObject *args, PyObject *kwargs)
14305 return pytalloc_new(struct srvsvc_Statistics, type);
14309 static PyTypeObject srvsvc_Statistics_Type = {
14310 PyObject_HEAD_INIT(NULL) 0,
14311 .tp_name = "srvsvc.Statistics",
14312 .tp_getset = py_srvsvc_Statistics_getsetters,
14313 .tp_methods = NULL,
14314 .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
14315 .tp_basicsize = sizeof(pytalloc_Object),
14316 .tp_new = py_srvsvc_Statistics_new,
14320 static PyObject *py_srvsvc_NetTransportInfo0_get_vcs(PyObject *obj, void *closure)
14322 struct srvsvc_NetTransportInfo0 *object = (struct srvsvc_NetTransportInfo0 *)pytalloc_get_ptr(obj);
14324 py_vcs = PyInt_FromLong(object->vcs);
14328 static int py_srvsvc_NetTransportInfo0_set_vcs(PyObject *py_obj, PyObject *value, void *closure)
14330 struct srvsvc_NetTransportInfo0 *object = (struct srvsvc_NetTransportInfo0 *)pytalloc_get_ptr(py_obj);
14331 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
14332 object->vcs = PyInt_AsLong(value);
14336 static PyObject *py_srvsvc_NetTransportInfo0_get_name(PyObject *obj, void *closure)
14338 struct srvsvc_NetTransportInfo0 *object = (struct srvsvc_NetTransportInfo0 *)pytalloc_get_ptr(obj);
14340 if (object->name == NULL) {
14342 Py_INCREF(py_name);
14344 if (object->name == NULL) {
14346 Py_INCREF(py_name);
14348 py_name = PyUnicode_Decode(object->name, strlen(object->name), "utf-8", "ignore");
14354 static int py_srvsvc_NetTransportInfo0_set_name(PyObject *py_obj, PyObject *value, void *closure)
14356 struct srvsvc_NetTransportInfo0 *object = (struct srvsvc_NetTransportInfo0 *)pytalloc_get_ptr(py_obj);
14357 if (value == Py_None) {
14358 object->name = NULL;
14360 object->name = NULL;
14361 if (PyUnicode_Check(value)) {
14362 object->name = PyString_AS_STRING(PyUnicode_AsEncodedString(value, "utf-8", "ignore"));
14363 } else if (PyString_Check(value)) {
14364 object->name = PyString_AS_STRING(value);
14366 PyErr_Format(PyExc_TypeError, "Expected string or unicode object, got %s", Py_TYPE(value)->tp_name);
14373 static PyObject *py_srvsvc_NetTransportInfo0_get_addr(PyObject *obj, void *closure)
14375 struct srvsvc_NetTransportInfo0 *object = (struct srvsvc_NetTransportInfo0 *)pytalloc_get_ptr(obj);
14377 if (object->addr == NULL) {
14379 Py_INCREF(py_addr);
14381 py_addr = PyList_New(object->addr_len);
14382 if (py_addr == NULL) {
14387 for (addr_cntr_1 = 0; addr_cntr_1 < object->addr_len; addr_cntr_1++) {
14388 PyObject *py_addr_1;
14389 py_addr_1 = PyInt_FromLong(object->addr[addr_cntr_1]);
14390 PyList_SetItem(py_addr, addr_cntr_1, py_addr_1);
14397 static int py_srvsvc_NetTransportInfo0_set_addr(PyObject *py_obj, PyObject *value, void *closure)
14399 struct srvsvc_NetTransportInfo0 *object = (struct srvsvc_NetTransportInfo0 *)pytalloc_get_ptr(py_obj);
14400 talloc_unlink(pytalloc_get_mem_ctx(py_obj), object->addr);
14401 if (value == Py_None) {
14402 object->addr = NULL;
14404 object->addr = NULL;
14405 PY_CHECK_TYPE(&PyList_Type, value, return -1;);
14408 object->addr = talloc_array_ptrtype(pytalloc_get_mem_ctx(py_obj), object->addr, PyList_GET_SIZE(value));
14409 if (!object->addr) { return -1;; }
14410 talloc_set_name_const(object->addr, "ARRAY: object->addr");
14411 for (addr_cntr_1 = 0; addr_cntr_1 < PyList_GET_SIZE(value); addr_cntr_1++) {
14412 PY_CHECK_TYPE(&PyInt_Type, PyList_GET_ITEM(value, addr_cntr_1), return -1;);
14413 object->addr[addr_cntr_1] = PyInt_AsLong(PyList_GET_ITEM(value, addr_cntr_1));
14420 static PyObject *py_srvsvc_NetTransportInfo0_get_addr_len(PyObject *obj, void *closure)
14422 struct srvsvc_NetTransportInfo0 *object = (struct srvsvc_NetTransportInfo0 *)pytalloc_get_ptr(obj);
14423 PyObject *py_addr_len;
14424 py_addr_len = PyInt_FromLong(object->addr_len);
14425 return py_addr_len;
14428 static int py_srvsvc_NetTransportInfo0_set_addr_len(PyObject *py_obj, PyObject *value, void *closure)
14430 struct srvsvc_NetTransportInfo0 *object = (struct srvsvc_NetTransportInfo0 *)pytalloc_get_ptr(py_obj);
14431 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
14432 object->addr_len = PyInt_AsLong(value);
14436 static PyObject *py_srvsvc_NetTransportInfo0_get_net_addr(PyObject *obj, void *closure)
14438 struct srvsvc_NetTransportInfo0 *object = (struct srvsvc_NetTransportInfo0 *)pytalloc_get_ptr(obj);
14439 PyObject *py_net_addr;
14440 if (object->net_addr == NULL) {
14441 py_net_addr = Py_None;
14442 Py_INCREF(py_net_addr);
14444 if (object->net_addr == NULL) {
14445 py_net_addr = Py_None;
14446 Py_INCREF(py_net_addr);
14448 py_net_addr = PyUnicode_Decode(object->net_addr, strlen(object->net_addr), "utf-8", "ignore");
14451 return py_net_addr;
14454 static int py_srvsvc_NetTransportInfo0_set_net_addr(PyObject *py_obj, PyObject *value, void *closure)
14456 struct srvsvc_NetTransportInfo0 *object = (struct srvsvc_NetTransportInfo0 *)pytalloc_get_ptr(py_obj);
14457 if (value == Py_None) {
14458 object->net_addr = NULL;
14460 object->net_addr = NULL;
14461 if (PyUnicode_Check(value)) {
14462 object->net_addr = PyString_AS_STRING(PyUnicode_AsEncodedString(value, "utf-8", "ignore"));
14463 } else if (PyString_Check(value)) {
14464 object->net_addr = PyString_AS_STRING(value);
14466 PyErr_Format(PyExc_TypeError, "Expected string or unicode object, got %s", Py_TYPE(value)->tp_name);
14473 static PyGetSetDef py_srvsvc_NetTransportInfo0_getsetters[] = {
14474 { discard_const_p(char, "vcs"), py_srvsvc_NetTransportInfo0_get_vcs, py_srvsvc_NetTransportInfo0_set_vcs },
14475 { discard_const_p(char, "name"), py_srvsvc_NetTransportInfo0_get_name, py_srvsvc_NetTransportInfo0_set_name },
14476 { discard_const_p(char, "addr"), py_srvsvc_NetTransportInfo0_get_addr, py_srvsvc_NetTransportInfo0_set_addr },
14477 { discard_const_p(char, "addr_len"), py_srvsvc_NetTransportInfo0_get_addr_len, py_srvsvc_NetTransportInfo0_set_addr_len },
14478 { discard_const_p(char, "net_addr"), py_srvsvc_NetTransportInfo0_get_net_addr, py_srvsvc_NetTransportInfo0_set_net_addr },
14482 static PyObject *py_srvsvc_NetTransportInfo0_new(PyTypeObject *type, PyObject *args, PyObject *kwargs)
14484 return pytalloc_new(struct srvsvc_NetTransportInfo0, type);
14488 static PyTypeObject srvsvc_NetTransportInfo0_Type = {
14489 PyObject_HEAD_INIT(NULL) 0,
14490 .tp_name = "srvsvc.NetTransportInfo0",
14491 .tp_getset = py_srvsvc_NetTransportInfo0_getsetters,
14492 .tp_methods = NULL,
14493 .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
14494 .tp_basicsize = sizeof(pytalloc_Object),
14495 .tp_new = py_srvsvc_NetTransportInfo0_new,
14499 static PyObject *py_srvsvc_NetTransportCtr0_get_count(PyObject *obj, void *closure)
14501 struct srvsvc_NetTransportCtr0 *object = (struct srvsvc_NetTransportCtr0 *)pytalloc_get_ptr(obj);
14502 PyObject *py_count;
14503 py_count = PyInt_FromLong(object->count);
14507 static int py_srvsvc_NetTransportCtr0_set_count(PyObject *py_obj, PyObject *value, void *closure)
14509 struct srvsvc_NetTransportCtr0 *object = (struct srvsvc_NetTransportCtr0 *)pytalloc_get_ptr(py_obj);
14510 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
14511 object->count = PyInt_AsLong(value);
14515 static PyObject *py_srvsvc_NetTransportCtr0_get_array(PyObject *obj, void *closure)
14517 struct srvsvc_NetTransportCtr0 *object = (struct srvsvc_NetTransportCtr0 *)pytalloc_get_ptr(obj);
14518 PyObject *py_array;
14519 if (object->array == NULL) {
14520 py_array = Py_None;
14521 Py_INCREF(py_array);
14523 py_array = PyList_New(object->count);
14524 if (py_array == NULL) {
14529 for (array_cntr_1 = 0; array_cntr_1 < object->count; array_cntr_1++) {
14530 PyObject *py_array_1;
14531 py_array_1 = pytalloc_reference_ex(&srvsvc_NetTransportInfo0_Type, object->array, &object->array[array_cntr_1]);
14532 PyList_SetItem(py_array, array_cntr_1, py_array_1);
14539 static int py_srvsvc_NetTransportCtr0_set_array(PyObject *py_obj, PyObject *value, void *closure)
14541 struct srvsvc_NetTransportCtr0 *object = (struct srvsvc_NetTransportCtr0 *)pytalloc_get_ptr(py_obj);
14542 talloc_unlink(pytalloc_get_mem_ctx(py_obj), object->array);
14543 if (value == Py_None) {
14544 object->array = NULL;
14546 object->array = NULL;
14547 PY_CHECK_TYPE(&PyList_Type, value, return -1;);
14550 object->array = talloc_array_ptrtype(pytalloc_get_mem_ctx(py_obj), object->array, PyList_GET_SIZE(value));
14551 if (!object->array) { return -1;; }
14552 talloc_set_name_const(object->array, "ARRAY: object->array");
14553 for (array_cntr_1 = 0; array_cntr_1 < PyList_GET_SIZE(value); array_cntr_1++) {
14554 PY_CHECK_TYPE(&srvsvc_NetTransportInfo0_Type, PyList_GET_ITEM(value, array_cntr_1), return -1;);
14555 if (talloc_reference(object->array, pytalloc_get_mem_ctx(PyList_GET_ITEM(value, array_cntr_1))) == NULL) {
14559 object->array[array_cntr_1] = *(struct srvsvc_NetTransportInfo0 *)pytalloc_get_ptr(PyList_GET_ITEM(value, array_cntr_1));
14566 static PyGetSetDef py_srvsvc_NetTransportCtr0_getsetters[] = {
14567 { discard_const_p(char, "count"), py_srvsvc_NetTransportCtr0_get_count, py_srvsvc_NetTransportCtr0_set_count },
14568 { discard_const_p(char, "array"), py_srvsvc_NetTransportCtr0_get_array, py_srvsvc_NetTransportCtr0_set_array },
14572 static PyObject *py_srvsvc_NetTransportCtr0_new(PyTypeObject *type, PyObject *args, PyObject *kwargs)
14574 return pytalloc_new(struct srvsvc_NetTransportCtr0, type);
14578 static PyTypeObject srvsvc_NetTransportCtr0_Type = {
14579 PyObject_HEAD_INIT(NULL) 0,
14580 .tp_name = "srvsvc.NetTransportCtr0",
14581 .tp_getset = py_srvsvc_NetTransportCtr0_getsetters,
14582 .tp_methods = NULL,
14583 .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
14584 .tp_basicsize = sizeof(pytalloc_Object),
14585 .tp_new = py_srvsvc_NetTransportCtr0_new,
14589 static PyObject *py_srvsvc_NetTransportInfo1_get_vcs(PyObject *obj, void *closure)
14591 struct srvsvc_NetTransportInfo1 *object = (struct srvsvc_NetTransportInfo1 *)pytalloc_get_ptr(obj);
14593 py_vcs = PyInt_FromLong(object->vcs);
14597 static int py_srvsvc_NetTransportInfo1_set_vcs(PyObject *py_obj, PyObject *value, void *closure)
14599 struct srvsvc_NetTransportInfo1 *object = (struct srvsvc_NetTransportInfo1 *)pytalloc_get_ptr(py_obj);
14600 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
14601 object->vcs = PyInt_AsLong(value);
14605 static PyObject *py_srvsvc_NetTransportInfo1_get_name(PyObject *obj, void *closure)
14607 struct srvsvc_NetTransportInfo1 *object = (struct srvsvc_NetTransportInfo1 *)pytalloc_get_ptr(obj);
14609 if (object->name == NULL) {
14611 Py_INCREF(py_name);
14613 if (object->name == NULL) {
14615 Py_INCREF(py_name);
14617 py_name = PyUnicode_Decode(object->name, strlen(object->name), "utf-8", "ignore");
14623 static int py_srvsvc_NetTransportInfo1_set_name(PyObject *py_obj, PyObject *value, void *closure)
14625 struct srvsvc_NetTransportInfo1 *object = (struct srvsvc_NetTransportInfo1 *)pytalloc_get_ptr(py_obj);
14626 if (value == Py_None) {
14627 object->name = NULL;
14629 object->name = NULL;
14630 if (PyUnicode_Check(value)) {
14631 object->name = PyString_AS_STRING(PyUnicode_AsEncodedString(value, "utf-8", "ignore"));
14632 } else if (PyString_Check(value)) {
14633 object->name = PyString_AS_STRING(value);
14635 PyErr_Format(PyExc_TypeError, "Expected string or unicode object, got %s", Py_TYPE(value)->tp_name);
14642 static PyObject *py_srvsvc_NetTransportInfo1_get_addr(PyObject *obj, void *closure)
14644 struct srvsvc_NetTransportInfo1 *object = (struct srvsvc_NetTransportInfo1 *)pytalloc_get_ptr(obj);
14646 if (object->addr == NULL) {
14648 Py_INCREF(py_addr);
14650 py_addr = PyList_New(object->addr_len);
14651 if (py_addr == NULL) {
14656 for (addr_cntr_1 = 0; addr_cntr_1 < object->addr_len; addr_cntr_1++) {
14657 PyObject *py_addr_1;
14658 py_addr_1 = PyInt_FromLong(object->addr[addr_cntr_1]);
14659 PyList_SetItem(py_addr, addr_cntr_1, py_addr_1);
14666 static int py_srvsvc_NetTransportInfo1_set_addr(PyObject *py_obj, PyObject *value, void *closure)
14668 struct srvsvc_NetTransportInfo1 *object = (struct srvsvc_NetTransportInfo1 *)pytalloc_get_ptr(py_obj);
14669 talloc_unlink(pytalloc_get_mem_ctx(py_obj), object->addr);
14670 if (value == Py_None) {
14671 object->addr = NULL;
14673 object->addr = NULL;
14674 PY_CHECK_TYPE(&PyList_Type, value, return -1;);
14677 object->addr = talloc_array_ptrtype(pytalloc_get_mem_ctx(py_obj), object->addr, PyList_GET_SIZE(value));
14678 if (!object->addr) { return -1;; }
14679 talloc_set_name_const(object->addr, "ARRAY: object->addr");
14680 for (addr_cntr_1 = 0; addr_cntr_1 < PyList_GET_SIZE(value); addr_cntr_1++) {
14681 PY_CHECK_TYPE(&PyInt_Type, PyList_GET_ITEM(value, addr_cntr_1), return -1;);
14682 object->addr[addr_cntr_1] = PyInt_AsLong(PyList_GET_ITEM(value, addr_cntr_1));
14689 static PyObject *py_srvsvc_NetTransportInfo1_get_addr_len(PyObject *obj, void *closure)
14691 struct srvsvc_NetTransportInfo1 *object = (struct srvsvc_NetTransportInfo1 *)pytalloc_get_ptr(obj);
14692 PyObject *py_addr_len;
14693 py_addr_len = PyInt_FromLong(object->addr_len);
14694 return py_addr_len;
14697 static int py_srvsvc_NetTransportInfo1_set_addr_len(PyObject *py_obj, PyObject *value, void *closure)
14699 struct srvsvc_NetTransportInfo1 *object = (struct srvsvc_NetTransportInfo1 *)pytalloc_get_ptr(py_obj);
14700 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
14701 object->addr_len = PyInt_AsLong(value);
14705 static PyObject *py_srvsvc_NetTransportInfo1_get_net_addr(PyObject *obj, void *closure)
14707 struct srvsvc_NetTransportInfo1 *object = (struct srvsvc_NetTransportInfo1 *)pytalloc_get_ptr(obj);
14708 PyObject *py_net_addr;
14709 if (object->net_addr == NULL) {
14710 py_net_addr = Py_None;
14711 Py_INCREF(py_net_addr);
14713 if (object->net_addr == NULL) {
14714 py_net_addr = Py_None;
14715 Py_INCREF(py_net_addr);
14717 py_net_addr = PyUnicode_Decode(object->net_addr, strlen(object->net_addr), "utf-8", "ignore");
14720 return py_net_addr;
14723 static int py_srvsvc_NetTransportInfo1_set_net_addr(PyObject *py_obj, PyObject *value, void *closure)
14725 struct srvsvc_NetTransportInfo1 *object = (struct srvsvc_NetTransportInfo1 *)pytalloc_get_ptr(py_obj);
14726 if (value == Py_None) {
14727 object->net_addr = NULL;
14729 object->net_addr = NULL;
14730 if (PyUnicode_Check(value)) {
14731 object->net_addr = PyString_AS_STRING(PyUnicode_AsEncodedString(value, "utf-8", "ignore"));
14732 } else if (PyString_Check(value)) {
14733 object->net_addr = PyString_AS_STRING(value);
14735 PyErr_Format(PyExc_TypeError, "Expected string or unicode object, got %s", Py_TYPE(value)->tp_name);
14742 static PyObject *py_srvsvc_NetTransportInfo1_get_domain(PyObject *obj, void *closure)
14744 struct srvsvc_NetTransportInfo1 *object = (struct srvsvc_NetTransportInfo1 *)pytalloc_get_ptr(obj);
14745 PyObject *py_domain;
14746 if (object->domain == NULL) {
14747 py_domain = Py_None;
14748 Py_INCREF(py_domain);
14750 if (object->domain == NULL) {
14751 py_domain = Py_None;
14752 Py_INCREF(py_domain);
14754 py_domain = PyUnicode_Decode(object->domain, strlen(object->domain), "utf-8", "ignore");
14760 static int py_srvsvc_NetTransportInfo1_set_domain(PyObject *py_obj, PyObject *value, void *closure)
14762 struct srvsvc_NetTransportInfo1 *object = (struct srvsvc_NetTransportInfo1 *)pytalloc_get_ptr(py_obj);
14763 if (value == Py_None) {
14764 object->domain = NULL;
14766 object->domain = NULL;
14767 if (PyUnicode_Check(value)) {
14768 object->domain = PyString_AS_STRING(PyUnicode_AsEncodedString(value, "utf-8", "ignore"));
14769 } else if (PyString_Check(value)) {
14770 object->domain = PyString_AS_STRING(value);
14772 PyErr_Format(PyExc_TypeError, "Expected string or unicode object, got %s", Py_TYPE(value)->tp_name);
14779 static PyGetSetDef py_srvsvc_NetTransportInfo1_getsetters[] = {
14780 { discard_const_p(char, "vcs"), py_srvsvc_NetTransportInfo1_get_vcs, py_srvsvc_NetTransportInfo1_set_vcs },
14781 { discard_const_p(char, "name"), py_srvsvc_NetTransportInfo1_get_name, py_srvsvc_NetTransportInfo1_set_name },
14782 { discard_const_p(char, "addr"), py_srvsvc_NetTransportInfo1_get_addr, py_srvsvc_NetTransportInfo1_set_addr },
14783 { discard_const_p(char, "addr_len"), py_srvsvc_NetTransportInfo1_get_addr_len, py_srvsvc_NetTransportInfo1_set_addr_len },
14784 { discard_const_p(char, "net_addr"), py_srvsvc_NetTransportInfo1_get_net_addr, py_srvsvc_NetTransportInfo1_set_net_addr },
14785 { discard_const_p(char, "domain"), py_srvsvc_NetTransportInfo1_get_domain, py_srvsvc_NetTransportInfo1_set_domain },
14789 static PyObject *py_srvsvc_NetTransportInfo1_new(PyTypeObject *type, PyObject *args, PyObject *kwargs)
14791 return pytalloc_new(struct srvsvc_NetTransportInfo1, type);
14795 static PyTypeObject srvsvc_NetTransportInfo1_Type = {
14796 PyObject_HEAD_INIT(NULL) 0,
14797 .tp_name = "srvsvc.NetTransportInfo1",
14798 .tp_getset = py_srvsvc_NetTransportInfo1_getsetters,
14799 .tp_methods = NULL,
14800 .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
14801 .tp_basicsize = sizeof(pytalloc_Object),
14802 .tp_new = py_srvsvc_NetTransportInfo1_new,
14806 static PyObject *py_srvsvc_NetTransportCtr1_get_count(PyObject *obj, void *closure)
14808 struct srvsvc_NetTransportCtr1 *object = (struct srvsvc_NetTransportCtr1 *)pytalloc_get_ptr(obj);
14809 PyObject *py_count;
14810 py_count = PyInt_FromLong(object->count);
14814 static int py_srvsvc_NetTransportCtr1_set_count(PyObject *py_obj, PyObject *value, void *closure)
14816 struct srvsvc_NetTransportCtr1 *object = (struct srvsvc_NetTransportCtr1 *)pytalloc_get_ptr(py_obj);
14817 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
14818 object->count = PyInt_AsLong(value);
14822 static PyObject *py_srvsvc_NetTransportCtr1_get_array(PyObject *obj, void *closure)
14824 struct srvsvc_NetTransportCtr1 *object = (struct srvsvc_NetTransportCtr1 *)pytalloc_get_ptr(obj);
14825 PyObject *py_array;
14826 if (object->array == NULL) {
14827 py_array = Py_None;
14828 Py_INCREF(py_array);
14830 py_array = PyList_New(object->count);
14831 if (py_array == NULL) {
14836 for (array_cntr_1 = 0; array_cntr_1 < object->count; array_cntr_1++) {
14837 PyObject *py_array_1;
14838 py_array_1 = pytalloc_reference_ex(&srvsvc_NetTransportInfo1_Type, object->array, &object->array[array_cntr_1]);
14839 PyList_SetItem(py_array, array_cntr_1, py_array_1);
14846 static int py_srvsvc_NetTransportCtr1_set_array(PyObject *py_obj, PyObject *value, void *closure)
14848 struct srvsvc_NetTransportCtr1 *object = (struct srvsvc_NetTransportCtr1 *)pytalloc_get_ptr(py_obj);
14849 talloc_unlink(pytalloc_get_mem_ctx(py_obj), object->array);
14850 if (value == Py_None) {
14851 object->array = NULL;
14853 object->array = NULL;
14854 PY_CHECK_TYPE(&PyList_Type, value, return -1;);
14857 object->array = talloc_array_ptrtype(pytalloc_get_mem_ctx(py_obj), object->array, PyList_GET_SIZE(value));
14858 if (!object->array) { return -1;; }
14859 talloc_set_name_const(object->array, "ARRAY: object->array");
14860 for (array_cntr_1 = 0; array_cntr_1 < PyList_GET_SIZE(value); array_cntr_1++) {
14861 PY_CHECK_TYPE(&srvsvc_NetTransportInfo1_Type, PyList_GET_ITEM(value, array_cntr_1), return -1;);
14862 if (talloc_reference(object->array, pytalloc_get_mem_ctx(PyList_GET_ITEM(value, array_cntr_1))) == NULL) {
14866 object->array[array_cntr_1] = *(struct srvsvc_NetTransportInfo1 *)pytalloc_get_ptr(PyList_GET_ITEM(value, array_cntr_1));
14873 static PyGetSetDef py_srvsvc_NetTransportCtr1_getsetters[] = {
14874 { discard_const_p(char, "count"), py_srvsvc_NetTransportCtr1_get_count, py_srvsvc_NetTransportCtr1_set_count },
14875 { discard_const_p(char, "array"), py_srvsvc_NetTransportCtr1_get_array, py_srvsvc_NetTransportCtr1_set_array },
14879 static PyObject *py_srvsvc_NetTransportCtr1_new(PyTypeObject *type, PyObject *args, PyObject *kwargs)
14881 return pytalloc_new(struct srvsvc_NetTransportCtr1, type);
14885 static PyTypeObject srvsvc_NetTransportCtr1_Type = {
14886 PyObject_HEAD_INIT(NULL) 0,
14887 .tp_name = "srvsvc.NetTransportCtr1",
14888 .tp_getset = py_srvsvc_NetTransportCtr1_getsetters,
14889 .tp_methods = NULL,
14890 .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
14891 .tp_basicsize = sizeof(pytalloc_Object),
14892 .tp_new = py_srvsvc_NetTransportCtr1_new,
14896 static PyObject *py_srvsvc_NetTransportInfo2_get_vcs(PyObject *obj, void *closure)
14898 struct srvsvc_NetTransportInfo2 *object = (struct srvsvc_NetTransportInfo2 *)pytalloc_get_ptr(obj);
14900 py_vcs = PyInt_FromLong(object->vcs);
14904 static int py_srvsvc_NetTransportInfo2_set_vcs(PyObject *py_obj, PyObject *value, void *closure)
14906 struct srvsvc_NetTransportInfo2 *object = (struct srvsvc_NetTransportInfo2 *)pytalloc_get_ptr(py_obj);
14907 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
14908 object->vcs = PyInt_AsLong(value);
14912 static PyObject *py_srvsvc_NetTransportInfo2_get_name(PyObject *obj, void *closure)
14914 struct srvsvc_NetTransportInfo2 *object = (struct srvsvc_NetTransportInfo2 *)pytalloc_get_ptr(obj);
14916 if (object->name == NULL) {
14918 Py_INCREF(py_name);
14920 if (object->name == NULL) {
14922 Py_INCREF(py_name);
14924 py_name = PyUnicode_Decode(object->name, strlen(object->name), "utf-8", "ignore");
14930 static int py_srvsvc_NetTransportInfo2_set_name(PyObject *py_obj, PyObject *value, void *closure)
14932 struct srvsvc_NetTransportInfo2 *object = (struct srvsvc_NetTransportInfo2 *)pytalloc_get_ptr(py_obj);
14933 if (value == Py_None) {
14934 object->name = NULL;
14936 object->name = NULL;
14937 if (PyUnicode_Check(value)) {
14938 object->name = PyString_AS_STRING(PyUnicode_AsEncodedString(value, "utf-8", "ignore"));
14939 } else if (PyString_Check(value)) {
14940 object->name = PyString_AS_STRING(value);
14942 PyErr_Format(PyExc_TypeError, "Expected string or unicode object, got %s", Py_TYPE(value)->tp_name);
14949 static PyObject *py_srvsvc_NetTransportInfo2_get_addr(PyObject *obj, void *closure)
14951 struct srvsvc_NetTransportInfo2 *object = (struct srvsvc_NetTransportInfo2 *)pytalloc_get_ptr(obj);
14953 if (object->addr == NULL) {
14955 Py_INCREF(py_addr);
14957 py_addr = PyList_New(object->addr_len);
14958 if (py_addr == NULL) {
14963 for (addr_cntr_1 = 0; addr_cntr_1 < object->addr_len; addr_cntr_1++) {
14964 PyObject *py_addr_1;
14965 py_addr_1 = PyInt_FromLong(object->addr[addr_cntr_1]);
14966 PyList_SetItem(py_addr, addr_cntr_1, py_addr_1);
14973 static int py_srvsvc_NetTransportInfo2_set_addr(PyObject *py_obj, PyObject *value, void *closure)
14975 struct srvsvc_NetTransportInfo2 *object = (struct srvsvc_NetTransportInfo2 *)pytalloc_get_ptr(py_obj);
14976 talloc_unlink(pytalloc_get_mem_ctx(py_obj), object->addr);
14977 if (value == Py_None) {
14978 object->addr = NULL;
14980 object->addr = NULL;
14981 PY_CHECK_TYPE(&PyList_Type, value, return -1;);
14984 object->addr = talloc_array_ptrtype(pytalloc_get_mem_ctx(py_obj), object->addr, PyList_GET_SIZE(value));
14985 if (!object->addr) { return -1;; }
14986 talloc_set_name_const(object->addr, "ARRAY: object->addr");
14987 for (addr_cntr_1 = 0; addr_cntr_1 < PyList_GET_SIZE(value); addr_cntr_1++) {
14988 PY_CHECK_TYPE(&PyInt_Type, PyList_GET_ITEM(value, addr_cntr_1), return -1;);
14989 object->addr[addr_cntr_1] = PyInt_AsLong(PyList_GET_ITEM(value, addr_cntr_1));
14996 static PyObject *py_srvsvc_NetTransportInfo2_get_addr_len(PyObject *obj, void *closure)
14998 struct srvsvc_NetTransportInfo2 *object = (struct srvsvc_NetTransportInfo2 *)pytalloc_get_ptr(obj);
14999 PyObject *py_addr_len;
15000 py_addr_len = PyInt_FromLong(object->addr_len);
15001 return py_addr_len;
15004 static int py_srvsvc_NetTransportInfo2_set_addr_len(PyObject *py_obj, PyObject *value, void *closure)
15006 struct srvsvc_NetTransportInfo2 *object = (struct srvsvc_NetTransportInfo2 *)pytalloc_get_ptr(py_obj);
15007 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
15008 object->addr_len = PyInt_AsLong(value);
15012 static PyObject *py_srvsvc_NetTransportInfo2_get_net_addr(PyObject *obj, void *closure)
15014 struct srvsvc_NetTransportInfo2 *object = (struct srvsvc_NetTransportInfo2 *)pytalloc_get_ptr(obj);
15015 PyObject *py_net_addr;
15016 if (object->net_addr == NULL) {
15017 py_net_addr = Py_None;
15018 Py_INCREF(py_net_addr);
15020 if (object->net_addr == NULL) {
15021 py_net_addr = Py_None;
15022 Py_INCREF(py_net_addr);
15024 py_net_addr = PyUnicode_Decode(object->net_addr, strlen(object->net_addr), "utf-8", "ignore");
15027 return py_net_addr;
15030 static int py_srvsvc_NetTransportInfo2_set_net_addr(PyObject *py_obj, PyObject *value, void *closure)
15032 struct srvsvc_NetTransportInfo2 *object = (struct srvsvc_NetTransportInfo2 *)pytalloc_get_ptr(py_obj);
15033 if (value == Py_None) {
15034 object->net_addr = NULL;
15036 object->net_addr = NULL;
15037 if (PyUnicode_Check(value)) {
15038 object->net_addr = PyString_AS_STRING(PyUnicode_AsEncodedString(value, "utf-8", "ignore"));
15039 } else if (PyString_Check(value)) {
15040 object->net_addr = PyString_AS_STRING(value);
15042 PyErr_Format(PyExc_TypeError, "Expected string or unicode object, got %s", Py_TYPE(value)->tp_name);
15049 static PyObject *py_srvsvc_NetTransportInfo2_get_domain(PyObject *obj, void *closure)
15051 struct srvsvc_NetTransportInfo2 *object = (struct srvsvc_NetTransportInfo2 *)pytalloc_get_ptr(obj);
15052 PyObject *py_domain;
15053 if (object->domain == NULL) {
15054 py_domain = Py_None;
15055 Py_INCREF(py_domain);
15057 if (object->domain == NULL) {
15058 py_domain = Py_None;
15059 Py_INCREF(py_domain);
15061 py_domain = PyUnicode_Decode(object->domain, strlen(object->domain), "utf-8", "ignore");
15067 static int py_srvsvc_NetTransportInfo2_set_domain(PyObject *py_obj, PyObject *value, void *closure)
15069 struct srvsvc_NetTransportInfo2 *object = (struct srvsvc_NetTransportInfo2 *)pytalloc_get_ptr(py_obj);
15070 if (value == Py_None) {
15071 object->domain = NULL;
15073 object->domain = NULL;
15074 if (PyUnicode_Check(value)) {
15075 object->domain = PyString_AS_STRING(PyUnicode_AsEncodedString(value, "utf-8", "ignore"));
15076 } else if (PyString_Check(value)) {
15077 object->domain = PyString_AS_STRING(value);
15079 PyErr_Format(PyExc_TypeError, "Expected string or unicode object, got %s", Py_TYPE(value)->tp_name);
15086 static PyObject *py_srvsvc_NetTransportInfo2_get_unknown(PyObject *obj, void *closure)
15088 struct srvsvc_NetTransportInfo2 *object = (struct srvsvc_NetTransportInfo2 *)pytalloc_get_ptr(obj);
15089 PyObject *py_unknown;
15090 py_unknown = PyInt_FromLong(object->unknown);
15094 static int py_srvsvc_NetTransportInfo2_set_unknown(PyObject *py_obj, PyObject *value, void *closure)
15096 struct srvsvc_NetTransportInfo2 *object = (struct srvsvc_NetTransportInfo2 *)pytalloc_get_ptr(py_obj);
15097 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
15098 object->unknown = PyInt_AsLong(value);
15102 static PyGetSetDef py_srvsvc_NetTransportInfo2_getsetters[] = {
15103 { discard_const_p(char, "vcs"), py_srvsvc_NetTransportInfo2_get_vcs, py_srvsvc_NetTransportInfo2_set_vcs },
15104 { discard_const_p(char, "name"), py_srvsvc_NetTransportInfo2_get_name, py_srvsvc_NetTransportInfo2_set_name },
15105 { discard_const_p(char, "addr"), py_srvsvc_NetTransportInfo2_get_addr, py_srvsvc_NetTransportInfo2_set_addr },
15106 { discard_const_p(char, "addr_len"), py_srvsvc_NetTransportInfo2_get_addr_len, py_srvsvc_NetTransportInfo2_set_addr_len },
15107 { discard_const_p(char, "net_addr"), py_srvsvc_NetTransportInfo2_get_net_addr, py_srvsvc_NetTransportInfo2_set_net_addr },
15108 { discard_const_p(char, "domain"), py_srvsvc_NetTransportInfo2_get_domain, py_srvsvc_NetTransportInfo2_set_domain },
15109 { discard_const_p(char, "unknown"), py_srvsvc_NetTransportInfo2_get_unknown, py_srvsvc_NetTransportInfo2_set_unknown },
15113 static PyObject *py_srvsvc_NetTransportInfo2_new(PyTypeObject *type, PyObject *args, PyObject *kwargs)
15115 return pytalloc_new(struct srvsvc_NetTransportInfo2, type);
15119 static PyTypeObject srvsvc_NetTransportInfo2_Type = {
15120 PyObject_HEAD_INIT(NULL) 0,
15121 .tp_name = "srvsvc.NetTransportInfo2",
15122 .tp_getset = py_srvsvc_NetTransportInfo2_getsetters,
15123 .tp_methods = NULL,
15124 .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
15125 .tp_basicsize = sizeof(pytalloc_Object),
15126 .tp_new = py_srvsvc_NetTransportInfo2_new,
15130 static PyObject *py_srvsvc_NetTransportCtr2_get_count(PyObject *obj, void *closure)
15132 struct srvsvc_NetTransportCtr2 *object = (struct srvsvc_NetTransportCtr2 *)pytalloc_get_ptr(obj);
15133 PyObject *py_count;
15134 py_count = PyInt_FromLong(object->count);
15138 static int py_srvsvc_NetTransportCtr2_set_count(PyObject *py_obj, PyObject *value, void *closure)
15140 struct srvsvc_NetTransportCtr2 *object = (struct srvsvc_NetTransportCtr2 *)pytalloc_get_ptr(py_obj);
15141 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
15142 object->count = PyInt_AsLong(value);
15146 static PyObject *py_srvsvc_NetTransportCtr2_get_array(PyObject *obj, void *closure)
15148 struct srvsvc_NetTransportCtr2 *object = (struct srvsvc_NetTransportCtr2 *)pytalloc_get_ptr(obj);
15149 PyObject *py_array;
15150 if (object->array == NULL) {
15151 py_array = Py_None;
15152 Py_INCREF(py_array);
15154 py_array = PyList_New(object->count);
15155 if (py_array == NULL) {
15160 for (array_cntr_1 = 0; array_cntr_1 < object->count; array_cntr_1++) {
15161 PyObject *py_array_1;
15162 py_array_1 = pytalloc_reference_ex(&srvsvc_NetTransportInfo2_Type, object->array, &object->array[array_cntr_1]);
15163 PyList_SetItem(py_array, array_cntr_1, py_array_1);
15170 static int py_srvsvc_NetTransportCtr2_set_array(PyObject *py_obj, PyObject *value, void *closure)
15172 struct srvsvc_NetTransportCtr2 *object = (struct srvsvc_NetTransportCtr2 *)pytalloc_get_ptr(py_obj);
15173 talloc_unlink(pytalloc_get_mem_ctx(py_obj), object->array);
15174 if (value == Py_None) {
15175 object->array = NULL;
15177 object->array = NULL;
15178 PY_CHECK_TYPE(&PyList_Type, value, return -1;);
15181 object->array = talloc_array_ptrtype(pytalloc_get_mem_ctx(py_obj), object->array, PyList_GET_SIZE(value));
15182 if (!object->array) { return -1;; }
15183 talloc_set_name_const(object->array, "ARRAY: object->array");
15184 for (array_cntr_1 = 0; array_cntr_1 < PyList_GET_SIZE(value); array_cntr_1++) {
15185 PY_CHECK_TYPE(&srvsvc_NetTransportInfo2_Type, PyList_GET_ITEM(value, array_cntr_1), return -1;);
15186 if (talloc_reference(object->array, pytalloc_get_mem_ctx(PyList_GET_ITEM(value, array_cntr_1))) == NULL) {
15190 object->array[array_cntr_1] = *(struct srvsvc_NetTransportInfo2 *)pytalloc_get_ptr(PyList_GET_ITEM(value, array_cntr_1));
15197 static PyGetSetDef py_srvsvc_NetTransportCtr2_getsetters[] = {
15198 { discard_const_p(char, "count"), py_srvsvc_NetTransportCtr2_get_count, py_srvsvc_NetTransportCtr2_set_count },
15199 { discard_const_p(char, "array"), py_srvsvc_NetTransportCtr2_get_array, py_srvsvc_NetTransportCtr2_set_array },
15203 static PyObject *py_srvsvc_NetTransportCtr2_new(PyTypeObject *type, PyObject *args, PyObject *kwargs)
15205 return pytalloc_new(struct srvsvc_NetTransportCtr2, type);
15209 static PyTypeObject srvsvc_NetTransportCtr2_Type = {
15210 PyObject_HEAD_INIT(NULL) 0,
15211 .tp_name = "srvsvc.NetTransportCtr2",
15212 .tp_getset = py_srvsvc_NetTransportCtr2_getsetters,
15213 .tp_methods = NULL,
15214 .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
15215 .tp_basicsize = sizeof(pytalloc_Object),
15216 .tp_new = py_srvsvc_NetTransportCtr2_new,
15220 static PyObject *py_srvsvc_NetTransportInfo3_get_vcs(PyObject *obj, void *closure)
15222 struct srvsvc_NetTransportInfo3 *object = (struct srvsvc_NetTransportInfo3 *)pytalloc_get_ptr(obj);
15224 py_vcs = PyInt_FromLong(object->vcs);
15228 static int py_srvsvc_NetTransportInfo3_set_vcs(PyObject *py_obj, PyObject *value, void *closure)
15230 struct srvsvc_NetTransportInfo3 *object = (struct srvsvc_NetTransportInfo3 *)pytalloc_get_ptr(py_obj);
15231 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
15232 object->vcs = PyInt_AsLong(value);
15236 static PyObject *py_srvsvc_NetTransportInfo3_get_name(PyObject *obj, void *closure)
15238 struct srvsvc_NetTransportInfo3 *object = (struct srvsvc_NetTransportInfo3 *)pytalloc_get_ptr(obj);
15240 if (object->name == NULL) {
15242 Py_INCREF(py_name);
15244 if (object->name == NULL) {
15246 Py_INCREF(py_name);
15248 py_name = PyUnicode_Decode(object->name, strlen(object->name), "utf-8", "ignore");
15254 static int py_srvsvc_NetTransportInfo3_set_name(PyObject *py_obj, PyObject *value, void *closure)
15256 struct srvsvc_NetTransportInfo3 *object = (struct srvsvc_NetTransportInfo3 *)pytalloc_get_ptr(py_obj);
15257 if (value == Py_None) {
15258 object->name = NULL;
15260 object->name = NULL;
15261 if (PyUnicode_Check(value)) {
15262 object->name = PyString_AS_STRING(PyUnicode_AsEncodedString(value, "utf-8", "ignore"));
15263 } else if (PyString_Check(value)) {
15264 object->name = PyString_AS_STRING(value);
15266 PyErr_Format(PyExc_TypeError, "Expected string or unicode object, got %s", Py_TYPE(value)->tp_name);
15273 static PyObject *py_srvsvc_NetTransportInfo3_get_addr(PyObject *obj, void *closure)
15275 struct srvsvc_NetTransportInfo3 *object = (struct srvsvc_NetTransportInfo3 *)pytalloc_get_ptr(obj);
15277 if (object->addr == NULL) {
15279 Py_INCREF(py_addr);
15281 py_addr = PyList_New(object->addr_len);
15282 if (py_addr == NULL) {
15287 for (addr_cntr_1 = 0; addr_cntr_1 < object->addr_len; addr_cntr_1++) {
15288 PyObject *py_addr_1;
15289 py_addr_1 = PyInt_FromLong(object->addr[addr_cntr_1]);
15290 PyList_SetItem(py_addr, addr_cntr_1, py_addr_1);
15297 static int py_srvsvc_NetTransportInfo3_set_addr(PyObject *py_obj, PyObject *value, void *closure)
15299 struct srvsvc_NetTransportInfo3 *object = (struct srvsvc_NetTransportInfo3 *)pytalloc_get_ptr(py_obj);
15300 talloc_unlink(pytalloc_get_mem_ctx(py_obj), object->addr);
15301 if (value == Py_None) {
15302 object->addr = NULL;
15304 object->addr = NULL;
15305 PY_CHECK_TYPE(&PyList_Type, value, return -1;);
15308 object->addr = talloc_array_ptrtype(pytalloc_get_mem_ctx(py_obj), object->addr, PyList_GET_SIZE(value));
15309 if (!object->addr) { return -1;; }
15310 talloc_set_name_const(object->addr, "ARRAY: object->addr");
15311 for (addr_cntr_1 = 0; addr_cntr_1 < PyList_GET_SIZE(value); addr_cntr_1++) {
15312 PY_CHECK_TYPE(&PyInt_Type, PyList_GET_ITEM(value, addr_cntr_1), return -1;);
15313 object->addr[addr_cntr_1] = PyInt_AsLong(PyList_GET_ITEM(value, addr_cntr_1));
15320 static PyObject *py_srvsvc_NetTransportInfo3_get_addr_len(PyObject *obj, void *closure)
15322 struct srvsvc_NetTransportInfo3 *object = (struct srvsvc_NetTransportInfo3 *)pytalloc_get_ptr(obj);
15323 PyObject *py_addr_len;
15324 py_addr_len = PyInt_FromLong(object->addr_len);
15325 return py_addr_len;
15328 static int py_srvsvc_NetTransportInfo3_set_addr_len(PyObject *py_obj, PyObject *value, void *closure)
15330 struct srvsvc_NetTransportInfo3 *object = (struct srvsvc_NetTransportInfo3 *)pytalloc_get_ptr(py_obj);
15331 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
15332 object->addr_len = PyInt_AsLong(value);
15336 static PyObject *py_srvsvc_NetTransportInfo3_get_net_addr(PyObject *obj, void *closure)
15338 struct srvsvc_NetTransportInfo3 *object = (struct srvsvc_NetTransportInfo3 *)pytalloc_get_ptr(obj);
15339 PyObject *py_net_addr;
15340 if (object->net_addr == NULL) {
15341 py_net_addr = Py_None;
15342 Py_INCREF(py_net_addr);
15344 if (object->net_addr == NULL) {
15345 py_net_addr = Py_None;
15346 Py_INCREF(py_net_addr);
15348 py_net_addr = PyUnicode_Decode(object->net_addr, strlen(object->net_addr), "utf-8", "ignore");
15351 return py_net_addr;
15354 static int py_srvsvc_NetTransportInfo3_set_net_addr(PyObject *py_obj, PyObject *value, void *closure)
15356 struct srvsvc_NetTransportInfo3 *object = (struct srvsvc_NetTransportInfo3 *)pytalloc_get_ptr(py_obj);
15357 if (value == Py_None) {
15358 object->net_addr = NULL;
15360 object->net_addr = NULL;
15361 if (PyUnicode_Check(value)) {
15362 object->net_addr = PyString_AS_STRING(PyUnicode_AsEncodedString(value, "utf-8", "ignore"));
15363 } else if (PyString_Check(value)) {
15364 object->net_addr = PyString_AS_STRING(value);
15366 PyErr_Format(PyExc_TypeError, "Expected string or unicode object, got %s", Py_TYPE(value)->tp_name);
15373 static PyObject *py_srvsvc_NetTransportInfo3_get_domain(PyObject *obj, void *closure)
15375 struct srvsvc_NetTransportInfo3 *object = (struct srvsvc_NetTransportInfo3 *)pytalloc_get_ptr(obj);
15376 PyObject *py_domain;
15377 if (object->domain == NULL) {
15378 py_domain = Py_None;
15379 Py_INCREF(py_domain);
15381 if (object->domain == NULL) {
15382 py_domain = Py_None;
15383 Py_INCREF(py_domain);
15385 py_domain = PyUnicode_Decode(object->domain, strlen(object->domain), "utf-8", "ignore");
15391 static int py_srvsvc_NetTransportInfo3_set_domain(PyObject *py_obj, PyObject *value, void *closure)
15393 struct srvsvc_NetTransportInfo3 *object = (struct srvsvc_NetTransportInfo3 *)pytalloc_get_ptr(py_obj);
15394 if (value == Py_None) {
15395 object->domain = NULL;
15397 object->domain = NULL;
15398 if (PyUnicode_Check(value)) {
15399 object->domain = PyString_AS_STRING(PyUnicode_AsEncodedString(value, "utf-8", "ignore"));
15400 } else if (PyString_Check(value)) {
15401 object->domain = PyString_AS_STRING(value);
15403 PyErr_Format(PyExc_TypeError, "Expected string or unicode object, got %s", Py_TYPE(value)->tp_name);
15410 static PyObject *py_srvsvc_NetTransportInfo3_get_unknown1(PyObject *obj, void *closure)
15412 struct srvsvc_NetTransportInfo3 *object = (struct srvsvc_NetTransportInfo3 *)pytalloc_get_ptr(obj);
15413 PyObject *py_unknown1;
15414 py_unknown1 = PyInt_FromLong(object->unknown1);
15415 return py_unknown1;
15418 static int py_srvsvc_NetTransportInfo3_set_unknown1(PyObject *py_obj, PyObject *value, void *closure)
15420 struct srvsvc_NetTransportInfo3 *object = (struct srvsvc_NetTransportInfo3 *)pytalloc_get_ptr(py_obj);
15421 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
15422 object->unknown1 = PyInt_AsLong(value);
15426 static PyObject *py_srvsvc_NetTransportInfo3_get_unknown2(PyObject *obj, void *closure)
15428 struct srvsvc_NetTransportInfo3 *object = (struct srvsvc_NetTransportInfo3 *)pytalloc_get_ptr(obj);
15429 PyObject *py_unknown2;
15430 py_unknown2 = PyInt_FromLong(object->unknown2);
15431 return py_unknown2;
15434 static int py_srvsvc_NetTransportInfo3_set_unknown2(PyObject *py_obj, PyObject *value, void *closure)
15436 struct srvsvc_NetTransportInfo3 *object = (struct srvsvc_NetTransportInfo3 *)pytalloc_get_ptr(py_obj);
15437 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
15438 object->unknown2 = PyInt_AsLong(value);
15442 static PyObject *py_srvsvc_NetTransportInfo3_get_unknown3(PyObject *obj, void *closure)
15444 struct srvsvc_NetTransportInfo3 *object = (struct srvsvc_NetTransportInfo3 *)pytalloc_get_ptr(obj);
15445 PyObject *py_unknown3;
15446 py_unknown3 = PyList_New(256);
15447 if (py_unknown3 == NULL) {
15451 int unknown3_cntr_0;
15452 for (unknown3_cntr_0 = 0; unknown3_cntr_0 < 256; unknown3_cntr_0++) {
15453 PyObject *py_unknown3_0;
15454 py_unknown3_0 = PyInt_FromLong(object->unknown3[unknown3_cntr_0]);
15455 PyList_SetItem(py_unknown3, unknown3_cntr_0, py_unknown3_0);
15458 return py_unknown3;
15461 static int py_srvsvc_NetTransportInfo3_set_unknown3(PyObject *py_obj, PyObject *value, void *closure)
15463 struct srvsvc_NetTransportInfo3 *object = (struct srvsvc_NetTransportInfo3 *)pytalloc_get_ptr(py_obj);
15464 PY_CHECK_TYPE(&PyList_Type, value, return -1;);
15466 int unknown3_cntr_0;
15467 for (unknown3_cntr_0 = 0; unknown3_cntr_0 < PyList_GET_SIZE(value); unknown3_cntr_0++) {
15468 PY_CHECK_TYPE(&PyInt_Type, PyList_GET_ITEM(value, unknown3_cntr_0), return -1;);
15469 object->unknown3[unknown3_cntr_0] = PyInt_AsLong(PyList_GET_ITEM(value, unknown3_cntr_0));
15475 static PyGetSetDef py_srvsvc_NetTransportInfo3_getsetters[] = {
15476 { discard_const_p(char, "vcs"), py_srvsvc_NetTransportInfo3_get_vcs, py_srvsvc_NetTransportInfo3_set_vcs },
15477 { discard_const_p(char, "name"), py_srvsvc_NetTransportInfo3_get_name, py_srvsvc_NetTransportInfo3_set_name },
15478 { discard_const_p(char, "addr"), py_srvsvc_NetTransportInfo3_get_addr, py_srvsvc_NetTransportInfo3_set_addr },
15479 { discard_const_p(char, "addr_len"), py_srvsvc_NetTransportInfo3_get_addr_len, py_srvsvc_NetTransportInfo3_set_addr_len },
15480 { discard_const_p(char, "net_addr"), py_srvsvc_NetTransportInfo3_get_net_addr, py_srvsvc_NetTransportInfo3_set_net_addr },
15481 { discard_const_p(char, "domain"), py_srvsvc_NetTransportInfo3_get_domain, py_srvsvc_NetTransportInfo3_set_domain },
15482 { discard_const_p(char, "unknown1"), py_srvsvc_NetTransportInfo3_get_unknown1, py_srvsvc_NetTransportInfo3_set_unknown1 },
15483 { discard_const_p(char, "unknown2"), py_srvsvc_NetTransportInfo3_get_unknown2, py_srvsvc_NetTransportInfo3_set_unknown2 },
15484 { discard_const_p(char, "unknown3"), py_srvsvc_NetTransportInfo3_get_unknown3, py_srvsvc_NetTransportInfo3_set_unknown3 },
15488 static PyObject *py_srvsvc_NetTransportInfo3_new(PyTypeObject *type, PyObject *args, PyObject *kwargs)
15490 return pytalloc_new(struct srvsvc_NetTransportInfo3, type);
15494 static PyTypeObject srvsvc_NetTransportInfo3_Type = {
15495 PyObject_HEAD_INIT(NULL) 0,
15496 .tp_name = "srvsvc.NetTransportInfo3",
15497 .tp_getset = py_srvsvc_NetTransportInfo3_getsetters,
15498 .tp_methods = NULL,
15499 .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
15500 .tp_basicsize = sizeof(pytalloc_Object),
15501 .tp_new = py_srvsvc_NetTransportInfo3_new,
15505 static PyObject *py_srvsvc_NetTransportCtr3_get_count(PyObject *obj, void *closure)
15507 struct srvsvc_NetTransportCtr3 *object = (struct srvsvc_NetTransportCtr3 *)pytalloc_get_ptr(obj);
15508 PyObject *py_count;
15509 py_count = PyInt_FromLong(object->count);
15513 static int py_srvsvc_NetTransportCtr3_set_count(PyObject *py_obj, PyObject *value, void *closure)
15515 struct srvsvc_NetTransportCtr3 *object = (struct srvsvc_NetTransportCtr3 *)pytalloc_get_ptr(py_obj);
15516 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
15517 object->count = PyInt_AsLong(value);
15521 static PyObject *py_srvsvc_NetTransportCtr3_get_array(PyObject *obj, void *closure)
15523 struct srvsvc_NetTransportCtr3 *object = (struct srvsvc_NetTransportCtr3 *)pytalloc_get_ptr(obj);
15524 PyObject *py_array;
15525 if (object->array == NULL) {
15526 py_array = Py_None;
15527 Py_INCREF(py_array);
15529 py_array = PyList_New(object->count);
15530 if (py_array == NULL) {
15535 for (array_cntr_1 = 0; array_cntr_1 < object->count; array_cntr_1++) {
15536 PyObject *py_array_1;
15537 py_array_1 = pytalloc_reference_ex(&srvsvc_NetTransportInfo3_Type, object->array, &object->array[array_cntr_1]);
15538 PyList_SetItem(py_array, array_cntr_1, py_array_1);
15545 static int py_srvsvc_NetTransportCtr3_set_array(PyObject *py_obj, PyObject *value, void *closure)
15547 struct srvsvc_NetTransportCtr3 *object = (struct srvsvc_NetTransportCtr3 *)pytalloc_get_ptr(py_obj);
15548 talloc_unlink(pytalloc_get_mem_ctx(py_obj), object->array);
15549 if (value == Py_None) {
15550 object->array = NULL;
15552 object->array = NULL;
15553 PY_CHECK_TYPE(&PyList_Type, value, return -1;);
15556 object->array = talloc_array_ptrtype(pytalloc_get_mem_ctx(py_obj), object->array, PyList_GET_SIZE(value));
15557 if (!object->array) { return -1;; }
15558 talloc_set_name_const(object->array, "ARRAY: object->array");
15559 for (array_cntr_1 = 0; array_cntr_1 < PyList_GET_SIZE(value); array_cntr_1++) {
15560 PY_CHECK_TYPE(&srvsvc_NetTransportInfo3_Type, PyList_GET_ITEM(value, array_cntr_1), return -1;);
15561 if (talloc_reference(object->array, pytalloc_get_mem_ctx(PyList_GET_ITEM(value, array_cntr_1))) == NULL) {
15565 object->array[array_cntr_1] = *(struct srvsvc_NetTransportInfo3 *)pytalloc_get_ptr(PyList_GET_ITEM(value, array_cntr_1));
15572 static PyGetSetDef py_srvsvc_NetTransportCtr3_getsetters[] = {
15573 { discard_const_p(char, "count"), py_srvsvc_NetTransportCtr3_get_count, py_srvsvc_NetTransportCtr3_set_count },
15574 { discard_const_p(char, "array"), py_srvsvc_NetTransportCtr3_get_array, py_srvsvc_NetTransportCtr3_set_array },
15578 static PyObject *py_srvsvc_NetTransportCtr3_new(PyTypeObject *type, PyObject *args, PyObject *kwargs)
15580 return pytalloc_new(struct srvsvc_NetTransportCtr3, type);
15584 static PyTypeObject srvsvc_NetTransportCtr3_Type = {
15585 PyObject_HEAD_INIT(NULL) 0,
15586 .tp_name = "srvsvc.NetTransportCtr3",
15587 .tp_getset = py_srvsvc_NetTransportCtr3_getsetters,
15588 .tp_methods = NULL,
15589 .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
15590 .tp_basicsize = sizeof(pytalloc_Object),
15591 .tp_new = py_srvsvc_NetTransportCtr3_new,
15594 static PyObject *py_import_srvsvc_NetTransportCtr(TALLOC_CTX *mem_ctx, int level, union srvsvc_NetTransportCtr *in)
15600 if (in->ctr0 == NULL) {
15604 ret = pytalloc_reference_ex(&srvsvc_NetTransportCtr0_Type, in->ctr0, in->ctr0);
15609 if (in->ctr1 == NULL) {
15613 ret = pytalloc_reference_ex(&srvsvc_NetTransportCtr1_Type, in->ctr1, in->ctr1);
15618 if (in->ctr2 == NULL) {
15622 ret = pytalloc_reference_ex(&srvsvc_NetTransportCtr2_Type, in->ctr2, in->ctr2);
15627 if (in->ctr3 == NULL) {
15631 ret = pytalloc_reference_ex(&srvsvc_NetTransportCtr3_Type, in->ctr3, in->ctr3);
15641 PyErr_SetString(PyExc_TypeError, "unknown union level");
15645 static union srvsvc_NetTransportCtr *py_export_srvsvc_NetTransportCtr(TALLOC_CTX *mem_ctx, int level, PyObject *in)
15647 union srvsvc_NetTransportCtr *ret = talloc_zero(mem_ctx, union srvsvc_NetTransportCtr);
15650 if (in == Py_None) {
15654 PY_CHECK_TYPE(&srvsvc_NetTransportCtr0_Type, in, talloc_free(ret); return NULL;);
15655 if (talloc_reference(mem_ctx, pytalloc_get_mem_ctx(in)) == NULL) {
15657 talloc_free(ret); return NULL;
15659 ret->ctr0 = (struct srvsvc_NetTransportCtr0 *)pytalloc_get_ptr(in);
15664 if (in == Py_None) {
15668 PY_CHECK_TYPE(&srvsvc_NetTransportCtr1_Type, in, talloc_free(ret); return NULL;);
15669 if (talloc_reference(mem_ctx, pytalloc_get_mem_ctx(in)) == NULL) {
15671 talloc_free(ret); return NULL;
15673 ret->ctr1 = (struct srvsvc_NetTransportCtr1 *)pytalloc_get_ptr(in);
15678 if (in == Py_None) {
15682 PY_CHECK_TYPE(&srvsvc_NetTransportCtr2_Type, in, talloc_free(ret); return NULL;);
15683 if (talloc_reference(mem_ctx, pytalloc_get_mem_ctx(in)) == NULL) {
15685 talloc_free(ret); return NULL;
15687 ret->ctr2 = (struct srvsvc_NetTransportCtr2 *)pytalloc_get_ptr(in);
15692 if (in == Py_None) {
15696 PY_CHECK_TYPE(&srvsvc_NetTransportCtr3_Type, in, talloc_free(ret); return NULL;);
15697 if (talloc_reference(mem_ctx, pytalloc_get_mem_ctx(in)) == NULL) {
15699 talloc_free(ret); return NULL;
15701 ret->ctr3 = (struct srvsvc_NetTransportCtr3 *)pytalloc_get_ptr(in);
15714 static PyObject *py_srvsvc_NetTransportInfoCtr_get_level(PyObject *obj, void *closure)
15716 struct srvsvc_NetTransportInfoCtr *object = (struct srvsvc_NetTransportInfoCtr *)pytalloc_get_ptr(obj);
15717 PyObject *py_level;
15718 py_level = PyInt_FromLong(object->level);
15722 static int py_srvsvc_NetTransportInfoCtr_set_level(PyObject *py_obj, PyObject *value, void *closure)
15724 struct srvsvc_NetTransportInfoCtr *object = (struct srvsvc_NetTransportInfoCtr *)pytalloc_get_ptr(py_obj);
15725 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
15726 object->level = PyInt_AsLong(value);
15730 static PyObject *py_srvsvc_NetTransportInfoCtr_get_ctr(PyObject *obj, void *closure)
15732 struct srvsvc_NetTransportInfoCtr *object = (struct srvsvc_NetTransportInfoCtr *)pytalloc_get_ptr(obj);
15734 py_ctr = py_import_srvsvc_NetTransportCtr(pytalloc_get_mem_ctx(obj), object->level, &object->ctr);
15735 if (py_ctr == NULL) {
15741 static int py_srvsvc_NetTransportInfoCtr_set_ctr(PyObject *py_obj, PyObject *value, void *closure)
15743 struct srvsvc_NetTransportInfoCtr *object = (struct srvsvc_NetTransportInfoCtr *)pytalloc_get_ptr(py_obj);
15745 union srvsvc_NetTransportCtr *ctr_switch_0;
15746 ctr_switch_0 = py_export_srvsvc_NetTransportCtr(pytalloc_get_mem_ctx(py_obj), object->level, value);
15747 if (ctr_switch_0 == NULL) {
15750 object->ctr = *ctr_switch_0;
15755 static PyGetSetDef py_srvsvc_NetTransportInfoCtr_getsetters[] = {
15756 { discard_const_p(char, "level"), py_srvsvc_NetTransportInfoCtr_get_level, py_srvsvc_NetTransportInfoCtr_set_level },
15757 { discard_const_p(char, "ctr"), py_srvsvc_NetTransportInfoCtr_get_ctr, py_srvsvc_NetTransportInfoCtr_set_ctr },
15761 static PyObject *py_srvsvc_NetTransportInfoCtr_new(PyTypeObject *type, PyObject *args, PyObject *kwargs)
15763 return pytalloc_new(struct srvsvc_NetTransportInfoCtr, type);
15767 static PyTypeObject srvsvc_NetTransportInfoCtr_Type = {
15768 PyObject_HEAD_INIT(NULL) 0,
15769 .tp_name = "srvsvc.NetTransportInfoCtr",
15770 .tp_getset = py_srvsvc_NetTransportInfoCtr_getsetters,
15771 .tp_methods = NULL,
15772 .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
15773 .tp_basicsize = sizeof(pytalloc_Object),
15774 .tp_new = py_srvsvc_NetTransportInfoCtr_new,
15778 static PyObject *py_srvsvc_NetRemoteTODInfo_get_elapsed(PyObject *obj, void *closure)
15780 struct srvsvc_NetRemoteTODInfo *object = (struct srvsvc_NetRemoteTODInfo *)pytalloc_get_ptr(obj);
15781 PyObject *py_elapsed;
15782 py_elapsed = PyInt_FromLong(object->elapsed);
15786 static int py_srvsvc_NetRemoteTODInfo_set_elapsed(PyObject *py_obj, PyObject *value, void *closure)
15788 struct srvsvc_NetRemoteTODInfo *object = (struct srvsvc_NetRemoteTODInfo *)pytalloc_get_ptr(py_obj);
15789 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
15790 object->elapsed = PyInt_AsLong(value);
15794 static PyObject *py_srvsvc_NetRemoteTODInfo_get_msecs(PyObject *obj, void *closure)
15796 struct srvsvc_NetRemoteTODInfo *object = (struct srvsvc_NetRemoteTODInfo *)pytalloc_get_ptr(obj);
15797 PyObject *py_msecs;
15798 py_msecs = PyInt_FromLong(object->msecs);
15802 static int py_srvsvc_NetRemoteTODInfo_set_msecs(PyObject *py_obj, PyObject *value, void *closure)
15804 struct srvsvc_NetRemoteTODInfo *object = (struct srvsvc_NetRemoteTODInfo *)pytalloc_get_ptr(py_obj);
15805 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
15806 object->msecs = PyInt_AsLong(value);
15810 static PyObject *py_srvsvc_NetRemoteTODInfo_get_hours(PyObject *obj, void *closure)
15812 struct srvsvc_NetRemoteTODInfo *object = (struct srvsvc_NetRemoteTODInfo *)pytalloc_get_ptr(obj);
15813 PyObject *py_hours;
15814 py_hours = PyInt_FromLong(object->hours);
15818 static int py_srvsvc_NetRemoteTODInfo_set_hours(PyObject *py_obj, PyObject *value, void *closure)
15820 struct srvsvc_NetRemoteTODInfo *object = (struct srvsvc_NetRemoteTODInfo *)pytalloc_get_ptr(py_obj);
15821 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
15822 object->hours = PyInt_AsLong(value);
15826 static PyObject *py_srvsvc_NetRemoteTODInfo_get_mins(PyObject *obj, void *closure)
15828 struct srvsvc_NetRemoteTODInfo *object = (struct srvsvc_NetRemoteTODInfo *)pytalloc_get_ptr(obj);
15830 py_mins = PyInt_FromLong(object->mins);
15834 static int py_srvsvc_NetRemoteTODInfo_set_mins(PyObject *py_obj, PyObject *value, void *closure)
15836 struct srvsvc_NetRemoteTODInfo *object = (struct srvsvc_NetRemoteTODInfo *)pytalloc_get_ptr(py_obj);
15837 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
15838 object->mins = PyInt_AsLong(value);
15842 static PyObject *py_srvsvc_NetRemoteTODInfo_get_secs(PyObject *obj, void *closure)
15844 struct srvsvc_NetRemoteTODInfo *object = (struct srvsvc_NetRemoteTODInfo *)pytalloc_get_ptr(obj);
15846 py_secs = PyInt_FromLong(object->secs);
15850 static int py_srvsvc_NetRemoteTODInfo_set_secs(PyObject *py_obj, PyObject *value, void *closure)
15852 struct srvsvc_NetRemoteTODInfo *object = (struct srvsvc_NetRemoteTODInfo *)pytalloc_get_ptr(py_obj);
15853 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
15854 object->secs = PyInt_AsLong(value);
15858 static PyObject *py_srvsvc_NetRemoteTODInfo_get_hunds(PyObject *obj, void *closure)
15860 struct srvsvc_NetRemoteTODInfo *object = (struct srvsvc_NetRemoteTODInfo *)pytalloc_get_ptr(obj);
15861 PyObject *py_hunds;
15862 py_hunds = PyInt_FromLong(object->hunds);
15866 static int py_srvsvc_NetRemoteTODInfo_set_hunds(PyObject *py_obj, PyObject *value, void *closure)
15868 struct srvsvc_NetRemoteTODInfo *object = (struct srvsvc_NetRemoteTODInfo *)pytalloc_get_ptr(py_obj);
15869 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
15870 object->hunds = PyInt_AsLong(value);
15874 static PyObject *py_srvsvc_NetRemoteTODInfo_get_timezone(PyObject *obj, void *closure)
15876 struct srvsvc_NetRemoteTODInfo *object = (struct srvsvc_NetRemoteTODInfo *)pytalloc_get_ptr(obj);
15877 PyObject *py_timezone;
15878 py_timezone = PyInt_FromLong(object->timezone);
15879 return py_timezone;
15882 static int py_srvsvc_NetRemoteTODInfo_set_timezone(PyObject *py_obj, PyObject *value, void *closure)
15884 struct srvsvc_NetRemoteTODInfo *object = (struct srvsvc_NetRemoteTODInfo *)pytalloc_get_ptr(py_obj);
15885 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
15886 object->timezone = PyInt_AsLong(value);
15890 static PyObject *py_srvsvc_NetRemoteTODInfo_get_tinterval(PyObject *obj, void *closure)
15892 struct srvsvc_NetRemoteTODInfo *object = (struct srvsvc_NetRemoteTODInfo *)pytalloc_get_ptr(obj);
15893 PyObject *py_tinterval;
15894 py_tinterval = PyInt_FromLong(object->tinterval);
15895 return py_tinterval;
15898 static int py_srvsvc_NetRemoteTODInfo_set_tinterval(PyObject *py_obj, PyObject *value, void *closure)
15900 struct srvsvc_NetRemoteTODInfo *object = (struct srvsvc_NetRemoteTODInfo *)pytalloc_get_ptr(py_obj);
15901 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
15902 object->tinterval = PyInt_AsLong(value);
15906 static PyObject *py_srvsvc_NetRemoteTODInfo_get_day(PyObject *obj, void *closure)
15908 struct srvsvc_NetRemoteTODInfo *object = (struct srvsvc_NetRemoteTODInfo *)pytalloc_get_ptr(obj);
15910 py_day = PyInt_FromLong(object->day);
15914 static int py_srvsvc_NetRemoteTODInfo_set_day(PyObject *py_obj, PyObject *value, void *closure)
15916 struct srvsvc_NetRemoteTODInfo *object = (struct srvsvc_NetRemoteTODInfo *)pytalloc_get_ptr(py_obj);
15917 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
15918 object->day = PyInt_AsLong(value);
15922 static PyObject *py_srvsvc_NetRemoteTODInfo_get_month(PyObject *obj, void *closure)
15924 struct srvsvc_NetRemoteTODInfo *object = (struct srvsvc_NetRemoteTODInfo *)pytalloc_get_ptr(obj);
15925 PyObject *py_month;
15926 py_month = PyInt_FromLong(object->month);
15930 static int py_srvsvc_NetRemoteTODInfo_set_month(PyObject *py_obj, PyObject *value, void *closure)
15932 struct srvsvc_NetRemoteTODInfo *object = (struct srvsvc_NetRemoteTODInfo *)pytalloc_get_ptr(py_obj);
15933 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
15934 object->month = PyInt_AsLong(value);
15938 static PyObject *py_srvsvc_NetRemoteTODInfo_get_year(PyObject *obj, void *closure)
15940 struct srvsvc_NetRemoteTODInfo *object = (struct srvsvc_NetRemoteTODInfo *)pytalloc_get_ptr(obj);
15942 py_year = PyInt_FromLong(object->year);
15946 static int py_srvsvc_NetRemoteTODInfo_set_year(PyObject *py_obj, PyObject *value, void *closure)
15948 struct srvsvc_NetRemoteTODInfo *object = (struct srvsvc_NetRemoteTODInfo *)pytalloc_get_ptr(py_obj);
15949 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
15950 object->year = PyInt_AsLong(value);
15954 static PyObject *py_srvsvc_NetRemoteTODInfo_get_weekday(PyObject *obj, void *closure)
15956 struct srvsvc_NetRemoteTODInfo *object = (struct srvsvc_NetRemoteTODInfo *)pytalloc_get_ptr(obj);
15957 PyObject *py_weekday;
15958 py_weekday = PyInt_FromLong(object->weekday);
15962 static int py_srvsvc_NetRemoteTODInfo_set_weekday(PyObject *py_obj, PyObject *value, void *closure)
15964 struct srvsvc_NetRemoteTODInfo *object = (struct srvsvc_NetRemoteTODInfo *)pytalloc_get_ptr(py_obj);
15965 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
15966 object->weekday = PyInt_AsLong(value);
15970 static PyGetSetDef py_srvsvc_NetRemoteTODInfo_getsetters[] = {
15971 { discard_const_p(char, "elapsed"), py_srvsvc_NetRemoteTODInfo_get_elapsed, py_srvsvc_NetRemoteTODInfo_set_elapsed },
15972 { discard_const_p(char, "msecs"), py_srvsvc_NetRemoteTODInfo_get_msecs, py_srvsvc_NetRemoteTODInfo_set_msecs },
15973 { discard_const_p(char, "hours"), py_srvsvc_NetRemoteTODInfo_get_hours, py_srvsvc_NetRemoteTODInfo_set_hours },
15974 { discard_const_p(char, "mins"), py_srvsvc_NetRemoteTODInfo_get_mins, py_srvsvc_NetRemoteTODInfo_set_mins },
15975 { discard_const_p(char, "secs"), py_srvsvc_NetRemoteTODInfo_get_secs, py_srvsvc_NetRemoteTODInfo_set_secs },
15976 { discard_const_p(char, "hunds"), py_srvsvc_NetRemoteTODInfo_get_hunds, py_srvsvc_NetRemoteTODInfo_set_hunds },
15977 { discard_const_p(char, "timezone"), py_srvsvc_NetRemoteTODInfo_get_timezone, py_srvsvc_NetRemoteTODInfo_set_timezone },
15978 { discard_const_p(char, "tinterval"), py_srvsvc_NetRemoteTODInfo_get_tinterval, py_srvsvc_NetRemoteTODInfo_set_tinterval },
15979 { discard_const_p(char, "day"), py_srvsvc_NetRemoteTODInfo_get_day, py_srvsvc_NetRemoteTODInfo_set_day },
15980 { discard_const_p(char, "month"), py_srvsvc_NetRemoteTODInfo_get_month, py_srvsvc_NetRemoteTODInfo_set_month },
15981 { discard_const_p(char, "year"), py_srvsvc_NetRemoteTODInfo_get_year, py_srvsvc_NetRemoteTODInfo_set_year },
15982 { discard_const_p(char, "weekday"), py_srvsvc_NetRemoteTODInfo_get_weekday, py_srvsvc_NetRemoteTODInfo_set_weekday },
15986 static PyObject *py_srvsvc_NetRemoteTODInfo_new(PyTypeObject *type, PyObject *args, PyObject *kwargs)
15988 return pytalloc_new(struct srvsvc_NetRemoteTODInfo, type);
15992 static PyTypeObject srvsvc_NetRemoteTODInfo_Type = {
15993 PyObject_HEAD_INIT(NULL) 0,
15994 .tp_name = "srvsvc.NetRemoteTODInfo",
15995 .tp_getset = py_srvsvc_NetRemoteTODInfo_getsetters,
15996 .tp_methods = NULL,
15997 .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
15998 .tp_basicsize = sizeof(pytalloc_Object),
15999 .tp_new = py_srvsvc_NetRemoteTODInfo_new,
16002 static PyObject *py_import_srvsvc_NetTransportInfo(TALLOC_CTX *mem_ctx, int level, union srvsvc_NetTransportInfo *in)
16008 ret = pytalloc_reference_ex(&srvsvc_NetTransportInfo0_Type, mem_ctx, &in->info0);
16012 ret = pytalloc_reference_ex(&srvsvc_NetTransportInfo1_Type, mem_ctx, &in->info1);
16016 ret = pytalloc_reference_ex(&srvsvc_NetTransportInfo2_Type, mem_ctx, &in->info2);
16020 ret = pytalloc_reference_ex(&srvsvc_NetTransportInfo3_Type, mem_ctx, &in->info3);
16024 PyErr_SetString(PyExc_TypeError, "unknown union level");
16028 static union srvsvc_NetTransportInfo *py_export_srvsvc_NetTransportInfo(TALLOC_CTX *mem_ctx, int level, PyObject *in)
16030 union srvsvc_NetTransportInfo *ret = talloc_zero(mem_ctx, union srvsvc_NetTransportInfo);
16033 PY_CHECK_TYPE(&srvsvc_NetTransportInfo0_Type, in, talloc_free(ret); return NULL;);
16034 if (talloc_reference(mem_ctx, pytalloc_get_mem_ctx(in)) == NULL) {
16036 talloc_free(ret); return NULL;
16038 ret->info0 = *(struct srvsvc_NetTransportInfo0 *)pytalloc_get_ptr(in);
16042 PY_CHECK_TYPE(&srvsvc_NetTransportInfo1_Type, in, talloc_free(ret); return NULL;);
16043 if (talloc_reference(mem_ctx, pytalloc_get_mem_ctx(in)) == NULL) {
16045 talloc_free(ret); return NULL;
16047 ret->info1 = *(struct srvsvc_NetTransportInfo1 *)pytalloc_get_ptr(in);
16051 PY_CHECK_TYPE(&srvsvc_NetTransportInfo2_Type, in, talloc_free(ret); return NULL;);
16052 if (talloc_reference(mem_ctx, pytalloc_get_mem_ctx(in)) == NULL) {
16054 talloc_free(ret); return NULL;
16056 ret->info2 = *(struct srvsvc_NetTransportInfo2 *)pytalloc_get_ptr(in);
16060 PY_CHECK_TYPE(&srvsvc_NetTransportInfo3_Type, in, talloc_free(ret); return NULL;);
16061 if (talloc_reference(mem_ctx, pytalloc_get_mem_ctx(in)) == NULL) {
16063 talloc_free(ret); return NULL;
16065 ret->info3 = *(struct srvsvc_NetTransportInfo3 *)pytalloc_get_ptr(in);
16069 PyErr_SetString(PyExc_TypeError, "invalid union level value");
16078 static bool pack_py_srvsvc_NetCharDevEnum_args_in(PyObject *args, PyObject *kwargs, struct srvsvc_NetCharDevEnum *r)
16080 PyObject *py_server_unc;
16081 PyObject *py_info_ctr;
16082 PyObject *py_max_buffer;
16083 PyObject *py_resume_handle;
16084 const char *kwnames[] = {
16085 "server_unc", "info_ctr", "max_buffer", "resume_handle", NULL
16088 if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OOOO:srvsvc_NetCharDevEnum", discard_const_p(char *, kwnames), &py_server_unc, &py_info_ctr, &py_max_buffer, &py_resume_handle)) {
16092 if (py_server_unc == Py_None) {
16093 r->in.server_unc = NULL;
16095 r->in.server_unc = NULL;
16096 if (PyUnicode_Check(py_server_unc)) {
16097 r->in.server_unc = PyString_AS_STRING(PyUnicode_AsEncodedString(py_server_unc, "utf-8", "ignore"));
16098 } else if (PyString_Check(py_server_unc)) {
16099 r->in.server_unc = PyString_AS_STRING(py_server_unc);
16101 PyErr_Format(PyExc_TypeError, "Expected string or unicode object, got %s", Py_TYPE(py_server_unc)->tp_name);
16105 r->in.info_ctr = talloc_ptrtype(r, r->in.info_ctr);
16106 PY_CHECK_TYPE(&srvsvc_NetCharDevInfoCtr_Type, py_info_ctr, return false;);
16107 if (talloc_reference(r, pytalloc_get_mem_ctx(py_info_ctr)) == NULL) {
16111 r->in.info_ctr = (struct srvsvc_NetCharDevInfoCtr *)pytalloc_get_ptr(py_info_ctr);
16112 PY_CHECK_TYPE(&PyInt_Type, py_max_buffer, return false;);
16113 r->in.max_buffer = PyInt_AsLong(py_max_buffer);
16114 if (py_resume_handle == Py_None) {
16115 r->in.resume_handle = NULL;
16117 r->in.resume_handle = talloc_ptrtype(r, r->in.resume_handle);
16118 PY_CHECK_TYPE(&PyInt_Type, py_resume_handle, return false;);
16119 *r->in.resume_handle = PyInt_AsLong(py_resume_handle);
16124 static PyObject *unpack_py_srvsvc_NetCharDevEnum_args_out(struct srvsvc_NetCharDevEnum *r)
16127 PyObject *py_info_ctr;
16128 PyObject *py_totalentries;
16129 PyObject *py_resume_handle;
16130 result = PyTuple_New(3);
16131 py_info_ctr = pytalloc_reference_ex(&srvsvc_NetCharDevInfoCtr_Type, r->out.info_ctr, r->out.info_ctr);
16132 PyTuple_SetItem(result, 0, py_info_ctr);
16133 py_totalentries = PyInt_FromLong(*r->out.totalentries);
16134 PyTuple_SetItem(result, 1, py_totalentries);
16135 if (r->out.resume_handle == NULL) {
16136 py_resume_handle = Py_None;
16137 Py_INCREF(py_resume_handle);
16139 py_resume_handle = PyInt_FromLong(*r->out.resume_handle);
16141 PyTuple_SetItem(result, 2, py_resume_handle);
16142 if (!W_ERROR_IS_OK(r->out.result)) {
16143 PyErr_SetWERROR(r->out.result);
16150 static bool pack_py_srvsvc_NetCharDevGetInfo_args_in(PyObject *args, PyObject *kwargs, struct srvsvc_NetCharDevGetInfo *r)
16152 PyObject *py_server_unc;
16153 PyObject *py_device_name;
16154 PyObject *py_level;
16155 const char *kwnames[] = {
16156 "server_unc", "device_name", "level", NULL
16159 if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OOO:srvsvc_NetCharDevGetInfo", discard_const_p(char *, kwnames), &py_server_unc, &py_device_name, &py_level)) {
16163 if (py_server_unc == Py_None) {
16164 r->in.server_unc = NULL;
16166 r->in.server_unc = NULL;
16167 if (PyUnicode_Check(py_server_unc)) {
16168 r->in.server_unc = PyString_AS_STRING(PyUnicode_AsEncodedString(py_server_unc, "utf-8", "ignore"));
16169 } else if (PyString_Check(py_server_unc)) {
16170 r->in.server_unc = PyString_AS_STRING(py_server_unc);
16172 PyErr_Format(PyExc_TypeError, "Expected string or unicode object, got %s", Py_TYPE(py_server_unc)->tp_name);
16176 if (PyUnicode_Check(py_device_name)) {
16177 r->in.device_name = PyString_AS_STRING(PyUnicode_AsEncodedString(py_device_name, "utf-8", "ignore"));
16178 } else if (PyString_Check(py_device_name)) {
16179 r->in.device_name = PyString_AS_STRING(py_device_name);
16181 PyErr_Format(PyExc_TypeError, "Expected string or unicode object, got %s", Py_TYPE(py_device_name)->tp_name);
16184 PY_CHECK_TYPE(&PyInt_Type, py_level, return false;);
16185 r->in.level = PyInt_AsLong(py_level);
16189 static PyObject *unpack_py_srvsvc_NetCharDevGetInfo_args_out(struct srvsvc_NetCharDevGetInfo *r)
16193 py_info = py_import_srvsvc_NetCharDevInfo(r->out.info, r->in.level, r->out.info);
16194 if (py_info == NULL) {
16198 if (!W_ERROR_IS_OK(r->out.result)) {
16199 PyErr_SetWERROR(r->out.result);
16206 static bool pack_py_srvsvc_NetCharDevControl_args_in(PyObject *args, PyObject *kwargs, struct srvsvc_NetCharDevControl *r)
16208 PyObject *py_server_unc;
16209 PyObject *py_device_name;
16210 PyObject *py_opcode;
16211 const char *kwnames[] = {
16212 "server_unc", "device_name", "opcode", NULL
16215 if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OOO:srvsvc_NetCharDevControl", discard_const_p(char *, kwnames), &py_server_unc, &py_device_name, &py_opcode)) {
16219 if (py_server_unc == Py_None) {
16220 r->in.server_unc = NULL;
16222 r->in.server_unc = NULL;
16223 if (PyUnicode_Check(py_server_unc)) {
16224 r->in.server_unc = PyString_AS_STRING(PyUnicode_AsEncodedString(py_server_unc, "utf-8", "ignore"));
16225 } else if (PyString_Check(py_server_unc)) {
16226 r->in.server_unc = PyString_AS_STRING(py_server_unc);
16228 PyErr_Format(PyExc_TypeError, "Expected string or unicode object, got %s", Py_TYPE(py_server_unc)->tp_name);
16232 if (PyUnicode_Check(py_device_name)) {
16233 r->in.device_name = PyString_AS_STRING(PyUnicode_AsEncodedString(py_device_name, "utf-8", "ignore"));
16234 } else if (PyString_Check(py_device_name)) {
16235 r->in.device_name = PyString_AS_STRING(py_device_name);
16237 PyErr_Format(PyExc_TypeError, "Expected string or unicode object, got %s", Py_TYPE(py_device_name)->tp_name);
16240 PY_CHECK_TYPE(&PyInt_Type, py_opcode, return false;);
16241 r->in.opcode = PyInt_AsLong(py_opcode);
16245 static PyObject *unpack_py_srvsvc_NetCharDevControl_args_out(struct srvsvc_NetCharDevControl *r)
16250 if (!W_ERROR_IS_OK(r->out.result)) {
16251 PyErr_SetWERROR(r->out.result);
16258 static bool pack_py_srvsvc_NetCharDevQEnum_args_in(PyObject *args, PyObject *kwargs, struct srvsvc_NetCharDevQEnum *r)
16260 PyObject *py_server_unc;
16262 PyObject *py_info_ctr;
16263 PyObject *py_max_buffer;
16264 PyObject *py_resume_handle;
16265 const char *kwnames[] = {
16266 "server_unc", "user", "info_ctr", "max_buffer", "resume_handle", NULL
16269 if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OOOOO:srvsvc_NetCharDevQEnum", discard_const_p(char *, kwnames), &py_server_unc, &py_user, &py_info_ctr, &py_max_buffer, &py_resume_handle)) {
16273 if (py_server_unc == Py_None) {
16274 r->in.server_unc = NULL;
16276 r->in.server_unc = NULL;
16277 if (PyUnicode_Check(py_server_unc)) {
16278 r->in.server_unc = PyString_AS_STRING(PyUnicode_AsEncodedString(py_server_unc, "utf-8", "ignore"));
16279 } else if (PyString_Check(py_server_unc)) {
16280 r->in.server_unc = PyString_AS_STRING(py_server_unc);
16282 PyErr_Format(PyExc_TypeError, "Expected string or unicode object, got %s", Py_TYPE(py_server_unc)->tp_name);
16286 if (py_user == Py_None) {
16290 if (PyUnicode_Check(py_user)) {
16291 r->in.user = PyString_AS_STRING(PyUnicode_AsEncodedString(py_user, "utf-8", "ignore"));
16292 } else if (PyString_Check(py_user)) {
16293 r->in.user = PyString_AS_STRING(py_user);
16295 PyErr_Format(PyExc_TypeError, "Expected string or unicode object, got %s", Py_TYPE(py_user)->tp_name);
16299 r->in.info_ctr = talloc_ptrtype(r, r->in.info_ctr);
16300 PY_CHECK_TYPE(&srvsvc_NetCharDevQInfoCtr_Type, py_info_ctr, return false;);
16301 if (talloc_reference(r, pytalloc_get_mem_ctx(py_info_ctr)) == NULL) {
16305 r->in.info_ctr = (struct srvsvc_NetCharDevQInfoCtr *)pytalloc_get_ptr(py_info_ctr);
16306 PY_CHECK_TYPE(&PyInt_Type, py_max_buffer, return false;);
16307 r->in.max_buffer = PyInt_AsLong(py_max_buffer);
16308 if (py_resume_handle == Py_None) {
16309 r->in.resume_handle = NULL;
16311 r->in.resume_handle = talloc_ptrtype(r, r->in.resume_handle);
16312 PY_CHECK_TYPE(&PyInt_Type, py_resume_handle, return false;);
16313 *r->in.resume_handle = PyInt_AsLong(py_resume_handle);
16318 static PyObject *unpack_py_srvsvc_NetCharDevQEnum_args_out(struct srvsvc_NetCharDevQEnum *r)
16321 PyObject *py_info_ctr;
16322 PyObject *py_totalentries;
16323 PyObject *py_resume_handle;
16324 result = PyTuple_New(3);
16325 py_info_ctr = pytalloc_reference_ex(&srvsvc_NetCharDevQInfoCtr_Type, r->out.info_ctr, r->out.info_ctr);
16326 PyTuple_SetItem(result, 0, py_info_ctr);
16327 py_totalentries = PyInt_FromLong(*r->out.totalentries);
16328 PyTuple_SetItem(result, 1, py_totalentries);
16329 if (r->out.resume_handle == NULL) {
16330 py_resume_handle = Py_None;
16331 Py_INCREF(py_resume_handle);
16333 py_resume_handle = PyInt_FromLong(*r->out.resume_handle);
16335 PyTuple_SetItem(result, 2, py_resume_handle);
16336 if (!W_ERROR_IS_OK(r->out.result)) {
16337 PyErr_SetWERROR(r->out.result);
16344 static bool pack_py_srvsvc_NetCharDevQGetInfo_args_in(PyObject *args, PyObject *kwargs, struct srvsvc_NetCharDevQGetInfo *r)
16346 PyObject *py_server_unc;
16347 PyObject *py_queue_name;
16349 PyObject *py_level;
16350 const char *kwnames[] = {
16351 "server_unc", "queue_name", "user", "level", NULL
16354 if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OOOO:srvsvc_NetCharDevQGetInfo", discard_const_p(char *, kwnames), &py_server_unc, &py_queue_name, &py_user, &py_level)) {
16358 if (py_server_unc == Py_None) {
16359 r->in.server_unc = NULL;
16361 r->in.server_unc = NULL;
16362 if (PyUnicode_Check(py_server_unc)) {
16363 r->in.server_unc = PyString_AS_STRING(PyUnicode_AsEncodedString(py_server_unc, "utf-8", "ignore"));
16364 } else if (PyString_Check(py_server_unc)) {
16365 r->in.server_unc = PyString_AS_STRING(py_server_unc);
16367 PyErr_Format(PyExc_TypeError, "Expected string or unicode object, got %s", Py_TYPE(py_server_unc)->tp_name);
16371 if (PyUnicode_Check(py_queue_name)) {
16372 r->in.queue_name = PyString_AS_STRING(PyUnicode_AsEncodedString(py_queue_name, "utf-8", "ignore"));
16373 } else if (PyString_Check(py_queue_name)) {
16374 r->in.queue_name = PyString_AS_STRING(py_queue_name);
16376 PyErr_Format(PyExc_TypeError, "Expected string or unicode object, got %s", Py_TYPE(py_queue_name)->tp_name);
16379 if (PyUnicode_Check(py_user)) {
16380 r->in.user = PyString_AS_STRING(PyUnicode_AsEncodedString(py_user, "utf-8", "ignore"));
16381 } else if (PyString_Check(py_user)) {
16382 r->in.user = PyString_AS_STRING(py_user);
16384 PyErr_Format(PyExc_TypeError, "Expected string or unicode object, got %s", Py_TYPE(py_user)->tp_name);
16387 PY_CHECK_TYPE(&PyInt_Type, py_level, return false;);
16388 r->in.level = PyInt_AsLong(py_level);
16392 static PyObject *unpack_py_srvsvc_NetCharDevQGetInfo_args_out(struct srvsvc_NetCharDevQGetInfo *r)
16396 py_info = py_import_srvsvc_NetCharDevQInfo(r->out.info, r->in.level, r->out.info);
16397 if (py_info == NULL) {
16401 if (!W_ERROR_IS_OK(r->out.result)) {
16402 PyErr_SetWERROR(r->out.result);
16409 static bool pack_py_srvsvc_NetCharDevQSetInfo_args_in(PyObject *args, PyObject *kwargs, struct srvsvc_NetCharDevQSetInfo *r)
16411 PyObject *py_server_unc;
16412 PyObject *py_queue_name;
16413 PyObject *py_level;
16415 PyObject *py_parm_error;
16416 const char *kwnames[] = {
16417 "server_unc", "queue_name", "level", "info", "parm_error", NULL
16420 if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OOOOO:srvsvc_NetCharDevQSetInfo", discard_const_p(char *, kwnames), &py_server_unc, &py_queue_name, &py_level, &py_info, &py_parm_error)) {
16424 if (py_server_unc == Py_None) {
16425 r->in.server_unc = NULL;
16427 r->in.server_unc = NULL;
16428 if (PyUnicode_Check(py_server_unc)) {
16429 r->in.server_unc = PyString_AS_STRING(PyUnicode_AsEncodedString(py_server_unc, "utf-8", "ignore"));
16430 } else if (PyString_Check(py_server_unc)) {
16431 r->in.server_unc = PyString_AS_STRING(py_server_unc);
16433 PyErr_Format(PyExc_TypeError, "Expected string or unicode object, got %s", Py_TYPE(py_server_unc)->tp_name);
16437 if (PyUnicode_Check(py_queue_name)) {
16438 r->in.queue_name = PyString_AS_STRING(PyUnicode_AsEncodedString(py_queue_name, "utf-8", "ignore"));
16439 } else if (PyString_Check(py_queue_name)) {
16440 r->in.queue_name = PyString_AS_STRING(py_queue_name);
16442 PyErr_Format(PyExc_TypeError, "Expected string or unicode object, got %s", Py_TYPE(py_queue_name)->tp_name);
16445 PY_CHECK_TYPE(&PyInt_Type, py_level, return false;);
16446 r->in.level = PyInt_AsLong(py_level);
16448 union srvsvc_NetCharDevQInfo *info_switch_0;
16449 info_switch_0 = py_export_srvsvc_NetCharDevQInfo(r, r->in.level, py_info);
16450 if (info_switch_0 == NULL) {
16453 r->in.info = *info_switch_0;
16455 if (py_parm_error == Py_None) {
16456 r->in.parm_error = NULL;
16458 r->in.parm_error = talloc_ptrtype(r, r->in.parm_error);
16459 PY_CHECK_TYPE(&PyInt_Type, py_parm_error, return false;);
16460 *r->in.parm_error = PyInt_AsLong(py_parm_error);
16465 static PyObject *unpack_py_srvsvc_NetCharDevQSetInfo_args_out(struct srvsvc_NetCharDevQSetInfo *r)
16468 PyObject *py_parm_error;
16469 if (r->out.parm_error == NULL) {
16470 py_parm_error = Py_None;
16471 Py_INCREF(py_parm_error);
16473 py_parm_error = PyInt_FromLong(*r->out.parm_error);
16475 result = py_parm_error;
16476 if (!W_ERROR_IS_OK(r->out.result)) {
16477 PyErr_SetWERROR(r->out.result);
16484 static bool pack_py_srvsvc_NetCharDevQPurge_args_in(PyObject *args, PyObject *kwargs, struct srvsvc_NetCharDevQPurge *r)
16486 PyObject *py_server_unc;
16487 PyObject *py_queue_name;
16488 const char *kwnames[] = {
16489 "server_unc", "queue_name", NULL
16492 if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OO:srvsvc_NetCharDevQPurge", discard_const_p(char *, kwnames), &py_server_unc, &py_queue_name)) {
16496 if (py_server_unc == Py_None) {
16497 r->in.server_unc = NULL;
16499 r->in.server_unc = NULL;
16500 if (PyUnicode_Check(py_server_unc)) {
16501 r->in.server_unc = PyString_AS_STRING(PyUnicode_AsEncodedString(py_server_unc, "utf-8", "ignore"));
16502 } else if (PyString_Check(py_server_unc)) {
16503 r->in.server_unc = PyString_AS_STRING(py_server_unc);
16505 PyErr_Format(PyExc_TypeError, "Expected string or unicode object, got %s", Py_TYPE(py_server_unc)->tp_name);
16509 if (PyUnicode_Check(py_queue_name)) {
16510 r->in.queue_name = PyString_AS_STRING(PyUnicode_AsEncodedString(py_queue_name, "utf-8", "ignore"));
16511 } else if (PyString_Check(py_queue_name)) {
16512 r->in.queue_name = PyString_AS_STRING(py_queue_name);
16514 PyErr_Format(PyExc_TypeError, "Expected string or unicode object, got %s", Py_TYPE(py_queue_name)->tp_name);
16520 static PyObject *unpack_py_srvsvc_NetCharDevQPurge_args_out(struct srvsvc_NetCharDevQPurge *r)
16525 if (!W_ERROR_IS_OK(r->out.result)) {
16526 PyErr_SetWERROR(r->out.result);
16533 static bool pack_py_srvsvc_NetCharDevQPurgeSelf_args_in(PyObject *args, PyObject *kwargs, struct srvsvc_NetCharDevQPurgeSelf *r)
16535 PyObject *py_server_unc;
16536 PyObject *py_queue_name;
16537 PyObject *py_computer_name;
16538 const char *kwnames[] = {
16539 "server_unc", "queue_name", "computer_name", NULL
16542 if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OOO:srvsvc_NetCharDevQPurgeSelf", discard_const_p(char *, kwnames), &py_server_unc, &py_queue_name, &py_computer_name)) {
16546 if (py_server_unc == Py_None) {
16547 r->in.server_unc = NULL;
16549 r->in.server_unc = NULL;
16550 if (PyUnicode_Check(py_server_unc)) {
16551 r->in.server_unc = PyString_AS_STRING(PyUnicode_AsEncodedString(py_server_unc, "utf-8", "ignore"));
16552 } else if (PyString_Check(py_server_unc)) {
16553 r->in.server_unc = PyString_AS_STRING(py_server_unc);
16555 PyErr_Format(PyExc_TypeError, "Expected string or unicode object, got %s", Py_TYPE(py_server_unc)->tp_name);
16559 if (PyUnicode_Check(py_queue_name)) {
16560 r->in.queue_name = PyString_AS_STRING(PyUnicode_AsEncodedString(py_queue_name, "utf-8", "ignore"));
16561 } else if (PyString_Check(py_queue_name)) {
16562 r->in.queue_name = PyString_AS_STRING(py_queue_name);
16564 PyErr_Format(PyExc_TypeError, "Expected string or unicode object, got %s", Py_TYPE(py_queue_name)->tp_name);
16567 if (PyUnicode_Check(py_computer_name)) {
16568 r->in.computer_name = PyString_AS_STRING(PyUnicode_AsEncodedString(py_computer_name, "utf-8", "ignore"));
16569 } else if (PyString_Check(py_computer_name)) {
16570 r->in.computer_name = PyString_AS_STRING(py_computer_name);
16572 PyErr_Format(PyExc_TypeError, "Expected string or unicode object, got %s", Py_TYPE(py_computer_name)->tp_name);
16578 static PyObject *unpack_py_srvsvc_NetCharDevQPurgeSelf_args_out(struct srvsvc_NetCharDevQPurgeSelf *r)
16583 if (!W_ERROR_IS_OK(r->out.result)) {
16584 PyErr_SetWERROR(r->out.result);
16591 static bool pack_py_srvsvc_NetConnEnum_args_in(PyObject *args, PyObject *kwargs, struct srvsvc_NetConnEnum *r)
16593 PyObject *py_server_unc;
16595 PyObject *py_info_ctr;
16596 PyObject *py_max_buffer;
16597 PyObject *py_resume_handle;
16598 const char *kwnames[] = {
16599 "server_unc", "path", "info_ctr", "max_buffer", "resume_handle", NULL
16602 if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OOOOO:srvsvc_NetConnEnum", discard_const_p(char *, kwnames), &py_server_unc, &py_path, &py_info_ctr, &py_max_buffer, &py_resume_handle)) {
16606 if (py_server_unc == Py_None) {
16607 r->in.server_unc = NULL;
16609 r->in.server_unc = NULL;
16610 if (PyUnicode_Check(py_server_unc)) {
16611 r->in.server_unc = PyString_AS_STRING(PyUnicode_AsEncodedString(py_server_unc, "utf-8", "ignore"));
16612 } else if (PyString_Check(py_server_unc)) {
16613 r->in.server_unc = PyString_AS_STRING(py_server_unc);
16615 PyErr_Format(PyExc_TypeError, "Expected string or unicode object, got %s", Py_TYPE(py_server_unc)->tp_name);
16619 if (py_path == Py_None) {
16623 if (PyUnicode_Check(py_path)) {
16624 r->in.path = PyString_AS_STRING(PyUnicode_AsEncodedString(py_path, "utf-8", "ignore"));
16625 } else if (PyString_Check(py_path)) {
16626 r->in.path = PyString_AS_STRING(py_path);
16628 PyErr_Format(PyExc_TypeError, "Expected string or unicode object, got %s", Py_TYPE(py_path)->tp_name);
16632 r->in.info_ctr = talloc_ptrtype(r, r->in.info_ctr);
16633 PY_CHECK_TYPE(&srvsvc_NetConnInfoCtr_Type, py_info_ctr, return false;);
16634 if (talloc_reference(r, pytalloc_get_mem_ctx(py_info_ctr)) == NULL) {
16638 r->in.info_ctr = (struct srvsvc_NetConnInfoCtr *)pytalloc_get_ptr(py_info_ctr);
16639 PY_CHECK_TYPE(&PyInt_Type, py_max_buffer, return false;);
16640 r->in.max_buffer = PyInt_AsLong(py_max_buffer);
16641 if (py_resume_handle == Py_None) {
16642 r->in.resume_handle = NULL;
16644 r->in.resume_handle = talloc_ptrtype(r, r->in.resume_handle);
16645 PY_CHECK_TYPE(&PyInt_Type, py_resume_handle, return false;);
16646 *r->in.resume_handle = PyInt_AsLong(py_resume_handle);
16651 static PyObject *unpack_py_srvsvc_NetConnEnum_args_out(struct srvsvc_NetConnEnum *r)
16654 PyObject *py_info_ctr;
16655 PyObject *py_totalentries;
16656 PyObject *py_resume_handle;
16657 result = PyTuple_New(3);
16658 py_info_ctr = pytalloc_reference_ex(&srvsvc_NetConnInfoCtr_Type, r->out.info_ctr, r->out.info_ctr);
16659 PyTuple_SetItem(result, 0, py_info_ctr);
16660 py_totalentries = PyInt_FromLong(*r->out.totalentries);
16661 PyTuple_SetItem(result, 1, py_totalentries);
16662 if (r->out.resume_handle == NULL) {
16663 py_resume_handle = Py_None;
16664 Py_INCREF(py_resume_handle);
16666 py_resume_handle = PyInt_FromLong(*r->out.resume_handle);
16668 PyTuple_SetItem(result, 2, py_resume_handle);
16669 if (!W_ERROR_IS_OK(r->out.result)) {
16670 PyErr_SetWERROR(r->out.result);
16677 static bool pack_py_srvsvc_NetFileEnum_args_in(PyObject *args, PyObject *kwargs, struct srvsvc_NetFileEnum *r)
16679 PyObject *py_server_unc;
16682 PyObject *py_info_ctr;
16683 PyObject *py_max_buffer;
16684 PyObject *py_resume_handle;
16685 const char *kwnames[] = {
16686 "server_unc", "path", "user", "info_ctr", "max_buffer", "resume_handle", NULL
16689 if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OOOOOO:srvsvc_NetFileEnum", discard_const_p(char *, kwnames), &py_server_unc, &py_path, &py_user, &py_info_ctr, &py_max_buffer, &py_resume_handle)) {
16693 if (py_server_unc == Py_None) {
16694 r->in.server_unc = NULL;
16696 r->in.server_unc = NULL;
16697 if (PyUnicode_Check(py_server_unc)) {
16698 r->in.server_unc = PyString_AS_STRING(PyUnicode_AsEncodedString(py_server_unc, "utf-8", "ignore"));
16699 } else if (PyString_Check(py_server_unc)) {
16700 r->in.server_unc = PyString_AS_STRING(py_server_unc);
16702 PyErr_Format(PyExc_TypeError, "Expected string or unicode object, got %s", Py_TYPE(py_server_unc)->tp_name);
16706 if (py_path == Py_None) {
16710 if (PyUnicode_Check(py_path)) {
16711 r->in.path = PyString_AS_STRING(PyUnicode_AsEncodedString(py_path, "utf-8", "ignore"));
16712 } else if (PyString_Check(py_path)) {
16713 r->in.path = PyString_AS_STRING(py_path);
16715 PyErr_Format(PyExc_TypeError, "Expected string or unicode object, got %s", Py_TYPE(py_path)->tp_name);
16719 if (py_user == Py_None) {
16723 if (PyUnicode_Check(py_user)) {
16724 r->in.user = PyString_AS_STRING(PyUnicode_AsEncodedString(py_user, "utf-8", "ignore"));
16725 } else if (PyString_Check(py_user)) {
16726 r->in.user = PyString_AS_STRING(py_user);
16728 PyErr_Format(PyExc_TypeError, "Expected string or unicode object, got %s", Py_TYPE(py_user)->tp_name);
16732 r->in.info_ctr = talloc_ptrtype(r, r->in.info_ctr);
16733 PY_CHECK_TYPE(&srvsvc_NetFileInfoCtr_Type, py_info_ctr, return false;);
16734 if (talloc_reference(r, pytalloc_get_mem_ctx(py_info_ctr)) == NULL) {
16738 r->in.info_ctr = (struct srvsvc_NetFileInfoCtr *)pytalloc_get_ptr(py_info_ctr);
16739 PY_CHECK_TYPE(&PyInt_Type, py_max_buffer, return false;);
16740 r->in.max_buffer = PyInt_AsLong(py_max_buffer);
16741 if (py_resume_handle == Py_None) {
16742 r->in.resume_handle = NULL;
16744 r->in.resume_handle = talloc_ptrtype(r, r->in.resume_handle);
16745 PY_CHECK_TYPE(&PyInt_Type, py_resume_handle, return false;);
16746 *r->in.resume_handle = PyInt_AsLong(py_resume_handle);
16751 static PyObject *unpack_py_srvsvc_NetFileEnum_args_out(struct srvsvc_NetFileEnum *r)
16754 PyObject *py_info_ctr;
16755 PyObject *py_totalentries;
16756 PyObject *py_resume_handle;
16757 result = PyTuple_New(3);
16758 py_info_ctr = pytalloc_reference_ex(&srvsvc_NetFileInfoCtr_Type, r->out.info_ctr, r->out.info_ctr);
16759 PyTuple_SetItem(result, 0, py_info_ctr);
16760 py_totalentries = PyInt_FromLong(*r->out.totalentries);
16761 PyTuple_SetItem(result, 1, py_totalentries);
16762 if (r->out.resume_handle == NULL) {
16763 py_resume_handle = Py_None;
16764 Py_INCREF(py_resume_handle);
16766 py_resume_handle = PyInt_FromLong(*r->out.resume_handle);
16768 PyTuple_SetItem(result, 2, py_resume_handle);
16769 if (!W_ERROR_IS_OK(r->out.result)) {
16770 PyErr_SetWERROR(r->out.result);
16777 static bool pack_py_srvsvc_NetFileGetInfo_args_in(PyObject *args, PyObject *kwargs, struct srvsvc_NetFileGetInfo *r)
16779 PyObject *py_server_unc;
16781 PyObject *py_level;
16782 const char *kwnames[] = {
16783 "server_unc", "fid", "level", NULL
16786 if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OOO:srvsvc_NetFileGetInfo", discard_const_p(char *, kwnames), &py_server_unc, &py_fid, &py_level)) {
16790 if (py_server_unc == Py_None) {
16791 r->in.server_unc = NULL;
16793 r->in.server_unc = NULL;
16794 if (PyUnicode_Check(py_server_unc)) {
16795 r->in.server_unc = PyString_AS_STRING(PyUnicode_AsEncodedString(py_server_unc, "utf-8", "ignore"));
16796 } else if (PyString_Check(py_server_unc)) {
16797 r->in.server_unc = PyString_AS_STRING(py_server_unc);
16799 PyErr_Format(PyExc_TypeError, "Expected string or unicode object, got %s", Py_TYPE(py_server_unc)->tp_name);
16803 PY_CHECK_TYPE(&PyInt_Type, py_fid, return false;);
16804 r->in.fid = PyInt_AsLong(py_fid);
16805 PY_CHECK_TYPE(&PyInt_Type, py_level, return false;);
16806 r->in.level = PyInt_AsLong(py_level);
16810 static PyObject *unpack_py_srvsvc_NetFileGetInfo_args_out(struct srvsvc_NetFileGetInfo *r)
16814 py_info = py_import_srvsvc_NetFileInfo(r->out.info, r->in.level, r->out.info);
16815 if (py_info == NULL) {
16819 if (!W_ERROR_IS_OK(r->out.result)) {
16820 PyErr_SetWERROR(r->out.result);
16827 static bool pack_py_srvsvc_NetFileClose_args_in(PyObject *args, PyObject *kwargs, struct srvsvc_NetFileClose *r)
16829 PyObject *py_server_unc;
16831 const char *kwnames[] = {
16832 "server_unc", "fid", NULL
16835 if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OO:srvsvc_NetFileClose", discard_const_p(char *, kwnames), &py_server_unc, &py_fid)) {
16839 if (py_server_unc == Py_None) {
16840 r->in.server_unc = NULL;
16842 r->in.server_unc = NULL;
16843 if (PyUnicode_Check(py_server_unc)) {
16844 r->in.server_unc = PyString_AS_STRING(PyUnicode_AsEncodedString(py_server_unc, "utf-8", "ignore"));
16845 } else if (PyString_Check(py_server_unc)) {
16846 r->in.server_unc = PyString_AS_STRING(py_server_unc);
16848 PyErr_Format(PyExc_TypeError, "Expected string or unicode object, got %s", Py_TYPE(py_server_unc)->tp_name);
16852 PY_CHECK_TYPE(&PyInt_Type, py_fid, return false;);
16853 r->in.fid = PyInt_AsLong(py_fid);
16857 static PyObject *unpack_py_srvsvc_NetFileClose_args_out(struct srvsvc_NetFileClose *r)
16862 if (!W_ERROR_IS_OK(r->out.result)) {
16863 PyErr_SetWERROR(r->out.result);
16870 static bool pack_py_srvsvc_NetSessEnum_args_in(PyObject *args, PyObject *kwargs, struct srvsvc_NetSessEnum *r)
16872 PyObject *py_server_unc;
16873 PyObject *py_client;
16875 PyObject *py_info_ctr;
16876 PyObject *py_max_buffer;
16877 PyObject *py_resume_handle;
16878 const char *kwnames[] = {
16879 "server_unc", "client", "user", "info_ctr", "max_buffer", "resume_handle", NULL
16882 if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OOOOOO:srvsvc_NetSessEnum", discard_const_p(char *, kwnames), &py_server_unc, &py_client, &py_user, &py_info_ctr, &py_max_buffer, &py_resume_handle)) {
16886 if (py_server_unc == Py_None) {
16887 r->in.server_unc = NULL;
16889 r->in.server_unc = NULL;
16890 if (PyUnicode_Check(py_server_unc)) {
16891 r->in.server_unc = PyString_AS_STRING(PyUnicode_AsEncodedString(py_server_unc, "utf-8", "ignore"));
16892 } else if (PyString_Check(py_server_unc)) {
16893 r->in.server_unc = PyString_AS_STRING(py_server_unc);
16895 PyErr_Format(PyExc_TypeError, "Expected string or unicode object, got %s", Py_TYPE(py_server_unc)->tp_name);
16899 if (py_client == Py_None) {
16900 r->in.client = NULL;
16902 r->in.client = NULL;
16903 if (PyUnicode_Check(py_client)) {
16904 r->in.client = PyString_AS_STRING(PyUnicode_AsEncodedString(py_client, "utf-8", "ignore"));
16905 } else if (PyString_Check(py_client)) {
16906 r->in.client = PyString_AS_STRING(py_client);
16908 PyErr_Format(PyExc_TypeError, "Expected string or unicode object, got %s", Py_TYPE(py_client)->tp_name);
16912 if (py_user == Py_None) {
16916 if (PyUnicode_Check(py_user)) {
16917 r->in.user = PyString_AS_STRING(PyUnicode_AsEncodedString(py_user, "utf-8", "ignore"));
16918 } else if (PyString_Check(py_user)) {
16919 r->in.user = PyString_AS_STRING(py_user);
16921 PyErr_Format(PyExc_TypeError, "Expected string or unicode object, got %s", Py_TYPE(py_user)->tp_name);
16925 r->in.info_ctr = talloc_ptrtype(r, r->in.info_ctr);
16926 PY_CHECK_TYPE(&srvsvc_NetSessInfoCtr_Type, py_info_ctr, return false;);
16927 if (talloc_reference(r, pytalloc_get_mem_ctx(py_info_ctr)) == NULL) {
16931 r->in.info_ctr = (struct srvsvc_NetSessInfoCtr *)pytalloc_get_ptr(py_info_ctr);
16932 PY_CHECK_TYPE(&PyInt_Type, py_max_buffer, return false;);
16933 r->in.max_buffer = PyInt_AsLong(py_max_buffer);
16934 if (py_resume_handle == Py_None) {
16935 r->in.resume_handle = NULL;
16937 r->in.resume_handle = talloc_ptrtype(r, r->in.resume_handle);
16938 PY_CHECK_TYPE(&PyInt_Type, py_resume_handle, return false;);
16939 *r->in.resume_handle = PyInt_AsLong(py_resume_handle);
16944 static PyObject *unpack_py_srvsvc_NetSessEnum_args_out(struct srvsvc_NetSessEnum *r)
16947 PyObject *py_info_ctr;
16948 PyObject *py_totalentries;
16949 PyObject *py_resume_handle;
16950 result = PyTuple_New(3);
16951 py_info_ctr = pytalloc_reference_ex(&srvsvc_NetSessInfoCtr_Type, r->out.info_ctr, r->out.info_ctr);
16952 PyTuple_SetItem(result, 0, py_info_ctr);
16953 py_totalentries = PyInt_FromLong(*r->out.totalentries);
16954 PyTuple_SetItem(result, 1, py_totalentries);
16955 if (r->out.resume_handle == NULL) {
16956 py_resume_handle = Py_None;
16957 Py_INCREF(py_resume_handle);
16959 py_resume_handle = PyInt_FromLong(*r->out.resume_handle);
16961 PyTuple_SetItem(result, 2, py_resume_handle);
16962 if (!W_ERROR_IS_OK(r->out.result)) {
16963 PyErr_SetWERROR(r->out.result);
16970 static bool pack_py_srvsvc_NetSessDel_args_in(PyObject *args, PyObject *kwargs, struct srvsvc_NetSessDel *r)
16972 PyObject *py_server_unc;
16973 PyObject *py_client;
16975 const char *kwnames[] = {
16976 "server_unc", "client", "user", NULL
16979 if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OOO:srvsvc_NetSessDel", discard_const_p(char *, kwnames), &py_server_unc, &py_client, &py_user)) {
16983 if (py_server_unc == Py_None) {
16984 r->in.server_unc = NULL;
16986 r->in.server_unc = NULL;
16987 if (PyUnicode_Check(py_server_unc)) {
16988 r->in.server_unc = PyString_AS_STRING(PyUnicode_AsEncodedString(py_server_unc, "utf-8", "ignore"));
16989 } else if (PyString_Check(py_server_unc)) {
16990 r->in.server_unc = PyString_AS_STRING(py_server_unc);
16992 PyErr_Format(PyExc_TypeError, "Expected string or unicode object, got %s", Py_TYPE(py_server_unc)->tp_name);
16996 if (py_client == Py_None) {
16997 r->in.client = NULL;
16999 r->in.client = NULL;
17000 if (PyUnicode_Check(py_client)) {
17001 r->in.client = PyString_AS_STRING(PyUnicode_AsEncodedString(py_client, "utf-8", "ignore"));
17002 } else if (PyString_Check(py_client)) {
17003 r->in.client = PyString_AS_STRING(py_client);
17005 PyErr_Format(PyExc_TypeError, "Expected string or unicode object, got %s", Py_TYPE(py_client)->tp_name);
17009 if (py_user == Py_None) {
17013 if (PyUnicode_Check(py_user)) {
17014 r->in.user = PyString_AS_STRING(PyUnicode_AsEncodedString(py_user, "utf-8", "ignore"));
17015 } else if (PyString_Check(py_user)) {
17016 r->in.user = PyString_AS_STRING(py_user);
17018 PyErr_Format(PyExc_TypeError, "Expected string or unicode object, got %s", Py_TYPE(py_user)->tp_name);
17025 static PyObject *unpack_py_srvsvc_NetSessDel_args_out(struct srvsvc_NetSessDel *r)
17030 if (!W_ERROR_IS_OK(r->out.result)) {
17031 PyErr_SetWERROR(r->out.result);
17038 static bool pack_py_srvsvc_NetShareAdd_args_in(PyObject *args, PyObject *kwargs, struct srvsvc_NetShareAdd *r)
17040 PyObject *py_server_unc;
17041 PyObject *py_level;
17043 PyObject *py_parm_error;
17044 const char *kwnames[] = {
17045 "server_unc", "level", "info", "parm_error", NULL
17048 if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OOOO:srvsvc_NetShareAdd", discard_const_p(char *, kwnames), &py_server_unc, &py_level, &py_info, &py_parm_error)) {
17052 if (py_server_unc == Py_None) {
17053 r->in.server_unc = NULL;
17055 r->in.server_unc = NULL;
17056 if (PyUnicode_Check(py_server_unc)) {
17057 r->in.server_unc = PyString_AS_STRING(PyUnicode_AsEncodedString(py_server_unc, "utf-8", "ignore"));
17058 } else if (PyString_Check(py_server_unc)) {
17059 r->in.server_unc = PyString_AS_STRING(py_server_unc);
17061 PyErr_Format(PyExc_TypeError, "Expected string or unicode object, got %s", Py_TYPE(py_server_unc)->tp_name);
17065 PY_CHECK_TYPE(&PyInt_Type, py_level, return false;);
17066 r->in.level = PyInt_AsLong(py_level);
17067 r->in.info = talloc_ptrtype(r, r->in.info);
17069 union srvsvc_NetShareInfo *info_switch_1;
17070 info_switch_1 = py_export_srvsvc_NetShareInfo(r, r->in.level, py_info);
17071 if (info_switch_1 == NULL) {
17074 r->in.info = info_switch_1;
17076 if (py_parm_error == Py_None) {
17077 r->in.parm_error = NULL;
17079 r->in.parm_error = talloc_ptrtype(r, r->in.parm_error);
17080 PY_CHECK_TYPE(&PyInt_Type, py_parm_error, return false;);
17081 *r->in.parm_error = PyInt_AsLong(py_parm_error);
17086 static PyObject *unpack_py_srvsvc_NetShareAdd_args_out(struct srvsvc_NetShareAdd *r)
17089 PyObject *py_parm_error;
17090 if (r->out.parm_error == NULL) {
17091 py_parm_error = Py_None;
17092 Py_INCREF(py_parm_error);
17094 py_parm_error = PyInt_FromLong(*r->out.parm_error);
17096 result = py_parm_error;
17097 if (!W_ERROR_IS_OK(r->out.result)) {
17098 PyErr_SetWERROR(r->out.result);
17105 static bool pack_py_srvsvc_NetShareEnumAll_args_in(PyObject *args, PyObject *kwargs, struct srvsvc_NetShareEnumAll *r)
17107 PyObject *py_server_unc;
17108 PyObject *py_info_ctr;
17109 PyObject *py_max_buffer;
17110 PyObject *py_resume_handle;
17111 const char *kwnames[] = {
17112 "server_unc", "info_ctr", "max_buffer", "resume_handle", NULL
17115 if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OOOO:srvsvc_NetShareEnumAll", discard_const_p(char *, kwnames), &py_server_unc, &py_info_ctr, &py_max_buffer, &py_resume_handle)) {
17119 if (py_server_unc == Py_None) {
17120 r->in.server_unc = NULL;
17122 r->in.server_unc = NULL;
17123 if (PyUnicode_Check(py_server_unc)) {
17124 r->in.server_unc = PyString_AS_STRING(PyUnicode_AsEncodedString(py_server_unc, "utf-8", "ignore"));
17125 } else if (PyString_Check(py_server_unc)) {
17126 r->in.server_unc = PyString_AS_STRING(py_server_unc);
17128 PyErr_Format(PyExc_TypeError, "Expected string or unicode object, got %s", Py_TYPE(py_server_unc)->tp_name);
17132 r->in.info_ctr = talloc_ptrtype(r, r->in.info_ctr);
17133 PY_CHECK_TYPE(&srvsvc_NetShareInfoCtr_Type, py_info_ctr, return false;);
17134 if (talloc_reference(r, pytalloc_get_mem_ctx(py_info_ctr)) == NULL) {
17138 r->in.info_ctr = (struct srvsvc_NetShareInfoCtr *)pytalloc_get_ptr(py_info_ctr);
17139 PY_CHECK_TYPE(&PyInt_Type, py_max_buffer, return false;);
17140 r->in.max_buffer = PyInt_AsLong(py_max_buffer);
17141 if (py_resume_handle == Py_None) {
17142 r->in.resume_handle = NULL;
17144 r->in.resume_handle = talloc_ptrtype(r, r->in.resume_handle);
17145 PY_CHECK_TYPE(&PyInt_Type, py_resume_handle, return false;);
17146 *r->in.resume_handle = PyInt_AsLong(py_resume_handle);
17151 static PyObject *unpack_py_srvsvc_NetShareEnumAll_args_out(struct srvsvc_NetShareEnumAll *r)
17154 PyObject *py_info_ctr;
17155 PyObject *py_totalentries;
17156 PyObject *py_resume_handle;
17157 result = PyTuple_New(3);
17158 py_info_ctr = pytalloc_reference_ex(&srvsvc_NetShareInfoCtr_Type, r->out.info_ctr, r->out.info_ctr);
17159 PyTuple_SetItem(result, 0, py_info_ctr);
17160 py_totalentries = PyInt_FromLong(*r->out.totalentries);
17161 PyTuple_SetItem(result, 1, py_totalentries);
17162 if (r->out.resume_handle == NULL) {
17163 py_resume_handle = Py_None;
17164 Py_INCREF(py_resume_handle);
17166 py_resume_handle = PyInt_FromLong(*r->out.resume_handle);
17168 PyTuple_SetItem(result, 2, py_resume_handle);
17169 if (!W_ERROR_IS_OK(r->out.result)) {
17170 PyErr_SetWERROR(r->out.result);
17177 static bool pack_py_srvsvc_NetShareGetInfo_args_in(PyObject *args, PyObject *kwargs, struct srvsvc_NetShareGetInfo *r)
17179 PyObject *py_server_unc;
17180 PyObject *py_share_name;
17181 PyObject *py_level;
17182 const char *kwnames[] = {
17183 "server_unc", "share_name", "level", NULL
17186 if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OOO:srvsvc_NetShareGetInfo", discard_const_p(char *, kwnames), &py_server_unc, &py_share_name, &py_level)) {
17190 if (py_server_unc == Py_None) {
17191 r->in.server_unc = NULL;
17193 r->in.server_unc = NULL;
17194 if (PyUnicode_Check(py_server_unc)) {
17195 r->in.server_unc = PyString_AS_STRING(PyUnicode_AsEncodedString(py_server_unc, "utf-8", "ignore"));
17196 } else if (PyString_Check(py_server_unc)) {
17197 r->in.server_unc = PyString_AS_STRING(py_server_unc);
17199 PyErr_Format(PyExc_TypeError, "Expected string or unicode object, got %s", Py_TYPE(py_server_unc)->tp_name);
17203 if (PyUnicode_Check(py_share_name)) {
17204 r->in.share_name = PyString_AS_STRING(PyUnicode_AsEncodedString(py_share_name, "utf-8", "ignore"));
17205 } else if (PyString_Check(py_share_name)) {
17206 r->in.share_name = PyString_AS_STRING(py_share_name);
17208 PyErr_Format(PyExc_TypeError, "Expected string or unicode object, got %s", Py_TYPE(py_share_name)->tp_name);
17211 PY_CHECK_TYPE(&PyInt_Type, py_level, return false;);
17212 r->in.level = PyInt_AsLong(py_level);
17216 static PyObject *unpack_py_srvsvc_NetShareGetInfo_args_out(struct srvsvc_NetShareGetInfo *r)
17220 py_info = py_import_srvsvc_NetShareInfo(r->out.info, r->in.level, r->out.info);
17221 if (py_info == NULL) {
17225 if (!W_ERROR_IS_OK(r->out.result)) {
17226 PyErr_SetWERROR(r->out.result);
17233 static bool pack_py_srvsvc_NetShareSetInfo_args_in(PyObject *args, PyObject *kwargs, struct srvsvc_NetShareSetInfo *r)
17235 PyObject *py_server_unc;
17236 PyObject *py_share_name;
17237 PyObject *py_level;
17239 PyObject *py_parm_error;
17240 const char *kwnames[] = {
17241 "server_unc", "share_name", "level", "info", "parm_error", NULL
17244 if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OOOOO:srvsvc_NetShareSetInfo", discard_const_p(char *, kwnames), &py_server_unc, &py_share_name, &py_level, &py_info, &py_parm_error)) {
17248 if (py_server_unc == Py_None) {
17249 r->in.server_unc = NULL;
17251 r->in.server_unc = NULL;
17252 if (PyUnicode_Check(py_server_unc)) {
17253 r->in.server_unc = PyString_AS_STRING(PyUnicode_AsEncodedString(py_server_unc, "utf-8", "ignore"));
17254 } else if (PyString_Check(py_server_unc)) {
17255 r->in.server_unc = PyString_AS_STRING(py_server_unc);
17257 PyErr_Format(PyExc_TypeError, "Expected string or unicode object, got %s", Py_TYPE(py_server_unc)->tp_name);
17261 if (PyUnicode_Check(py_share_name)) {
17262 r->in.share_name = PyString_AS_STRING(PyUnicode_AsEncodedString(py_share_name, "utf-8", "ignore"));
17263 } else if (PyString_Check(py_share_name)) {
17264 r->in.share_name = PyString_AS_STRING(py_share_name);
17266 PyErr_Format(PyExc_TypeError, "Expected string or unicode object, got %s", Py_TYPE(py_share_name)->tp_name);
17269 PY_CHECK_TYPE(&PyInt_Type, py_level, return false;);
17270 r->in.level = PyInt_AsLong(py_level);
17271 r->in.info = talloc_ptrtype(r, r->in.info);
17273 union srvsvc_NetShareInfo *info_switch_1;
17274 info_switch_1 = py_export_srvsvc_NetShareInfo(r, r->in.level, py_info);
17275 if (info_switch_1 == NULL) {
17278 r->in.info = info_switch_1;
17280 if (py_parm_error == Py_None) {
17281 r->in.parm_error = NULL;
17283 r->in.parm_error = talloc_ptrtype(r, r->in.parm_error);
17284 PY_CHECK_TYPE(&PyInt_Type, py_parm_error, return false;);
17285 *r->in.parm_error = PyInt_AsLong(py_parm_error);
17290 static PyObject *unpack_py_srvsvc_NetShareSetInfo_args_out(struct srvsvc_NetShareSetInfo *r)
17293 PyObject *py_parm_error;
17294 if (r->out.parm_error == NULL) {
17295 py_parm_error = Py_None;
17296 Py_INCREF(py_parm_error);
17298 py_parm_error = PyInt_FromLong(*r->out.parm_error);
17300 result = py_parm_error;
17301 if (!W_ERROR_IS_OK(r->out.result)) {
17302 PyErr_SetWERROR(r->out.result);
17309 static bool pack_py_srvsvc_NetShareDel_args_in(PyObject *args, PyObject *kwargs, struct srvsvc_NetShareDel *r)
17311 PyObject *py_server_unc;
17312 PyObject *py_share_name;
17313 PyObject *py_reserved;
17314 const char *kwnames[] = {
17315 "server_unc", "share_name", "reserved", NULL
17318 if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OOO:srvsvc_NetShareDel", discard_const_p(char *, kwnames), &py_server_unc, &py_share_name, &py_reserved)) {
17322 if (py_server_unc == Py_None) {
17323 r->in.server_unc = NULL;
17325 r->in.server_unc = NULL;
17326 if (PyUnicode_Check(py_server_unc)) {
17327 r->in.server_unc = PyString_AS_STRING(PyUnicode_AsEncodedString(py_server_unc, "utf-8", "ignore"));
17328 } else if (PyString_Check(py_server_unc)) {
17329 r->in.server_unc = PyString_AS_STRING(py_server_unc);
17331 PyErr_Format(PyExc_TypeError, "Expected string or unicode object, got %s", Py_TYPE(py_server_unc)->tp_name);
17335 if (PyUnicode_Check(py_share_name)) {
17336 r->in.share_name = PyString_AS_STRING(PyUnicode_AsEncodedString(py_share_name, "utf-8", "ignore"));
17337 } else if (PyString_Check(py_share_name)) {
17338 r->in.share_name = PyString_AS_STRING(py_share_name);
17340 PyErr_Format(PyExc_TypeError, "Expected string or unicode object, got %s", Py_TYPE(py_share_name)->tp_name);
17343 PY_CHECK_TYPE(&PyInt_Type, py_reserved, return false;);
17344 r->in.reserved = PyInt_AsLong(py_reserved);
17348 static PyObject *unpack_py_srvsvc_NetShareDel_args_out(struct srvsvc_NetShareDel *r)
17353 if (!W_ERROR_IS_OK(r->out.result)) {
17354 PyErr_SetWERROR(r->out.result);
17361 static bool pack_py_srvsvc_NetShareDelSticky_args_in(PyObject *args, PyObject *kwargs, struct srvsvc_NetShareDelSticky *r)
17363 PyObject *py_server_unc;
17364 PyObject *py_share_name;
17365 PyObject *py_reserved;
17366 const char *kwnames[] = {
17367 "server_unc", "share_name", "reserved", NULL
17370 if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OOO:srvsvc_NetShareDelSticky", discard_const_p(char *, kwnames), &py_server_unc, &py_share_name, &py_reserved)) {
17374 if (py_server_unc == Py_None) {
17375 r->in.server_unc = NULL;
17377 r->in.server_unc = NULL;
17378 if (PyUnicode_Check(py_server_unc)) {
17379 r->in.server_unc = PyString_AS_STRING(PyUnicode_AsEncodedString(py_server_unc, "utf-8", "ignore"));
17380 } else if (PyString_Check(py_server_unc)) {
17381 r->in.server_unc = PyString_AS_STRING(py_server_unc);
17383 PyErr_Format(PyExc_TypeError, "Expected string or unicode object, got %s", Py_TYPE(py_server_unc)->tp_name);
17387 if (PyUnicode_Check(py_share_name)) {
17388 r->in.share_name = PyString_AS_STRING(PyUnicode_AsEncodedString(py_share_name, "utf-8", "ignore"));
17389 } else if (PyString_Check(py_share_name)) {
17390 r->in.share_name = PyString_AS_STRING(py_share_name);
17392 PyErr_Format(PyExc_TypeError, "Expected string or unicode object, got %s", Py_TYPE(py_share_name)->tp_name);
17395 PY_CHECK_TYPE(&PyInt_Type, py_reserved, return false;);
17396 r->in.reserved = PyInt_AsLong(py_reserved);
17400 static PyObject *unpack_py_srvsvc_NetShareDelSticky_args_out(struct srvsvc_NetShareDelSticky *r)
17405 if (!W_ERROR_IS_OK(r->out.result)) {
17406 PyErr_SetWERROR(r->out.result);
17413 static bool pack_py_srvsvc_NetShareCheck_args_in(PyObject *args, PyObject *kwargs, struct srvsvc_NetShareCheck *r)
17415 PyObject *py_server_unc;
17416 PyObject *py_device_name;
17417 const char *kwnames[] = {
17418 "server_unc", "device_name", NULL
17421 if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OO:srvsvc_NetShareCheck", discard_const_p(char *, kwnames), &py_server_unc, &py_device_name)) {
17425 if (py_server_unc == Py_None) {
17426 r->in.server_unc = NULL;
17428 r->in.server_unc = NULL;
17429 if (PyUnicode_Check(py_server_unc)) {
17430 r->in.server_unc = PyString_AS_STRING(PyUnicode_AsEncodedString(py_server_unc, "utf-8", "ignore"));
17431 } else if (PyString_Check(py_server_unc)) {
17432 r->in.server_unc = PyString_AS_STRING(py_server_unc);
17434 PyErr_Format(PyExc_TypeError, "Expected string or unicode object, got %s", Py_TYPE(py_server_unc)->tp_name);
17438 if (PyUnicode_Check(py_device_name)) {
17439 r->in.device_name = PyString_AS_STRING(PyUnicode_AsEncodedString(py_device_name, "utf-8", "ignore"));
17440 } else if (PyString_Check(py_device_name)) {
17441 r->in.device_name = PyString_AS_STRING(py_device_name);
17443 PyErr_Format(PyExc_TypeError, "Expected string or unicode object, got %s", Py_TYPE(py_device_name)->tp_name);
17449 static PyObject *unpack_py_srvsvc_NetShareCheck_args_out(struct srvsvc_NetShareCheck *r)
17453 py_type = PyInt_FromLong(*r->out.type);
17455 if (!W_ERROR_IS_OK(r->out.result)) {
17456 PyErr_SetWERROR(r->out.result);
17463 static bool pack_py_srvsvc_NetSrvGetInfo_args_in(PyObject *args, PyObject *kwargs, struct srvsvc_NetSrvGetInfo *r)
17465 PyObject *py_server_unc;
17466 PyObject *py_level;
17467 const char *kwnames[] = {
17468 "server_unc", "level", NULL
17471 if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OO:srvsvc_NetSrvGetInfo", discard_const_p(char *, kwnames), &py_server_unc, &py_level)) {
17475 if (py_server_unc == Py_None) {
17476 r->in.server_unc = NULL;
17478 r->in.server_unc = NULL;
17479 if (PyUnicode_Check(py_server_unc)) {
17480 r->in.server_unc = PyString_AS_STRING(PyUnicode_AsEncodedString(py_server_unc, "utf-8", "ignore"));
17481 } else if (PyString_Check(py_server_unc)) {
17482 r->in.server_unc = PyString_AS_STRING(py_server_unc);
17484 PyErr_Format(PyExc_TypeError, "Expected string or unicode object, got %s", Py_TYPE(py_server_unc)->tp_name);
17488 PY_CHECK_TYPE(&PyInt_Type, py_level, return false;);
17489 r->in.level = PyInt_AsLong(py_level);
17493 static PyObject *unpack_py_srvsvc_NetSrvGetInfo_args_out(struct srvsvc_NetSrvGetInfo *r)
17497 py_info = py_import_srvsvc_NetSrvInfo(r->out.info, r->in.level, r->out.info);
17498 if (py_info == NULL) {
17502 if (!W_ERROR_IS_OK(r->out.result)) {
17503 PyErr_SetWERROR(r->out.result);
17510 static bool pack_py_srvsvc_NetSrvSetInfo_args_in(PyObject *args, PyObject *kwargs, struct srvsvc_NetSrvSetInfo *r)
17512 PyObject *py_server_unc;
17513 PyObject *py_level;
17515 PyObject *py_parm_error;
17516 const char *kwnames[] = {
17517 "server_unc", "level", "info", "parm_error", NULL
17520 if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OOOO:srvsvc_NetSrvSetInfo", discard_const_p(char *, kwnames), &py_server_unc, &py_level, &py_info, &py_parm_error)) {
17524 if (py_server_unc == Py_None) {
17525 r->in.server_unc = NULL;
17527 r->in.server_unc = NULL;
17528 if (PyUnicode_Check(py_server_unc)) {
17529 r->in.server_unc = PyString_AS_STRING(PyUnicode_AsEncodedString(py_server_unc, "utf-8", "ignore"));
17530 } else if (PyString_Check(py_server_unc)) {
17531 r->in.server_unc = PyString_AS_STRING(py_server_unc);
17533 PyErr_Format(PyExc_TypeError, "Expected string or unicode object, got %s", Py_TYPE(py_server_unc)->tp_name);
17537 PY_CHECK_TYPE(&PyInt_Type, py_level, return false;);
17538 r->in.level = PyInt_AsLong(py_level);
17539 r->in.info = talloc_ptrtype(r, r->in.info);
17541 union srvsvc_NetSrvInfo *info_switch_1;
17542 info_switch_1 = py_export_srvsvc_NetSrvInfo(r, r->in.level, py_info);
17543 if (info_switch_1 == NULL) {
17546 r->in.info = info_switch_1;
17548 if (py_parm_error == Py_None) {
17549 r->in.parm_error = NULL;
17551 r->in.parm_error = talloc_ptrtype(r, r->in.parm_error);
17552 PY_CHECK_TYPE(&PyInt_Type, py_parm_error, return false;);
17553 *r->in.parm_error = PyInt_AsLong(py_parm_error);
17558 static PyObject *unpack_py_srvsvc_NetSrvSetInfo_args_out(struct srvsvc_NetSrvSetInfo *r)
17561 PyObject *py_parm_error;
17562 if (r->out.parm_error == NULL) {
17563 py_parm_error = Py_None;
17564 Py_INCREF(py_parm_error);
17566 py_parm_error = PyInt_FromLong(*r->out.parm_error);
17568 result = py_parm_error;
17569 if (!W_ERROR_IS_OK(r->out.result)) {
17570 PyErr_SetWERROR(r->out.result);
17577 static bool pack_py_srvsvc_NetDiskEnum_args_in(PyObject *args, PyObject *kwargs, struct srvsvc_NetDiskEnum *r)
17579 PyObject *py_server_unc;
17580 PyObject *py_level;
17582 PyObject *py_maxlen;
17583 PyObject *py_resume_handle;
17584 const char *kwnames[] = {
17585 "server_unc", "level", "info", "maxlen", "resume_handle", NULL
17588 if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OOOOO:srvsvc_NetDiskEnum", discard_const_p(char *, kwnames), &py_server_unc, &py_level, &py_info, &py_maxlen, &py_resume_handle)) {
17592 if (py_server_unc == Py_None) {
17593 r->in.server_unc = NULL;
17595 r->in.server_unc = NULL;
17596 if (PyUnicode_Check(py_server_unc)) {
17597 r->in.server_unc = PyString_AS_STRING(PyUnicode_AsEncodedString(py_server_unc, "utf-8", "ignore"));
17598 } else if (PyString_Check(py_server_unc)) {
17599 r->in.server_unc = PyString_AS_STRING(py_server_unc);
17601 PyErr_Format(PyExc_TypeError, "Expected string or unicode object, got %s", Py_TYPE(py_server_unc)->tp_name);
17605 PY_CHECK_TYPE(&PyInt_Type, py_level, return false;);
17606 r->in.level = PyInt_AsLong(py_level);
17607 r->in.info = talloc_ptrtype(r, r->in.info);
17608 PY_CHECK_TYPE(&srvsvc_NetDiskInfo_Type, py_info, return false;);
17609 if (talloc_reference(r, pytalloc_get_mem_ctx(py_info)) == NULL) {
17613 r->in.info = (struct srvsvc_NetDiskInfo *)pytalloc_get_ptr(py_info);
17614 PY_CHECK_TYPE(&PyInt_Type, py_maxlen, return false;);
17615 r->in.maxlen = PyInt_AsLong(py_maxlen);
17616 if (py_resume_handle == Py_None) {
17617 r->in.resume_handle = NULL;
17619 r->in.resume_handle = talloc_ptrtype(r, r->in.resume_handle);
17620 PY_CHECK_TYPE(&PyInt_Type, py_resume_handle, return false;);
17621 *r->in.resume_handle = PyInt_AsLong(py_resume_handle);
17626 static PyObject *unpack_py_srvsvc_NetDiskEnum_args_out(struct srvsvc_NetDiskEnum *r)
17630 PyObject *py_totalentries;
17631 PyObject *py_resume_handle;
17632 result = PyTuple_New(3);
17633 py_info = pytalloc_reference_ex(&srvsvc_NetDiskInfo_Type, r->out.info, r->out.info);
17634 PyTuple_SetItem(result, 0, py_info);
17635 py_totalentries = PyInt_FromLong(*r->out.totalentries);
17636 PyTuple_SetItem(result, 1, py_totalentries);
17637 if (r->out.resume_handle == NULL) {
17638 py_resume_handle = Py_None;
17639 Py_INCREF(py_resume_handle);
17641 py_resume_handle = PyInt_FromLong(*r->out.resume_handle);
17643 PyTuple_SetItem(result, 2, py_resume_handle);
17644 if (!W_ERROR_IS_OK(r->out.result)) {
17645 PyErr_SetWERROR(r->out.result);
17652 static bool pack_py_srvsvc_NetServerStatisticsGet_args_in(PyObject *args, PyObject *kwargs, struct srvsvc_NetServerStatisticsGet *r)
17654 PyObject *py_server_unc;
17655 PyObject *py_service;
17656 PyObject *py_level;
17657 PyObject *py_options;
17658 const char *kwnames[] = {
17659 "server_unc", "service", "level", "options", NULL
17662 if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OOOO:srvsvc_NetServerStatisticsGet", discard_const_p(char *, kwnames), &py_server_unc, &py_service, &py_level, &py_options)) {
17666 if (py_server_unc == Py_None) {
17667 r->in.server_unc = NULL;
17669 r->in.server_unc = NULL;
17670 if (PyUnicode_Check(py_server_unc)) {
17671 r->in.server_unc = PyString_AS_STRING(PyUnicode_AsEncodedString(py_server_unc, "utf-8", "ignore"));
17672 } else if (PyString_Check(py_server_unc)) {
17673 r->in.server_unc = PyString_AS_STRING(py_server_unc);
17675 PyErr_Format(PyExc_TypeError, "Expected string or unicode object, got %s", Py_TYPE(py_server_unc)->tp_name);
17679 if (py_service == Py_None) {
17680 r->in.service = NULL;
17682 r->in.service = NULL;
17683 if (PyUnicode_Check(py_service)) {
17684 r->in.service = PyString_AS_STRING(PyUnicode_AsEncodedString(py_service, "utf-8", "ignore"));
17685 } else if (PyString_Check(py_service)) {
17686 r->in.service = PyString_AS_STRING(py_service);
17688 PyErr_Format(PyExc_TypeError, "Expected string or unicode object, got %s", Py_TYPE(py_service)->tp_name);
17692 PY_CHECK_TYPE(&PyInt_Type, py_level, return false;);
17693 r->in.level = PyInt_AsLong(py_level);
17694 PY_CHECK_TYPE(&PyInt_Type, py_options, return false;);
17695 r->in.options = PyInt_AsLong(py_options);
17699 static PyObject *unpack_py_srvsvc_NetServerStatisticsGet_args_out(struct srvsvc_NetServerStatisticsGet *r)
17702 PyObject *py_stats;
17703 if (*r->out.stats == NULL) {
17704 py_stats = Py_None;
17705 Py_INCREF(py_stats);
17707 py_stats = pytalloc_reference_ex(&srvsvc_Statistics_Type, *r->out.stats, *r->out.stats);
17710 if (!W_ERROR_IS_OK(r->out.result)) {
17711 PyErr_SetWERROR(r->out.result);
17718 static bool pack_py_srvsvc_NetTransportAdd_args_in(PyObject *args, PyObject *kwargs, struct srvsvc_NetTransportAdd *r)
17720 PyObject *py_server_unc;
17721 PyObject *py_level;
17723 const char *kwnames[] = {
17724 "server_unc", "level", "info", NULL
17727 if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OOO:srvsvc_NetTransportAdd", discard_const_p(char *, kwnames), &py_server_unc, &py_level, &py_info)) {
17731 if (py_server_unc == Py_None) {
17732 r->in.server_unc = NULL;
17734 r->in.server_unc = NULL;
17735 if (PyUnicode_Check(py_server_unc)) {
17736 r->in.server_unc = PyString_AS_STRING(PyUnicode_AsEncodedString(py_server_unc, "utf-8", "ignore"));
17737 } else if (PyString_Check(py_server_unc)) {
17738 r->in.server_unc = PyString_AS_STRING(py_server_unc);
17740 PyErr_Format(PyExc_TypeError, "Expected string or unicode object, got %s", Py_TYPE(py_server_unc)->tp_name);
17744 PY_CHECK_TYPE(&PyInt_Type, py_level, return false;);
17745 r->in.level = PyInt_AsLong(py_level);
17747 union srvsvc_NetTransportInfo *info_switch_0;
17748 info_switch_0 = py_export_srvsvc_NetTransportInfo(r, r->in.level, py_info);
17749 if (info_switch_0 == NULL) {
17752 r->in.info = *info_switch_0;
17757 static PyObject *unpack_py_srvsvc_NetTransportAdd_args_out(struct srvsvc_NetTransportAdd *r)
17762 if (!W_ERROR_IS_OK(r->out.result)) {
17763 PyErr_SetWERROR(r->out.result);
17770 static bool pack_py_srvsvc_NetTransportEnum_args_in(PyObject *args, PyObject *kwargs, struct srvsvc_NetTransportEnum *r)
17772 PyObject *py_server_unc;
17773 PyObject *py_transports;
17774 PyObject *py_max_buffer;
17775 PyObject *py_resume_handle;
17776 const char *kwnames[] = {
17777 "server_unc", "transports", "max_buffer", "resume_handle", NULL
17780 if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OOOO:srvsvc_NetTransportEnum", discard_const_p(char *, kwnames), &py_server_unc, &py_transports, &py_max_buffer, &py_resume_handle)) {
17784 if (py_server_unc == Py_None) {
17785 r->in.server_unc = NULL;
17787 r->in.server_unc = NULL;
17788 if (PyUnicode_Check(py_server_unc)) {
17789 r->in.server_unc = PyString_AS_STRING(PyUnicode_AsEncodedString(py_server_unc, "utf-8", "ignore"));
17790 } else if (PyString_Check(py_server_unc)) {
17791 r->in.server_unc = PyString_AS_STRING(py_server_unc);
17793 PyErr_Format(PyExc_TypeError, "Expected string or unicode object, got %s", Py_TYPE(py_server_unc)->tp_name);
17797 r->in.transports = talloc_ptrtype(r, r->in.transports);
17798 PY_CHECK_TYPE(&srvsvc_NetTransportInfoCtr_Type, py_transports, return false;);
17799 if (talloc_reference(r, pytalloc_get_mem_ctx(py_transports)) == NULL) {
17803 r->in.transports = (struct srvsvc_NetTransportInfoCtr *)pytalloc_get_ptr(py_transports);
17804 PY_CHECK_TYPE(&PyInt_Type, py_max_buffer, return false;);
17805 r->in.max_buffer = PyInt_AsLong(py_max_buffer);
17806 if (py_resume_handle == Py_None) {
17807 r->in.resume_handle = NULL;
17809 r->in.resume_handle = talloc_ptrtype(r, r->in.resume_handle);
17810 PY_CHECK_TYPE(&PyInt_Type, py_resume_handle, return false;);
17811 *r->in.resume_handle = PyInt_AsLong(py_resume_handle);
17816 static PyObject *unpack_py_srvsvc_NetTransportEnum_args_out(struct srvsvc_NetTransportEnum *r)
17819 PyObject *py_transports;
17820 PyObject *py_totalentries;
17821 PyObject *py_resume_handle;
17822 result = PyTuple_New(3);
17823 py_transports = pytalloc_reference_ex(&srvsvc_NetTransportInfoCtr_Type, r->out.transports, r->out.transports);
17824 PyTuple_SetItem(result, 0, py_transports);
17825 py_totalentries = PyInt_FromLong(*r->out.totalentries);
17826 PyTuple_SetItem(result, 1, py_totalentries);
17827 if (r->out.resume_handle == NULL) {
17828 py_resume_handle = Py_None;
17829 Py_INCREF(py_resume_handle);
17831 py_resume_handle = PyInt_FromLong(*r->out.resume_handle);
17833 PyTuple_SetItem(result, 2, py_resume_handle);
17834 if (!W_ERROR_IS_OK(r->out.result)) {
17835 PyErr_SetWERROR(r->out.result);
17842 static bool pack_py_srvsvc_NetTransportDel_args_in(PyObject *args, PyObject *kwargs, struct srvsvc_NetTransportDel *r)
17844 PyObject *py_server_unc;
17845 PyObject *py_level;
17846 PyObject *py_info0;
17847 const char *kwnames[] = {
17848 "server_unc", "level", "info0", NULL
17851 if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OOO:srvsvc_NetTransportDel", discard_const_p(char *, kwnames), &py_server_unc, &py_level, &py_info0)) {
17855 if (py_server_unc == Py_None) {
17856 r->in.server_unc = NULL;
17858 r->in.server_unc = NULL;
17859 if (PyUnicode_Check(py_server_unc)) {
17860 r->in.server_unc = PyString_AS_STRING(PyUnicode_AsEncodedString(py_server_unc, "utf-8", "ignore"));
17861 } else if (PyString_Check(py_server_unc)) {
17862 r->in.server_unc = PyString_AS_STRING(py_server_unc);
17864 PyErr_Format(PyExc_TypeError, "Expected string or unicode object, got %s", Py_TYPE(py_server_unc)->tp_name);
17868 PY_CHECK_TYPE(&PyInt_Type, py_level, return false;);
17869 r->in.level = PyInt_AsLong(py_level);
17870 r->in.info0 = talloc_ptrtype(r, r->in.info0);
17871 PY_CHECK_TYPE(&srvsvc_NetTransportInfo0_Type, py_info0, return false;);
17872 if (talloc_reference(r, pytalloc_get_mem_ctx(py_info0)) == NULL) {
17876 r->in.info0 = (struct srvsvc_NetTransportInfo0 *)pytalloc_get_ptr(py_info0);
17880 static PyObject *unpack_py_srvsvc_NetTransportDel_args_out(struct srvsvc_NetTransportDel *r)
17885 if (!W_ERROR_IS_OK(r->out.result)) {
17886 PyErr_SetWERROR(r->out.result);
17893 static bool pack_py_srvsvc_NetRemoteTOD_args_in(PyObject *args, PyObject *kwargs, struct srvsvc_NetRemoteTOD *r)
17895 PyObject *py_server_unc;
17896 const char *kwnames[] = {
17900 if (!PyArg_ParseTupleAndKeywords(args, kwargs, "O:srvsvc_NetRemoteTOD", discard_const_p(char *, kwnames), &py_server_unc)) {
17904 if (py_server_unc == Py_None) {
17905 r->in.server_unc = NULL;
17907 r->in.server_unc = NULL;
17908 if (PyUnicode_Check(py_server_unc)) {
17909 r->in.server_unc = PyString_AS_STRING(PyUnicode_AsEncodedString(py_server_unc, "utf-8", "ignore"));
17910 } else if (PyString_Check(py_server_unc)) {
17911 r->in.server_unc = PyString_AS_STRING(py_server_unc);
17913 PyErr_Format(PyExc_TypeError, "Expected string or unicode object, got %s", Py_TYPE(py_server_unc)->tp_name);
17920 static PyObject *unpack_py_srvsvc_NetRemoteTOD_args_out(struct srvsvc_NetRemoteTOD *r)
17924 if (*r->out.info == NULL) {
17926 Py_INCREF(py_info);
17928 py_info = pytalloc_reference_ex(&srvsvc_NetRemoteTODInfo_Type, *r->out.info, *r->out.info);
17931 if (!W_ERROR_IS_OK(r->out.result)) {
17932 PyErr_SetWERROR(r->out.result);
17939 static bool pack_py_srvsvc_NetSetServiceBits_args_in(PyObject *args, PyObject *kwargs, struct srvsvc_NetSetServiceBits *r)
17941 PyObject *py_server_unc;
17942 PyObject *py_transport;
17943 PyObject *py_servicebits;
17944 PyObject *py_updateimmediately;
17945 const char *kwnames[] = {
17946 "server_unc", "transport", "servicebits", "updateimmediately", NULL
17949 if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OOOO:srvsvc_NetSetServiceBits", discard_const_p(char *, kwnames), &py_server_unc, &py_transport, &py_servicebits, &py_updateimmediately)) {
17953 if (py_server_unc == Py_None) {
17954 r->in.server_unc = NULL;
17956 r->in.server_unc = NULL;
17957 if (PyUnicode_Check(py_server_unc)) {
17958 r->in.server_unc = PyString_AS_STRING(PyUnicode_AsEncodedString(py_server_unc, "utf-8", "ignore"));
17959 } else if (PyString_Check(py_server_unc)) {
17960 r->in.server_unc = PyString_AS_STRING(py_server_unc);
17962 PyErr_Format(PyExc_TypeError, "Expected string or unicode object, got %s", Py_TYPE(py_server_unc)->tp_name);
17966 if (py_transport == Py_None) {
17967 r->in.transport = NULL;
17969 r->in.transport = NULL;
17970 if (PyUnicode_Check(py_transport)) {
17971 r->in.transport = PyString_AS_STRING(PyUnicode_AsEncodedString(py_transport, "utf-8", "ignore"));
17972 } else if (PyString_Check(py_transport)) {
17973 r->in.transport = PyString_AS_STRING(py_transport);
17975 PyErr_Format(PyExc_TypeError, "Expected string or unicode object, got %s", Py_TYPE(py_transport)->tp_name);
17979 PY_CHECK_TYPE(&PyInt_Type, py_servicebits, return false;);
17980 r->in.servicebits = PyInt_AsLong(py_servicebits);
17981 PY_CHECK_TYPE(&PyInt_Type, py_updateimmediately, return false;);
17982 r->in.updateimmediately = PyInt_AsLong(py_updateimmediately);
17986 static PyObject *unpack_py_srvsvc_NetSetServiceBits_args_out(struct srvsvc_NetSetServiceBits *r)
17991 if (!W_ERROR_IS_OK(r->out.result)) {
17992 PyErr_SetWERROR(r->out.result);
17999 static bool pack_py_srvsvc_NetPathType_args_in(PyObject *args, PyObject *kwargs, struct srvsvc_NetPathType *r)
18001 PyObject *py_server_unc;
18003 PyObject *py_pathflags;
18004 const char *kwnames[] = {
18005 "server_unc", "path", "pathflags", NULL
18008 if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OOO:srvsvc_NetPathType", discard_const_p(char *, kwnames), &py_server_unc, &py_path, &py_pathflags)) {
18012 if (py_server_unc == Py_None) {
18013 r->in.server_unc = NULL;
18015 r->in.server_unc = NULL;
18016 if (PyUnicode_Check(py_server_unc)) {
18017 r->in.server_unc = PyString_AS_STRING(PyUnicode_AsEncodedString(py_server_unc, "utf-8", "ignore"));
18018 } else if (PyString_Check(py_server_unc)) {
18019 r->in.server_unc = PyString_AS_STRING(py_server_unc);
18021 PyErr_Format(PyExc_TypeError, "Expected string or unicode object, got %s", Py_TYPE(py_server_unc)->tp_name);
18025 if (PyUnicode_Check(py_path)) {
18026 r->in.path = PyString_AS_STRING(PyUnicode_AsEncodedString(py_path, "utf-8", "ignore"));
18027 } else if (PyString_Check(py_path)) {
18028 r->in.path = PyString_AS_STRING(py_path);
18030 PyErr_Format(PyExc_TypeError, "Expected string or unicode object, got %s", Py_TYPE(py_path)->tp_name);
18033 PY_CHECK_TYPE(&PyInt_Type, py_pathflags, return false;);
18034 r->in.pathflags = PyInt_AsLong(py_pathflags);
18038 static PyObject *unpack_py_srvsvc_NetPathType_args_out(struct srvsvc_NetPathType *r)
18041 PyObject *py_pathtype;
18042 py_pathtype = PyInt_FromLong(*r->out.pathtype);
18043 result = py_pathtype;
18044 if (!W_ERROR_IS_OK(r->out.result)) {
18045 PyErr_SetWERROR(r->out.result);
18052 static bool pack_py_srvsvc_NetPathCanonicalize_args_in(PyObject *args, PyObject *kwargs, struct srvsvc_NetPathCanonicalize *r)
18054 PyObject *py_server_unc;
18056 PyObject *py_maxbuf;
18057 PyObject *py_prefix;
18058 PyObject *py_pathtype;
18059 PyObject *py_pathflags;
18060 const char *kwnames[] = {
18061 "server_unc", "path", "maxbuf", "prefix", "pathtype", "pathflags", NULL
18064 if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OOOOOO:srvsvc_NetPathCanonicalize", discard_const_p(char *, kwnames), &py_server_unc, &py_path, &py_maxbuf, &py_prefix, &py_pathtype, &py_pathflags)) {
18068 if (py_server_unc == Py_None) {
18069 r->in.server_unc = NULL;
18071 r->in.server_unc = NULL;
18072 if (PyUnicode_Check(py_server_unc)) {
18073 r->in.server_unc = PyString_AS_STRING(PyUnicode_AsEncodedString(py_server_unc, "utf-8", "ignore"));
18074 } else if (PyString_Check(py_server_unc)) {
18075 r->in.server_unc = PyString_AS_STRING(py_server_unc);
18077 PyErr_Format(PyExc_TypeError, "Expected string or unicode object, got %s", Py_TYPE(py_server_unc)->tp_name);
18081 if (PyUnicode_Check(py_path)) {
18082 r->in.path = PyString_AS_STRING(PyUnicode_AsEncodedString(py_path, "utf-8", "ignore"));
18083 } else if (PyString_Check(py_path)) {
18084 r->in.path = PyString_AS_STRING(py_path);
18086 PyErr_Format(PyExc_TypeError, "Expected string or unicode object, got %s", Py_TYPE(py_path)->tp_name);
18089 PY_CHECK_TYPE(&PyInt_Type, py_maxbuf, return false;);
18090 r->in.maxbuf = PyInt_AsLong(py_maxbuf);
18091 if (PyUnicode_Check(py_prefix)) {
18092 r->in.prefix = PyString_AS_STRING(PyUnicode_AsEncodedString(py_prefix, "utf-8", "ignore"));
18093 } else if (PyString_Check(py_prefix)) {
18094 r->in.prefix = PyString_AS_STRING(py_prefix);
18096 PyErr_Format(PyExc_TypeError, "Expected string or unicode object, got %s", Py_TYPE(py_prefix)->tp_name);
18099 r->in.pathtype = talloc_ptrtype(r, r->in.pathtype);
18100 PY_CHECK_TYPE(&PyInt_Type, py_pathtype, return false;);
18101 *r->in.pathtype = PyInt_AsLong(py_pathtype);
18102 PY_CHECK_TYPE(&PyInt_Type, py_pathflags, return false;);
18103 r->in.pathflags = PyInt_AsLong(py_pathflags);
18107 static PyObject *unpack_py_srvsvc_NetPathCanonicalize_args_out(struct srvsvc_NetPathCanonicalize *r)
18110 PyObject *py_can_path;
18111 PyObject *py_pathtype;
18112 result = PyTuple_New(2);
18113 py_can_path = PyList_New(r->in.maxbuf);
18114 if (py_can_path == NULL) {
18118 int can_path_cntr_0;
18119 for (can_path_cntr_0 = 0; can_path_cntr_0 < r->in.maxbuf; can_path_cntr_0++) {
18120 PyObject *py_can_path_0;
18121 py_can_path_0 = PyInt_FromLong(r->out.can_path[can_path_cntr_0]);
18122 PyList_SetItem(py_can_path, can_path_cntr_0, py_can_path_0);
18125 PyTuple_SetItem(result, 0, py_can_path);
18126 py_pathtype = PyInt_FromLong(*r->out.pathtype);
18127 PyTuple_SetItem(result, 1, py_pathtype);
18128 if (!W_ERROR_IS_OK(r->out.result)) {
18129 PyErr_SetWERROR(r->out.result);
18136 static bool pack_py_srvsvc_NetPathCompare_args_in(PyObject *args, PyObject *kwargs, struct srvsvc_NetPathCompare *r)
18138 PyObject *py_server_unc;
18139 PyObject *py_path1;
18140 PyObject *py_path2;
18141 PyObject *py_pathtype;
18142 PyObject *py_pathflags;
18143 const char *kwnames[] = {
18144 "server_unc", "path1", "path2", "pathtype", "pathflags", NULL
18147 if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OOOOO:srvsvc_NetPathCompare", discard_const_p(char *, kwnames), &py_server_unc, &py_path1, &py_path2, &py_pathtype, &py_pathflags)) {
18151 if (py_server_unc == Py_None) {
18152 r->in.server_unc = NULL;
18154 r->in.server_unc = NULL;
18155 if (PyUnicode_Check(py_server_unc)) {
18156 r->in.server_unc = PyString_AS_STRING(PyUnicode_AsEncodedString(py_server_unc, "utf-8", "ignore"));
18157 } else if (PyString_Check(py_server_unc)) {
18158 r->in.server_unc = PyString_AS_STRING(py_server_unc);
18160 PyErr_Format(PyExc_TypeError, "Expected string or unicode object, got %s", Py_TYPE(py_server_unc)->tp_name);
18164 if (PyUnicode_Check(py_path1)) {
18165 r->in.path1 = PyString_AS_STRING(PyUnicode_AsEncodedString(py_path1, "utf-8", "ignore"));
18166 } else if (PyString_Check(py_path1)) {
18167 r->in.path1 = PyString_AS_STRING(py_path1);
18169 PyErr_Format(PyExc_TypeError, "Expected string or unicode object, got %s", Py_TYPE(py_path1)->tp_name);
18172 if (PyUnicode_Check(py_path2)) {
18173 r->in.path2 = PyString_AS_STRING(PyUnicode_AsEncodedString(py_path2, "utf-8", "ignore"));
18174 } else if (PyString_Check(py_path2)) {
18175 r->in.path2 = PyString_AS_STRING(py_path2);
18177 PyErr_Format(PyExc_TypeError, "Expected string or unicode object, got %s", Py_TYPE(py_path2)->tp_name);
18180 PY_CHECK_TYPE(&PyInt_Type, py_pathtype, return false;);
18181 r->in.pathtype = PyInt_AsLong(py_pathtype);
18182 PY_CHECK_TYPE(&PyInt_Type, py_pathflags, return false;);
18183 r->in.pathflags = PyInt_AsLong(py_pathflags);
18187 static PyObject *unpack_py_srvsvc_NetPathCompare_args_out(struct srvsvc_NetPathCompare *r)
18192 if (!W_ERROR_IS_OK(r->out.result)) {
18193 PyErr_SetWERROR(r->out.result);
18200 static bool pack_py_srvsvc_NetNameValidate_args_in(PyObject *args, PyObject *kwargs, struct srvsvc_NetNameValidate *r)
18202 PyObject *py_server_unc;
18204 PyObject *py_name_type;
18205 PyObject *py_flags;
18206 const char *kwnames[] = {
18207 "server_unc", "name", "name_type", "flags", NULL
18210 if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OOOO:srvsvc_NetNameValidate", discard_const_p(char *, kwnames), &py_server_unc, &py_name, &py_name_type, &py_flags)) {
18214 if (py_server_unc == Py_None) {
18215 r->in.server_unc = NULL;
18217 r->in.server_unc = NULL;
18218 if (PyUnicode_Check(py_server_unc)) {
18219 r->in.server_unc = PyString_AS_STRING(PyUnicode_AsEncodedString(py_server_unc, "utf-8", "ignore"));
18220 } else if (PyString_Check(py_server_unc)) {
18221 r->in.server_unc = PyString_AS_STRING(py_server_unc);
18223 PyErr_Format(PyExc_TypeError, "Expected string or unicode object, got %s", Py_TYPE(py_server_unc)->tp_name);
18227 if (PyUnicode_Check(py_name)) {
18228 r->in.name = PyString_AS_STRING(PyUnicode_AsEncodedString(py_name, "utf-8", "ignore"));
18229 } else if (PyString_Check(py_name)) {
18230 r->in.name = PyString_AS_STRING(py_name);
18232 PyErr_Format(PyExc_TypeError, "Expected string or unicode object, got %s", Py_TYPE(py_name)->tp_name);
18235 PY_CHECK_TYPE(&PyInt_Type, py_name_type, return false;);
18236 r->in.name_type = PyInt_AsLong(py_name_type);
18237 PY_CHECK_TYPE(&PyInt_Type, py_flags, return false;);
18238 r->in.flags = PyInt_AsLong(py_flags);
18242 static PyObject *unpack_py_srvsvc_NetNameValidate_args_out(struct srvsvc_NetNameValidate *r)
18247 if (!W_ERROR_IS_OK(r->out.result)) {
18248 PyErr_SetWERROR(r->out.result);
18255 static bool pack_py_srvsvc_NetPRNameCompare_args_in(PyObject *args, PyObject *kwargs, struct srvsvc_NetPRNameCompare *r)
18257 PyObject *py_server_unc;
18258 PyObject *py_name1;
18259 PyObject *py_name2;
18260 PyObject *py_name_type;
18261 PyObject *py_flags;
18262 const char *kwnames[] = {
18263 "server_unc", "name1", "name2", "name_type", "flags", NULL
18266 if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OOOOO:srvsvc_NetPRNameCompare", discard_const_p(char *, kwnames), &py_server_unc, &py_name1, &py_name2, &py_name_type, &py_flags)) {
18270 if (py_server_unc == Py_None) {
18271 r->in.server_unc = NULL;
18273 r->in.server_unc = NULL;
18274 if (PyUnicode_Check(py_server_unc)) {
18275 r->in.server_unc = PyString_AS_STRING(PyUnicode_AsEncodedString(py_server_unc, "utf-8", "ignore"));
18276 } else if (PyString_Check(py_server_unc)) {
18277 r->in.server_unc = PyString_AS_STRING(py_server_unc);
18279 PyErr_Format(PyExc_TypeError, "Expected string or unicode object, got %s", Py_TYPE(py_server_unc)->tp_name);
18283 if (PyUnicode_Check(py_name1)) {
18284 r->in.name1 = PyString_AS_STRING(PyUnicode_AsEncodedString(py_name1, "utf-8", "ignore"));
18285 } else if (PyString_Check(py_name1)) {
18286 r->in.name1 = PyString_AS_STRING(py_name1);
18288 PyErr_Format(PyExc_TypeError, "Expected string or unicode object, got %s", Py_TYPE(py_name1)->tp_name);
18291 if (PyUnicode_Check(py_name2)) {
18292 r->in.name2 = PyString_AS_STRING(PyUnicode_AsEncodedString(py_name2, "utf-8", "ignore"));
18293 } else if (PyString_Check(py_name2)) {
18294 r->in.name2 = PyString_AS_STRING(py_name2);
18296 PyErr_Format(PyExc_TypeError, "Expected string or unicode object, got %s", Py_TYPE(py_name2)->tp_name);
18299 PY_CHECK_TYPE(&PyInt_Type, py_name_type, return false;);
18300 r->in.name_type = PyInt_AsLong(py_name_type);
18301 PY_CHECK_TYPE(&PyInt_Type, py_flags, return false;);
18302 r->in.flags = PyInt_AsLong(py_flags);
18306 static PyObject *unpack_py_srvsvc_NetPRNameCompare_args_out(struct srvsvc_NetPRNameCompare *r)
18311 if (!W_ERROR_IS_OK(r->out.result)) {
18312 PyErr_SetWERROR(r->out.result);
18319 static bool pack_py_srvsvc_NetShareEnum_args_in(PyObject *args, PyObject *kwargs, struct srvsvc_NetShareEnum *r)
18321 PyObject *py_server_unc;
18322 PyObject *py_info_ctr;
18323 PyObject *py_max_buffer;
18324 PyObject *py_resume_handle;
18325 const char *kwnames[] = {
18326 "server_unc", "info_ctr", "max_buffer", "resume_handle", NULL
18329 if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OOOO:srvsvc_NetShareEnum", discard_const_p(char *, kwnames), &py_server_unc, &py_info_ctr, &py_max_buffer, &py_resume_handle)) {
18333 if (py_server_unc == Py_None) {
18334 r->in.server_unc = NULL;
18336 r->in.server_unc = NULL;
18337 if (PyUnicode_Check(py_server_unc)) {
18338 r->in.server_unc = PyString_AS_STRING(PyUnicode_AsEncodedString(py_server_unc, "utf-8", "ignore"));
18339 } else if (PyString_Check(py_server_unc)) {
18340 r->in.server_unc = PyString_AS_STRING(py_server_unc);
18342 PyErr_Format(PyExc_TypeError, "Expected string or unicode object, got %s", Py_TYPE(py_server_unc)->tp_name);
18346 r->in.info_ctr = talloc_ptrtype(r, r->in.info_ctr);
18347 PY_CHECK_TYPE(&srvsvc_NetShareInfoCtr_Type, py_info_ctr, return false;);
18348 if (talloc_reference(r, pytalloc_get_mem_ctx(py_info_ctr)) == NULL) {
18352 r->in.info_ctr = (struct srvsvc_NetShareInfoCtr *)pytalloc_get_ptr(py_info_ctr);
18353 PY_CHECK_TYPE(&PyInt_Type, py_max_buffer, return false;);
18354 r->in.max_buffer = PyInt_AsLong(py_max_buffer);
18355 if (py_resume_handle == Py_None) {
18356 r->in.resume_handle = NULL;
18358 r->in.resume_handle = talloc_ptrtype(r, r->in.resume_handle);
18359 PY_CHECK_TYPE(&PyInt_Type, py_resume_handle, return false;);
18360 *r->in.resume_handle = PyInt_AsLong(py_resume_handle);
18365 static PyObject *unpack_py_srvsvc_NetShareEnum_args_out(struct srvsvc_NetShareEnum *r)
18368 PyObject *py_info_ctr;
18369 PyObject *py_totalentries;
18370 PyObject *py_resume_handle;
18371 result = PyTuple_New(3);
18372 py_info_ctr = pytalloc_reference_ex(&srvsvc_NetShareInfoCtr_Type, r->out.info_ctr, r->out.info_ctr);
18373 PyTuple_SetItem(result, 0, py_info_ctr);
18374 py_totalentries = PyInt_FromLong(*r->out.totalentries);
18375 PyTuple_SetItem(result, 1, py_totalentries);
18376 if (r->out.resume_handle == NULL) {
18377 py_resume_handle = Py_None;
18378 Py_INCREF(py_resume_handle);
18380 py_resume_handle = PyInt_FromLong(*r->out.resume_handle);
18382 PyTuple_SetItem(result, 2, py_resume_handle);
18383 if (!W_ERROR_IS_OK(r->out.result)) {
18384 PyErr_SetWERROR(r->out.result);
18391 static bool pack_py_srvsvc_NetShareDelStart_args_in(PyObject *args, PyObject *kwargs, struct srvsvc_NetShareDelStart *r)
18393 PyObject *py_server_unc;
18394 PyObject *py_share;
18395 PyObject *py_reserved;
18396 const char *kwnames[] = {
18397 "server_unc", "share", "reserved", NULL
18400 if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OOO:srvsvc_NetShareDelStart", discard_const_p(char *, kwnames), &py_server_unc, &py_share, &py_reserved)) {
18404 if (py_server_unc == Py_None) {
18405 r->in.server_unc = NULL;
18407 r->in.server_unc = NULL;
18408 if (PyUnicode_Check(py_server_unc)) {
18409 r->in.server_unc = PyString_AS_STRING(PyUnicode_AsEncodedString(py_server_unc, "utf-8", "ignore"));
18410 } else if (PyString_Check(py_server_unc)) {
18411 r->in.server_unc = PyString_AS_STRING(py_server_unc);
18413 PyErr_Format(PyExc_TypeError, "Expected string or unicode object, got %s", Py_TYPE(py_server_unc)->tp_name);
18417 if (PyUnicode_Check(py_share)) {
18418 r->in.share = PyString_AS_STRING(PyUnicode_AsEncodedString(py_share, "utf-8", "ignore"));
18419 } else if (PyString_Check(py_share)) {
18420 r->in.share = PyString_AS_STRING(py_share);
18422 PyErr_Format(PyExc_TypeError, "Expected string or unicode object, got %s", Py_TYPE(py_share)->tp_name);
18425 PY_CHECK_TYPE(&PyInt_Type, py_reserved, return false;);
18426 r->in.reserved = PyInt_AsLong(py_reserved);
18430 static PyObject *unpack_py_srvsvc_NetShareDelStart_args_out(struct srvsvc_NetShareDelStart *r)
18434 if (r->out.hnd == NULL) {
18438 py_hnd = pytalloc_reference_ex(policy_handle_Type, r->out.hnd, r->out.hnd);
18441 if (!W_ERROR_IS_OK(r->out.result)) {
18442 PyErr_SetWERROR(r->out.result);
18449 static bool pack_py_srvsvc_NetShareDelCommit_args_in(PyObject *args, PyObject *kwargs, struct srvsvc_NetShareDelCommit *r)
18452 const char *kwnames[] = {
18456 if (!PyArg_ParseTupleAndKeywords(args, kwargs, "O:srvsvc_NetShareDelCommit", discard_const_p(char *, kwnames), &py_hnd)) {
18460 if (py_hnd == Py_None) {
18464 PY_CHECK_TYPE(policy_handle_Type, py_hnd, return false;);
18465 if (talloc_reference(r, pytalloc_get_mem_ctx(py_hnd)) == NULL) {
18469 r->in.hnd = (struct policy_handle *)pytalloc_get_ptr(py_hnd);
18474 static PyObject *unpack_py_srvsvc_NetShareDelCommit_args_out(struct srvsvc_NetShareDelCommit *r)
18478 if (r->out.hnd == NULL) {
18482 py_hnd = pytalloc_reference_ex(policy_handle_Type, r->out.hnd, r->out.hnd);
18485 if (!W_ERROR_IS_OK(r->out.result)) {
18486 PyErr_SetWERROR(r->out.result);
18493 static bool pack_py_srvsvc_NetGetFileSecurity_args_in(PyObject *args, PyObject *kwargs, struct srvsvc_NetGetFileSecurity *r)
18495 PyObject *py_server_unc;
18496 PyObject *py_share;
18498 PyObject *py_securityinformation;
18499 const char *kwnames[] = {
18500 "server_unc", "share", "file", "securityinformation", NULL
18503 if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OOOO:srvsvc_NetGetFileSecurity", discard_const_p(char *, kwnames), &py_server_unc, &py_share, &py_file, &py_securityinformation)) {
18507 if (py_server_unc == Py_None) {
18508 r->in.server_unc = NULL;
18510 r->in.server_unc = NULL;
18511 if (PyUnicode_Check(py_server_unc)) {
18512 r->in.server_unc = PyString_AS_STRING(PyUnicode_AsEncodedString(py_server_unc, "utf-8", "ignore"));
18513 } else if (PyString_Check(py_server_unc)) {
18514 r->in.server_unc = PyString_AS_STRING(py_server_unc);
18516 PyErr_Format(PyExc_TypeError, "Expected string or unicode object, got %s", Py_TYPE(py_server_unc)->tp_name);
18520 if (py_share == Py_None) {
18521 r->in.share = NULL;
18523 r->in.share = NULL;
18524 if (PyUnicode_Check(py_share)) {
18525 r->in.share = PyString_AS_STRING(PyUnicode_AsEncodedString(py_share, "utf-8", "ignore"));
18526 } else if (PyString_Check(py_share)) {
18527 r->in.share = PyString_AS_STRING(py_share);
18529 PyErr_Format(PyExc_TypeError, "Expected string or unicode object, got %s", Py_TYPE(py_share)->tp_name);
18533 if (PyUnicode_Check(py_file)) {
18534 r->in.file = PyString_AS_STRING(PyUnicode_AsEncodedString(py_file, "utf-8", "ignore"));
18535 } else if (PyString_Check(py_file)) {
18536 r->in.file = PyString_AS_STRING(py_file);
18538 PyErr_Format(PyExc_TypeError, "Expected string or unicode object, got %s", Py_TYPE(py_file)->tp_name);
18541 if (PyLong_Check(py_securityinformation)) {
18542 r->in.securityinformation = PyLong_AsLongLong(py_securityinformation);
18543 } else if (PyInt_Check(py_securityinformation)) {
18544 r->in.securityinformation = PyInt_AsLong(py_securityinformation);
18546 PyErr_Format(PyExc_TypeError, "Expected type %s or %s",\
18547 PyInt_Type.tp_name, PyLong_Type.tp_name);
18553 static PyObject *unpack_py_srvsvc_NetGetFileSecurity_args_out(struct srvsvc_NetGetFileSecurity *r)
18556 PyObject *py_sd_buf;
18557 if (*r->out.sd_buf == NULL) {
18558 py_sd_buf = Py_None;
18559 Py_INCREF(py_sd_buf);
18561 py_sd_buf = pytalloc_reference_ex(sec_desc_buf_Type, *r->out.sd_buf, *r->out.sd_buf);
18563 result = py_sd_buf;
18564 if (!W_ERROR_IS_OK(r->out.result)) {
18565 PyErr_SetWERROR(r->out.result);
18572 static bool pack_py_srvsvc_NetSetFileSecurity_args_in(PyObject *args, PyObject *kwargs, struct srvsvc_NetSetFileSecurity *r)
18574 PyObject *py_server_unc;
18575 PyObject *py_share;
18577 PyObject *py_securityinformation;
18578 PyObject *py_sd_buf;
18579 const char *kwnames[] = {
18580 "server_unc", "share", "file", "securityinformation", "sd_buf", NULL
18583 if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OOOOO:srvsvc_NetSetFileSecurity", discard_const_p(char *, kwnames), &py_server_unc, &py_share, &py_file, &py_securityinformation, &py_sd_buf)) {
18587 if (py_server_unc == Py_None) {
18588 r->in.server_unc = NULL;
18590 r->in.server_unc = NULL;
18591 if (PyUnicode_Check(py_server_unc)) {
18592 r->in.server_unc = PyString_AS_STRING(PyUnicode_AsEncodedString(py_server_unc, "utf-8", "ignore"));
18593 } else if (PyString_Check(py_server_unc)) {
18594 r->in.server_unc = PyString_AS_STRING(py_server_unc);
18596 PyErr_Format(PyExc_TypeError, "Expected string or unicode object, got %s", Py_TYPE(py_server_unc)->tp_name);
18600 if (py_share == Py_None) {
18601 r->in.share = NULL;
18603 r->in.share = NULL;
18604 if (PyUnicode_Check(py_share)) {
18605 r->in.share = PyString_AS_STRING(PyUnicode_AsEncodedString(py_share, "utf-8", "ignore"));
18606 } else if (PyString_Check(py_share)) {
18607 r->in.share = PyString_AS_STRING(py_share);
18609 PyErr_Format(PyExc_TypeError, "Expected string or unicode object, got %s", Py_TYPE(py_share)->tp_name);
18613 if (PyUnicode_Check(py_file)) {
18614 r->in.file = PyString_AS_STRING(PyUnicode_AsEncodedString(py_file, "utf-8", "ignore"));
18615 } else if (PyString_Check(py_file)) {
18616 r->in.file = PyString_AS_STRING(py_file);
18618 PyErr_Format(PyExc_TypeError, "Expected string or unicode object, got %s", Py_TYPE(py_file)->tp_name);
18621 if (PyLong_Check(py_securityinformation)) {
18622 r->in.securityinformation = PyLong_AsLongLong(py_securityinformation);
18623 } else if (PyInt_Check(py_securityinformation)) {
18624 r->in.securityinformation = PyInt_AsLong(py_securityinformation);
18626 PyErr_Format(PyExc_TypeError, "Expected type %s or %s",\
18627 PyInt_Type.tp_name, PyLong_Type.tp_name);
18630 r->in.sd_buf = talloc_ptrtype(r, r->in.sd_buf);
18631 PY_CHECK_TYPE(sec_desc_buf_Type, py_sd_buf, return false;);
18632 if (talloc_reference(r, pytalloc_get_mem_ctx(py_sd_buf)) == NULL) {
18636 r->in.sd_buf = (struct sec_desc_buf *)pytalloc_get_ptr(py_sd_buf);
18640 static PyObject *unpack_py_srvsvc_NetSetFileSecurity_args_out(struct srvsvc_NetSetFileSecurity *r)
18645 if (!W_ERROR_IS_OK(r->out.result)) {
18646 PyErr_SetWERROR(r->out.result);
18653 static bool pack_py_srvsvc_NetServerTransportAddEx_args_in(PyObject *args, PyObject *kwargs, struct srvsvc_NetServerTransportAddEx *r)
18655 PyObject *py_server_unc;
18656 PyObject *py_level;
18658 const char *kwnames[] = {
18659 "server_unc", "level", "info", NULL
18662 if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OOO:srvsvc_NetServerTransportAddEx", discard_const_p(char *, kwnames), &py_server_unc, &py_level, &py_info)) {
18666 if (py_server_unc == Py_None) {
18667 r->in.server_unc = NULL;
18669 r->in.server_unc = NULL;
18670 if (PyUnicode_Check(py_server_unc)) {
18671 r->in.server_unc = PyString_AS_STRING(PyUnicode_AsEncodedString(py_server_unc, "utf-8", "ignore"));
18672 } else if (PyString_Check(py_server_unc)) {
18673 r->in.server_unc = PyString_AS_STRING(py_server_unc);
18675 PyErr_Format(PyExc_TypeError, "Expected string or unicode object, got %s", Py_TYPE(py_server_unc)->tp_name);
18679 PY_CHECK_TYPE(&PyInt_Type, py_level, return false;);
18680 r->in.level = PyInt_AsLong(py_level);
18682 union srvsvc_NetTransportInfo *info_switch_0;
18683 info_switch_0 = py_export_srvsvc_NetTransportInfo(r, r->in.level, py_info);
18684 if (info_switch_0 == NULL) {
18687 r->in.info = *info_switch_0;
18692 static PyObject *unpack_py_srvsvc_NetServerTransportAddEx_args_out(struct srvsvc_NetServerTransportAddEx *r)
18697 if (!W_ERROR_IS_OK(r->out.result)) {
18698 PyErr_SetWERROR(r->out.result);
18705 static bool pack_py_srvsvc_NetServerSetServiceBitsEx_args_in(PyObject *args, PyObject *kwargs, struct srvsvc_NetServerSetServiceBitsEx *r)
18707 PyObject *py_server_unc;
18708 PyObject *py_emulated_server_unc;
18709 PyObject *py_transport;
18710 PyObject *py_servicebitsofinterest;
18711 PyObject *py_servicebits;
18712 PyObject *py_updateimmediately;
18713 const char *kwnames[] = {
18714 "server_unc", "emulated_server_unc", "transport", "servicebitsofinterest", "servicebits", "updateimmediately", NULL
18717 if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OOOOOO:srvsvc_NetServerSetServiceBitsEx", discard_const_p(char *, kwnames), &py_server_unc, &py_emulated_server_unc, &py_transport, &py_servicebitsofinterest, &py_servicebits, &py_updateimmediately)) {
18721 if (py_server_unc == Py_None) {
18722 r->in.server_unc = NULL;
18724 r->in.server_unc = NULL;
18725 if (PyUnicode_Check(py_server_unc)) {
18726 r->in.server_unc = PyString_AS_STRING(PyUnicode_AsEncodedString(py_server_unc, "utf-8", "ignore"));
18727 } else if (PyString_Check(py_server_unc)) {
18728 r->in.server_unc = PyString_AS_STRING(py_server_unc);
18730 PyErr_Format(PyExc_TypeError, "Expected string or unicode object, got %s", Py_TYPE(py_server_unc)->tp_name);
18734 if (py_emulated_server_unc == Py_None) {
18735 r->in.emulated_server_unc = NULL;
18737 r->in.emulated_server_unc = NULL;
18738 if (PyUnicode_Check(py_emulated_server_unc)) {
18739 r->in.emulated_server_unc = PyString_AS_STRING(PyUnicode_AsEncodedString(py_emulated_server_unc, "utf-8", "ignore"));
18740 } else if (PyString_Check(py_emulated_server_unc)) {
18741 r->in.emulated_server_unc = PyString_AS_STRING(py_emulated_server_unc);
18743 PyErr_Format(PyExc_TypeError, "Expected string or unicode object, got %s", Py_TYPE(py_emulated_server_unc)->tp_name);
18747 if (py_transport == Py_None) {
18748 r->in.transport = NULL;
18750 r->in.transport = NULL;
18751 if (PyUnicode_Check(py_transport)) {
18752 r->in.transport = PyString_AS_STRING(PyUnicode_AsEncodedString(py_transport, "utf-8", "ignore"));
18753 } else if (PyString_Check(py_transport)) {
18754 r->in.transport = PyString_AS_STRING(py_transport);
18756 PyErr_Format(PyExc_TypeError, "Expected string or unicode object, got %s", Py_TYPE(py_transport)->tp_name);
18760 PY_CHECK_TYPE(&PyInt_Type, py_servicebitsofinterest, return false;);
18761 r->in.servicebitsofinterest = PyInt_AsLong(py_servicebitsofinterest);
18762 PY_CHECK_TYPE(&PyInt_Type, py_servicebits, return false;);
18763 r->in.servicebits = PyInt_AsLong(py_servicebits);
18764 PY_CHECK_TYPE(&PyInt_Type, py_updateimmediately, return false;);
18765 r->in.updateimmediately = PyInt_AsLong(py_updateimmediately);
18769 static PyObject *unpack_py_srvsvc_NetServerSetServiceBitsEx_args_out(struct srvsvc_NetServerSetServiceBitsEx *r)
18774 if (!W_ERROR_IS_OK(r->out.result)) {
18775 PyErr_SetWERROR(r->out.result);
18782 const struct PyNdrRpcMethodDef py_ndr_srvsvc_methods[] = {
18783 { "NetCharDevEnum", "S.NetCharDevEnum(server_unc, info_ctr, max_buffer, resume_handle) -> (info_ctr, totalentries, resume_handle)", (py_dcerpc_call_fn)dcerpc_srvsvc_NetCharDevEnum_r, (py_data_pack_fn)pack_py_srvsvc_NetCharDevEnum_args_in, (py_data_unpack_fn)unpack_py_srvsvc_NetCharDevEnum_args_out, 0, &ndr_table_srvsvc },
18784 { "NetCharDevGetInfo", "S.NetCharDevGetInfo(server_unc, device_name, level) -> info", (py_dcerpc_call_fn)dcerpc_srvsvc_NetCharDevGetInfo_r, (py_data_pack_fn)pack_py_srvsvc_NetCharDevGetInfo_args_in, (py_data_unpack_fn)unpack_py_srvsvc_NetCharDevGetInfo_args_out, 1, &ndr_table_srvsvc },
18785 { "NetCharDevControl", "S.NetCharDevControl(server_unc, device_name, opcode) -> None", (py_dcerpc_call_fn)dcerpc_srvsvc_NetCharDevControl_r, (py_data_pack_fn)pack_py_srvsvc_NetCharDevControl_args_in, (py_data_unpack_fn)unpack_py_srvsvc_NetCharDevControl_args_out, 2, &ndr_table_srvsvc },
18786 { "NetCharDevQEnum", "S.NetCharDevQEnum(server_unc, user, info_ctr, max_buffer, resume_handle) -> (info_ctr, totalentries, resume_handle)", (py_dcerpc_call_fn)dcerpc_srvsvc_NetCharDevQEnum_r, (py_data_pack_fn)pack_py_srvsvc_NetCharDevQEnum_args_in, (py_data_unpack_fn)unpack_py_srvsvc_NetCharDevQEnum_args_out, 3, &ndr_table_srvsvc },
18787 { "NetCharDevQGetInfo", "S.NetCharDevQGetInfo(server_unc, queue_name, user, level) -> info", (py_dcerpc_call_fn)dcerpc_srvsvc_NetCharDevQGetInfo_r, (py_data_pack_fn)pack_py_srvsvc_NetCharDevQGetInfo_args_in, (py_data_unpack_fn)unpack_py_srvsvc_NetCharDevQGetInfo_args_out, 4, &ndr_table_srvsvc },
18788 { "NetCharDevQSetInfo", "S.NetCharDevQSetInfo(server_unc, queue_name, level, info, parm_error) -> parm_error", (py_dcerpc_call_fn)dcerpc_srvsvc_NetCharDevQSetInfo_r, (py_data_pack_fn)pack_py_srvsvc_NetCharDevQSetInfo_args_in, (py_data_unpack_fn)unpack_py_srvsvc_NetCharDevQSetInfo_args_out, 5, &ndr_table_srvsvc },
18789 { "NetCharDevQPurge", "S.NetCharDevQPurge(server_unc, queue_name) -> None", (py_dcerpc_call_fn)dcerpc_srvsvc_NetCharDevQPurge_r, (py_data_pack_fn)pack_py_srvsvc_NetCharDevQPurge_args_in, (py_data_unpack_fn)unpack_py_srvsvc_NetCharDevQPurge_args_out, 6, &ndr_table_srvsvc },
18790 { "NetCharDevQPurgeSelf", "S.NetCharDevQPurgeSelf(server_unc, queue_name, computer_name) -> None", (py_dcerpc_call_fn)dcerpc_srvsvc_NetCharDevQPurgeSelf_r, (py_data_pack_fn)pack_py_srvsvc_NetCharDevQPurgeSelf_args_in, (py_data_unpack_fn)unpack_py_srvsvc_NetCharDevQPurgeSelf_args_out, 7, &ndr_table_srvsvc },
18791 { "NetConnEnum", "S.NetConnEnum(server_unc, path, info_ctr, max_buffer, resume_handle) -> (info_ctr, totalentries, resume_handle)", (py_dcerpc_call_fn)dcerpc_srvsvc_NetConnEnum_r, (py_data_pack_fn)pack_py_srvsvc_NetConnEnum_args_in, (py_data_unpack_fn)unpack_py_srvsvc_NetConnEnum_args_out, 8, &ndr_table_srvsvc },
18792 { "NetFileEnum", "S.NetFileEnum(server_unc, path, user, info_ctr, max_buffer, resume_handle) -> (info_ctr, totalentries, resume_handle)", (py_dcerpc_call_fn)dcerpc_srvsvc_NetFileEnum_r, (py_data_pack_fn)pack_py_srvsvc_NetFileEnum_args_in, (py_data_unpack_fn)unpack_py_srvsvc_NetFileEnum_args_out, 9, &ndr_table_srvsvc },
18793 { "NetFileGetInfo", "S.NetFileGetInfo(server_unc, fid, level) -> info", (py_dcerpc_call_fn)dcerpc_srvsvc_NetFileGetInfo_r, (py_data_pack_fn)pack_py_srvsvc_NetFileGetInfo_args_in, (py_data_unpack_fn)unpack_py_srvsvc_NetFileGetInfo_args_out, 10, &ndr_table_srvsvc },
18794 { "NetFileClose", "S.NetFileClose(server_unc, fid) -> None", (py_dcerpc_call_fn)dcerpc_srvsvc_NetFileClose_r, (py_data_pack_fn)pack_py_srvsvc_NetFileClose_args_in, (py_data_unpack_fn)unpack_py_srvsvc_NetFileClose_args_out, 11, &ndr_table_srvsvc },
18795 { "NetSessEnum", "S.NetSessEnum(server_unc, client, user, info_ctr, max_buffer, resume_handle) -> (info_ctr, totalentries, resume_handle)", (py_dcerpc_call_fn)dcerpc_srvsvc_NetSessEnum_r, (py_data_pack_fn)pack_py_srvsvc_NetSessEnum_args_in, (py_data_unpack_fn)unpack_py_srvsvc_NetSessEnum_args_out, 12, &ndr_table_srvsvc },
18796 { "NetSessDel", "S.NetSessDel(server_unc, client, user) -> None", (py_dcerpc_call_fn)dcerpc_srvsvc_NetSessDel_r, (py_data_pack_fn)pack_py_srvsvc_NetSessDel_args_in, (py_data_unpack_fn)unpack_py_srvsvc_NetSessDel_args_out, 13, &ndr_table_srvsvc },
18797 { "NetShareAdd", "S.NetShareAdd(server_unc, level, info, parm_error) -> parm_error", (py_dcerpc_call_fn)dcerpc_srvsvc_NetShareAdd_r, (py_data_pack_fn)pack_py_srvsvc_NetShareAdd_args_in, (py_data_unpack_fn)unpack_py_srvsvc_NetShareAdd_args_out, 14, &ndr_table_srvsvc },
18798 { "NetShareEnumAll", "S.NetShareEnumAll(server_unc, info_ctr, max_buffer, resume_handle) -> (info_ctr, totalentries, resume_handle)", (py_dcerpc_call_fn)dcerpc_srvsvc_NetShareEnumAll_r, (py_data_pack_fn)pack_py_srvsvc_NetShareEnumAll_args_in, (py_data_unpack_fn)unpack_py_srvsvc_NetShareEnumAll_args_out, 15, &ndr_table_srvsvc },
18799 { "NetShareGetInfo", "S.NetShareGetInfo(server_unc, share_name, level) -> info", (py_dcerpc_call_fn)dcerpc_srvsvc_NetShareGetInfo_r, (py_data_pack_fn)pack_py_srvsvc_NetShareGetInfo_args_in, (py_data_unpack_fn)unpack_py_srvsvc_NetShareGetInfo_args_out, 16, &ndr_table_srvsvc },
18800 { "NetShareSetInfo", "S.NetShareSetInfo(server_unc, share_name, level, info, parm_error) -> parm_error", (py_dcerpc_call_fn)dcerpc_srvsvc_NetShareSetInfo_r, (py_data_pack_fn)pack_py_srvsvc_NetShareSetInfo_args_in, (py_data_unpack_fn)unpack_py_srvsvc_NetShareSetInfo_args_out, 17, &ndr_table_srvsvc },
18801 { "NetShareDel", "S.NetShareDel(server_unc, share_name, reserved) -> None", (py_dcerpc_call_fn)dcerpc_srvsvc_NetShareDel_r, (py_data_pack_fn)pack_py_srvsvc_NetShareDel_args_in, (py_data_unpack_fn)unpack_py_srvsvc_NetShareDel_args_out, 18, &ndr_table_srvsvc },
18802 { "NetShareDelSticky", "S.NetShareDelSticky(server_unc, share_name, reserved) -> None", (py_dcerpc_call_fn)dcerpc_srvsvc_NetShareDelSticky_r, (py_data_pack_fn)pack_py_srvsvc_NetShareDelSticky_args_in, (py_data_unpack_fn)unpack_py_srvsvc_NetShareDelSticky_args_out, 19, &ndr_table_srvsvc },
18803 { "NetShareCheck", "S.NetShareCheck(server_unc, device_name) -> type", (py_dcerpc_call_fn)dcerpc_srvsvc_NetShareCheck_r, (py_data_pack_fn)pack_py_srvsvc_NetShareCheck_args_in, (py_data_unpack_fn)unpack_py_srvsvc_NetShareCheck_args_out, 20, &ndr_table_srvsvc },
18804 { "NetSrvGetInfo", "S.NetSrvGetInfo(server_unc, level) -> info", (py_dcerpc_call_fn)dcerpc_srvsvc_NetSrvGetInfo_r, (py_data_pack_fn)pack_py_srvsvc_NetSrvGetInfo_args_in, (py_data_unpack_fn)unpack_py_srvsvc_NetSrvGetInfo_args_out, 21, &ndr_table_srvsvc },
18805 { "NetSrvSetInfo", "S.NetSrvSetInfo(server_unc, level, info, parm_error) -> parm_error", (py_dcerpc_call_fn)dcerpc_srvsvc_NetSrvSetInfo_r, (py_data_pack_fn)pack_py_srvsvc_NetSrvSetInfo_args_in, (py_data_unpack_fn)unpack_py_srvsvc_NetSrvSetInfo_args_out, 22, &ndr_table_srvsvc },
18806 { "NetDiskEnum", "S.NetDiskEnum(server_unc, level, info, maxlen, resume_handle) -> (info, totalentries, resume_handle)", (py_dcerpc_call_fn)dcerpc_srvsvc_NetDiskEnum_r, (py_data_pack_fn)pack_py_srvsvc_NetDiskEnum_args_in, (py_data_unpack_fn)unpack_py_srvsvc_NetDiskEnum_args_out, 23, &ndr_table_srvsvc },
18807 { "NetServerStatisticsGet", "S.NetServerStatisticsGet(server_unc, service, level, options) -> stats", (py_dcerpc_call_fn)dcerpc_srvsvc_NetServerStatisticsGet_r, (py_data_pack_fn)pack_py_srvsvc_NetServerStatisticsGet_args_in, (py_data_unpack_fn)unpack_py_srvsvc_NetServerStatisticsGet_args_out, 24, &ndr_table_srvsvc },
18808 { "NetTransportAdd", "S.NetTransportAdd(server_unc, level, info) -> None", (py_dcerpc_call_fn)dcerpc_srvsvc_NetTransportAdd_r, (py_data_pack_fn)pack_py_srvsvc_NetTransportAdd_args_in, (py_data_unpack_fn)unpack_py_srvsvc_NetTransportAdd_args_out, 25, &ndr_table_srvsvc },
18809 { "NetTransportEnum", "S.NetTransportEnum(server_unc, transports, max_buffer, resume_handle) -> (transports, totalentries, resume_handle)", (py_dcerpc_call_fn)dcerpc_srvsvc_NetTransportEnum_r, (py_data_pack_fn)pack_py_srvsvc_NetTransportEnum_args_in, (py_data_unpack_fn)unpack_py_srvsvc_NetTransportEnum_args_out, 26, &ndr_table_srvsvc },
18810 { "NetTransportDel", "S.NetTransportDel(server_unc, level, info0) -> None", (py_dcerpc_call_fn)dcerpc_srvsvc_NetTransportDel_r, (py_data_pack_fn)pack_py_srvsvc_NetTransportDel_args_in, (py_data_unpack_fn)unpack_py_srvsvc_NetTransportDel_args_out, 27, &ndr_table_srvsvc },
18811 { "NetRemoteTOD", "S.NetRemoteTOD(server_unc) -> info", (py_dcerpc_call_fn)dcerpc_srvsvc_NetRemoteTOD_r, (py_data_pack_fn)pack_py_srvsvc_NetRemoteTOD_args_in, (py_data_unpack_fn)unpack_py_srvsvc_NetRemoteTOD_args_out, 28, &ndr_table_srvsvc },
18812 { "NetSetServiceBits", "S.NetSetServiceBits(server_unc, transport, servicebits, updateimmediately) -> None", (py_dcerpc_call_fn)dcerpc_srvsvc_NetSetServiceBits_r, (py_data_pack_fn)pack_py_srvsvc_NetSetServiceBits_args_in, (py_data_unpack_fn)unpack_py_srvsvc_NetSetServiceBits_args_out, 29, &ndr_table_srvsvc },
18813 { "NetPathType", "S.NetPathType(server_unc, path, pathflags) -> pathtype", (py_dcerpc_call_fn)dcerpc_srvsvc_NetPathType_r, (py_data_pack_fn)pack_py_srvsvc_NetPathType_args_in, (py_data_unpack_fn)unpack_py_srvsvc_NetPathType_args_out, 30, &ndr_table_srvsvc },
18814 { "NetPathCanonicalize", "S.NetPathCanonicalize(server_unc, path, maxbuf, prefix, pathtype, pathflags) -> (can_path, pathtype)", (py_dcerpc_call_fn)dcerpc_srvsvc_NetPathCanonicalize_r, (py_data_pack_fn)pack_py_srvsvc_NetPathCanonicalize_args_in, (py_data_unpack_fn)unpack_py_srvsvc_NetPathCanonicalize_args_out, 31, &ndr_table_srvsvc },
18815 { "NetPathCompare", "S.NetPathCompare(server_unc, path1, path2, pathtype, pathflags) -> None", (py_dcerpc_call_fn)dcerpc_srvsvc_NetPathCompare_r, (py_data_pack_fn)pack_py_srvsvc_NetPathCompare_args_in, (py_data_unpack_fn)unpack_py_srvsvc_NetPathCompare_args_out, 32, &ndr_table_srvsvc },
18816 { "NetNameValidate", "S.NetNameValidate(server_unc, name, name_type, flags) -> None", (py_dcerpc_call_fn)dcerpc_srvsvc_NetNameValidate_r, (py_data_pack_fn)pack_py_srvsvc_NetNameValidate_args_in, (py_data_unpack_fn)unpack_py_srvsvc_NetNameValidate_args_out, 33, &ndr_table_srvsvc },
18817 { "NetPRNameCompare", "S.NetPRNameCompare(server_unc, name1, name2, name_type, flags) -> None", (py_dcerpc_call_fn)dcerpc_srvsvc_NetPRNameCompare_r, (py_data_pack_fn)pack_py_srvsvc_NetPRNameCompare_args_in, (py_data_unpack_fn)unpack_py_srvsvc_NetPRNameCompare_args_out, 35, &ndr_table_srvsvc },
18818 { "NetShareEnum", "S.NetShareEnum(server_unc, info_ctr, max_buffer, resume_handle) -> (info_ctr, totalentries, resume_handle)", (py_dcerpc_call_fn)dcerpc_srvsvc_NetShareEnum_r, (py_data_pack_fn)pack_py_srvsvc_NetShareEnum_args_in, (py_data_unpack_fn)unpack_py_srvsvc_NetShareEnum_args_out, 36, &ndr_table_srvsvc },
18819 { "NetShareDelStart", "S.NetShareDelStart(server_unc, share, reserved) -> hnd", (py_dcerpc_call_fn)dcerpc_srvsvc_NetShareDelStart_r, (py_data_pack_fn)pack_py_srvsvc_NetShareDelStart_args_in, (py_data_unpack_fn)unpack_py_srvsvc_NetShareDelStart_args_out, 37, &ndr_table_srvsvc },
18820 { "NetShareDelCommit", "S.NetShareDelCommit(hnd) -> hnd", (py_dcerpc_call_fn)dcerpc_srvsvc_NetShareDelCommit_r, (py_data_pack_fn)pack_py_srvsvc_NetShareDelCommit_args_in, (py_data_unpack_fn)unpack_py_srvsvc_NetShareDelCommit_args_out, 38, &ndr_table_srvsvc },
18821 { "NetGetFileSecurity", "S.NetGetFileSecurity(server_unc, share, file, securityinformation) -> sd_buf", (py_dcerpc_call_fn)dcerpc_srvsvc_NetGetFileSecurity_r, (py_data_pack_fn)pack_py_srvsvc_NetGetFileSecurity_args_in, (py_data_unpack_fn)unpack_py_srvsvc_NetGetFileSecurity_args_out, 39, &ndr_table_srvsvc },
18822 { "NetSetFileSecurity", "S.NetSetFileSecurity(server_unc, share, file, securityinformation, sd_buf) -> None", (py_dcerpc_call_fn)dcerpc_srvsvc_NetSetFileSecurity_r, (py_data_pack_fn)pack_py_srvsvc_NetSetFileSecurity_args_in, (py_data_unpack_fn)unpack_py_srvsvc_NetSetFileSecurity_args_out, 40, &ndr_table_srvsvc },
18823 { "NetServerTransportAddEx", "S.NetServerTransportAddEx(server_unc, level, info) -> None", (py_dcerpc_call_fn)dcerpc_srvsvc_NetServerTransportAddEx_r, (py_data_pack_fn)pack_py_srvsvc_NetServerTransportAddEx_args_in, (py_data_unpack_fn)unpack_py_srvsvc_NetServerTransportAddEx_args_out, 41, &ndr_table_srvsvc },
18824 { "NetServerSetServiceBitsEx", "S.NetServerSetServiceBitsEx(server_unc, emulated_server_unc, transport, servicebitsofinterest, servicebits, updateimmediately) -> None", (py_dcerpc_call_fn)dcerpc_srvsvc_NetServerSetServiceBitsEx_r, (py_data_pack_fn)pack_py_srvsvc_NetServerSetServiceBitsEx_args_in, (py_data_unpack_fn)unpack_py_srvsvc_NetServerSetServiceBitsEx_args_out, 42, &ndr_table_srvsvc },
18828 static PyObject *interface_srvsvc_new(PyTypeObject *type, PyObject *args, PyObject *kwargs)
18830 return py_dcerpc_interface_init_helper(type, args, kwargs, &ndr_table_srvsvc);
18833 #define PY_DOC_SRVSVC "Server Service"
18834 static PyTypeObject srvsvc_InterfaceType = {
18835 PyObject_HEAD_INIT(NULL) 0,
18836 .tp_name = "srvsvc.srvsvc",
18837 .tp_basicsize = sizeof(dcerpc_InterfaceObject),
18838 .tp_doc = "srvsvc(binding, lp_ctx=None, credentials=None) -> connection\n"
18840 "binding should be a DCE/RPC binding string (for example: ncacn_ip_tcp:127.0.0.1)\n"
18841 "lp_ctx should be a path to a smb.conf file or a param.LoadParm object\n"
18842 "credentials should be a credentials.Credentials object.\n\n"PY_DOC_SRVSVC,
18843 .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
18844 .tp_new = interface_srvsvc_new,
18847 static PyObject *syntax_srvsvc_new(PyTypeObject *type, PyObject *args, PyObject *kwargs)
18849 return py_dcerpc_syntax_init_helper(type, args, kwargs, &ndr_table_srvsvc.syntax_id);
18852 #define PY_DOC_SRVSVC_SYNTAX "Server Service"
18853 static PyTypeObject srvsvc_SyntaxType = {
18854 PyObject_HEAD_INIT(NULL) 0,
18855 .tp_name = "srvsvc.srvsvc",
18856 .tp_basicsize = sizeof(pytalloc_Object),
18857 .tp_doc = "abstract_syntax()\n"PY_DOC_SRVSVC_SYNTAX,
18858 .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
18859 .tp_new = syntax_srvsvc_new,
18862 static PyMethodDef srvsvc_methods[] = {
18863 { NULL, NULL, 0, NULL }
18866 void initsrvsvc(void)
18869 PyObject *dep_samba_dcerpc_misc;
18870 PyObject *dep_samba_dcerpc_security;
18871 PyObject *dep_samba_dcerpc_svcctl;
18872 PyObject *dep_talloc;
18873 PyObject *dep_samba_dcerpc_base;
18875 dep_samba_dcerpc_misc = PyImport_ImportModule("samba.dcerpc.misc");
18876 if (dep_samba_dcerpc_misc == NULL)
18879 dep_samba_dcerpc_security = PyImport_ImportModule("samba.dcerpc.security");
18880 if (dep_samba_dcerpc_security == NULL)
18883 dep_samba_dcerpc_svcctl = PyImport_ImportModule("samba.dcerpc.svcctl");
18884 if (dep_samba_dcerpc_svcctl == NULL)
18887 dep_talloc = PyImport_ImportModule("talloc");
18888 if (dep_talloc == NULL)
18891 dep_samba_dcerpc_base = PyImport_ImportModule("samba.dcerpc.base");
18892 if (dep_samba_dcerpc_base == NULL)
18895 Object_Type = (PyTypeObject *)PyObject_GetAttrString(dep_talloc, "Object");
18896 if (Object_Type == NULL)
18899 sec_desc_buf_Type = (PyTypeObject *)PyObject_GetAttrString(dep_samba_dcerpc_security, "sec_desc_buf");
18900 if (sec_desc_buf_Type == NULL)
18903 policy_handle_Type = (PyTypeObject *)PyObject_GetAttrString(dep_samba_dcerpc_misc, "policy_handle");
18904 if (policy_handle_Type == NULL)
18907 ClientConnection_Type = (PyTypeObject *)PyObject_GetAttrString(dep_samba_dcerpc_base, "ClientConnection");
18908 if (ClientConnection_Type == NULL)
18911 ndr_syntax_id_Type = (PyTypeObject *)PyObject_GetAttrString(dep_samba_dcerpc_misc, "ndr_syntax_id");
18912 if (ndr_syntax_id_Type == NULL)
18915 srvsvc_NetCharDevInfo0_Type.tp_base = Object_Type;
18917 srvsvc_NetCharDevCtr0_Type.tp_base = Object_Type;
18919 srvsvc_NetCharDevInfo1_Type.tp_base = Object_Type;
18921 srvsvc_NetCharDevCtr1_Type.tp_base = Object_Type;
18923 srvsvc_NetCharDevInfoCtr_Type.tp_base = Object_Type;
18925 srvsvc_NetCharDevQInfo0_Type.tp_base = Object_Type;
18927 srvsvc_NetCharDevQCtr0_Type.tp_base = Object_Type;
18929 srvsvc_NetCharDevQInfo1_Type.tp_base = Object_Type;
18931 srvsvc_NetCharDevQCtr1_Type.tp_base = Object_Type;
18933 srvsvc_NetCharDevQInfoCtr_Type.tp_base = Object_Type;
18935 srvsvc_NetConnInfo0_Type.tp_base = Object_Type;
18937 srvsvc_NetConnCtr0_Type.tp_base = Object_Type;
18939 srvsvc_NetConnInfo1_Type.tp_base = Object_Type;
18941 srvsvc_NetConnCtr1_Type.tp_base = Object_Type;
18943 srvsvc_NetConnInfoCtr_Type.tp_base = Object_Type;
18945 srvsvc_NetFileInfo2_Type.tp_base = Object_Type;
18947 srvsvc_NetFileCtr2_Type.tp_base = Object_Type;
18949 srvsvc_NetFileInfo3_Type.tp_base = Object_Type;
18951 srvsvc_NetFileCtr3_Type.tp_base = Object_Type;
18953 srvsvc_NetFileInfoCtr_Type.tp_base = Object_Type;
18955 srvsvc_NetSessInfo0_Type.tp_base = Object_Type;
18957 srvsvc_NetSessCtr0_Type.tp_base = Object_Type;
18959 srvsvc_NetSessInfo1_Type.tp_base = Object_Type;
18961 srvsvc_NetSessCtr1_Type.tp_base = Object_Type;
18963 srvsvc_NetSessInfo2_Type.tp_base = Object_Type;
18965 srvsvc_NetSessCtr2_Type.tp_base = Object_Type;
18967 srvsvc_NetSessInfo10_Type.tp_base = Object_Type;
18969 srvsvc_NetSessCtr10_Type.tp_base = Object_Type;
18971 srvsvc_NetSessInfo502_Type.tp_base = Object_Type;
18973 srvsvc_NetSessCtr502_Type.tp_base = Object_Type;
18975 srvsvc_NetSessInfoCtr_Type.tp_base = Object_Type;
18977 srvsvc_NetShareInfo0_Type.tp_base = Object_Type;
18979 srvsvc_NetShareCtr0_Type.tp_base = Object_Type;
18981 srvsvc_NetShareInfo1_Type.tp_base = Object_Type;
18983 srvsvc_NetShareCtr1_Type.tp_base = Object_Type;
18985 srvsvc_NetShareInfo2_Type.tp_base = Object_Type;
18987 srvsvc_NetShareCtr2_Type.tp_base = Object_Type;
18989 srvsvc_NetShareInfo501_Type.tp_base = Object_Type;
18991 srvsvc_NetShareCtr501_Type.tp_base = Object_Type;
18993 srvsvc_NetShareInfo502_Type.tp_base = Object_Type;
18995 srvsvc_NetShareCtr502_Type.tp_base = Object_Type;
18997 srvsvc_NetShareInfo1004_Type.tp_base = Object_Type;
18999 srvsvc_NetShareCtr1004_Type.tp_base = Object_Type;
19001 srvsvc_NetShareInfo1005_Type.tp_base = Object_Type;
19003 srvsvc_NetShareCtr1005_Type.tp_base = Object_Type;
19005 srvsvc_NetShareInfo1006_Type.tp_base = Object_Type;
19007 srvsvc_NetShareCtr1006_Type.tp_base = Object_Type;
19009 srvsvc_NetShareInfo1007_Type.tp_base = Object_Type;
19011 srvsvc_NetShareCtr1007_Type.tp_base = Object_Type;
19013 srvsvc_NetShareCtr1501_Type.tp_base = Object_Type;
19015 srvsvc_NetShareInfoCtr_Type.tp_base = Object_Type;
19017 srvsvc_NetSrvInfo100_Type.tp_base = Object_Type;
19019 srvsvc_NetSrvInfo101_Type.tp_base = Object_Type;
19021 srvsvc_NetSrvInfo102_Type.tp_base = Object_Type;
19023 srvsvc_NetSrvInfo402_Type.tp_base = Object_Type;
19025 srvsvc_NetSrvInfo403_Type.tp_base = Object_Type;
19027 srvsvc_NetSrvInfo502_Type.tp_base = Object_Type;
19029 srvsvc_NetSrvInfo503_Type.tp_base = Object_Type;
19031 srvsvc_NetSrvInfo599_Type.tp_base = Object_Type;
19033 srvsvc_NetSrvInfo1005_Type.tp_base = Object_Type;
19035 srvsvc_NetSrvInfo1010_Type.tp_base = Object_Type;
19037 srvsvc_NetSrvInfo1016_Type.tp_base = Object_Type;
19039 srvsvc_NetSrvInfo1017_Type.tp_base = Object_Type;
19041 srvsvc_NetSrvInfo1018_Type.tp_base = Object_Type;
19043 srvsvc_NetSrvInfo1107_Type.tp_base = Object_Type;
19045 srvsvc_NetSrvInfo1501_Type.tp_base = Object_Type;
19047 srvsvc_NetSrvInfo1502_Type.tp_base = Object_Type;
19049 srvsvc_NetSrvInfo1503_Type.tp_base = Object_Type;
19051 srvsvc_NetSrvInfo1506_Type.tp_base = Object_Type;
19053 srvsvc_NetSrvInfo1509_Type.tp_base = Object_Type;
19055 srvsvc_NetSrvInfo1510_Type.tp_base = Object_Type;
19057 srvsvc_NetSrvInfo1511_Type.tp_base = Object_Type;
19059 srvsvc_NetSrvInfo1512_Type.tp_base = Object_Type;
19061 srvsvc_NetSrvInfo1513_Type.tp_base = Object_Type;
19063 srvsvc_NetSrvInfo1514_Type.tp_base = Object_Type;
19065 srvsvc_NetSrvInfo1515_Type.tp_base = Object_Type;
19067 srvsvc_NetSrvInfo1516_Type.tp_base = Object_Type;
19069 srvsvc_NetSrvInfo1518_Type.tp_base = Object_Type;
19071 srvsvc_NetSrvInfo1520_Type.tp_base = Object_Type;
19073 srvsvc_NetSrvInfo1521_Type.tp_base = Object_Type;
19075 srvsvc_NetSrvInfo1522_Type.tp_base = Object_Type;
19077 srvsvc_NetSrvInfo1523_Type.tp_base = Object_Type;
19079 srvsvc_NetSrvInfo1524_Type.tp_base = Object_Type;
19081 srvsvc_NetSrvInfo1525_Type.tp_base = Object_Type;
19083 srvsvc_NetSrvInfo1528_Type.tp_base = Object_Type;
19085 srvsvc_NetSrvInfo1529_Type.tp_base = Object_Type;
19087 srvsvc_NetSrvInfo1530_Type.tp_base = Object_Type;
19089 srvsvc_NetSrvInfo1533_Type.tp_base = Object_Type;
19091 srvsvc_NetSrvInfo1534_Type.tp_base = Object_Type;
19093 srvsvc_NetSrvInfo1535_Type.tp_base = Object_Type;
19095 srvsvc_NetSrvInfo1536_Type.tp_base = Object_Type;
19097 srvsvc_NetSrvInfo1537_Type.tp_base = Object_Type;
19099 srvsvc_NetSrvInfo1538_Type.tp_base = Object_Type;
19101 srvsvc_NetSrvInfo1539_Type.tp_base = Object_Type;
19103 srvsvc_NetSrvInfo1540_Type.tp_base = Object_Type;
19105 srvsvc_NetSrvInfo1541_Type.tp_base = Object_Type;
19107 srvsvc_NetSrvInfo1542_Type.tp_base = Object_Type;
19109 srvsvc_NetSrvInfo1543_Type.tp_base = Object_Type;
19111 srvsvc_NetSrvInfo1544_Type.tp_base = Object_Type;
19113 srvsvc_NetSrvInfo1545_Type.tp_base = Object_Type;
19115 srvsvc_NetSrvInfo1546_Type.tp_base = Object_Type;
19117 srvsvc_NetSrvInfo1547_Type.tp_base = Object_Type;
19119 srvsvc_NetSrvInfo1548_Type.tp_base = Object_Type;
19121 srvsvc_NetSrvInfo1549_Type.tp_base = Object_Type;
19123 srvsvc_NetSrvInfo1550_Type.tp_base = Object_Type;
19125 srvsvc_NetSrvInfo1552_Type.tp_base = Object_Type;
19127 srvsvc_NetSrvInfo1553_Type.tp_base = Object_Type;
19129 srvsvc_NetSrvInfo1554_Type.tp_base = Object_Type;
19131 srvsvc_NetSrvInfo1555_Type.tp_base = Object_Type;
19133 srvsvc_NetSrvInfo1556_Type.tp_base = Object_Type;
19135 srvsvc_NetDiskInfo0_Type.tp_base = Object_Type;
19137 srvsvc_NetDiskInfo_Type.tp_base = Object_Type;
19139 srvsvc_Statistics_Type.tp_base = Object_Type;
19141 srvsvc_NetTransportInfo0_Type.tp_base = Object_Type;
19143 srvsvc_NetTransportCtr0_Type.tp_base = Object_Type;
19145 srvsvc_NetTransportInfo1_Type.tp_base = Object_Type;
19147 srvsvc_NetTransportCtr1_Type.tp_base = Object_Type;
19149 srvsvc_NetTransportInfo2_Type.tp_base = Object_Type;
19151 srvsvc_NetTransportCtr2_Type.tp_base = Object_Type;
19153 srvsvc_NetTransportInfo3_Type.tp_base = Object_Type;
19155 srvsvc_NetTransportCtr3_Type.tp_base = Object_Type;
19157 srvsvc_NetTransportInfoCtr_Type.tp_base = Object_Type;
19159 srvsvc_NetRemoteTODInfo_Type.tp_base = Object_Type;
19161 srvsvc_InterfaceType.tp_base = ClientConnection_Type;
19163 srvsvc_SyntaxType.tp_base = ndr_syntax_id_Type;
19165 if (PyType_Ready(&srvsvc_NetCharDevInfo0_Type) < 0)
19167 if (PyType_Ready(&srvsvc_NetCharDevCtr0_Type) < 0)
19169 if (PyType_Ready(&srvsvc_NetCharDevInfo1_Type) < 0)
19171 if (PyType_Ready(&srvsvc_NetCharDevCtr1_Type) < 0)
19173 if (PyType_Ready(&srvsvc_NetCharDevInfoCtr_Type) < 0)
19175 if (PyType_Ready(&srvsvc_NetCharDevQInfo0_Type) < 0)
19177 if (PyType_Ready(&srvsvc_NetCharDevQCtr0_Type) < 0)
19179 if (PyType_Ready(&srvsvc_NetCharDevQInfo1_Type) < 0)
19181 if (PyType_Ready(&srvsvc_NetCharDevQCtr1_Type) < 0)
19183 if (PyType_Ready(&srvsvc_NetCharDevQInfoCtr_Type) < 0)
19185 if (PyType_Ready(&srvsvc_NetConnInfo0_Type) < 0)
19187 if (PyType_Ready(&srvsvc_NetConnCtr0_Type) < 0)
19189 if (PyType_Ready(&srvsvc_NetConnInfo1_Type) < 0)
19191 if (PyType_Ready(&srvsvc_NetConnCtr1_Type) < 0)
19193 if (PyType_Ready(&srvsvc_NetConnInfoCtr_Type) < 0)
19195 if (PyType_Ready(&srvsvc_NetFileInfo2_Type) < 0)
19197 if (PyType_Ready(&srvsvc_NetFileCtr2_Type) < 0)
19199 if (PyType_Ready(&srvsvc_NetFileInfo3_Type) < 0)
19201 if (PyType_Ready(&srvsvc_NetFileCtr3_Type) < 0)
19203 if (PyType_Ready(&srvsvc_NetFileInfoCtr_Type) < 0)
19205 if (PyType_Ready(&srvsvc_NetSessInfo0_Type) < 0)
19207 if (PyType_Ready(&srvsvc_NetSessCtr0_Type) < 0)
19209 if (PyType_Ready(&srvsvc_NetSessInfo1_Type) < 0)
19211 if (PyType_Ready(&srvsvc_NetSessCtr1_Type) < 0)
19213 if (PyType_Ready(&srvsvc_NetSessInfo2_Type) < 0)
19215 if (PyType_Ready(&srvsvc_NetSessCtr2_Type) < 0)
19217 if (PyType_Ready(&srvsvc_NetSessInfo10_Type) < 0)
19219 if (PyType_Ready(&srvsvc_NetSessCtr10_Type) < 0)
19221 if (PyType_Ready(&srvsvc_NetSessInfo502_Type) < 0)
19223 if (PyType_Ready(&srvsvc_NetSessCtr502_Type) < 0)
19225 if (PyType_Ready(&srvsvc_NetSessInfoCtr_Type) < 0)
19227 if (PyType_Ready(&srvsvc_NetShareInfo0_Type) < 0)
19229 if (PyType_Ready(&srvsvc_NetShareCtr0_Type) < 0)
19231 if (PyType_Ready(&srvsvc_NetShareInfo1_Type) < 0)
19233 if (PyType_Ready(&srvsvc_NetShareCtr1_Type) < 0)
19235 if (PyType_Ready(&srvsvc_NetShareInfo2_Type) < 0)
19237 if (PyType_Ready(&srvsvc_NetShareCtr2_Type) < 0)
19239 if (PyType_Ready(&srvsvc_NetShareInfo501_Type) < 0)
19241 if (PyType_Ready(&srvsvc_NetShareCtr501_Type) < 0)
19243 if (PyType_Ready(&srvsvc_NetShareInfo502_Type) < 0)
19245 if (PyType_Ready(&srvsvc_NetShareCtr502_Type) < 0)
19247 if (PyType_Ready(&srvsvc_NetShareInfo1004_Type) < 0)
19249 if (PyType_Ready(&srvsvc_NetShareCtr1004_Type) < 0)
19251 if (PyType_Ready(&srvsvc_NetShareInfo1005_Type) < 0)
19253 if (PyType_Ready(&srvsvc_NetShareCtr1005_Type) < 0)
19255 if (PyType_Ready(&srvsvc_NetShareInfo1006_Type) < 0)
19257 if (PyType_Ready(&srvsvc_NetShareCtr1006_Type) < 0)
19259 if (PyType_Ready(&srvsvc_NetShareInfo1007_Type) < 0)
19261 if (PyType_Ready(&srvsvc_NetShareCtr1007_Type) < 0)
19263 if (PyType_Ready(&srvsvc_NetShareCtr1501_Type) < 0)
19265 if (PyType_Ready(&srvsvc_NetShareInfoCtr_Type) < 0)
19267 if (PyType_Ready(&srvsvc_NetSrvInfo100_Type) < 0)
19269 if (PyType_Ready(&srvsvc_NetSrvInfo101_Type) < 0)
19271 if (PyType_Ready(&srvsvc_NetSrvInfo102_Type) < 0)
19273 if (PyType_Ready(&srvsvc_NetSrvInfo402_Type) < 0)
19275 if (PyType_Ready(&srvsvc_NetSrvInfo403_Type) < 0)
19277 if (PyType_Ready(&srvsvc_NetSrvInfo502_Type) < 0)
19279 if (PyType_Ready(&srvsvc_NetSrvInfo503_Type) < 0)
19281 if (PyType_Ready(&srvsvc_NetSrvInfo599_Type) < 0)
19283 if (PyType_Ready(&srvsvc_NetSrvInfo1005_Type) < 0)
19285 if (PyType_Ready(&srvsvc_NetSrvInfo1010_Type) < 0)
19287 if (PyType_Ready(&srvsvc_NetSrvInfo1016_Type) < 0)
19289 if (PyType_Ready(&srvsvc_NetSrvInfo1017_Type) < 0)
19291 if (PyType_Ready(&srvsvc_NetSrvInfo1018_Type) < 0)
19293 if (PyType_Ready(&srvsvc_NetSrvInfo1107_Type) < 0)
19295 if (PyType_Ready(&srvsvc_NetSrvInfo1501_Type) < 0)
19297 if (PyType_Ready(&srvsvc_NetSrvInfo1502_Type) < 0)
19299 if (PyType_Ready(&srvsvc_NetSrvInfo1503_Type) < 0)
19301 if (PyType_Ready(&srvsvc_NetSrvInfo1506_Type) < 0)
19303 if (PyType_Ready(&srvsvc_NetSrvInfo1509_Type) < 0)
19305 if (PyType_Ready(&srvsvc_NetSrvInfo1510_Type) < 0)
19307 if (PyType_Ready(&srvsvc_NetSrvInfo1511_Type) < 0)
19309 if (PyType_Ready(&srvsvc_NetSrvInfo1512_Type) < 0)
19311 if (PyType_Ready(&srvsvc_NetSrvInfo1513_Type) < 0)
19313 if (PyType_Ready(&srvsvc_NetSrvInfo1514_Type) < 0)
19315 if (PyType_Ready(&srvsvc_NetSrvInfo1515_Type) < 0)
19317 if (PyType_Ready(&srvsvc_NetSrvInfo1516_Type) < 0)
19319 if (PyType_Ready(&srvsvc_NetSrvInfo1518_Type) < 0)
19321 if (PyType_Ready(&srvsvc_NetSrvInfo1520_Type) < 0)
19323 if (PyType_Ready(&srvsvc_NetSrvInfo1521_Type) < 0)
19325 if (PyType_Ready(&srvsvc_NetSrvInfo1522_Type) < 0)
19327 if (PyType_Ready(&srvsvc_NetSrvInfo1523_Type) < 0)
19329 if (PyType_Ready(&srvsvc_NetSrvInfo1524_Type) < 0)
19331 if (PyType_Ready(&srvsvc_NetSrvInfo1525_Type) < 0)
19333 if (PyType_Ready(&srvsvc_NetSrvInfo1528_Type) < 0)
19335 if (PyType_Ready(&srvsvc_NetSrvInfo1529_Type) < 0)
19337 if (PyType_Ready(&srvsvc_NetSrvInfo1530_Type) < 0)
19339 if (PyType_Ready(&srvsvc_NetSrvInfo1533_Type) < 0)
19341 if (PyType_Ready(&srvsvc_NetSrvInfo1534_Type) < 0)
19343 if (PyType_Ready(&srvsvc_NetSrvInfo1535_Type) < 0)
19345 if (PyType_Ready(&srvsvc_NetSrvInfo1536_Type) < 0)
19347 if (PyType_Ready(&srvsvc_NetSrvInfo1537_Type) < 0)
19349 if (PyType_Ready(&srvsvc_NetSrvInfo1538_Type) < 0)
19351 if (PyType_Ready(&srvsvc_NetSrvInfo1539_Type) < 0)
19353 if (PyType_Ready(&srvsvc_NetSrvInfo1540_Type) < 0)
19355 if (PyType_Ready(&srvsvc_NetSrvInfo1541_Type) < 0)
19357 if (PyType_Ready(&srvsvc_NetSrvInfo1542_Type) < 0)
19359 if (PyType_Ready(&srvsvc_NetSrvInfo1543_Type) < 0)
19361 if (PyType_Ready(&srvsvc_NetSrvInfo1544_Type) < 0)
19363 if (PyType_Ready(&srvsvc_NetSrvInfo1545_Type) < 0)
19365 if (PyType_Ready(&srvsvc_NetSrvInfo1546_Type) < 0)
19367 if (PyType_Ready(&srvsvc_NetSrvInfo1547_Type) < 0)
19369 if (PyType_Ready(&srvsvc_NetSrvInfo1548_Type) < 0)
19371 if (PyType_Ready(&srvsvc_NetSrvInfo1549_Type) < 0)
19373 if (PyType_Ready(&srvsvc_NetSrvInfo1550_Type) < 0)
19375 if (PyType_Ready(&srvsvc_NetSrvInfo1552_Type) < 0)
19377 if (PyType_Ready(&srvsvc_NetSrvInfo1553_Type) < 0)
19379 if (PyType_Ready(&srvsvc_NetSrvInfo1554_Type) < 0)
19381 if (PyType_Ready(&srvsvc_NetSrvInfo1555_Type) < 0)
19383 if (PyType_Ready(&srvsvc_NetSrvInfo1556_Type) < 0)
19385 if (PyType_Ready(&srvsvc_NetDiskInfo0_Type) < 0)
19387 if (PyType_Ready(&srvsvc_NetDiskInfo_Type) < 0)
19389 if (PyType_Ready(&srvsvc_Statistics_Type) < 0)
19391 if (PyType_Ready(&srvsvc_NetTransportInfo0_Type) < 0)
19393 if (PyType_Ready(&srvsvc_NetTransportCtr0_Type) < 0)
19395 if (PyType_Ready(&srvsvc_NetTransportInfo1_Type) < 0)
19397 if (PyType_Ready(&srvsvc_NetTransportCtr1_Type) < 0)
19399 if (PyType_Ready(&srvsvc_NetTransportInfo2_Type) < 0)
19401 if (PyType_Ready(&srvsvc_NetTransportCtr2_Type) < 0)
19403 if (PyType_Ready(&srvsvc_NetTransportInfo3_Type) < 0)
19405 if (PyType_Ready(&srvsvc_NetTransportCtr3_Type) < 0)
19407 if (PyType_Ready(&srvsvc_NetTransportInfoCtr_Type) < 0)
19409 if (PyType_Ready(&srvsvc_NetRemoteTODInfo_Type) < 0)
19411 if (PyType_Ready(&srvsvc_InterfaceType) < 0)
19413 if (PyType_Ready(&srvsvc_SyntaxType) < 0)
19415 if (!PyInterface_AddNdrRpcMethods(&srvsvc_InterfaceType, py_ndr_srvsvc_methods))
19418 #ifdef PY_NETCHARDEVINFO0_PATCH
19419 PY_NETCHARDEVINFO0_PATCH(&srvsvc_NetCharDevInfo0_Type);
19421 #ifdef PY_NETCHARDEVCTR0_PATCH
19422 PY_NETCHARDEVCTR0_PATCH(&srvsvc_NetCharDevCtr0_Type);
19424 #ifdef PY_NETCHARDEVINFO1_PATCH
19425 PY_NETCHARDEVINFO1_PATCH(&srvsvc_NetCharDevInfo1_Type);
19427 #ifdef PY_NETCHARDEVCTR1_PATCH
19428 PY_NETCHARDEVCTR1_PATCH(&srvsvc_NetCharDevCtr1_Type);
19430 #ifdef PY_NETCHARDEVINFOCTR_PATCH
19431 PY_NETCHARDEVINFOCTR_PATCH(&srvsvc_NetCharDevInfoCtr_Type);
19433 #ifdef PY_NETCHARDEVQINFO0_PATCH
19434 PY_NETCHARDEVQINFO0_PATCH(&srvsvc_NetCharDevQInfo0_Type);
19436 #ifdef PY_NETCHARDEVQCTR0_PATCH
19437 PY_NETCHARDEVQCTR0_PATCH(&srvsvc_NetCharDevQCtr0_Type);
19439 #ifdef PY_NETCHARDEVQINFO1_PATCH
19440 PY_NETCHARDEVQINFO1_PATCH(&srvsvc_NetCharDevQInfo1_Type);
19442 #ifdef PY_NETCHARDEVQCTR1_PATCH
19443 PY_NETCHARDEVQCTR1_PATCH(&srvsvc_NetCharDevQCtr1_Type);
19445 #ifdef PY_NETCHARDEVQINFOCTR_PATCH
19446 PY_NETCHARDEVQINFOCTR_PATCH(&srvsvc_NetCharDevQInfoCtr_Type);
19448 #ifdef PY_NETCONNINFO0_PATCH
19449 PY_NETCONNINFO0_PATCH(&srvsvc_NetConnInfo0_Type);
19451 #ifdef PY_NETCONNCTR0_PATCH
19452 PY_NETCONNCTR0_PATCH(&srvsvc_NetConnCtr0_Type);
19454 #ifdef PY_NETCONNINFO1_PATCH
19455 PY_NETCONNINFO1_PATCH(&srvsvc_NetConnInfo1_Type);
19457 #ifdef PY_NETCONNCTR1_PATCH
19458 PY_NETCONNCTR1_PATCH(&srvsvc_NetConnCtr1_Type);
19460 #ifdef PY_NETCONNINFOCTR_PATCH
19461 PY_NETCONNINFOCTR_PATCH(&srvsvc_NetConnInfoCtr_Type);
19463 #ifdef PY_NETFILEINFO2_PATCH
19464 PY_NETFILEINFO2_PATCH(&srvsvc_NetFileInfo2_Type);
19466 #ifdef PY_NETFILECTR2_PATCH
19467 PY_NETFILECTR2_PATCH(&srvsvc_NetFileCtr2_Type);
19469 #ifdef PY_NETFILEINFO3_PATCH
19470 PY_NETFILEINFO3_PATCH(&srvsvc_NetFileInfo3_Type);
19472 #ifdef PY_NETFILECTR3_PATCH
19473 PY_NETFILECTR3_PATCH(&srvsvc_NetFileCtr3_Type);
19475 #ifdef PY_NETFILEINFOCTR_PATCH
19476 PY_NETFILEINFOCTR_PATCH(&srvsvc_NetFileInfoCtr_Type);
19478 #ifdef PY_NETSESSINFO0_PATCH
19479 PY_NETSESSINFO0_PATCH(&srvsvc_NetSessInfo0_Type);
19481 #ifdef PY_NETSESSCTR0_PATCH
19482 PY_NETSESSCTR0_PATCH(&srvsvc_NetSessCtr0_Type);
19484 #ifdef PY_NETSESSINFO1_PATCH
19485 PY_NETSESSINFO1_PATCH(&srvsvc_NetSessInfo1_Type);
19487 #ifdef PY_NETSESSCTR1_PATCH
19488 PY_NETSESSCTR1_PATCH(&srvsvc_NetSessCtr1_Type);
19490 #ifdef PY_NETSESSINFO2_PATCH
19491 PY_NETSESSINFO2_PATCH(&srvsvc_NetSessInfo2_Type);
19493 #ifdef PY_NETSESSCTR2_PATCH
19494 PY_NETSESSCTR2_PATCH(&srvsvc_NetSessCtr2_Type);
19496 #ifdef PY_NETSESSINFO10_PATCH
19497 PY_NETSESSINFO10_PATCH(&srvsvc_NetSessInfo10_Type);
19499 #ifdef PY_NETSESSCTR10_PATCH
19500 PY_NETSESSCTR10_PATCH(&srvsvc_NetSessCtr10_Type);
19502 #ifdef PY_NETSESSINFO502_PATCH
19503 PY_NETSESSINFO502_PATCH(&srvsvc_NetSessInfo502_Type);
19505 #ifdef PY_NETSESSCTR502_PATCH
19506 PY_NETSESSCTR502_PATCH(&srvsvc_NetSessCtr502_Type);
19508 #ifdef PY_NETSESSINFOCTR_PATCH
19509 PY_NETSESSINFOCTR_PATCH(&srvsvc_NetSessInfoCtr_Type);
19511 #ifdef PY_NETSHAREINFO0_PATCH
19512 PY_NETSHAREINFO0_PATCH(&srvsvc_NetShareInfo0_Type);
19514 #ifdef PY_NETSHARECTR0_PATCH
19515 PY_NETSHARECTR0_PATCH(&srvsvc_NetShareCtr0_Type);
19517 #ifdef PY_NETSHAREINFO1_PATCH
19518 PY_NETSHAREINFO1_PATCH(&srvsvc_NetShareInfo1_Type);
19520 #ifdef PY_NETSHARECTR1_PATCH
19521 PY_NETSHARECTR1_PATCH(&srvsvc_NetShareCtr1_Type);
19523 #ifdef PY_NETSHAREINFO2_PATCH
19524 PY_NETSHAREINFO2_PATCH(&srvsvc_NetShareInfo2_Type);
19526 #ifdef PY_NETSHARECTR2_PATCH
19527 PY_NETSHARECTR2_PATCH(&srvsvc_NetShareCtr2_Type);
19529 #ifdef PY_NETSHAREINFO501_PATCH
19530 PY_NETSHAREINFO501_PATCH(&srvsvc_NetShareInfo501_Type);
19532 #ifdef PY_NETSHARECTR501_PATCH
19533 PY_NETSHARECTR501_PATCH(&srvsvc_NetShareCtr501_Type);
19535 #ifdef PY_NETSHAREINFO502_PATCH
19536 PY_NETSHAREINFO502_PATCH(&srvsvc_NetShareInfo502_Type);
19538 #ifdef PY_NETSHARECTR502_PATCH
19539 PY_NETSHARECTR502_PATCH(&srvsvc_NetShareCtr502_Type);
19541 #ifdef PY_NETSHAREINFO1004_PATCH
19542 PY_NETSHAREINFO1004_PATCH(&srvsvc_NetShareInfo1004_Type);
19544 #ifdef PY_NETSHARECTR1004_PATCH
19545 PY_NETSHARECTR1004_PATCH(&srvsvc_NetShareCtr1004_Type);
19547 #ifdef PY_NETSHAREINFO1005_PATCH
19548 PY_NETSHAREINFO1005_PATCH(&srvsvc_NetShareInfo1005_Type);
19550 #ifdef PY_NETSHARECTR1005_PATCH
19551 PY_NETSHARECTR1005_PATCH(&srvsvc_NetShareCtr1005_Type);
19553 #ifdef PY_NETSHAREINFO1006_PATCH
19554 PY_NETSHAREINFO1006_PATCH(&srvsvc_NetShareInfo1006_Type);
19556 #ifdef PY_NETSHARECTR1006_PATCH
19557 PY_NETSHARECTR1006_PATCH(&srvsvc_NetShareCtr1006_Type);
19559 #ifdef PY_NETSHAREINFO1007_PATCH
19560 PY_NETSHAREINFO1007_PATCH(&srvsvc_NetShareInfo1007_Type);
19562 #ifdef PY_NETSHARECTR1007_PATCH
19563 PY_NETSHARECTR1007_PATCH(&srvsvc_NetShareCtr1007_Type);
19565 #ifdef PY_NETSHARECTR1501_PATCH
19566 PY_NETSHARECTR1501_PATCH(&srvsvc_NetShareCtr1501_Type);
19568 #ifdef PY_NETSHAREINFOCTR_PATCH
19569 PY_NETSHAREINFOCTR_PATCH(&srvsvc_NetShareInfoCtr_Type);
19571 #ifdef PY_NETSRVINFO100_PATCH
19572 PY_NETSRVINFO100_PATCH(&srvsvc_NetSrvInfo100_Type);
19574 #ifdef PY_NETSRVINFO101_PATCH
19575 PY_NETSRVINFO101_PATCH(&srvsvc_NetSrvInfo101_Type);
19577 #ifdef PY_NETSRVINFO102_PATCH
19578 PY_NETSRVINFO102_PATCH(&srvsvc_NetSrvInfo102_Type);
19580 #ifdef PY_NETSRVINFO402_PATCH
19581 PY_NETSRVINFO402_PATCH(&srvsvc_NetSrvInfo402_Type);
19583 #ifdef PY_NETSRVINFO403_PATCH
19584 PY_NETSRVINFO403_PATCH(&srvsvc_NetSrvInfo403_Type);
19586 #ifdef PY_NETSRVINFO502_PATCH
19587 PY_NETSRVINFO502_PATCH(&srvsvc_NetSrvInfo502_Type);
19589 #ifdef PY_NETSRVINFO503_PATCH
19590 PY_NETSRVINFO503_PATCH(&srvsvc_NetSrvInfo503_Type);
19592 #ifdef PY_NETSRVINFO599_PATCH
19593 PY_NETSRVINFO599_PATCH(&srvsvc_NetSrvInfo599_Type);
19595 #ifdef PY_NETSRVINFO1005_PATCH
19596 PY_NETSRVINFO1005_PATCH(&srvsvc_NetSrvInfo1005_Type);
19598 #ifdef PY_NETSRVINFO1010_PATCH
19599 PY_NETSRVINFO1010_PATCH(&srvsvc_NetSrvInfo1010_Type);
19601 #ifdef PY_NETSRVINFO1016_PATCH
19602 PY_NETSRVINFO1016_PATCH(&srvsvc_NetSrvInfo1016_Type);
19604 #ifdef PY_NETSRVINFO1017_PATCH
19605 PY_NETSRVINFO1017_PATCH(&srvsvc_NetSrvInfo1017_Type);
19607 #ifdef PY_NETSRVINFO1018_PATCH
19608 PY_NETSRVINFO1018_PATCH(&srvsvc_NetSrvInfo1018_Type);
19610 #ifdef PY_NETSRVINFO1107_PATCH
19611 PY_NETSRVINFO1107_PATCH(&srvsvc_NetSrvInfo1107_Type);
19613 #ifdef PY_NETSRVINFO1501_PATCH
19614 PY_NETSRVINFO1501_PATCH(&srvsvc_NetSrvInfo1501_Type);
19616 #ifdef PY_NETSRVINFO1502_PATCH
19617 PY_NETSRVINFO1502_PATCH(&srvsvc_NetSrvInfo1502_Type);
19619 #ifdef PY_NETSRVINFO1503_PATCH
19620 PY_NETSRVINFO1503_PATCH(&srvsvc_NetSrvInfo1503_Type);
19622 #ifdef PY_NETSRVINFO1506_PATCH
19623 PY_NETSRVINFO1506_PATCH(&srvsvc_NetSrvInfo1506_Type);
19625 #ifdef PY_NETSRVINFO1509_PATCH
19626 PY_NETSRVINFO1509_PATCH(&srvsvc_NetSrvInfo1509_Type);
19628 #ifdef PY_NETSRVINFO1510_PATCH
19629 PY_NETSRVINFO1510_PATCH(&srvsvc_NetSrvInfo1510_Type);
19631 #ifdef PY_NETSRVINFO1511_PATCH
19632 PY_NETSRVINFO1511_PATCH(&srvsvc_NetSrvInfo1511_Type);
19634 #ifdef PY_NETSRVINFO1512_PATCH
19635 PY_NETSRVINFO1512_PATCH(&srvsvc_NetSrvInfo1512_Type);
19637 #ifdef PY_NETSRVINFO1513_PATCH
19638 PY_NETSRVINFO1513_PATCH(&srvsvc_NetSrvInfo1513_Type);
19640 #ifdef PY_NETSRVINFO1514_PATCH
19641 PY_NETSRVINFO1514_PATCH(&srvsvc_NetSrvInfo1514_Type);
19643 #ifdef PY_NETSRVINFO1515_PATCH
19644 PY_NETSRVINFO1515_PATCH(&srvsvc_NetSrvInfo1515_Type);
19646 #ifdef PY_NETSRVINFO1516_PATCH
19647 PY_NETSRVINFO1516_PATCH(&srvsvc_NetSrvInfo1516_Type);
19649 #ifdef PY_NETSRVINFO1518_PATCH
19650 PY_NETSRVINFO1518_PATCH(&srvsvc_NetSrvInfo1518_Type);
19652 #ifdef PY_NETSRVINFO1520_PATCH
19653 PY_NETSRVINFO1520_PATCH(&srvsvc_NetSrvInfo1520_Type);
19655 #ifdef PY_NETSRVINFO1521_PATCH
19656 PY_NETSRVINFO1521_PATCH(&srvsvc_NetSrvInfo1521_Type);
19658 #ifdef PY_NETSRVINFO1522_PATCH
19659 PY_NETSRVINFO1522_PATCH(&srvsvc_NetSrvInfo1522_Type);
19661 #ifdef PY_NETSRVINFO1523_PATCH
19662 PY_NETSRVINFO1523_PATCH(&srvsvc_NetSrvInfo1523_Type);
19664 #ifdef PY_NETSRVINFO1524_PATCH
19665 PY_NETSRVINFO1524_PATCH(&srvsvc_NetSrvInfo1524_Type);
19667 #ifdef PY_NETSRVINFO1525_PATCH
19668 PY_NETSRVINFO1525_PATCH(&srvsvc_NetSrvInfo1525_Type);
19670 #ifdef PY_NETSRVINFO1528_PATCH
19671 PY_NETSRVINFO1528_PATCH(&srvsvc_NetSrvInfo1528_Type);
19673 #ifdef PY_NETSRVINFO1529_PATCH
19674 PY_NETSRVINFO1529_PATCH(&srvsvc_NetSrvInfo1529_Type);
19676 #ifdef PY_NETSRVINFO1530_PATCH
19677 PY_NETSRVINFO1530_PATCH(&srvsvc_NetSrvInfo1530_Type);
19679 #ifdef PY_NETSRVINFO1533_PATCH
19680 PY_NETSRVINFO1533_PATCH(&srvsvc_NetSrvInfo1533_Type);
19682 #ifdef PY_NETSRVINFO1534_PATCH
19683 PY_NETSRVINFO1534_PATCH(&srvsvc_NetSrvInfo1534_Type);
19685 #ifdef PY_NETSRVINFO1535_PATCH
19686 PY_NETSRVINFO1535_PATCH(&srvsvc_NetSrvInfo1535_Type);
19688 #ifdef PY_NETSRVINFO1536_PATCH
19689 PY_NETSRVINFO1536_PATCH(&srvsvc_NetSrvInfo1536_Type);
19691 #ifdef PY_NETSRVINFO1537_PATCH
19692 PY_NETSRVINFO1537_PATCH(&srvsvc_NetSrvInfo1537_Type);
19694 #ifdef PY_NETSRVINFO1538_PATCH
19695 PY_NETSRVINFO1538_PATCH(&srvsvc_NetSrvInfo1538_Type);
19697 #ifdef PY_NETSRVINFO1539_PATCH
19698 PY_NETSRVINFO1539_PATCH(&srvsvc_NetSrvInfo1539_Type);
19700 #ifdef PY_NETSRVINFO1540_PATCH
19701 PY_NETSRVINFO1540_PATCH(&srvsvc_NetSrvInfo1540_Type);
19703 #ifdef PY_NETSRVINFO1541_PATCH
19704 PY_NETSRVINFO1541_PATCH(&srvsvc_NetSrvInfo1541_Type);
19706 #ifdef PY_NETSRVINFO1542_PATCH
19707 PY_NETSRVINFO1542_PATCH(&srvsvc_NetSrvInfo1542_Type);
19709 #ifdef PY_NETSRVINFO1543_PATCH
19710 PY_NETSRVINFO1543_PATCH(&srvsvc_NetSrvInfo1543_Type);
19712 #ifdef PY_NETSRVINFO1544_PATCH
19713 PY_NETSRVINFO1544_PATCH(&srvsvc_NetSrvInfo1544_Type);
19715 #ifdef PY_NETSRVINFO1545_PATCH
19716 PY_NETSRVINFO1545_PATCH(&srvsvc_NetSrvInfo1545_Type);
19718 #ifdef PY_NETSRVINFO1546_PATCH
19719 PY_NETSRVINFO1546_PATCH(&srvsvc_NetSrvInfo1546_Type);
19721 #ifdef PY_NETSRVINFO1547_PATCH
19722 PY_NETSRVINFO1547_PATCH(&srvsvc_NetSrvInfo1547_Type);
19724 #ifdef PY_NETSRVINFO1548_PATCH
19725 PY_NETSRVINFO1548_PATCH(&srvsvc_NetSrvInfo1548_Type);
19727 #ifdef PY_NETSRVINFO1549_PATCH
19728 PY_NETSRVINFO1549_PATCH(&srvsvc_NetSrvInfo1549_Type);
19730 #ifdef PY_NETSRVINFO1550_PATCH
19731 PY_NETSRVINFO1550_PATCH(&srvsvc_NetSrvInfo1550_Type);
19733 #ifdef PY_NETSRVINFO1552_PATCH
19734 PY_NETSRVINFO1552_PATCH(&srvsvc_NetSrvInfo1552_Type);
19736 #ifdef PY_NETSRVINFO1553_PATCH
19737 PY_NETSRVINFO1553_PATCH(&srvsvc_NetSrvInfo1553_Type);
19739 #ifdef PY_NETSRVINFO1554_PATCH
19740 PY_NETSRVINFO1554_PATCH(&srvsvc_NetSrvInfo1554_Type);
19742 #ifdef PY_NETSRVINFO1555_PATCH
19743 PY_NETSRVINFO1555_PATCH(&srvsvc_NetSrvInfo1555_Type);
19745 #ifdef PY_NETSRVINFO1556_PATCH
19746 PY_NETSRVINFO1556_PATCH(&srvsvc_NetSrvInfo1556_Type);
19748 #ifdef PY_NETDISKINFO0_PATCH
19749 PY_NETDISKINFO0_PATCH(&srvsvc_NetDiskInfo0_Type);
19751 #ifdef PY_NETDISKINFO_PATCH
19752 PY_NETDISKINFO_PATCH(&srvsvc_NetDiskInfo_Type);
19754 #ifdef PY_STATISTICS_PATCH
19755 PY_STATISTICS_PATCH(&srvsvc_Statistics_Type);
19757 #ifdef PY_NETTRANSPORTINFO0_PATCH
19758 PY_NETTRANSPORTINFO0_PATCH(&srvsvc_NetTransportInfo0_Type);
19760 #ifdef PY_NETTRANSPORTCTR0_PATCH
19761 PY_NETTRANSPORTCTR0_PATCH(&srvsvc_NetTransportCtr0_Type);
19763 #ifdef PY_NETTRANSPORTINFO1_PATCH
19764 PY_NETTRANSPORTINFO1_PATCH(&srvsvc_NetTransportInfo1_Type);
19766 #ifdef PY_NETTRANSPORTCTR1_PATCH
19767 PY_NETTRANSPORTCTR1_PATCH(&srvsvc_NetTransportCtr1_Type);
19769 #ifdef PY_NETTRANSPORTINFO2_PATCH
19770 PY_NETTRANSPORTINFO2_PATCH(&srvsvc_NetTransportInfo2_Type);
19772 #ifdef PY_NETTRANSPORTCTR2_PATCH
19773 PY_NETTRANSPORTCTR2_PATCH(&srvsvc_NetTransportCtr2_Type);
19775 #ifdef PY_NETTRANSPORTINFO3_PATCH
19776 PY_NETTRANSPORTINFO3_PATCH(&srvsvc_NetTransportInfo3_Type);
19778 #ifdef PY_NETTRANSPORTCTR3_PATCH
19779 PY_NETTRANSPORTCTR3_PATCH(&srvsvc_NetTransportCtr3_Type);
19781 #ifdef PY_NETTRANSPORTINFOCTR_PATCH
19782 PY_NETTRANSPORTINFOCTR_PATCH(&srvsvc_NetTransportInfoCtr_Type);
19784 #ifdef PY_NETREMOTETODINFO_PATCH
19785 PY_NETREMOTETODINFO_PATCH(&srvsvc_NetRemoteTODInfo_Type);
19787 #ifdef PY_SRVSVC_PATCH
19788 PY_SRVSVC_PATCH(&srvsvc_InterfaceType);
19790 #ifdef PY_ABSTRACT_SYNTAX_PATCH
19791 PY_ABSTRACT_SYNTAX_PATCH(&srvsvc_SyntaxType);
19794 m = Py_InitModule3("srvsvc", srvsvc_methods, "srvsvc DCE/RPC");
19798 PyModule_AddObject(m, "STYPE_TEMPORARY", PyInt_FromLong(0x40000000));
19799 PyModule_AddObject(m, "STYPE_HIDDEN", PyInt_FromLong(0x80000000));
19800 PyModule_AddObject(m, "SHARE_1005_CSC_CACHE_MANUAL_REINT", PyInt_FromLong(0x00000000));
19801 PyModule_AddObject(m, "SHARE_1005_CSC_POLICY_MASK", PyInt_FromLong(0x00000030));
19802 PyModule_AddObject(m, "SHARE_1005_CSC_POLICY_SHIFT", PyInt_FromLong(4));
19803 PyModule_AddObject(m, "STYPE_DISKTREE", PyInt_FromLong(STYPE_DISKTREE));
19804 PyModule_AddObject(m, "STYPE_DISKTREE_TEMPORARY", PyInt_FromLong(STYPE_DISKTREE_TEMPORARY));
19805 PyModule_AddObject(m, "STYPE_DISKTREE_HIDDEN", PyInt_FromLong(STYPE_DISKTREE_HIDDEN));
19806 PyModule_AddObject(m, "STYPE_PRINTQ", PyInt_FromLong(STYPE_PRINTQ));
19807 PyModule_AddObject(m, "STYPE_PRINTQ_TEMPORARY", PyInt_FromLong(STYPE_PRINTQ_TEMPORARY));
19808 PyModule_AddObject(m, "STYPE_PRINTQ_HIDDEN", PyInt_FromLong(STYPE_PRINTQ_HIDDEN));
19809 PyModule_AddObject(m, "STYPE_DEVICE", PyInt_FromLong(STYPE_DEVICE));
19810 PyModule_AddObject(m, "STYPE_DEVICE_TEMPORARY", PyInt_FromLong(STYPE_DEVICE_TEMPORARY));
19811 PyModule_AddObject(m, "STYPE_DEVICE_HIDDEN", PyInt_FromLong(STYPE_DEVICE_HIDDEN));
19812 PyModule_AddObject(m, "STYPE_IPC", PyInt_FromLong(STYPE_IPC));
19813 PyModule_AddObject(m, "STYPE_IPC_TEMPORARY", PyInt_FromLong(STYPE_IPC_TEMPORARY));
19814 PyModule_AddObject(m, "STYPE_IPC_HIDDEN", PyInt_FromLong(STYPE_IPC_HIDDEN));
19815 PyModule_AddObject(m, "SHARE_1005_IN_DFS", PyInt_FromLong(SHARE_1005_IN_DFS));
19816 PyModule_AddObject(m, "SHARE_1005_DFS_ROOT", PyInt_FromLong(SHARE_1005_DFS_ROOT));
19817 PyModule_AddObject(m, "SHARE_1005_CSC_CACHE_AUTO_REINT", PyInt_FromLong(SHARE_1005_CSC_CACHE_AUTO_REINT));
19818 PyModule_AddObject(m, "SHARE_1005_CSC_CACHE_VDO", PyInt_FromLong(SHARE_1005_CSC_CACHE_VDO));
19819 PyModule_AddObject(m, "SHARE_1005_CSC_CACHE_NONE", PyInt_FromLong(SHARE_1005_CSC_CACHE_NONE));
19820 PyModule_AddObject(m, "SHARE_1005_RESTRICT_EXCLUSIVE_OPENS", PyInt_FromLong(SHARE_1005_RESTRICT_EXCLUSIVE_OPENS));
19821 PyModule_AddObject(m, "SHARE_1005_FORCE_SHARED_DELETE", PyInt_FromLong(SHARE_1005_FORCE_SHARED_DELETE));
19822 PyModule_AddObject(m, "SHARE_1005_ALLOW_NAMESPACE_CACHING", PyInt_FromLong(SHARE_1005_ALLOW_NAMESPACE_CACHING));
19823 PyModule_AddObject(m, "SHARE_1005_ACCESS_BASED_DIRECTORY_ENUM", PyInt_FromLong(SHARE_1005_ACCESS_BASED_DIRECTORY_ENUM));
19824 PyModule_AddObject(m, "SHARE_1005_FORCE_LEVELII_OPLOCK", PyInt_FromLong(SHARE_1005_FORCE_LEVELII_OPLOCK));
19825 PyModule_AddObject(m, "SHARE_1005_ENABLE_HASH", PyInt_FromLong(SHARE_1005_ENABLE_HASH));
19826 PyModule_AddObject(m, "SHARE_1005_ENABLE_CA", PyInt_FromLong(SHARE_1005_ENABLE_CA));
19827 PyModule_AddObject(m, "SHARE_1005_ENCRYPT_DATA", PyInt_FromLong(SHARE_1005_ENCRYPT_DATA));
19828 PyModule_AddObject(m, "PLATFORM_ID_DOS", PyInt_FromLong(PLATFORM_ID_DOS));
19829 PyModule_AddObject(m, "PLATFORM_ID_OS2", PyInt_FromLong(PLATFORM_ID_OS2));
19830 PyModule_AddObject(m, "PLATFORM_ID_NT", PyInt_FromLong(PLATFORM_ID_NT));
19831 PyModule_AddObject(m, "PLATFORM_ID_OSF", PyInt_FromLong(PLATFORM_ID_OSF));
19832 PyModule_AddObject(m, "PLATFORM_ID_VMS", PyInt_FromLong(PLATFORM_ID_VMS));
19833 Py_INCREF((PyObject *)(void *)&srvsvc_NetCharDevInfo0_Type);
19834 PyModule_AddObject(m, "NetCharDevInfo0", (PyObject *)(void *)&srvsvc_NetCharDevInfo0_Type);
19835 Py_INCREF((PyObject *)(void *)&srvsvc_NetCharDevCtr0_Type);
19836 PyModule_AddObject(m, "NetCharDevCtr0", (PyObject *)(void *)&srvsvc_NetCharDevCtr0_Type);
19837 Py_INCREF((PyObject *)(void *)&srvsvc_NetCharDevInfo1_Type);
19838 PyModule_AddObject(m, "NetCharDevInfo1", (PyObject *)(void *)&srvsvc_NetCharDevInfo1_Type);
19839 Py_INCREF((PyObject *)(void *)&srvsvc_NetCharDevCtr1_Type);
19840 PyModule_AddObject(m, "NetCharDevCtr1", (PyObject *)(void *)&srvsvc_NetCharDevCtr1_Type);
19841 Py_INCREF((PyObject *)(void *)&srvsvc_NetCharDevInfoCtr_Type);
19842 PyModule_AddObject(m, "NetCharDevInfoCtr", (PyObject *)(void *)&srvsvc_NetCharDevInfoCtr_Type);
19843 Py_INCREF((PyObject *)(void *)&srvsvc_NetCharDevQInfo0_Type);
19844 PyModule_AddObject(m, "NetCharDevQInfo0", (PyObject *)(void *)&srvsvc_NetCharDevQInfo0_Type);
19845 Py_INCREF((PyObject *)(void *)&srvsvc_NetCharDevQCtr0_Type);
19846 PyModule_AddObject(m, "NetCharDevQCtr0", (PyObject *)(void *)&srvsvc_NetCharDevQCtr0_Type);
19847 Py_INCREF((PyObject *)(void *)&srvsvc_NetCharDevQInfo1_Type);
19848 PyModule_AddObject(m, "NetCharDevQInfo1", (PyObject *)(void *)&srvsvc_NetCharDevQInfo1_Type);
19849 Py_INCREF((PyObject *)(void *)&srvsvc_NetCharDevQCtr1_Type);
19850 PyModule_AddObject(m, "NetCharDevQCtr1", (PyObject *)(void *)&srvsvc_NetCharDevQCtr1_Type);
19851 Py_INCREF((PyObject *)(void *)&srvsvc_NetCharDevQInfoCtr_Type);
19852 PyModule_AddObject(m, "NetCharDevQInfoCtr", (PyObject *)(void *)&srvsvc_NetCharDevQInfoCtr_Type);
19853 Py_INCREF((PyObject *)(void *)&srvsvc_NetConnInfo0_Type);
19854 PyModule_AddObject(m, "NetConnInfo0", (PyObject *)(void *)&srvsvc_NetConnInfo0_Type);
19855 Py_INCREF((PyObject *)(void *)&srvsvc_NetConnCtr0_Type);
19856 PyModule_AddObject(m, "NetConnCtr0", (PyObject *)(void *)&srvsvc_NetConnCtr0_Type);
19857 Py_INCREF((PyObject *)(void *)&srvsvc_NetConnInfo1_Type);
19858 PyModule_AddObject(m, "NetConnInfo1", (PyObject *)(void *)&srvsvc_NetConnInfo1_Type);
19859 Py_INCREF((PyObject *)(void *)&srvsvc_NetConnCtr1_Type);
19860 PyModule_AddObject(m, "NetConnCtr1", (PyObject *)(void *)&srvsvc_NetConnCtr1_Type);
19861 Py_INCREF((PyObject *)(void *)&srvsvc_NetConnInfoCtr_Type);
19862 PyModule_AddObject(m, "NetConnInfoCtr", (PyObject *)(void *)&srvsvc_NetConnInfoCtr_Type);
19863 Py_INCREF((PyObject *)(void *)&srvsvc_NetFileInfo2_Type);
19864 PyModule_AddObject(m, "NetFileInfo2", (PyObject *)(void *)&srvsvc_NetFileInfo2_Type);
19865 Py_INCREF((PyObject *)(void *)&srvsvc_NetFileCtr2_Type);
19866 PyModule_AddObject(m, "NetFileCtr2", (PyObject *)(void *)&srvsvc_NetFileCtr2_Type);
19867 Py_INCREF((PyObject *)(void *)&srvsvc_NetFileInfo3_Type);
19868 PyModule_AddObject(m, "NetFileInfo3", (PyObject *)(void *)&srvsvc_NetFileInfo3_Type);
19869 Py_INCREF((PyObject *)(void *)&srvsvc_NetFileCtr3_Type);
19870 PyModule_AddObject(m, "NetFileCtr3", (PyObject *)(void *)&srvsvc_NetFileCtr3_Type);
19871 Py_INCREF((PyObject *)(void *)&srvsvc_NetFileInfoCtr_Type);
19872 PyModule_AddObject(m, "NetFileInfoCtr", (PyObject *)(void *)&srvsvc_NetFileInfoCtr_Type);
19873 Py_INCREF((PyObject *)(void *)&srvsvc_NetSessInfo0_Type);
19874 PyModule_AddObject(m, "NetSessInfo0", (PyObject *)(void *)&srvsvc_NetSessInfo0_Type);
19875 Py_INCREF((PyObject *)(void *)&srvsvc_NetSessCtr0_Type);
19876 PyModule_AddObject(m, "NetSessCtr0", (PyObject *)(void *)&srvsvc_NetSessCtr0_Type);
19877 Py_INCREF((PyObject *)(void *)&srvsvc_NetSessInfo1_Type);
19878 PyModule_AddObject(m, "NetSessInfo1", (PyObject *)(void *)&srvsvc_NetSessInfo1_Type);
19879 Py_INCREF((PyObject *)(void *)&srvsvc_NetSessCtr1_Type);
19880 PyModule_AddObject(m, "NetSessCtr1", (PyObject *)(void *)&srvsvc_NetSessCtr1_Type);
19881 Py_INCREF((PyObject *)(void *)&srvsvc_NetSessInfo2_Type);
19882 PyModule_AddObject(m, "NetSessInfo2", (PyObject *)(void *)&srvsvc_NetSessInfo2_Type);
19883 Py_INCREF((PyObject *)(void *)&srvsvc_NetSessCtr2_Type);
19884 PyModule_AddObject(m, "NetSessCtr2", (PyObject *)(void *)&srvsvc_NetSessCtr2_Type);
19885 Py_INCREF((PyObject *)(void *)&srvsvc_NetSessInfo10_Type);
19886 PyModule_AddObject(m, "NetSessInfo10", (PyObject *)(void *)&srvsvc_NetSessInfo10_Type);
19887 Py_INCREF((PyObject *)(void *)&srvsvc_NetSessCtr10_Type);
19888 PyModule_AddObject(m, "NetSessCtr10", (PyObject *)(void *)&srvsvc_NetSessCtr10_Type);
19889 Py_INCREF((PyObject *)(void *)&srvsvc_NetSessInfo502_Type);
19890 PyModule_AddObject(m, "NetSessInfo502", (PyObject *)(void *)&srvsvc_NetSessInfo502_Type);
19891 Py_INCREF((PyObject *)(void *)&srvsvc_NetSessCtr502_Type);
19892 PyModule_AddObject(m, "NetSessCtr502", (PyObject *)(void *)&srvsvc_NetSessCtr502_Type);
19893 Py_INCREF((PyObject *)(void *)&srvsvc_NetSessInfoCtr_Type);
19894 PyModule_AddObject(m, "NetSessInfoCtr", (PyObject *)(void *)&srvsvc_NetSessInfoCtr_Type);
19895 Py_INCREF((PyObject *)(void *)&srvsvc_NetShareInfo0_Type);
19896 PyModule_AddObject(m, "NetShareInfo0", (PyObject *)(void *)&srvsvc_NetShareInfo0_Type);
19897 Py_INCREF((PyObject *)(void *)&srvsvc_NetShareCtr0_Type);
19898 PyModule_AddObject(m, "NetShareCtr0", (PyObject *)(void *)&srvsvc_NetShareCtr0_Type);
19899 Py_INCREF((PyObject *)(void *)&srvsvc_NetShareInfo1_Type);
19900 PyModule_AddObject(m, "NetShareInfo1", (PyObject *)(void *)&srvsvc_NetShareInfo1_Type);
19901 Py_INCREF((PyObject *)(void *)&srvsvc_NetShareCtr1_Type);
19902 PyModule_AddObject(m, "NetShareCtr1", (PyObject *)(void *)&srvsvc_NetShareCtr1_Type);
19903 Py_INCREF((PyObject *)(void *)&srvsvc_NetShareInfo2_Type);
19904 PyModule_AddObject(m, "NetShareInfo2", (PyObject *)(void *)&srvsvc_NetShareInfo2_Type);
19905 Py_INCREF((PyObject *)(void *)&srvsvc_NetShareCtr2_Type);
19906 PyModule_AddObject(m, "NetShareCtr2", (PyObject *)(void *)&srvsvc_NetShareCtr2_Type);
19907 Py_INCREF((PyObject *)(void *)&srvsvc_NetShareInfo501_Type);
19908 PyModule_AddObject(m, "NetShareInfo501", (PyObject *)(void *)&srvsvc_NetShareInfo501_Type);
19909 Py_INCREF((PyObject *)(void *)&srvsvc_NetShareCtr501_Type);
19910 PyModule_AddObject(m, "NetShareCtr501", (PyObject *)(void *)&srvsvc_NetShareCtr501_Type);
19911 Py_INCREF((PyObject *)(void *)&srvsvc_NetShareInfo502_Type);
19912 PyModule_AddObject(m, "NetShareInfo502", (PyObject *)(void *)&srvsvc_NetShareInfo502_Type);
19913 Py_INCREF((PyObject *)(void *)&srvsvc_NetShareCtr502_Type);
19914 PyModule_AddObject(m, "NetShareCtr502", (PyObject *)(void *)&srvsvc_NetShareCtr502_Type);
19915 Py_INCREF((PyObject *)(void *)&srvsvc_NetShareInfo1004_Type);
19916 PyModule_AddObject(m, "NetShareInfo1004", (PyObject *)(void *)&srvsvc_NetShareInfo1004_Type);
19917 Py_INCREF((PyObject *)(void *)&srvsvc_NetShareCtr1004_Type);
19918 PyModule_AddObject(m, "NetShareCtr1004", (PyObject *)(void *)&srvsvc_NetShareCtr1004_Type);
19919 Py_INCREF((PyObject *)(void *)&srvsvc_NetShareInfo1005_Type);
19920 PyModule_AddObject(m, "NetShareInfo1005", (PyObject *)(void *)&srvsvc_NetShareInfo1005_Type);
19921 Py_INCREF((PyObject *)(void *)&srvsvc_NetShareCtr1005_Type);
19922 PyModule_AddObject(m, "NetShareCtr1005", (PyObject *)(void *)&srvsvc_NetShareCtr1005_Type);
19923 Py_INCREF((PyObject *)(void *)&srvsvc_NetShareInfo1006_Type);
19924 PyModule_AddObject(m, "NetShareInfo1006", (PyObject *)(void *)&srvsvc_NetShareInfo1006_Type);
19925 Py_INCREF((PyObject *)(void *)&srvsvc_NetShareCtr1006_Type);
19926 PyModule_AddObject(m, "NetShareCtr1006", (PyObject *)(void *)&srvsvc_NetShareCtr1006_Type);
19927 Py_INCREF((PyObject *)(void *)&srvsvc_NetShareInfo1007_Type);
19928 PyModule_AddObject(m, "NetShareInfo1007", (PyObject *)(void *)&srvsvc_NetShareInfo1007_Type);
19929 Py_INCREF((PyObject *)(void *)&srvsvc_NetShareCtr1007_Type);
19930 PyModule_AddObject(m, "NetShareCtr1007", (PyObject *)(void *)&srvsvc_NetShareCtr1007_Type);
19931 Py_INCREF((PyObject *)(void *)&srvsvc_NetShareCtr1501_Type);
19932 PyModule_AddObject(m, "NetShareCtr1501", (PyObject *)(void *)&srvsvc_NetShareCtr1501_Type);
19933 Py_INCREF((PyObject *)(void *)&srvsvc_NetShareInfoCtr_Type);
19934 PyModule_AddObject(m, "NetShareInfoCtr", (PyObject *)(void *)&srvsvc_NetShareInfoCtr_Type);
19935 Py_INCREF((PyObject *)(void *)&srvsvc_NetSrvInfo100_Type);
19936 PyModule_AddObject(m, "NetSrvInfo100", (PyObject *)(void *)&srvsvc_NetSrvInfo100_Type);
19937 Py_INCREF((PyObject *)(void *)&srvsvc_NetSrvInfo101_Type);
19938 PyModule_AddObject(m, "NetSrvInfo101", (PyObject *)(void *)&srvsvc_NetSrvInfo101_Type);
19939 Py_INCREF((PyObject *)(void *)&srvsvc_NetSrvInfo102_Type);
19940 PyModule_AddObject(m, "NetSrvInfo102", (PyObject *)(void *)&srvsvc_NetSrvInfo102_Type);
19941 Py_INCREF((PyObject *)(void *)&srvsvc_NetSrvInfo402_Type);
19942 PyModule_AddObject(m, "NetSrvInfo402", (PyObject *)(void *)&srvsvc_NetSrvInfo402_Type);
19943 Py_INCREF((PyObject *)(void *)&srvsvc_NetSrvInfo403_Type);
19944 PyModule_AddObject(m, "NetSrvInfo403", (PyObject *)(void *)&srvsvc_NetSrvInfo403_Type);
19945 Py_INCREF((PyObject *)(void *)&srvsvc_NetSrvInfo502_Type);
19946 PyModule_AddObject(m, "NetSrvInfo502", (PyObject *)(void *)&srvsvc_NetSrvInfo502_Type);
19947 Py_INCREF((PyObject *)(void *)&srvsvc_NetSrvInfo503_Type);
19948 PyModule_AddObject(m, "NetSrvInfo503", (PyObject *)(void *)&srvsvc_NetSrvInfo503_Type);
19949 Py_INCREF((PyObject *)(void *)&srvsvc_NetSrvInfo599_Type);
19950 PyModule_AddObject(m, "NetSrvInfo599", (PyObject *)(void *)&srvsvc_NetSrvInfo599_Type);
19951 Py_INCREF((PyObject *)(void *)&srvsvc_NetSrvInfo1005_Type);
19952 PyModule_AddObject(m, "NetSrvInfo1005", (PyObject *)(void *)&srvsvc_NetSrvInfo1005_Type);
19953 Py_INCREF((PyObject *)(void *)&srvsvc_NetSrvInfo1010_Type);
19954 PyModule_AddObject(m, "NetSrvInfo1010", (PyObject *)(void *)&srvsvc_NetSrvInfo1010_Type);
19955 Py_INCREF((PyObject *)(void *)&srvsvc_NetSrvInfo1016_Type);
19956 PyModule_AddObject(m, "NetSrvInfo1016", (PyObject *)(void *)&srvsvc_NetSrvInfo1016_Type);
19957 Py_INCREF((PyObject *)(void *)&srvsvc_NetSrvInfo1017_Type);
19958 PyModule_AddObject(m, "NetSrvInfo1017", (PyObject *)(void *)&srvsvc_NetSrvInfo1017_Type);
19959 Py_INCREF((PyObject *)(void *)&srvsvc_NetSrvInfo1018_Type);
19960 PyModule_AddObject(m, "NetSrvInfo1018", (PyObject *)(void *)&srvsvc_NetSrvInfo1018_Type);
19961 Py_INCREF((PyObject *)(void *)&srvsvc_NetSrvInfo1107_Type);
19962 PyModule_AddObject(m, "NetSrvInfo1107", (PyObject *)(void *)&srvsvc_NetSrvInfo1107_Type);
19963 Py_INCREF((PyObject *)(void *)&srvsvc_NetSrvInfo1501_Type);
19964 PyModule_AddObject(m, "NetSrvInfo1501", (PyObject *)(void *)&srvsvc_NetSrvInfo1501_Type);
19965 Py_INCREF((PyObject *)(void *)&srvsvc_NetSrvInfo1502_Type);
19966 PyModule_AddObject(m, "NetSrvInfo1502", (PyObject *)(void *)&srvsvc_NetSrvInfo1502_Type);
19967 Py_INCREF((PyObject *)(void *)&srvsvc_NetSrvInfo1503_Type);
19968 PyModule_AddObject(m, "NetSrvInfo1503", (PyObject *)(void *)&srvsvc_NetSrvInfo1503_Type);
19969 Py_INCREF((PyObject *)(void *)&srvsvc_NetSrvInfo1506_Type);
19970 PyModule_AddObject(m, "NetSrvInfo1506", (PyObject *)(void *)&srvsvc_NetSrvInfo1506_Type);
19971 Py_INCREF((PyObject *)(void *)&srvsvc_NetSrvInfo1509_Type);
19972 PyModule_AddObject(m, "NetSrvInfo1509", (PyObject *)(void *)&srvsvc_NetSrvInfo1509_Type);
19973 Py_INCREF((PyObject *)(void *)&srvsvc_NetSrvInfo1510_Type);
19974 PyModule_AddObject(m, "NetSrvInfo1510", (PyObject *)(void *)&srvsvc_NetSrvInfo1510_Type);
19975 Py_INCREF((PyObject *)(void *)&srvsvc_NetSrvInfo1511_Type);
19976 PyModule_AddObject(m, "NetSrvInfo1511", (PyObject *)(void *)&srvsvc_NetSrvInfo1511_Type);
19977 Py_INCREF((PyObject *)(void *)&srvsvc_NetSrvInfo1512_Type);
19978 PyModule_AddObject(m, "NetSrvInfo1512", (PyObject *)(void *)&srvsvc_NetSrvInfo1512_Type);
19979 Py_INCREF((PyObject *)(void *)&srvsvc_NetSrvInfo1513_Type);
19980 PyModule_AddObject(m, "NetSrvInfo1513", (PyObject *)(void *)&srvsvc_NetSrvInfo1513_Type);
19981 Py_INCREF((PyObject *)(void *)&srvsvc_NetSrvInfo1514_Type);
19982 PyModule_AddObject(m, "NetSrvInfo1514", (PyObject *)(void *)&srvsvc_NetSrvInfo1514_Type);
19983 Py_INCREF((PyObject *)(void *)&srvsvc_NetSrvInfo1515_Type);
19984 PyModule_AddObject(m, "NetSrvInfo1515", (PyObject *)(void *)&srvsvc_NetSrvInfo1515_Type);
19985 Py_INCREF((PyObject *)(void *)&srvsvc_NetSrvInfo1516_Type);
19986 PyModule_AddObject(m, "NetSrvInfo1516", (PyObject *)(void *)&srvsvc_NetSrvInfo1516_Type);
19987 Py_INCREF((PyObject *)(void *)&srvsvc_NetSrvInfo1518_Type);
19988 PyModule_AddObject(m, "NetSrvInfo1518", (PyObject *)(void *)&srvsvc_NetSrvInfo1518_Type);
19989 Py_INCREF((PyObject *)(void *)&srvsvc_NetSrvInfo1520_Type);
19990 PyModule_AddObject(m, "NetSrvInfo1520", (PyObject *)(void *)&srvsvc_NetSrvInfo1520_Type);
19991 Py_INCREF((PyObject *)(void *)&srvsvc_NetSrvInfo1521_Type);
19992 PyModule_AddObject(m, "NetSrvInfo1521", (PyObject *)(void *)&srvsvc_NetSrvInfo1521_Type);
19993 Py_INCREF((PyObject *)(void *)&srvsvc_NetSrvInfo1522_Type);
19994 PyModule_AddObject(m, "NetSrvInfo1522", (PyObject *)(void *)&srvsvc_NetSrvInfo1522_Type);
19995 Py_INCREF((PyObject *)(void *)&srvsvc_NetSrvInfo1523_Type);
19996 PyModule_AddObject(m, "NetSrvInfo1523", (PyObject *)(void *)&srvsvc_NetSrvInfo1523_Type);
19997 Py_INCREF((PyObject *)(void *)&srvsvc_NetSrvInfo1524_Type);
19998 PyModule_AddObject(m, "NetSrvInfo1524", (PyObject *)(void *)&srvsvc_NetSrvInfo1524_Type);
19999 Py_INCREF((PyObject *)(void *)&srvsvc_NetSrvInfo1525_Type);
20000 PyModule_AddObject(m, "NetSrvInfo1525", (PyObject *)(void *)&srvsvc_NetSrvInfo1525_Type);
20001 Py_INCREF((PyObject *)(void *)&srvsvc_NetSrvInfo1528_Type);
20002 PyModule_AddObject(m, "NetSrvInfo1528", (PyObject *)(void *)&srvsvc_NetSrvInfo1528_Type);
20003 Py_INCREF((PyObject *)(void *)&srvsvc_NetSrvInfo1529_Type);
20004 PyModule_AddObject(m, "NetSrvInfo1529", (PyObject *)(void *)&srvsvc_NetSrvInfo1529_Type);
20005 Py_INCREF((PyObject *)(void *)&srvsvc_NetSrvInfo1530_Type);
20006 PyModule_AddObject(m, "NetSrvInfo1530", (PyObject *)(void *)&srvsvc_NetSrvInfo1530_Type);
20007 Py_INCREF((PyObject *)(void *)&srvsvc_NetSrvInfo1533_Type);
20008 PyModule_AddObject(m, "NetSrvInfo1533", (PyObject *)(void *)&srvsvc_NetSrvInfo1533_Type);
20009 Py_INCREF((PyObject *)(void *)&srvsvc_NetSrvInfo1534_Type);
20010 PyModule_AddObject(m, "NetSrvInfo1534", (PyObject *)(void *)&srvsvc_NetSrvInfo1534_Type);
20011 Py_INCREF((PyObject *)(void *)&srvsvc_NetSrvInfo1535_Type);
20012 PyModule_AddObject(m, "NetSrvInfo1535", (PyObject *)(void *)&srvsvc_NetSrvInfo1535_Type);
20013 Py_INCREF((PyObject *)(void *)&srvsvc_NetSrvInfo1536_Type);
20014 PyModule_AddObject(m, "NetSrvInfo1536", (PyObject *)(void *)&srvsvc_NetSrvInfo1536_Type);
20015 Py_INCREF((PyObject *)(void *)&srvsvc_NetSrvInfo1537_Type);
20016 PyModule_AddObject(m, "NetSrvInfo1537", (PyObject *)(void *)&srvsvc_NetSrvInfo1537_Type);
20017 Py_INCREF((PyObject *)(void *)&srvsvc_NetSrvInfo1538_Type);
20018 PyModule_AddObject(m, "NetSrvInfo1538", (PyObject *)(void *)&srvsvc_NetSrvInfo1538_Type);
20019 Py_INCREF((PyObject *)(void *)&srvsvc_NetSrvInfo1539_Type);
20020 PyModule_AddObject(m, "NetSrvInfo1539", (PyObject *)(void *)&srvsvc_NetSrvInfo1539_Type);
20021 Py_INCREF((PyObject *)(void *)&srvsvc_NetSrvInfo1540_Type);
20022 PyModule_AddObject(m, "NetSrvInfo1540", (PyObject *)(void *)&srvsvc_NetSrvInfo1540_Type);
20023 Py_INCREF((PyObject *)(void *)&srvsvc_NetSrvInfo1541_Type);
20024 PyModule_AddObject(m, "NetSrvInfo1541", (PyObject *)(void *)&srvsvc_NetSrvInfo1541_Type);
20025 Py_INCREF((PyObject *)(void *)&srvsvc_NetSrvInfo1542_Type);
20026 PyModule_AddObject(m, "NetSrvInfo1542", (PyObject *)(void *)&srvsvc_NetSrvInfo1542_Type);
20027 Py_INCREF((PyObject *)(void *)&srvsvc_NetSrvInfo1543_Type);
20028 PyModule_AddObject(m, "NetSrvInfo1543", (PyObject *)(void *)&srvsvc_NetSrvInfo1543_Type);
20029 Py_INCREF((PyObject *)(void *)&srvsvc_NetSrvInfo1544_Type);
20030 PyModule_AddObject(m, "NetSrvInfo1544", (PyObject *)(void *)&srvsvc_NetSrvInfo1544_Type);
20031 Py_INCREF((PyObject *)(void *)&srvsvc_NetSrvInfo1545_Type);
20032 PyModule_AddObject(m, "NetSrvInfo1545", (PyObject *)(void *)&srvsvc_NetSrvInfo1545_Type);
20033 Py_INCREF((PyObject *)(void *)&srvsvc_NetSrvInfo1546_Type);
20034 PyModule_AddObject(m, "NetSrvInfo1546", (PyObject *)(void *)&srvsvc_NetSrvInfo1546_Type);
20035 Py_INCREF((PyObject *)(void *)&srvsvc_NetSrvInfo1547_Type);
20036 PyModule_AddObject(m, "NetSrvInfo1547", (PyObject *)(void *)&srvsvc_NetSrvInfo1547_Type);
20037 Py_INCREF((PyObject *)(void *)&srvsvc_NetSrvInfo1548_Type);
20038 PyModule_AddObject(m, "NetSrvInfo1548", (PyObject *)(void *)&srvsvc_NetSrvInfo1548_Type);
20039 Py_INCREF((PyObject *)(void *)&srvsvc_NetSrvInfo1549_Type);
20040 PyModule_AddObject(m, "NetSrvInfo1549", (PyObject *)(void *)&srvsvc_NetSrvInfo1549_Type);
20041 Py_INCREF((PyObject *)(void *)&srvsvc_NetSrvInfo1550_Type);
20042 PyModule_AddObject(m, "NetSrvInfo1550", (PyObject *)(void *)&srvsvc_NetSrvInfo1550_Type);
20043 Py_INCREF((PyObject *)(void *)&srvsvc_NetSrvInfo1552_Type);
20044 PyModule_AddObject(m, "NetSrvInfo1552", (PyObject *)(void *)&srvsvc_NetSrvInfo1552_Type);
20045 Py_INCREF((PyObject *)(void *)&srvsvc_NetSrvInfo1553_Type);
20046 PyModule_AddObject(m, "NetSrvInfo1553", (PyObject *)(void *)&srvsvc_NetSrvInfo1553_Type);
20047 Py_INCREF((PyObject *)(void *)&srvsvc_NetSrvInfo1554_Type);
20048 PyModule_AddObject(m, "NetSrvInfo1554", (PyObject *)(void *)&srvsvc_NetSrvInfo1554_Type);
20049 Py_INCREF((PyObject *)(void *)&srvsvc_NetSrvInfo1555_Type);
20050 PyModule_AddObject(m, "NetSrvInfo1555", (PyObject *)(void *)&srvsvc_NetSrvInfo1555_Type);
20051 Py_INCREF((PyObject *)(void *)&srvsvc_NetSrvInfo1556_Type);
20052 PyModule_AddObject(m, "NetSrvInfo1556", (PyObject *)(void *)&srvsvc_NetSrvInfo1556_Type);
20053 Py_INCREF((PyObject *)(void *)&srvsvc_NetDiskInfo0_Type);
20054 PyModule_AddObject(m, "NetDiskInfo0", (PyObject *)(void *)&srvsvc_NetDiskInfo0_Type);
20055 Py_INCREF((PyObject *)(void *)&srvsvc_NetDiskInfo_Type);
20056 PyModule_AddObject(m, "NetDiskInfo", (PyObject *)(void *)&srvsvc_NetDiskInfo_Type);
20057 Py_INCREF((PyObject *)(void *)&srvsvc_Statistics_Type);
20058 PyModule_AddObject(m, "Statistics", (PyObject *)(void *)&srvsvc_Statistics_Type);
20059 Py_INCREF((PyObject *)(void *)&srvsvc_NetTransportInfo0_Type);
20060 PyModule_AddObject(m, "NetTransportInfo0", (PyObject *)(void *)&srvsvc_NetTransportInfo0_Type);
20061 Py_INCREF((PyObject *)(void *)&srvsvc_NetTransportCtr0_Type);
20062 PyModule_AddObject(m, "NetTransportCtr0", (PyObject *)(void *)&srvsvc_NetTransportCtr0_Type);
20063 Py_INCREF((PyObject *)(void *)&srvsvc_NetTransportInfo1_Type);
20064 PyModule_AddObject(m, "NetTransportInfo1", (PyObject *)(void *)&srvsvc_NetTransportInfo1_Type);
20065 Py_INCREF((PyObject *)(void *)&srvsvc_NetTransportCtr1_Type);
20066 PyModule_AddObject(m, "NetTransportCtr1", (PyObject *)(void *)&srvsvc_NetTransportCtr1_Type);
20067 Py_INCREF((PyObject *)(void *)&srvsvc_NetTransportInfo2_Type);
20068 PyModule_AddObject(m, "NetTransportInfo2", (PyObject *)(void *)&srvsvc_NetTransportInfo2_Type);
20069 Py_INCREF((PyObject *)(void *)&srvsvc_NetTransportCtr2_Type);
20070 PyModule_AddObject(m, "NetTransportCtr2", (PyObject *)(void *)&srvsvc_NetTransportCtr2_Type);
20071 Py_INCREF((PyObject *)(void *)&srvsvc_NetTransportInfo3_Type);
20072 PyModule_AddObject(m, "NetTransportInfo3", (PyObject *)(void *)&srvsvc_NetTransportInfo3_Type);
20073 Py_INCREF((PyObject *)(void *)&srvsvc_NetTransportCtr3_Type);
20074 PyModule_AddObject(m, "NetTransportCtr3", (PyObject *)(void *)&srvsvc_NetTransportCtr3_Type);
20075 Py_INCREF((PyObject *)(void *)&srvsvc_NetTransportInfoCtr_Type);
20076 PyModule_AddObject(m, "NetTransportInfoCtr", (PyObject *)(void *)&srvsvc_NetTransportInfoCtr_Type);
20077 Py_INCREF((PyObject *)(void *)&srvsvc_NetRemoteTODInfo_Type);
20078 PyModule_AddObject(m, "NetRemoteTODInfo", (PyObject *)(void *)&srvsvc_NetRemoteTODInfo_Type);
20079 Py_INCREF((PyObject *)(void *)&srvsvc_InterfaceType);
20080 PyModule_AddObject(m, "srvsvc", (PyObject *)(void *)&srvsvc_InterfaceType);
20081 Py_INCREF((PyObject *)(void *)&srvsvc_SyntaxType);
20082 PyModule_AddObject(m, "abstract_syntax", (PyObject *)(void *)&srvsvc_SyntaxType);
20083 #ifdef PY_MOD_SRVSVC_PATCH
20084 PY_MOD_SRVSVC_PATCH(m);