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 *sec_desc_buf_Type;
140 static PyTypeObject *policy_handle_Type;
141 static PyTypeObject *Object_Type;
142 static PyTypeObject *ClientConnection_Type;
144 static PyObject *py_srvsvc_NetCharDevInfo0_get_device(PyObject *obj, void *closure)
146 struct srvsvc_NetCharDevInfo0 *object = (struct srvsvc_NetCharDevInfo0 *)pytalloc_get_ptr(obj);
148 if (object->device == NULL) {
150 Py_INCREF(py_device);
152 if (object->device == NULL) {
154 Py_INCREF(py_device);
156 py_device = PyUnicode_Decode(object->device, strlen(object->device), "utf-8", "ignore");
162 static int py_srvsvc_NetCharDevInfo0_set_device(PyObject *py_obj, PyObject *value, void *closure)
164 struct srvsvc_NetCharDevInfo0 *object = (struct srvsvc_NetCharDevInfo0 *)pytalloc_get_ptr(py_obj);
165 if (value == Py_None) {
166 object->device = NULL;
168 object->device = NULL;
169 if (PyUnicode_Check(value)) {
170 object->device = PyString_AS_STRING(PyUnicode_AsEncodedString(value, "utf-8", "ignore"));
171 } else if (PyString_Check(value)) {
172 object->device = PyString_AS_STRING(value);
174 PyErr_Format(PyExc_TypeError, "Expected string or unicode object, got %s", Py_TYPE(value)->tp_name);
181 static PyGetSetDef py_srvsvc_NetCharDevInfo0_getsetters[] = {
182 { discard_const_p(char, "device"), py_srvsvc_NetCharDevInfo0_get_device, py_srvsvc_NetCharDevInfo0_set_device },
186 static PyObject *py_srvsvc_NetCharDevInfo0_new(PyTypeObject *type, PyObject *args, PyObject *kwargs)
188 return pytalloc_new(struct srvsvc_NetCharDevInfo0, type);
192 static PyTypeObject srvsvc_NetCharDevInfo0_Type = {
193 PyObject_HEAD_INIT(NULL) 0,
194 .tp_name = "srvsvc.NetCharDevInfo0",
195 .tp_getset = py_srvsvc_NetCharDevInfo0_getsetters,
197 .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
198 .tp_basicsize = sizeof(pytalloc_Object),
199 .tp_new = py_srvsvc_NetCharDevInfo0_new,
203 static PyObject *py_srvsvc_NetCharDevCtr0_get_count(PyObject *obj, void *closure)
205 struct srvsvc_NetCharDevCtr0 *object = (struct srvsvc_NetCharDevCtr0 *)pytalloc_get_ptr(obj);
207 py_count = PyInt_FromLong(object->count);
211 static int py_srvsvc_NetCharDevCtr0_set_count(PyObject *py_obj, PyObject *value, void *closure)
213 struct srvsvc_NetCharDevCtr0 *object = (struct srvsvc_NetCharDevCtr0 *)pytalloc_get_ptr(py_obj);
214 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
215 object->count = PyInt_AsLong(value);
219 static PyObject *py_srvsvc_NetCharDevCtr0_get_array(PyObject *obj, void *closure)
221 struct srvsvc_NetCharDevCtr0 *object = (struct srvsvc_NetCharDevCtr0 *)pytalloc_get_ptr(obj);
223 if (object->array == NULL) {
227 py_array = PyList_New(object->count);
228 if (py_array == NULL) {
233 for (array_cntr_1 = 0; array_cntr_1 < object->count; array_cntr_1++) {
234 PyObject *py_array_1;
235 py_array_1 = pytalloc_reference_ex(&srvsvc_NetCharDevInfo0_Type, object->array, &object->array[array_cntr_1]);
236 PyList_SetItem(py_array, array_cntr_1, py_array_1);
243 static int py_srvsvc_NetCharDevCtr0_set_array(PyObject *py_obj, PyObject *value, void *closure)
245 struct srvsvc_NetCharDevCtr0 *object = (struct srvsvc_NetCharDevCtr0 *)pytalloc_get_ptr(py_obj);
246 talloc_unlink(pytalloc_get_mem_ctx(py_obj), object->array);
247 if (value == Py_None) {
248 object->array = NULL;
250 object->array = NULL;
251 PY_CHECK_TYPE(&PyList_Type, value, return -1;);
254 object->array = talloc_array_ptrtype(pytalloc_get_mem_ctx(py_obj), object->array, PyList_GET_SIZE(value));
255 if (!object->array) { return -1;; }
256 talloc_set_name_const(object->array, "ARRAY: object->array");
257 for (array_cntr_1 = 0; array_cntr_1 < PyList_GET_SIZE(value); array_cntr_1++) {
258 PY_CHECK_TYPE(&srvsvc_NetCharDevInfo0_Type, PyList_GET_ITEM(value, array_cntr_1), return -1;);
259 if (talloc_reference(object->array, pytalloc_get_mem_ctx(PyList_GET_ITEM(value, array_cntr_1))) == NULL) {
263 object->array[array_cntr_1] = *(struct srvsvc_NetCharDevInfo0 *)pytalloc_get_ptr(PyList_GET_ITEM(value, array_cntr_1));
270 static PyGetSetDef py_srvsvc_NetCharDevCtr0_getsetters[] = {
271 { discard_const_p(char, "count"), py_srvsvc_NetCharDevCtr0_get_count, py_srvsvc_NetCharDevCtr0_set_count },
272 { discard_const_p(char, "array"), py_srvsvc_NetCharDevCtr0_get_array, py_srvsvc_NetCharDevCtr0_set_array },
276 static PyObject *py_srvsvc_NetCharDevCtr0_new(PyTypeObject *type, PyObject *args, PyObject *kwargs)
278 return pytalloc_new(struct srvsvc_NetCharDevCtr0, type);
282 static PyTypeObject srvsvc_NetCharDevCtr0_Type = {
283 PyObject_HEAD_INIT(NULL) 0,
284 .tp_name = "srvsvc.NetCharDevCtr0",
285 .tp_getset = py_srvsvc_NetCharDevCtr0_getsetters,
287 .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
288 .tp_basicsize = sizeof(pytalloc_Object),
289 .tp_new = py_srvsvc_NetCharDevCtr0_new,
293 static PyObject *py_srvsvc_NetCharDevInfo1_get_device(PyObject *obj, void *closure)
295 struct srvsvc_NetCharDevInfo1 *object = (struct srvsvc_NetCharDevInfo1 *)pytalloc_get_ptr(obj);
297 if (object->device == NULL) {
299 Py_INCREF(py_device);
301 if (object->device == NULL) {
303 Py_INCREF(py_device);
305 py_device = PyUnicode_Decode(object->device, strlen(object->device), "utf-8", "ignore");
311 static int py_srvsvc_NetCharDevInfo1_set_device(PyObject *py_obj, PyObject *value, void *closure)
313 struct srvsvc_NetCharDevInfo1 *object = (struct srvsvc_NetCharDevInfo1 *)pytalloc_get_ptr(py_obj);
314 if (value == Py_None) {
315 object->device = NULL;
317 object->device = NULL;
318 if (PyUnicode_Check(value)) {
319 object->device = PyString_AS_STRING(PyUnicode_AsEncodedString(value, "utf-8", "ignore"));
320 } else if (PyString_Check(value)) {
321 object->device = PyString_AS_STRING(value);
323 PyErr_Format(PyExc_TypeError, "Expected string or unicode object, got %s", Py_TYPE(value)->tp_name);
330 static PyObject *py_srvsvc_NetCharDevInfo1_get_status(PyObject *obj, void *closure)
332 struct srvsvc_NetCharDevInfo1 *object = (struct srvsvc_NetCharDevInfo1 *)pytalloc_get_ptr(obj);
334 py_status = PyInt_FromLong(object->status);
338 static int py_srvsvc_NetCharDevInfo1_set_status(PyObject *py_obj, PyObject *value, void *closure)
340 struct srvsvc_NetCharDevInfo1 *object = (struct srvsvc_NetCharDevInfo1 *)pytalloc_get_ptr(py_obj);
341 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
342 object->status = PyInt_AsLong(value);
346 static PyObject *py_srvsvc_NetCharDevInfo1_get_user(PyObject *obj, void *closure)
348 struct srvsvc_NetCharDevInfo1 *object = (struct srvsvc_NetCharDevInfo1 *)pytalloc_get_ptr(obj);
350 if (object->user == NULL) {
354 if (object->user == NULL) {
358 py_user = PyUnicode_Decode(object->user, strlen(object->user), "utf-8", "ignore");
364 static int py_srvsvc_NetCharDevInfo1_set_user(PyObject *py_obj, PyObject *value, void *closure)
366 struct srvsvc_NetCharDevInfo1 *object = (struct srvsvc_NetCharDevInfo1 *)pytalloc_get_ptr(py_obj);
367 if (value == Py_None) {
371 if (PyUnicode_Check(value)) {
372 object->user = PyString_AS_STRING(PyUnicode_AsEncodedString(value, "utf-8", "ignore"));
373 } else if (PyString_Check(value)) {
374 object->user = PyString_AS_STRING(value);
376 PyErr_Format(PyExc_TypeError, "Expected string or unicode object, got %s", Py_TYPE(value)->tp_name);
383 static PyObject *py_srvsvc_NetCharDevInfo1_get_time(PyObject *obj, void *closure)
385 struct srvsvc_NetCharDevInfo1 *object = (struct srvsvc_NetCharDevInfo1 *)pytalloc_get_ptr(obj);
387 py_time = PyInt_FromLong(object->time);
391 static int py_srvsvc_NetCharDevInfo1_set_time(PyObject *py_obj, PyObject *value, void *closure)
393 struct srvsvc_NetCharDevInfo1 *object = (struct srvsvc_NetCharDevInfo1 *)pytalloc_get_ptr(py_obj);
394 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
395 object->time = PyInt_AsLong(value);
399 static PyGetSetDef py_srvsvc_NetCharDevInfo1_getsetters[] = {
400 { discard_const_p(char, "device"), py_srvsvc_NetCharDevInfo1_get_device, py_srvsvc_NetCharDevInfo1_set_device },
401 { discard_const_p(char, "status"), py_srvsvc_NetCharDevInfo1_get_status, py_srvsvc_NetCharDevInfo1_set_status },
402 { discard_const_p(char, "user"), py_srvsvc_NetCharDevInfo1_get_user, py_srvsvc_NetCharDevInfo1_set_user },
403 { discard_const_p(char, "time"), py_srvsvc_NetCharDevInfo1_get_time, py_srvsvc_NetCharDevInfo1_set_time },
407 static PyObject *py_srvsvc_NetCharDevInfo1_new(PyTypeObject *type, PyObject *args, PyObject *kwargs)
409 return pytalloc_new(struct srvsvc_NetCharDevInfo1, type);
413 static PyTypeObject srvsvc_NetCharDevInfo1_Type = {
414 PyObject_HEAD_INIT(NULL) 0,
415 .tp_name = "srvsvc.NetCharDevInfo1",
416 .tp_getset = py_srvsvc_NetCharDevInfo1_getsetters,
418 .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
419 .tp_basicsize = sizeof(pytalloc_Object),
420 .tp_new = py_srvsvc_NetCharDevInfo1_new,
424 static PyObject *py_srvsvc_NetCharDevCtr1_get_count(PyObject *obj, void *closure)
426 struct srvsvc_NetCharDevCtr1 *object = (struct srvsvc_NetCharDevCtr1 *)pytalloc_get_ptr(obj);
428 py_count = PyInt_FromLong(object->count);
432 static int py_srvsvc_NetCharDevCtr1_set_count(PyObject *py_obj, PyObject *value, void *closure)
434 struct srvsvc_NetCharDevCtr1 *object = (struct srvsvc_NetCharDevCtr1 *)pytalloc_get_ptr(py_obj);
435 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
436 object->count = PyInt_AsLong(value);
440 static PyObject *py_srvsvc_NetCharDevCtr1_get_array(PyObject *obj, void *closure)
442 struct srvsvc_NetCharDevCtr1 *object = (struct srvsvc_NetCharDevCtr1 *)pytalloc_get_ptr(obj);
444 if (object->array == NULL) {
448 py_array = PyList_New(object->count);
449 if (py_array == NULL) {
454 for (array_cntr_1 = 0; array_cntr_1 < object->count; array_cntr_1++) {
455 PyObject *py_array_1;
456 py_array_1 = pytalloc_reference_ex(&srvsvc_NetCharDevInfo1_Type, object->array, &object->array[array_cntr_1]);
457 PyList_SetItem(py_array, array_cntr_1, py_array_1);
464 static int py_srvsvc_NetCharDevCtr1_set_array(PyObject *py_obj, PyObject *value, void *closure)
466 struct srvsvc_NetCharDevCtr1 *object = (struct srvsvc_NetCharDevCtr1 *)pytalloc_get_ptr(py_obj);
467 talloc_unlink(pytalloc_get_mem_ctx(py_obj), object->array);
468 if (value == Py_None) {
469 object->array = NULL;
471 object->array = NULL;
472 PY_CHECK_TYPE(&PyList_Type, value, return -1;);
475 object->array = talloc_array_ptrtype(pytalloc_get_mem_ctx(py_obj), object->array, PyList_GET_SIZE(value));
476 if (!object->array) { return -1;; }
477 talloc_set_name_const(object->array, "ARRAY: object->array");
478 for (array_cntr_1 = 0; array_cntr_1 < PyList_GET_SIZE(value); array_cntr_1++) {
479 PY_CHECK_TYPE(&srvsvc_NetCharDevInfo1_Type, PyList_GET_ITEM(value, array_cntr_1), return -1;);
480 if (talloc_reference(object->array, pytalloc_get_mem_ctx(PyList_GET_ITEM(value, array_cntr_1))) == NULL) {
484 object->array[array_cntr_1] = *(struct srvsvc_NetCharDevInfo1 *)pytalloc_get_ptr(PyList_GET_ITEM(value, array_cntr_1));
491 static PyGetSetDef py_srvsvc_NetCharDevCtr1_getsetters[] = {
492 { discard_const_p(char, "count"), py_srvsvc_NetCharDevCtr1_get_count, py_srvsvc_NetCharDevCtr1_set_count },
493 { discard_const_p(char, "array"), py_srvsvc_NetCharDevCtr1_get_array, py_srvsvc_NetCharDevCtr1_set_array },
497 static PyObject *py_srvsvc_NetCharDevCtr1_new(PyTypeObject *type, PyObject *args, PyObject *kwargs)
499 return pytalloc_new(struct srvsvc_NetCharDevCtr1, type);
503 static PyTypeObject srvsvc_NetCharDevCtr1_Type = {
504 PyObject_HEAD_INIT(NULL) 0,
505 .tp_name = "srvsvc.NetCharDevCtr1",
506 .tp_getset = py_srvsvc_NetCharDevCtr1_getsetters,
508 .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
509 .tp_basicsize = sizeof(pytalloc_Object),
510 .tp_new = py_srvsvc_NetCharDevCtr1_new,
513 PyObject *py_import_srvsvc_NetCharDevInfo(TALLOC_CTX *mem_ctx, int level, union srvsvc_NetCharDevInfo *in)
519 if (in->info0 == NULL) {
523 ret = pytalloc_reference_ex(&srvsvc_NetCharDevInfo0_Type, in->info0, in->info0);
528 if (in->info1 == NULL) {
532 ret = pytalloc_reference_ex(&srvsvc_NetCharDevInfo1_Type, in->info1, in->info1);
542 PyErr_SetString(PyExc_TypeError, "unknown union level");
546 union srvsvc_NetCharDevInfo *py_export_srvsvc_NetCharDevInfo(TALLOC_CTX *mem_ctx, int level, PyObject *in)
548 union srvsvc_NetCharDevInfo *ret = talloc_zero(mem_ctx, union srvsvc_NetCharDevInfo);
555 PY_CHECK_TYPE(&srvsvc_NetCharDevInfo0_Type, in, talloc_free(ret); return NULL;);
556 if (talloc_reference(mem_ctx, pytalloc_get_mem_ctx(in)) == NULL) {
558 talloc_free(ret); return NULL;
560 ret->info0 = (struct srvsvc_NetCharDevInfo0 *)pytalloc_get_ptr(in);
569 PY_CHECK_TYPE(&srvsvc_NetCharDevInfo1_Type, in, talloc_free(ret); return NULL;);
570 if (talloc_reference(mem_ctx, pytalloc_get_mem_ctx(in)) == NULL) {
572 talloc_free(ret); return NULL;
574 ret->info1 = (struct srvsvc_NetCharDevInfo1 *)pytalloc_get_ptr(in);
586 PyObject *py_import_srvsvc_NetCharDevCtr(TALLOC_CTX *mem_ctx, int level, union srvsvc_NetCharDevCtr *in)
592 if (in->ctr0 == NULL) {
596 ret = pytalloc_reference_ex(&srvsvc_NetCharDevCtr0_Type, in->ctr0, in->ctr0);
601 if (in->ctr1 == NULL) {
605 ret = pytalloc_reference_ex(&srvsvc_NetCharDevCtr1_Type, in->ctr1, in->ctr1);
615 PyErr_SetString(PyExc_TypeError, "unknown union level");
619 union srvsvc_NetCharDevCtr *py_export_srvsvc_NetCharDevCtr(TALLOC_CTX *mem_ctx, int level, PyObject *in)
621 union srvsvc_NetCharDevCtr *ret = talloc_zero(mem_ctx, union srvsvc_NetCharDevCtr);
628 PY_CHECK_TYPE(&srvsvc_NetCharDevCtr0_Type, in, talloc_free(ret); return NULL;);
629 if (talloc_reference(mem_ctx, pytalloc_get_mem_ctx(in)) == NULL) {
631 talloc_free(ret); return NULL;
633 ret->ctr0 = (struct srvsvc_NetCharDevCtr0 *)pytalloc_get_ptr(in);
642 PY_CHECK_TYPE(&srvsvc_NetCharDevCtr1_Type, in, talloc_free(ret); return NULL;);
643 if (talloc_reference(mem_ctx, pytalloc_get_mem_ctx(in)) == NULL) {
645 talloc_free(ret); return NULL;
647 ret->ctr1 = (struct srvsvc_NetCharDevCtr1 *)pytalloc_get_ptr(in);
660 static PyObject *py_srvsvc_NetCharDevInfoCtr_get_level(PyObject *obj, void *closure)
662 struct srvsvc_NetCharDevInfoCtr *object = (struct srvsvc_NetCharDevInfoCtr *)pytalloc_get_ptr(obj);
664 py_level = PyInt_FromLong(object->level);
668 static int py_srvsvc_NetCharDevInfoCtr_set_level(PyObject *py_obj, PyObject *value, void *closure)
670 struct srvsvc_NetCharDevInfoCtr *object = (struct srvsvc_NetCharDevInfoCtr *)pytalloc_get_ptr(py_obj);
671 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
672 object->level = PyInt_AsLong(value);
676 static PyObject *py_srvsvc_NetCharDevInfoCtr_get_ctr(PyObject *obj, void *closure)
678 struct srvsvc_NetCharDevInfoCtr *object = (struct srvsvc_NetCharDevInfoCtr *)pytalloc_get_ptr(obj);
680 py_ctr = py_import_srvsvc_NetCharDevCtr(pytalloc_get_mem_ctx(obj), object->level, &object->ctr);
681 if (py_ctr == NULL) {
687 static int py_srvsvc_NetCharDevInfoCtr_set_ctr(PyObject *py_obj, PyObject *value, void *closure)
689 struct srvsvc_NetCharDevInfoCtr *object = (struct srvsvc_NetCharDevInfoCtr *)pytalloc_get_ptr(py_obj);
691 union srvsvc_NetCharDevCtr *ctr_switch_0;
692 ctr_switch_0 = py_export_srvsvc_NetCharDevCtr(pytalloc_get_mem_ctx(py_obj), object->level, value);
693 if (ctr_switch_0 == NULL) {
696 object->ctr = *ctr_switch_0;
701 static PyGetSetDef py_srvsvc_NetCharDevInfoCtr_getsetters[] = {
702 { discard_const_p(char, "level"), py_srvsvc_NetCharDevInfoCtr_get_level, py_srvsvc_NetCharDevInfoCtr_set_level },
703 { discard_const_p(char, "ctr"), py_srvsvc_NetCharDevInfoCtr_get_ctr, py_srvsvc_NetCharDevInfoCtr_set_ctr },
707 static PyObject *py_srvsvc_NetCharDevInfoCtr_new(PyTypeObject *type, PyObject *args, PyObject *kwargs)
709 return pytalloc_new(struct srvsvc_NetCharDevInfoCtr, type);
713 static PyTypeObject srvsvc_NetCharDevInfoCtr_Type = {
714 PyObject_HEAD_INIT(NULL) 0,
715 .tp_name = "srvsvc.NetCharDevInfoCtr",
716 .tp_getset = py_srvsvc_NetCharDevInfoCtr_getsetters,
718 .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
719 .tp_basicsize = sizeof(pytalloc_Object),
720 .tp_new = py_srvsvc_NetCharDevInfoCtr_new,
724 static PyObject *py_srvsvc_NetCharDevQInfo0_get_device(PyObject *obj, void *closure)
726 struct srvsvc_NetCharDevQInfo0 *object = (struct srvsvc_NetCharDevQInfo0 *)pytalloc_get_ptr(obj);
728 if (object->device == NULL) {
730 Py_INCREF(py_device);
732 if (object->device == NULL) {
734 Py_INCREF(py_device);
736 py_device = PyUnicode_Decode(object->device, strlen(object->device), "utf-8", "ignore");
742 static int py_srvsvc_NetCharDevQInfo0_set_device(PyObject *py_obj, PyObject *value, void *closure)
744 struct srvsvc_NetCharDevQInfo0 *object = (struct srvsvc_NetCharDevQInfo0 *)pytalloc_get_ptr(py_obj);
745 if (value == Py_None) {
746 object->device = NULL;
748 object->device = NULL;
749 if (PyUnicode_Check(value)) {
750 object->device = PyString_AS_STRING(PyUnicode_AsEncodedString(value, "utf-8", "ignore"));
751 } else if (PyString_Check(value)) {
752 object->device = PyString_AS_STRING(value);
754 PyErr_Format(PyExc_TypeError, "Expected string or unicode object, got %s", Py_TYPE(value)->tp_name);
761 static PyGetSetDef py_srvsvc_NetCharDevQInfo0_getsetters[] = {
762 { discard_const_p(char, "device"), py_srvsvc_NetCharDevQInfo0_get_device, py_srvsvc_NetCharDevQInfo0_set_device },
766 static PyObject *py_srvsvc_NetCharDevQInfo0_new(PyTypeObject *type, PyObject *args, PyObject *kwargs)
768 return pytalloc_new(struct srvsvc_NetCharDevQInfo0, type);
772 static PyTypeObject srvsvc_NetCharDevQInfo0_Type = {
773 PyObject_HEAD_INIT(NULL) 0,
774 .tp_name = "srvsvc.NetCharDevQInfo0",
775 .tp_getset = py_srvsvc_NetCharDevQInfo0_getsetters,
777 .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
778 .tp_basicsize = sizeof(pytalloc_Object),
779 .tp_new = py_srvsvc_NetCharDevQInfo0_new,
783 static PyObject *py_srvsvc_NetCharDevQCtr0_get_count(PyObject *obj, void *closure)
785 struct srvsvc_NetCharDevQCtr0 *object = (struct srvsvc_NetCharDevQCtr0 *)pytalloc_get_ptr(obj);
787 py_count = PyInt_FromLong(object->count);
791 static int py_srvsvc_NetCharDevQCtr0_set_count(PyObject *py_obj, PyObject *value, void *closure)
793 struct srvsvc_NetCharDevQCtr0 *object = (struct srvsvc_NetCharDevQCtr0 *)pytalloc_get_ptr(py_obj);
794 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
795 object->count = PyInt_AsLong(value);
799 static PyObject *py_srvsvc_NetCharDevQCtr0_get_array(PyObject *obj, void *closure)
801 struct srvsvc_NetCharDevQCtr0 *object = (struct srvsvc_NetCharDevQCtr0 *)pytalloc_get_ptr(obj);
803 if (object->array == NULL) {
807 py_array = PyList_New(object->count);
808 if (py_array == NULL) {
813 for (array_cntr_1 = 0; array_cntr_1 < object->count; array_cntr_1++) {
814 PyObject *py_array_1;
815 py_array_1 = pytalloc_reference_ex(&srvsvc_NetCharDevQInfo0_Type, object->array, &object->array[array_cntr_1]);
816 PyList_SetItem(py_array, array_cntr_1, py_array_1);
823 static int py_srvsvc_NetCharDevQCtr0_set_array(PyObject *py_obj, PyObject *value, void *closure)
825 struct srvsvc_NetCharDevQCtr0 *object = (struct srvsvc_NetCharDevQCtr0 *)pytalloc_get_ptr(py_obj);
826 talloc_unlink(pytalloc_get_mem_ctx(py_obj), object->array);
827 if (value == Py_None) {
828 object->array = NULL;
830 object->array = NULL;
831 PY_CHECK_TYPE(&PyList_Type, value, return -1;);
834 object->array = talloc_array_ptrtype(pytalloc_get_mem_ctx(py_obj), object->array, PyList_GET_SIZE(value));
835 if (!object->array) { return -1;; }
836 talloc_set_name_const(object->array, "ARRAY: object->array");
837 for (array_cntr_1 = 0; array_cntr_1 < PyList_GET_SIZE(value); array_cntr_1++) {
838 PY_CHECK_TYPE(&srvsvc_NetCharDevQInfo0_Type, PyList_GET_ITEM(value, array_cntr_1), return -1;);
839 if (talloc_reference(object->array, pytalloc_get_mem_ctx(PyList_GET_ITEM(value, array_cntr_1))) == NULL) {
843 object->array[array_cntr_1] = *(struct srvsvc_NetCharDevQInfo0 *)pytalloc_get_ptr(PyList_GET_ITEM(value, array_cntr_1));
850 static PyGetSetDef py_srvsvc_NetCharDevQCtr0_getsetters[] = {
851 { discard_const_p(char, "count"), py_srvsvc_NetCharDevQCtr0_get_count, py_srvsvc_NetCharDevQCtr0_set_count },
852 { discard_const_p(char, "array"), py_srvsvc_NetCharDevQCtr0_get_array, py_srvsvc_NetCharDevQCtr0_set_array },
856 static PyObject *py_srvsvc_NetCharDevQCtr0_new(PyTypeObject *type, PyObject *args, PyObject *kwargs)
858 return pytalloc_new(struct srvsvc_NetCharDevQCtr0, type);
862 static PyTypeObject srvsvc_NetCharDevQCtr0_Type = {
863 PyObject_HEAD_INIT(NULL) 0,
864 .tp_name = "srvsvc.NetCharDevQCtr0",
865 .tp_getset = py_srvsvc_NetCharDevQCtr0_getsetters,
867 .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
868 .tp_basicsize = sizeof(pytalloc_Object),
869 .tp_new = py_srvsvc_NetCharDevQCtr0_new,
873 static PyObject *py_srvsvc_NetCharDevQInfo1_get_device(PyObject *obj, void *closure)
875 struct srvsvc_NetCharDevQInfo1 *object = (struct srvsvc_NetCharDevQInfo1 *)pytalloc_get_ptr(obj);
877 if (object->device == NULL) {
879 Py_INCREF(py_device);
881 if (object->device == NULL) {
883 Py_INCREF(py_device);
885 py_device = PyUnicode_Decode(object->device, strlen(object->device), "utf-8", "ignore");
891 static int py_srvsvc_NetCharDevQInfo1_set_device(PyObject *py_obj, PyObject *value, void *closure)
893 struct srvsvc_NetCharDevQInfo1 *object = (struct srvsvc_NetCharDevQInfo1 *)pytalloc_get_ptr(py_obj);
894 if (value == Py_None) {
895 object->device = NULL;
897 object->device = NULL;
898 if (PyUnicode_Check(value)) {
899 object->device = PyString_AS_STRING(PyUnicode_AsEncodedString(value, "utf-8", "ignore"));
900 } else if (PyString_Check(value)) {
901 object->device = PyString_AS_STRING(value);
903 PyErr_Format(PyExc_TypeError, "Expected string or unicode object, got %s", Py_TYPE(value)->tp_name);
910 static PyObject *py_srvsvc_NetCharDevQInfo1_get_priority(PyObject *obj, void *closure)
912 struct srvsvc_NetCharDevQInfo1 *object = (struct srvsvc_NetCharDevQInfo1 *)pytalloc_get_ptr(obj);
913 PyObject *py_priority;
914 py_priority = PyInt_FromLong(object->priority);
918 static int py_srvsvc_NetCharDevQInfo1_set_priority(PyObject *py_obj, PyObject *value, void *closure)
920 struct srvsvc_NetCharDevQInfo1 *object = (struct srvsvc_NetCharDevQInfo1 *)pytalloc_get_ptr(py_obj);
921 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
922 object->priority = PyInt_AsLong(value);
926 static PyObject *py_srvsvc_NetCharDevQInfo1_get_devices(PyObject *obj, void *closure)
928 struct srvsvc_NetCharDevQInfo1 *object = (struct srvsvc_NetCharDevQInfo1 *)pytalloc_get_ptr(obj);
929 PyObject *py_devices;
930 if (object->devices == NULL) {
931 py_devices = Py_None;
932 Py_INCREF(py_devices);
934 if (object->devices == NULL) {
935 py_devices = Py_None;
936 Py_INCREF(py_devices);
938 py_devices = PyUnicode_Decode(object->devices, strlen(object->devices), "utf-8", "ignore");
944 static int py_srvsvc_NetCharDevQInfo1_set_devices(PyObject *py_obj, PyObject *value, void *closure)
946 struct srvsvc_NetCharDevQInfo1 *object = (struct srvsvc_NetCharDevQInfo1 *)pytalloc_get_ptr(py_obj);
947 if (value == Py_None) {
948 object->devices = NULL;
950 object->devices = NULL;
951 if (PyUnicode_Check(value)) {
952 object->devices = PyString_AS_STRING(PyUnicode_AsEncodedString(value, "utf-8", "ignore"));
953 } else if (PyString_Check(value)) {
954 object->devices = PyString_AS_STRING(value);
956 PyErr_Format(PyExc_TypeError, "Expected string or unicode object, got %s", Py_TYPE(value)->tp_name);
963 static PyObject *py_srvsvc_NetCharDevQInfo1_get_users(PyObject *obj, void *closure)
965 struct srvsvc_NetCharDevQInfo1 *object = (struct srvsvc_NetCharDevQInfo1 *)pytalloc_get_ptr(obj);
967 py_users = PyInt_FromLong(object->users);
971 static int py_srvsvc_NetCharDevQInfo1_set_users(PyObject *py_obj, PyObject *value, void *closure)
973 struct srvsvc_NetCharDevQInfo1 *object = (struct srvsvc_NetCharDevQInfo1 *)pytalloc_get_ptr(py_obj);
974 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
975 object->users = PyInt_AsLong(value);
979 static PyObject *py_srvsvc_NetCharDevQInfo1_get_num_ahead(PyObject *obj, void *closure)
981 struct srvsvc_NetCharDevQInfo1 *object = (struct srvsvc_NetCharDevQInfo1 *)pytalloc_get_ptr(obj);
982 PyObject *py_num_ahead;
983 py_num_ahead = PyInt_FromLong(object->num_ahead);
987 static int py_srvsvc_NetCharDevQInfo1_set_num_ahead(PyObject *py_obj, PyObject *value, void *closure)
989 struct srvsvc_NetCharDevQInfo1 *object = (struct srvsvc_NetCharDevQInfo1 *)pytalloc_get_ptr(py_obj);
990 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
991 object->num_ahead = PyInt_AsLong(value);
995 static PyGetSetDef py_srvsvc_NetCharDevQInfo1_getsetters[] = {
996 { discard_const_p(char, "device"), py_srvsvc_NetCharDevQInfo1_get_device, py_srvsvc_NetCharDevQInfo1_set_device },
997 { discard_const_p(char, "priority"), py_srvsvc_NetCharDevQInfo1_get_priority, py_srvsvc_NetCharDevQInfo1_set_priority },
998 { discard_const_p(char, "devices"), py_srvsvc_NetCharDevQInfo1_get_devices, py_srvsvc_NetCharDevQInfo1_set_devices },
999 { discard_const_p(char, "users"), py_srvsvc_NetCharDevQInfo1_get_users, py_srvsvc_NetCharDevQInfo1_set_users },
1000 { discard_const_p(char, "num_ahead"), py_srvsvc_NetCharDevQInfo1_get_num_ahead, py_srvsvc_NetCharDevQInfo1_set_num_ahead },
1004 static PyObject *py_srvsvc_NetCharDevQInfo1_new(PyTypeObject *type, PyObject *args, PyObject *kwargs)
1006 return pytalloc_new(struct srvsvc_NetCharDevQInfo1, type);
1010 static PyTypeObject srvsvc_NetCharDevQInfo1_Type = {
1011 PyObject_HEAD_INIT(NULL) 0,
1012 .tp_name = "srvsvc.NetCharDevQInfo1",
1013 .tp_getset = py_srvsvc_NetCharDevQInfo1_getsetters,
1015 .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
1016 .tp_basicsize = sizeof(pytalloc_Object),
1017 .tp_new = py_srvsvc_NetCharDevQInfo1_new,
1021 static PyObject *py_srvsvc_NetCharDevQCtr1_get_count(PyObject *obj, void *closure)
1023 struct srvsvc_NetCharDevQCtr1 *object = (struct srvsvc_NetCharDevQCtr1 *)pytalloc_get_ptr(obj);
1025 py_count = PyInt_FromLong(object->count);
1029 static int py_srvsvc_NetCharDevQCtr1_set_count(PyObject *py_obj, PyObject *value, void *closure)
1031 struct srvsvc_NetCharDevQCtr1 *object = (struct srvsvc_NetCharDevQCtr1 *)pytalloc_get_ptr(py_obj);
1032 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
1033 object->count = PyInt_AsLong(value);
1037 static PyObject *py_srvsvc_NetCharDevQCtr1_get_array(PyObject *obj, void *closure)
1039 struct srvsvc_NetCharDevQCtr1 *object = (struct srvsvc_NetCharDevQCtr1 *)pytalloc_get_ptr(obj);
1041 if (object->array == NULL) {
1043 Py_INCREF(py_array);
1045 py_array = PyList_New(object->count);
1046 if (py_array == NULL) {
1051 for (array_cntr_1 = 0; array_cntr_1 < object->count; array_cntr_1++) {
1052 PyObject *py_array_1;
1053 py_array_1 = pytalloc_reference_ex(&srvsvc_NetCharDevQInfo1_Type, object->array, &object->array[array_cntr_1]);
1054 PyList_SetItem(py_array, array_cntr_1, py_array_1);
1061 static int py_srvsvc_NetCharDevQCtr1_set_array(PyObject *py_obj, PyObject *value, void *closure)
1063 struct srvsvc_NetCharDevQCtr1 *object = (struct srvsvc_NetCharDevQCtr1 *)pytalloc_get_ptr(py_obj);
1064 talloc_unlink(pytalloc_get_mem_ctx(py_obj), object->array);
1065 if (value == Py_None) {
1066 object->array = NULL;
1068 object->array = NULL;
1069 PY_CHECK_TYPE(&PyList_Type, value, return -1;);
1072 object->array = talloc_array_ptrtype(pytalloc_get_mem_ctx(py_obj), object->array, PyList_GET_SIZE(value));
1073 if (!object->array) { return -1;; }
1074 talloc_set_name_const(object->array, "ARRAY: object->array");
1075 for (array_cntr_1 = 0; array_cntr_1 < PyList_GET_SIZE(value); array_cntr_1++) {
1076 PY_CHECK_TYPE(&srvsvc_NetCharDevQInfo1_Type, PyList_GET_ITEM(value, array_cntr_1), return -1;);
1077 if (talloc_reference(object->array, pytalloc_get_mem_ctx(PyList_GET_ITEM(value, array_cntr_1))) == NULL) {
1081 object->array[array_cntr_1] = *(struct srvsvc_NetCharDevQInfo1 *)pytalloc_get_ptr(PyList_GET_ITEM(value, array_cntr_1));
1088 static PyGetSetDef py_srvsvc_NetCharDevQCtr1_getsetters[] = {
1089 { discard_const_p(char, "count"), py_srvsvc_NetCharDevQCtr1_get_count, py_srvsvc_NetCharDevQCtr1_set_count },
1090 { discard_const_p(char, "array"), py_srvsvc_NetCharDevQCtr1_get_array, py_srvsvc_NetCharDevQCtr1_set_array },
1094 static PyObject *py_srvsvc_NetCharDevQCtr1_new(PyTypeObject *type, PyObject *args, PyObject *kwargs)
1096 return pytalloc_new(struct srvsvc_NetCharDevQCtr1, type);
1100 static PyTypeObject srvsvc_NetCharDevQCtr1_Type = {
1101 PyObject_HEAD_INIT(NULL) 0,
1102 .tp_name = "srvsvc.NetCharDevQCtr1",
1103 .tp_getset = py_srvsvc_NetCharDevQCtr1_getsetters,
1105 .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
1106 .tp_basicsize = sizeof(pytalloc_Object),
1107 .tp_new = py_srvsvc_NetCharDevQCtr1_new,
1110 PyObject *py_import_srvsvc_NetCharDevQInfo(TALLOC_CTX *mem_ctx, int level, union srvsvc_NetCharDevQInfo *in)
1116 if (in->info0 == NULL) {
1120 ret = pytalloc_reference_ex(&srvsvc_NetCharDevQInfo0_Type, in->info0, in->info0);
1125 if (in->info1 == NULL) {
1129 ret = pytalloc_reference_ex(&srvsvc_NetCharDevQInfo1_Type, in->info1, in->info1);
1139 PyErr_SetString(PyExc_TypeError, "unknown union level");
1143 union srvsvc_NetCharDevQInfo *py_export_srvsvc_NetCharDevQInfo(TALLOC_CTX *mem_ctx, int level, PyObject *in)
1145 union srvsvc_NetCharDevQInfo *ret = talloc_zero(mem_ctx, union srvsvc_NetCharDevQInfo);
1148 if (in == Py_None) {
1152 PY_CHECK_TYPE(&srvsvc_NetCharDevQInfo0_Type, in, talloc_free(ret); return NULL;);
1153 if (talloc_reference(mem_ctx, pytalloc_get_mem_ctx(in)) == NULL) {
1155 talloc_free(ret); return NULL;
1157 ret->info0 = (struct srvsvc_NetCharDevQInfo0 *)pytalloc_get_ptr(in);
1162 if (in == Py_None) {
1166 PY_CHECK_TYPE(&srvsvc_NetCharDevQInfo1_Type, in, talloc_free(ret); return NULL;);
1167 if (talloc_reference(mem_ctx, pytalloc_get_mem_ctx(in)) == NULL) {
1169 talloc_free(ret); return NULL;
1171 ret->info1 = (struct srvsvc_NetCharDevQInfo1 *)pytalloc_get_ptr(in);
1183 PyObject *py_import_srvsvc_NetCharDevQCtr(TALLOC_CTX *mem_ctx, int level, union srvsvc_NetCharDevQCtr *in)
1189 if (in->ctr0 == NULL) {
1193 ret = pytalloc_reference_ex(&srvsvc_NetCharDevQCtr0_Type, in->ctr0, in->ctr0);
1198 if (in->ctr1 == NULL) {
1202 ret = pytalloc_reference_ex(&srvsvc_NetCharDevQCtr1_Type, in->ctr1, in->ctr1);
1212 PyErr_SetString(PyExc_TypeError, "unknown union level");
1216 union srvsvc_NetCharDevQCtr *py_export_srvsvc_NetCharDevQCtr(TALLOC_CTX *mem_ctx, int level, PyObject *in)
1218 union srvsvc_NetCharDevQCtr *ret = talloc_zero(mem_ctx, union srvsvc_NetCharDevQCtr);
1221 if (in == Py_None) {
1225 PY_CHECK_TYPE(&srvsvc_NetCharDevQCtr0_Type, in, talloc_free(ret); return NULL;);
1226 if (talloc_reference(mem_ctx, pytalloc_get_mem_ctx(in)) == NULL) {
1228 talloc_free(ret); return NULL;
1230 ret->ctr0 = (struct srvsvc_NetCharDevQCtr0 *)pytalloc_get_ptr(in);
1235 if (in == Py_None) {
1239 PY_CHECK_TYPE(&srvsvc_NetCharDevQCtr1_Type, in, talloc_free(ret); return NULL;);
1240 if (talloc_reference(mem_ctx, pytalloc_get_mem_ctx(in)) == NULL) {
1242 talloc_free(ret); return NULL;
1244 ret->ctr1 = (struct srvsvc_NetCharDevQCtr1 *)pytalloc_get_ptr(in);
1257 static PyObject *py_srvsvc_NetCharDevQInfoCtr_get_level(PyObject *obj, void *closure)
1259 struct srvsvc_NetCharDevQInfoCtr *object = (struct srvsvc_NetCharDevQInfoCtr *)pytalloc_get_ptr(obj);
1261 py_level = PyInt_FromLong(object->level);
1265 static int py_srvsvc_NetCharDevQInfoCtr_set_level(PyObject *py_obj, PyObject *value, void *closure)
1267 struct srvsvc_NetCharDevQInfoCtr *object = (struct srvsvc_NetCharDevQInfoCtr *)pytalloc_get_ptr(py_obj);
1268 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
1269 object->level = PyInt_AsLong(value);
1273 static PyObject *py_srvsvc_NetCharDevQInfoCtr_get_ctr(PyObject *obj, void *closure)
1275 struct srvsvc_NetCharDevQInfoCtr *object = (struct srvsvc_NetCharDevQInfoCtr *)pytalloc_get_ptr(obj);
1277 py_ctr = py_import_srvsvc_NetCharDevQCtr(pytalloc_get_mem_ctx(obj), object->level, &object->ctr);
1278 if (py_ctr == NULL) {
1284 static int py_srvsvc_NetCharDevQInfoCtr_set_ctr(PyObject *py_obj, PyObject *value, void *closure)
1286 struct srvsvc_NetCharDevQInfoCtr *object = (struct srvsvc_NetCharDevQInfoCtr *)pytalloc_get_ptr(py_obj);
1288 union srvsvc_NetCharDevQCtr *ctr_switch_0;
1289 ctr_switch_0 = py_export_srvsvc_NetCharDevQCtr(pytalloc_get_mem_ctx(py_obj), object->level, value);
1290 if (ctr_switch_0 == NULL) {
1293 object->ctr = *ctr_switch_0;
1298 static PyGetSetDef py_srvsvc_NetCharDevQInfoCtr_getsetters[] = {
1299 { discard_const_p(char, "level"), py_srvsvc_NetCharDevQInfoCtr_get_level, py_srvsvc_NetCharDevQInfoCtr_set_level },
1300 { discard_const_p(char, "ctr"), py_srvsvc_NetCharDevQInfoCtr_get_ctr, py_srvsvc_NetCharDevQInfoCtr_set_ctr },
1304 static PyObject *py_srvsvc_NetCharDevQInfoCtr_new(PyTypeObject *type, PyObject *args, PyObject *kwargs)
1306 return pytalloc_new(struct srvsvc_NetCharDevQInfoCtr, type);
1310 static PyTypeObject srvsvc_NetCharDevQInfoCtr_Type = {
1311 PyObject_HEAD_INIT(NULL) 0,
1312 .tp_name = "srvsvc.NetCharDevQInfoCtr",
1313 .tp_getset = py_srvsvc_NetCharDevQInfoCtr_getsetters,
1315 .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
1316 .tp_basicsize = sizeof(pytalloc_Object),
1317 .tp_new = py_srvsvc_NetCharDevQInfoCtr_new,
1321 static PyObject *py_srvsvc_NetConnInfo0_get_conn_id(PyObject *obj, void *closure)
1323 struct srvsvc_NetConnInfo0 *object = (struct srvsvc_NetConnInfo0 *)pytalloc_get_ptr(obj);
1324 PyObject *py_conn_id;
1325 py_conn_id = PyInt_FromLong(object->conn_id);
1329 static int py_srvsvc_NetConnInfo0_set_conn_id(PyObject *py_obj, PyObject *value, void *closure)
1331 struct srvsvc_NetConnInfo0 *object = (struct srvsvc_NetConnInfo0 *)pytalloc_get_ptr(py_obj);
1332 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
1333 object->conn_id = PyInt_AsLong(value);
1337 static PyGetSetDef py_srvsvc_NetConnInfo0_getsetters[] = {
1338 { discard_const_p(char, "conn_id"), py_srvsvc_NetConnInfo0_get_conn_id, py_srvsvc_NetConnInfo0_set_conn_id },
1342 static PyObject *py_srvsvc_NetConnInfo0_new(PyTypeObject *type, PyObject *args, PyObject *kwargs)
1344 return pytalloc_new(struct srvsvc_NetConnInfo0, type);
1348 static PyTypeObject srvsvc_NetConnInfo0_Type = {
1349 PyObject_HEAD_INIT(NULL) 0,
1350 .tp_name = "srvsvc.NetConnInfo0",
1351 .tp_getset = py_srvsvc_NetConnInfo0_getsetters,
1353 .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
1354 .tp_basicsize = sizeof(pytalloc_Object),
1355 .tp_new = py_srvsvc_NetConnInfo0_new,
1359 static PyObject *py_srvsvc_NetConnCtr0_get_count(PyObject *obj, void *closure)
1361 struct srvsvc_NetConnCtr0 *object = (struct srvsvc_NetConnCtr0 *)pytalloc_get_ptr(obj);
1363 py_count = PyInt_FromLong(object->count);
1367 static int py_srvsvc_NetConnCtr0_set_count(PyObject *py_obj, PyObject *value, void *closure)
1369 struct srvsvc_NetConnCtr0 *object = (struct srvsvc_NetConnCtr0 *)pytalloc_get_ptr(py_obj);
1370 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
1371 object->count = PyInt_AsLong(value);
1375 static PyObject *py_srvsvc_NetConnCtr0_get_array(PyObject *obj, void *closure)
1377 struct srvsvc_NetConnCtr0 *object = (struct srvsvc_NetConnCtr0 *)pytalloc_get_ptr(obj);
1379 if (object->array == NULL) {
1381 Py_INCREF(py_array);
1383 py_array = PyList_New(object->count);
1384 if (py_array == NULL) {
1389 for (array_cntr_1 = 0; array_cntr_1 < object->count; array_cntr_1++) {
1390 PyObject *py_array_1;
1391 py_array_1 = pytalloc_reference_ex(&srvsvc_NetConnInfo0_Type, object->array, &object->array[array_cntr_1]);
1392 PyList_SetItem(py_array, array_cntr_1, py_array_1);
1399 static int py_srvsvc_NetConnCtr0_set_array(PyObject *py_obj, PyObject *value, void *closure)
1401 struct srvsvc_NetConnCtr0 *object = (struct srvsvc_NetConnCtr0 *)pytalloc_get_ptr(py_obj);
1402 talloc_unlink(pytalloc_get_mem_ctx(py_obj), object->array);
1403 if (value == Py_None) {
1404 object->array = NULL;
1406 object->array = NULL;
1407 PY_CHECK_TYPE(&PyList_Type, value, return -1;);
1410 object->array = talloc_array_ptrtype(pytalloc_get_mem_ctx(py_obj), object->array, PyList_GET_SIZE(value));
1411 if (!object->array) { return -1;; }
1412 talloc_set_name_const(object->array, "ARRAY: object->array");
1413 for (array_cntr_1 = 0; array_cntr_1 < PyList_GET_SIZE(value); array_cntr_1++) {
1414 PY_CHECK_TYPE(&srvsvc_NetConnInfo0_Type, PyList_GET_ITEM(value, array_cntr_1), return -1;);
1415 if (talloc_reference(object->array, pytalloc_get_mem_ctx(PyList_GET_ITEM(value, array_cntr_1))) == NULL) {
1419 object->array[array_cntr_1] = *(struct srvsvc_NetConnInfo0 *)pytalloc_get_ptr(PyList_GET_ITEM(value, array_cntr_1));
1426 static PyGetSetDef py_srvsvc_NetConnCtr0_getsetters[] = {
1427 { discard_const_p(char, "count"), py_srvsvc_NetConnCtr0_get_count, py_srvsvc_NetConnCtr0_set_count },
1428 { discard_const_p(char, "array"), py_srvsvc_NetConnCtr0_get_array, py_srvsvc_NetConnCtr0_set_array },
1432 static PyObject *py_srvsvc_NetConnCtr0_new(PyTypeObject *type, PyObject *args, PyObject *kwargs)
1434 return pytalloc_new(struct srvsvc_NetConnCtr0, type);
1438 static PyTypeObject srvsvc_NetConnCtr0_Type = {
1439 PyObject_HEAD_INIT(NULL) 0,
1440 .tp_name = "srvsvc.NetConnCtr0",
1441 .tp_getset = py_srvsvc_NetConnCtr0_getsetters,
1443 .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
1444 .tp_basicsize = sizeof(pytalloc_Object),
1445 .tp_new = py_srvsvc_NetConnCtr0_new,
1449 static PyObject *py_srvsvc_NetConnInfo1_get_conn_id(PyObject *obj, void *closure)
1451 struct srvsvc_NetConnInfo1 *object = (struct srvsvc_NetConnInfo1 *)pytalloc_get_ptr(obj);
1452 PyObject *py_conn_id;
1453 py_conn_id = PyInt_FromLong(object->conn_id);
1457 static int py_srvsvc_NetConnInfo1_set_conn_id(PyObject *py_obj, PyObject *value, void *closure)
1459 struct srvsvc_NetConnInfo1 *object = (struct srvsvc_NetConnInfo1 *)pytalloc_get_ptr(py_obj);
1460 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
1461 object->conn_id = PyInt_AsLong(value);
1465 static PyObject *py_srvsvc_NetConnInfo1_get_conn_type(PyObject *obj, void *closure)
1467 struct srvsvc_NetConnInfo1 *object = (struct srvsvc_NetConnInfo1 *)pytalloc_get_ptr(obj);
1468 PyObject *py_conn_type;
1469 py_conn_type = PyInt_FromLong(object->conn_type);
1470 return py_conn_type;
1473 static int py_srvsvc_NetConnInfo1_set_conn_type(PyObject *py_obj, PyObject *value, void *closure)
1475 struct srvsvc_NetConnInfo1 *object = (struct srvsvc_NetConnInfo1 *)pytalloc_get_ptr(py_obj);
1476 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
1477 object->conn_type = PyInt_AsLong(value);
1481 static PyObject *py_srvsvc_NetConnInfo1_get_num_open(PyObject *obj, void *closure)
1483 struct srvsvc_NetConnInfo1 *object = (struct srvsvc_NetConnInfo1 *)pytalloc_get_ptr(obj);
1484 PyObject *py_num_open;
1485 py_num_open = PyInt_FromLong(object->num_open);
1489 static int py_srvsvc_NetConnInfo1_set_num_open(PyObject *py_obj, PyObject *value, void *closure)
1491 struct srvsvc_NetConnInfo1 *object = (struct srvsvc_NetConnInfo1 *)pytalloc_get_ptr(py_obj);
1492 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
1493 object->num_open = PyInt_AsLong(value);
1497 static PyObject *py_srvsvc_NetConnInfo1_get_num_users(PyObject *obj, void *closure)
1499 struct srvsvc_NetConnInfo1 *object = (struct srvsvc_NetConnInfo1 *)pytalloc_get_ptr(obj);
1500 PyObject *py_num_users;
1501 py_num_users = PyInt_FromLong(object->num_users);
1502 return py_num_users;
1505 static int py_srvsvc_NetConnInfo1_set_num_users(PyObject *py_obj, PyObject *value, void *closure)
1507 struct srvsvc_NetConnInfo1 *object = (struct srvsvc_NetConnInfo1 *)pytalloc_get_ptr(py_obj);
1508 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
1509 object->num_users = PyInt_AsLong(value);
1513 static PyObject *py_srvsvc_NetConnInfo1_get_conn_time(PyObject *obj, void *closure)
1515 struct srvsvc_NetConnInfo1 *object = (struct srvsvc_NetConnInfo1 *)pytalloc_get_ptr(obj);
1516 PyObject *py_conn_time;
1517 py_conn_time = PyInt_FromLong(object->conn_time);
1518 return py_conn_time;
1521 static int py_srvsvc_NetConnInfo1_set_conn_time(PyObject *py_obj, PyObject *value, void *closure)
1523 struct srvsvc_NetConnInfo1 *object = (struct srvsvc_NetConnInfo1 *)pytalloc_get_ptr(py_obj);
1524 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
1525 object->conn_time = PyInt_AsLong(value);
1529 static PyObject *py_srvsvc_NetConnInfo1_get_user(PyObject *obj, void *closure)
1531 struct srvsvc_NetConnInfo1 *object = (struct srvsvc_NetConnInfo1 *)pytalloc_get_ptr(obj);
1533 if (object->user == NULL) {
1537 if (object->user == NULL) {
1541 py_user = PyUnicode_Decode(object->user, strlen(object->user), "utf-8", "ignore");
1547 static int py_srvsvc_NetConnInfo1_set_user(PyObject *py_obj, PyObject *value, void *closure)
1549 struct srvsvc_NetConnInfo1 *object = (struct srvsvc_NetConnInfo1 *)pytalloc_get_ptr(py_obj);
1550 if (value == Py_None) {
1551 object->user = NULL;
1553 object->user = NULL;
1554 if (PyUnicode_Check(value)) {
1555 object->user = PyString_AS_STRING(PyUnicode_AsEncodedString(value, "utf-8", "ignore"));
1556 } else if (PyString_Check(value)) {
1557 object->user = PyString_AS_STRING(value);
1559 PyErr_Format(PyExc_TypeError, "Expected string or unicode object, got %s", Py_TYPE(value)->tp_name);
1566 static PyObject *py_srvsvc_NetConnInfo1_get_share(PyObject *obj, void *closure)
1568 struct srvsvc_NetConnInfo1 *object = (struct srvsvc_NetConnInfo1 *)pytalloc_get_ptr(obj);
1570 if (object->share == NULL) {
1572 Py_INCREF(py_share);
1574 if (object->share == NULL) {
1576 Py_INCREF(py_share);
1578 py_share = PyUnicode_Decode(object->share, strlen(object->share), "utf-8", "ignore");
1584 static int py_srvsvc_NetConnInfo1_set_share(PyObject *py_obj, PyObject *value, void *closure)
1586 struct srvsvc_NetConnInfo1 *object = (struct srvsvc_NetConnInfo1 *)pytalloc_get_ptr(py_obj);
1587 if (value == Py_None) {
1588 object->share = NULL;
1590 object->share = NULL;
1591 if (PyUnicode_Check(value)) {
1592 object->share = PyString_AS_STRING(PyUnicode_AsEncodedString(value, "utf-8", "ignore"));
1593 } else if (PyString_Check(value)) {
1594 object->share = PyString_AS_STRING(value);
1596 PyErr_Format(PyExc_TypeError, "Expected string or unicode object, got %s", Py_TYPE(value)->tp_name);
1603 static PyGetSetDef py_srvsvc_NetConnInfo1_getsetters[] = {
1604 { discard_const_p(char, "conn_id"), py_srvsvc_NetConnInfo1_get_conn_id, py_srvsvc_NetConnInfo1_set_conn_id },
1605 { discard_const_p(char, "conn_type"), py_srvsvc_NetConnInfo1_get_conn_type, py_srvsvc_NetConnInfo1_set_conn_type },
1606 { discard_const_p(char, "num_open"), py_srvsvc_NetConnInfo1_get_num_open, py_srvsvc_NetConnInfo1_set_num_open },
1607 { discard_const_p(char, "num_users"), py_srvsvc_NetConnInfo1_get_num_users, py_srvsvc_NetConnInfo1_set_num_users },
1608 { discard_const_p(char, "conn_time"), py_srvsvc_NetConnInfo1_get_conn_time, py_srvsvc_NetConnInfo1_set_conn_time },
1609 { discard_const_p(char, "user"), py_srvsvc_NetConnInfo1_get_user, py_srvsvc_NetConnInfo1_set_user },
1610 { discard_const_p(char, "share"), py_srvsvc_NetConnInfo1_get_share, py_srvsvc_NetConnInfo1_set_share },
1614 static PyObject *py_srvsvc_NetConnInfo1_new(PyTypeObject *type, PyObject *args, PyObject *kwargs)
1616 return pytalloc_new(struct srvsvc_NetConnInfo1, type);
1620 static PyTypeObject srvsvc_NetConnInfo1_Type = {
1621 PyObject_HEAD_INIT(NULL) 0,
1622 .tp_name = "srvsvc.NetConnInfo1",
1623 .tp_getset = py_srvsvc_NetConnInfo1_getsetters,
1625 .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
1626 .tp_basicsize = sizeof(pytalloc_Object),
1627 .tp_new = py_srvsvc_NetConnInfo1_new,
1631 static PyObject *py_srvsvc_NetConnCtr1_get_count(PyObject *obj, void *closure)
1633 struct srvsvc_NetConnCtr1 *object = (struct srvsvc_NetConnCtr1 *)pytalloc_get_ptr(obj);
1635 py_count = PyInt_FromLong(object->count);
1639 static int py_srvsvc_NetConnCtr1_set_count(PyObject *py_obj, PyObject *value, void *closure)
1641 struct srvsvc_NetConnCtr1 *object = (struct srvsvc_NetConnCtr1 *)pytalloc_get_ptr(py_obj);
1642 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
1643 object->count = PyInt_AsLong(value);
1647 static PyObject *py_srvsvc_NetConnCtr1_get_array(PyObject *obj, void *closure)
1649 struct srvsvc_NetConnCtr1 *object = (struct srvsvc_NetConnCtr1 *)pytalloc_get_ptr(obj);
1651 if (object->array == NULL) {
1653 Py_INCREF(py_array);
1655 py_array = PyList_New(object->count);
1656 if (py_array == NULL) {
1661 for (array_cntr_1 = 0; array_cntr_1 < object->count; array_cntr_1++) {
1662 PyObject *py_array_1;
1663 py_array_1 = pytalloc_reference_ex(&srvsvc_NetConnInfo1_Type, object->array, &object->array[array_cntr_1]);
1664 PyList_SetItem(py_array, array_cntr_1, py_array_1);
1671 static int py_srvsvc_NetConnCtr1_set_array(PyObject *py_obj, PyObject *value, void *closure)
1673 struct srvsvc_NetConnCtr1 *object = (struct srvsvc_NetConnCtr1 *)pytalloc_get_ptr(py_obj);
1674 talloc_unlink(pytalloc_get_mem_ctx(py_obj), object->array);
1675 if (value == Py_None) {
1676 object->array = NULL;
1678 object->array = NULL;
1679 PY_CHECK_TYPE(&PyList_Type, value, return -1;);
1682 object->array = talloc_array_ptrtype(pytalloc_get_mem_ctx(py_obj), object->array, PyList_GET_SIZE(value));
1683 if (!object->array) { return -1;; }
1684 talloc_set_name_const(object->array, "ARRAY: object->array");
1685 for (array_cntr_1 = 0; array_cntr_1 < PyList_GET_SIZE(value); array_cntr_1++) {
1686 PY_CHECK_TYPE(&srvsvc_NetConnInfo1_Type, PyList_GET_ITEM(value, array_cntr_1), return -1;);
1687 if (talloc_reference(object->array, pytalloc_get_mem_ctx(PyList_GET_ITEM(value, array_cntr_1))) == NULL) {
1691 object->array[array_cntr_1] = *(struct srvsvc_NetConnInfo1 *)pytalloc_get_ptr(PyList_GET_ITEM(value, array_cntr_1));
1698 static PyGetSetDef py_srvsvc_NetConnCtr1_getsetters[] = {
1699 { discard_const_p(char, "count"), py_srvsvc_NetConnCtr1_get_count, py_srvsvc_NetConnCtr1_set_count },
1700 { discard_const_p(char, "array"), py_srvsvc_NetConnCtr1_get_array, py_srvsvc_NetConnCtr1_set_array },
1704 static PyObject *py_srvsvc_NetConnCtr1_new(PyTypeObject *type, PyObject *args, PyObject *kwargs)
1706 return pytalloc_new(struct srvsvc_NetConnCtr1, type);
1710 static PyTypeObject srvsvc_NetConnCtr1_Type = {
1711 PyObject_HEAD_INIT(NULL) 0,
1712 .tp_name = "srvsvc.NetConnCtr1",
1713 .tp_getset = py_srvsvc_NetConnCtr1_getsetters,
1715 .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
1716 .tp_basicsize = sizeof(pytalloc_Object),
1717 .tp_new = py_srvsvc_NetConnCtr1_new,
1720 PyObject *py_import_srvsvc_NetConnCtr(TALLOC_CTX *mem_ctx, int level, union srvsvc_NetConnCtr *in)
1726 if (in->ctr0 == NULL) {
1730 ret = pytalloc_reference_ex(&srvsvc_NetConnCtr0_Type, in->ctr0, in->ctr0);
1735 if (in->ctr1 == NULL) {
1739 ret = pytalloc_reference_ex(&srvsvc_NetConnCtr1_Type, in->ctr1, in->ctr1);
1749 PyErr_SetString(PyExc_TypeError, "unknown union level");
1753 union srvsvc_NetConnCtr *py_export_srvsvc_NetConnCtr(TALLOC_CTX *mem_ctx, int level, PyObject *in)
1755 union srvsvc_NetConnCtr *ret = talloc_zero(mem_ctx, union srvsvc_NetConnCtr);
1758 if (in == Py_None) {
1762 PY_CHECK_TYPE(&srvsvc_NetConnCtr0_Type, in, talloc_free(ret); return NULL;);
1763 if (talloc_reference(mem_ctx, pytalloc_get_mem_ctx(in)) == NULL) {
1765 talloc_free(ret); return NULL;
1767 ret->ctr0 = (struct srvsvc_NetConnCtr0 *)pytalloc_get_ptr(in);
1772 if (in == Py_None) {
1776 PY_CHECK_TYPE(&srvsvc_NetConnCtr1_Type, in, talloc_free(ret); return NULL;);
1777 if (talloc_reference(mem_ctx, pytalloc_get_mem_ctx(in)) == NULL) {
1779 talloc_free(ret); return NULL;
1781 ret->ctr1 = (struct srvsvc_NetConnCtr1 *)pytalloc_get_ptr(in);
1794 static PyObject *py_srvsvc_NetConnInfoCtr_get_level(PyObject *obj, void *closure)
1796 struct srvsvc_NetConnInfoCtr *object = (struct srvsvc_NetConnInfoCtr *)pytalloc_get_ptr(obj);
1798 py_level = PyInt_FromLong(object->level);
1802 static int py_srvsvc_NetConnInfoCtr_set_level(PyObject *py_obj, PyObject *value, void *closure)
1804 struct srvsvc_NetConnInfoCtr *object = (struct srvsvc_NetConnInfoCtr *)pytalloc_get_ptr(py_obj);
1805 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
1806 object->level = PyInt_AsLong(value);
1810 static PyObject *py_srvsvc_NetConnInfoCtr_get_ctr(PyObject *obj, void *closure)
1812 struct srvsvc_NetConnInfoCtr *object = (struct srvsvc_NetConnInfoCtr *)pytalloc_get_ptr(obj);
1814 py_ctr = py_import_srvsvc_NetConnCtr(pytalloc_get_mem_ctx(obj), object->level, &object->ctr);
1815 if (py_ctr == NULL) {
1821 static int py_srvsvc_NetConnInfoCtr_set_ctr(PyObject *py_obj, PyObject *value, void *closure)
1823 struct srvsvc_NetConnInfoCtr *object = (struct srvsvc_NetConnInfoCtr *)pytalloc_get_ptr(py_obj);
1825 union srvsvc_NetConnCtr *ctr_switch_0;
1826 ctr_switch_0 = py_export_srvsvc_NetConnCtr(pytalloc_get_mem_ctx(py_obj), object->level, value);
1827 if (ctr_switch_0 == NULL) {
1830 object->ctr = *ctr_switch_0;
1835 static PyGetSetDef py_srvsvc_NetConnInfoCtr_getsetters[] = {
1836 { discard_const_p(char, "level"), py_srvsvc_NetConnInfoCtr_get_level, py_srvsvc_NetConnInfoCtr_set_level },
1837 { discard_const_p(char, "ctr"), py_srvsvc_NetConnInfoCtr_get_ctr, py_srvsvc_NetConnInfoCtr_set_ctr },
1841 static PyObject *py_srvsvc_NetConnInfoCtr_new(PyTypeObject *type, PyObject *args, PyObject *kwargs)
1843 return pytalloc_new(struct srvsvc_NetConnInfoCtr, type);
1847 static PyTypeObject srvsvc_NetConnInfoCtr_Type = {
1848 PyObject_HEAD_INIT(NULL) 0,
1849 .tp_name = "srvsvc.NetConnInfoCtr",
1850 .tp_getset = py_srvsvc_NetConnInfoCtr_getsetters,
1852 .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
1853 .tp_basicsize = sizeof(pytalloc_Object),
1854 .tp_new = py_srvsvc_NetConnInfoCtr_new,
1858 static PyObject *py_srvsvc_NetFileInfo2_get_fid(PyObject *obj, void *closure)
1860 struct srvsvc_NetFileInfo2 *object = (struct srvsvc_NetFileInfo2 *)pytalloc_get_ptr(obj);
1862 py_fid = PyInt_FromLong(object->fid);
1866 static int py_srvsvc_NetFileInfo2_set_fid(PyObject *py_obj, PyObject *value, void *closure)
1868 struct srvsvc_NetFileInfo2 *object = (struct srvsvc_NetFileInfo2 *)pytalloc_get_ptr(py_obj);
1869 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
1870 object->fid = PyInt_AsLong(value);
1874 static PyGetSetDef py_srvsvc_NetFileInfo2_getsetters[] = {
1875 { discard_const_p(char, "fid"), py_srvsvc_NetFileInfo2_get_fid, py_srvsvc_NetFileInfo2_set_fid },
1879 static PyObject *py_srvsvc_NetFileInfo2_new(PyTypeObject *type, PyObject *args, PyObject *kwargs)
1881 return pytalloc_new(struct srvsvc_NetFileInfo2, type);
1885 static PyTypeObject srvsvc_NetFileInfo2_Type = {
1886 PyObject_HEAD_INIT(NULL) 0,
1887 .tp_name = "srvsvc.NetFileInfo2",
1888 .tp_getset = py_srvsvc_NetFileInfo2_getsetters,
1890 .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
1891 .tp_basicsize = sizeof(pytalloc_Object),
1892 .tp_new = py_srvsvc_NetFileInfo2_new,
1896 static PyObject *py_srvsvc_NetFileCtr2_get_count(PyObject *obj, void *closure)
1898 struct srvsvc_NetFileCtr2 *object = (struct srvsvc_NetFileCtr2 *)pytalloc_get_ptr(obj);
1900 py_count = PyInt_FromLong(object->count);
1904 static int py_srvsvc_NetFileCtr2_set_count(PyObject *py_obj, PyObject *value, void *closure)
1906 struct srvsvc_NetFileCtr2 *object = (struct srvsvc_NetFileCtr2 *)pytalloc_get_ptr(py_obj);
1907 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
1908 object->count = PyInt_AsLong(value);
1912 static PyObject *py_srvsvc_NetFileCtr2_get_array(PyObject *obj, void *closure)
1914 struct srvsvc_NetFileCtr2 *object = (struct srvsvc_NetFileCtr2 *)pytalloc_get_ptr(obj);
1916 if (object->array == NULL) {
1918 Py_INCREF(py_array);
1920 py_array = PyList_New(object->count);
1921 if (py_array == NULL) {
1926 for (array_cntr_1 = 0; array_cntr_1 < object->count; array_cntr_1++) {
1927 PyObject *py_array_1;
1928 py_array_1 = pytalloc_reference_ex(&srvsvc_NetFileInfo2_Type, object->array, &object->array[array_cntr_1]);
1929 PyList_SetItem(py_array, array_cntr_1, py_array_1);
1936 static int py_srvsvc_NetFileCtr2_set_array(PyObject *py_obj, PyObject *value, void *closure)
1938 struct srvsvc_NetFileCtr2 *object = (struct srvsvc_NetFileCtr2 *)pytalloc_get_ptr(py_obj);
1939 talloc_unlink(pytalloc_get_mem_ctx(py_obj), object->array);
1940 if (value == Py_None) {
1941 object->array = NULL;
1943 object->array = NULL;
1944 PY_CHECK_TYPE(&PyList_Type, value, return -1;);
1947 object->array = talloc_array_ptrtype(pytalloc_get_mem_ctx(py_obj), object->array, PyList_GET_SIZE(value));
1948 if (!object->array) { return -1;; }
1949 talloc_set_name_const(object->array, "ARRAY: object->array");
1950 for (array_cntr_1 = 0; array_cntr_1 < PyList_GET_SIZE(value); array_cntr_1++) {
1951 PY_CHECK_TYPE(&srvsvc_NetFileInfo2_Type, PyList_GET_ITEM(value, array_cntr_1), return -1;);
1952 if (talloc_reference(object->array, pytalloc_get_mem_ctx(PyList_GET_ITEM(value, array_cntr_1))) == NULL) {
1956 object->array[array_cntr_1] = *(struct srvsvc_NetFileInfo2 *)pytalloc_get_ptr(PyList_GET_ITEM(value, array_cntr_1));
1963 static PyGetSetDef py_srvsvc_NetFileCtr2_getsetters[] = {
1964 { discard_const_p(char, "count"), py_srvsvc_NetFileCtr2_get_count, py_srvsvc_NetFileCtr2_set_count },
1965 { discard_const_p(char, "array"), py_srvsvc_NetFileCtr2_get_array, py_srvsvc_NetFileCtr2_set_array },
1969 static PyObject *py_srvsvc_NetFileCtr2_new(PyTypeObject *type, PyObject *args, PyObject *kwargs)
1971 return pytalloc_new(struct srvsvc_NetFileCtr2, type);
1975 static PyTypeObject srvsvc_NetFileCtr2_Type = {
1976 PyObject_HEAD_INIT(NULL) 0,
1977 .tp_name = "srvsvc.NetFileCtr2",
1978 .tp_getset = py_srvsvc_NetFileCtr2_getsetters,
1980 .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
1981 .tp_basicsize = sizeof(pytalloc_Object),
1982 .tp_new = py_srvsvc_NetFileCtr2_new,
1986 static PyObject *py_srvsvc_NetFileInfo3_get_fid(PyObject *obj, void *closure)
1988 struct srvsvc_NetFileInfo3 *object = (struct srvsvc_NetFileInfo3 *)pytalloc_get_ptr(obj);
1990 py_fid = PyInt_FromLong(object->fid);
1994 static int py_srvsvc_NetFileInfo3_set_fid(PyObject *py_obj, PyObject *value, void *closure)
1996 struct srvsvc_NetFileInfo3 *object = (struct srvsvc_NetFileInfo3 *)pytalloc_get_ptr(py_obj);
1997 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
1998 object->fid = PyInt_AsLong(value);
2002 static PyObject *py_srvsvc_NetFileInfo3_get_permissions(PyObject *obj, void *closure)
2004 struct srvsvc_NetFileInfo3 *object = (struct srvsvc_NetFileInfo3 *)pytalloc_get_ptr(obj);
2005 PyObject *py_permissions;
2006 py_permissions = PyInt_FromLong(object->permissions);
2007 return py_permissions;
2010 static int py_srvsvc_NetFileInfo3_set_permissions(PyObject *py_obj, PyObject *value, void *closure)
2012 struct srvsvc_NetFileInfo3 *object = (struct srvsvc_NetFileInfo3 *)pytalloc_get_ptr(py_obj);
2013 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
2014 object->permissions = PyInt_AsLong(value);
2018 static PyObject *py_srvsvc_NetFileInfo3_get_num_locks(PyObject *obj, void *closure)
2020 struct srvsvc_NetFileInfo3 *object = (struct srvsvc_NetFileInfo3 *)pytalloc_get_ptr(obj);
2021 PyObject *py_num_locks;
2022 py_num_locks = PyInt_FromLong(object->num_locks);
2023 return py_num_locks;
2026 static int py_srvsvc_NetFileInfo3_set_num_locks(PyObject *py_obj, PyObject *value, void *closure)
2028 struct srvsvc_NetFileInfo3 *object = (struct srvsvc_NetFileInfo3 *)pytalloc_get_ptr(py_obj);
2029 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
2030 object->num_locks = PyInt_AsLong(value);
2034 static PyObject *py_srvsvc_NetFileInfo3_get_path(PyObject *obj, void *closure)
2036 struct srvsvc_NetFileInfo3 *object = (struct srvsvc_NetFileInfo3 *)pytalloc_get_ptr(obj);
2038 if (object->path == NULL) {
2042 if (object->path == NULL) {
2046 py_path = PyUnicode_Decode(object->path, strlen(object->path), "utf-8", "ignore");
2052 static int py_srvsvc_NetFileInfo3_set_path(PyObject *py_obj, PyObject *value, void *closure)
2054 struct srvsvc_NetFileInfo3 *object = (struct srvsvc_NetFileInfo3 *)pytalloc_get_ptr(py_obj);
2055 if (value == Py_None) {
2056 object->path = NULL;
2058 object->path = NULL;
2059 if (PyUnicode_Check(value)) {
2060 object->path = PyString_AS_STRING(PyUnicode_AsEncodedString(value, "utf-8", "ignore"));
2061 } else if (PyString_Check(value)) {
2062 object->path = PyString_AS_STRING(value);
2064 PyErr_Format(PyExc_TypeError, "Expected string or unicode object, got %s", Py_TYPE(value)->tp_name);
2071 static PyObject *py_srvsvc_NetFileInfo3_get_user(PyObject *obj, void *closure)
2073 struct srvsvc_NetFileInfo3 *object = (struct srvsvc_NetFileInfo3 *)pytalloc_get_ptr(obj);
2075 if (object->user == NULL) {
2079 if (object->user == NULL) {
2083 py_user = PyUnicode_Decode(object->user, strlen(object->user), "utf-8", "ignore");
2089 static int py_srvsvc_NetFileInfo3_set_user(PyObject *py_obj, PyObject *value, void *closure)
2091 struct srvsvc_NetFileInfo3 *object = (struct srvsvc_NetFileInfo3 *)pytalloc_get_ptr(py_obj);
2092 if (value == Py_None) {
2093 object->user = NULL;
2095 object->user = NULL;
2096 if (PyUnicode_Check(value)) {
2097 object->user = PyString_AS_STRING(PyUnicode_AsEncodedString(value, "utf-8", "ignore"));
2098 } else if (PyString_Check(value)) {
2099 object->user = PyString_AS_STRING(value);
2101 PyErr_Format(PyExc_TypeError, "Expected string or unicode object, got %s", Py_TYPE(value)->tp_name);
2108 static PyGetSetDef py_srvsvc_NetFileInfo3_getsetters[] = {
2109 { discard_const_p(char, "fid"), py_srvsvc_NetFileInfo3_get_fid, py_srvsvc_NetFileInfo3_set_fid },
2110 { discard_const_p(char, "permissions"), py_srvsvc_NetFileInfo3_get_permissions, py_srvsvc_NetFileInfo3_set_permissions },
2111 { discard_const_p(char, "num_locks"), py_srvsvc_NetFileInfo3_get_num_locks, py_srvsvc_NetFileInfo3_set_num_locks },
2112 { discard_const_p(char, "path"), py_srvsvc_NetFileInfo3_get_path, py_srvsvc_NetFileInfo3_set_path },
2113 { discard_const_p(char, "user"), py_srvsvc_NetFileInfo3_get_user, py_srvsvc_NetFileInfo3_set_user },
2117 static PyObject *py_srvsvc_NetFileInfo3_new(PyTypeObject *type, PyObject *args, PyObject *kwargs)
2119 return pytalloc_new(struct srvsvc_NetFileInfo3, type);
2123 static PyTypeObject srvsvc_NetFileInfo3_Type = {
2124 PyObject_HEAD_INIT(NULL) 0,
2125 .tp_name = "srvsvc.NetFileInfo3",
2126 .tp_getset = py_srvsvc_NetFileInfo3_getsetters,
2128 .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
2129 .tp_basicsize = sizeof(pytalloc_Object),
2130 .tp_new = py_srvsvc_NetFileInfo3_new,
2134 static PyObject *py_srvsvc_NetFileCtr3_get_count(PyObject *obj, void *closure)
2136 struct srvsvc_NetFileCtr3 *object = (struct srvsvc_NetFileCtr3 *)pytalloc_get_ptr(obj);
2138 py_count = PyInt_FromLong(object->count);
2142 static int py_srvsvc_NetFileCtr3_set_count(PyObject *py_obj, PyObject *value, void *closure)
2144 struct srvsvc_NetFileCtr3 *object = (struct srvsvc_NetFileCtr3 *)pytalloc_get_ptr(py_obj);
2145 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
2146 object->count = PyInt_AsLong(value);
2150 static PyObject *py_srvsvc_NetFileCtr3_get_array(PyObject *obj, void *closure)
2152 struct srvsvc_NetFileCtr3 *object = (struct srvsvc_NetFileCtr3 *)pytalloc_get_ptr(obj);
2154 if (object->array == NULL) {
2156 Py_INCREF(py_array);
2158 py_array = PyList_New(object->count);
2159 if (py_array == NULL) {
2164 for (array_cntr_1 = 0; array_cntr_1 < object->count; array_cntr_1++) {
2165 PyObject *py_array_1;
2166 py_array_1 = pytalloc_reference_ex(&srvsvc_NetFileInfo3_Type, object->array, &object->array[array_cntr_1]);
2167 PyList_SetItem(py_array, array_cntr_1, py_array_1);
2174 static int py_srvsvc_NetFileCtr3_set_array(PyObject *py_obj, PyObject *value, void *closure)
2176 struct srvsvc_NetFileCtr3 *object = (struct srvsvc_NetFileCtr3 *)pytalloc_get_ptr(py_obj);
2177 talloc_unlink(pytalloc_get_mem_ctx(py_obj), object->array);
2178 if (value == Py_None) {
2179 object->array = NULL;
2181 object->array = NULL;
2182 PY_CHECK_TYPE(&PyList_Type, value, return -1;);
2185 object->array = talloc_array_ptrtype(pytalloc_get_mem_ctx(py_obj), object->array, PyList_GET_SIZE(value));
2186 if (!object->array) { return -1;; }
2187 talloc_set_name_const(object->array, "ARRAY: object->array");
2188 for (array_cntr_1 = 0; array_cntr_1 < PyList_GET_SIZE(value); array_cntr_1++) {
2189 PY_CHECK_TYPE(&srvsvc_NetFileInfo3_Type, PyList_GET_ITEM(value, array_cntr_1), return -1;);
2190 if (talloc_reference(object->array, pytalloc_get_mem_ctx(PyList_GET_ITEM(value, array_cntr_1))) == NULL) {
2194 object->array[array_cntr_1] = *(struct srvsvc_NetFileInfo3 *)pytalloc_get_ptr(PyList_GET_ITEM(value, array_cntr_1));
2201 static PyGetSetDef py_srvsvc_NetFileCtr3_getsetters[] = {
2202 { discard_const_p(char, "count"), py_srvsvc_NetFileCtr3_get_count, py_srvsvc_NetFileCtr3_set_count },
2203 { discard_const_p(char, "array"), py_srvsvc_NetFileCtr3_get_array, py_srvsvc_NetFileCtr3_set_array },
2207 static PyObject *py_srvsvc_NetFileCtr3_new(PyTypeObject *type, PyObject *args, PyObject *kwargs)
2209 return pytalloc_new(struct srvsvc_NetFileCtr3, type);
2213 static PyTypeObject srvsvc_NetFileCtr3_Type = {
2214 PyObject_HEAD_INIT(NULL) 0,
2215 .tp_name = "srvsvc.NetFileCtr3",
2216 .tp_getset = py_srvsvc_NetFileCtr3_getsetters,
2218 .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
2219 .tp_basicsize = sizeof(pytalloc_Object),
2220 .tp_new = py_srvsvc_NetFileCtr3_new,
2223 PyObject *py_import_srvsvc_NetFileInfo(TALLOC_CTX *mem_ctx, int level, union srvsvc_NetFileInfo *in)
2229 if (in->info2 == NULL) {
2233 ret = pytalloc_reference_ex(&srvsvc_NetFileInfo2_Type, in->info2, in->info2);
2238 if (in->info3 == NULL) {
2242 ret = pytalloc_reference_ex(&srvsvc_NetFileInfo3_Type, in->info3, in->info3);
2252 PyErr_SetString(PyExc_TypeError, "unknown union level");
2256 union srvsvc_NetFileInfo *py_export_srvsvc_NetFileInfo(TALLOC_CTX *mem_ctx, int level, PyObject *in)
2258 union srvsvc_NetFileInfo *ret = talloc_zero(mem_ctx, union srvsvc_NetFileInfo);
2261 if (in == Py_None) {
2265 PY_CHECK_TYPE(&srvsvc_NetFileInfo2_Type, in, talloc_free(ret); return NULL;);
2266 if (talloc_reference(mem_ctx, pytalloc_get_mem_ctx(in)) == NULL) {
2268 talloc_free(ret); return NULL;
2270 ret->info2 = (struct srvsvc_NetFileInfo2 *)pytalloc_get_ptr(in);
2275 if (in == Py_None) {
2279 PY_CHECK_TYPE(&srvsvc_NetFileInfo3_Type, in, talloc_free(ret); return NULL;);
2280 if (talloc_reference(mem_ctx, pytalloc_get_mem_ctx(in)) == NULL) {
2282 talloc_free(ret); return NULL;
2284 ret->info3 = (struct srvsvc_NetFileInfo3 *)pytalloc_get_ptr(in);
2296 PyObject *py_import_srvsvc_NetFileCtr(TALLOC_CTX *mem_ctx, int level, union srvsvc_NetFileCtr *in)
2302 if (in->ctr2 == NULL) {
2306 ret = pytalloc_reference_ex(&srvsvc_NetFileCtr2_Type, in->ctr2, in->ctr2);
2311 if (in->ctr3 == NULL) {
2315 ret = pytalloc_reference_ex(&srvsvc_NetFileCtr3_Type, in->ctr3, in->ctr3);
2325 PyErr_SetString(PyExc_TypeError, "unknown union level");
2329 union srvsvc_NetFileCtr *py_export_srvsvc_NetFileCtr(TALLOC_CTX *mem_ctx, int level, PyObject *in)
2331 union srvsvc_NetFileCtr *ret = talloc_zero(mem_ctx, union srvsvc_NetFileCtr);
2334 if (in == Py_None) {
2338 PY_CHECK_TYPE(&srvsvc_NetFileCtr2_Type, in, talloc_free(ret); return NULL;);
2339 if (talloc_reference(mem_ctx, pytalloc_get_mem_ctx(in)) == NULL) {
2341 talloc_free(ret); return NULL;
2343 ret->ctr2 = (struct srvsvc_NetFileCtr2 *)pytalloc_get_ptr(in);
2348 if (in == Py_None) {
2352 PY_CHECK_TYPE(&srvsvc_NetFileCtr3_Type, in, talloc_free(ret); return NULL;);
2353 if (talloc_reference(mem_ctx, pytalloc_get_mem_ctx(in)) == NULL) {
2355 talloc_free(ret); return NULL;
2357 ret->ctr3 = (struct srvsvc_NetFileCtr3 *)pytalloc_get_ptr(in);
2370 static PyObject *py_srvsvc_NetFileInfoCtr_get_level(PyObject *obj, void *closure)
2372 struct srvsvc_NetFileInfoCtr *object = (struct srvsvc_NetFileInfoCtr *)pytalloc_get_ptr(obj);
2374 py_level = PyInt_FromLong(object->level);
2378 static int py_srvsvc_NetFileInfoCtr_set_level(PyObject *py_obj, PyObject *value, void *closure)
2380 struct srvsvc_NetFileInfoCtr *object = (struct srvsvc_NetFileInfoCtr *)pytalloc_get_ptr(py_obj);
2381 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
2382 object->level = PyInt_AsLong(value);
2386 static PyObject *py_srvsvc_NetFileInfoCtr_get_ctr(PyObject *obj, void *closure)
2388 struct srvsvc_NetFileInfoCtr *object = (struct srvsvc_NetFileInfoCtr *)pytalloc_get_ptr(obj);
2390 py_ctr = py_import_srvsvc_NetFileCtr(pytalloc_get_mem_ctx(obj), object->level, &object->ctr);
2391 if (py_ctr == NULL) {
2397 static int py_srvsvc_NetFileInfoCtr_set_ctr(PyObject *py_obj, PyObject *value, void *closure)
2399 struct srvsvc_NetFileInfoCtr *object = (struct srvsvc_NetFileInfoCtr *)pytalloc_get_ptr(py_obj);
2401 union srvsvc_NetFileCtr *ctr_switch_0;
2402 ctr_switch_0 = py_export_srvsvc_NetFileCtr(pytalloc_get_mem_ctx(py_obj), object->level, value);
2403 if (ctr_switch_0 == NULL) {
2406 object->ctr = *ctr_switch_0;
2411 static PyGetSetDef py_srvsvc_NetFileInfoCtr_getsetters[] = {
2412 { discard_const_p(char, "level"), py_srvsvc_NetFileInfoCtr_get_level, py_srvsvc_NetFileInfoCtr_set_level },
2413 { discard_const_p(char, "ctr"), py_srvsvc_NetFileInfoCtr_get_ctr, py_srvsvc_NetFileInfoCtr_set_ctr },
2417 static PyObject *py_srvsvc_NetFileInfoCtr_new(PyTypeObject *type, PyObject *args, PyObject *kwargs)
2419 return pytalloc_new(struct srvsvc_NetFileInfoCtr, type);
2423 static PyTypeObject srvsvc_NetFileInfoCtr_Type = {
2424 PyObject_HEAD_INIT(NULL) 0,
2425 .tp_name = "srvsvc.NetFileInfoCtr",
2426 .tp_getset = py_srvsvc_NetFileInfoCtr_getsetters,
2428 .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
2429 .tp_basicsize = sizeof(pytalloc_Object),
2430 .tp_new = py_srvsvc_NetFileInfoCtr_new,
2434 static PyObject *py_srvsvc_NetSessInfo0_get_client(PyObject *obj, void *closure)
2436 struct srvsvc_NetSessInfo0 *object = (struct srvsvc_NetSessInfo0 *)pytalloc_get_ptr(obj);
2437 PyObject *py_client;
2438 if (object->client == NULL) {
2439 py_client = Py_None;
2440 Py_INCREF(py_client);
2442 if (object->client == NULL) {
2443 py_client = Py_None;
2444 Py_INCREF(py_client);
2446 py_client = PyUnicode_Decode(object->client, strlen(object->client), "utf-8", "ignore");
2452 static int py_srvsvc_NetSessInfo0_set_client(PyObject *py_obj, PyObject *value, void *closure)
2454 struct srvsvc_NetSessInfo0 *object = (struct srvsvc_NetSessInfo0 *)pytalloc_get_ptr(py_obj);
2455 if (value == Py_None) {
2456 object->client = NULL;
2458 object->client = NULL;
2459 if (PyUnicode_Check(value)) {
2460 object->client = PyString_AS_STRING(PyUnicode_AsEncodedString(value, "utf-8", "ignore"));
2461 } else if (PyString_Check(value)) {
2462 object->client = PyString_AS_STRING(value);
2464 PyErr_Format(PyExc_TypeError, "Expected string or unicode object, got %s", Py_TYPE(value)->tp_name);
2471 static PyGetSetDef py_srvsvc_NetSessInfo0_getsetters[] = {
2472 { discard_const_p(char, "client"), py_srvsvc_NetSessInfo0_get_client, py_srvsvc_NetSessInfo0_set_client },
2476 static PyObject *py_srvsvc_NetSessInfo0_new(PyTypeObject *type, PyObject *args, PyObject *kwargs)
2478 return pytalloc_new(struct srvsvc_NetSessInfo0, type);
2482 static PyTypeObject srvsvc_NetSessInfo0_Type = {
2483 PyObject_HEAD_INIT(NULL) 0,
2484 .tp_name = "srvsvc.NetSessInfo0",
2485 .tp_getset = py_srvsvc_NetSessInfo0_getsetters,
2487 .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
2488 .tp_basicsize = sizeof(pytalloc_Object),
2489 .tp_new = py_srvsvc_NetSessInfo0_new,
2493 static PyObject *py_srvsvc_NetSessCtr0_get_count(PyObject *obj, void *closure)
2495 struct srvsvc_NetSessCtr0 *object = (struct srvsvc_NetSessCtr0 *)pytalloc_get_ptr(obj);
2497 py_count = PyInt_FromLong(object->count);
2501 static int py_srvsvc_NetSessCtr0_set_count(PyObject *py_obj, PyObject *value, void *closure)
2503 struct srvsvc_NetSessCtr0 *object = (struct srvsvc_NetSessCtr0 *)pytalloc_get_ptr(py_obj);
2504 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
2505 object->count = PyInt_AsLong(value);
2509 static PyObject *py_srvsvc_NetSessCtr0_get_array(PyObject *obj, void *closure)
2511 struct srvsvc_NetSessCtr0 *object = (struct srvsvc_NetSessCtr0 *)pytalloc_get_ptr(obj);
2513 if (object->array == NULL) {
2515 Py_INCREF(py_array);
2517 py_array = PyList_New(object->count);
2518 if (py_array == NULL) {
2523 for (array_cntr_1 = 0; array_cntr_1 < object->count; array_cntr_1++) {
2524 PyObject *py_array_1;
2525 py_array_1 = pytalloc_reference_ex(&srvsvc_NetSessInfo0_Type, object->array, &object->array[array_cntr_1]);
2526 PyList_SetItem(py_array, array_cntr_1, py_array_1);
2533 static int py_srvsvc_NetSessCtr0_set_array(PyObject *py_obj, PyObject *value, void *closure)
2535 struct srvsvc_NetSessCtr0 *object = (struct srvsvc_NetSessCtr0 *)pytalloc_get_ptr(py_obj);
2536 talloc_unlink(pytalloc_get_mem_ctx(py_obj), object->array);
2537 if (value == Py_None) {
2538 object->array = NULL;
2540 object->array = NULL;
2541 PY_CHECK_TYPE(&PyList_Type, value, return -1;);
2544 object->array = talloc_array_ptrtype(pytalloc_get_mem_ctx(py_obj), object->array, PyList_GET_SIZE(value));
2545 if (!object->array) { return -1;; }
2546 talloc_set_name_const(object->array, "ARRAY: object->array");
2547 for (array_cntr_1 = 0; array_cntr_1 < PyList_GET_SIZE(value); array_cntr_1++) {
2548 PY_CHECK_TYPE(&srvsvc_NetSessInfo0_Type, PyList_GET_ITEM(value, array_cntr_1), return -1;);
2549 if (talloc_reference(object->array, pytalloc_get_mem_ctx(PyList_GET_ITEM(value, array_cntr_1))) == NULL) {
2553 object->array[array_cntr_1] = *(struct srvsvc_NetSessInfo0 *)pytalloc_get_ptr(PyList_GET_ITEM(value, array_cntr_1));
2560 static PyGetSetDef py_srvsvc_NetSessCtr0_getsetters[] = {
2561 { discard_const_p(char, "count"), py_srvsvc_NetSessCtr0_get_count, py_srvsvc_NetSessCtr0_set_count },
2562 { discard_const_p(char, "array"), py_srvsvc_NetSessCtr0_get_array, py_srvsvc_NetSessCtr0_set_array },
2566 static PyObject *py_srvsvc_NetSessCtr0_new(PyTypeObject *type, PyObject *args, PyObject *kwargs)
2568 return pytalloc_new(struct srvsvc_NetSessCtr0, type);
2572 static PyTypeObject srvsvc_NetSessCtr0_Type = {
2573 PyObject_HEAD_INIT(NULL) 0,
2574 .tp_name = "srvsvc.NetSessCtr0",
2575 .tp_getset = py_srvsvc_NetSessCtr0_getsetters,
2577 .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
2578 .tp_basicsize = sizeof(pytalloc_Object),
2579 .tp_new = py_srvsvc_NetSessCtr0_new,
2583 static PyObject *py_srvsvc_NetSessInfo1_get_client(PyObject *obj, void *closure)
2585 struct srvsvc_NetSessInfo1 *object = (struct srvsvc_NetSessInfo1 *)pytalloc_get_ptr(obj);
2586 PyObject *py_client;
2587 if (object->client == NULL) {
2588 py_client = Py_None;
2589 Py_INCREF(py_client);
2591 if (object->client == NULL) {
2592 py_client = Py_None;
2593 Py_INCREF(py_client);
2595 py_client = PyUnicode_Decode(object->client, strlen(object->client), "utf-8", "ignore");
2601 static int py_srvsvc_NetSessInfo1_set_client(PyObject *py_obj, PyObject *value, void *closure)
2603 struct srvsvc_NetSessInfo1 *object = (struct srvsvc_NetSessInfo1 *)pytalloc_get_ptr(py_obj);
2604 if (value == Py_None) {
2605 object->client = NULL;
2607 object->client = NULL;
2608 if (PyUnicode_Check(value)) {
2609 object->client = PyString_AS_STRING(PyUnicode_AsEncodedString(value, "utf-8", "ignore"));
2610 } else if (PyString_Check(value)) {
2611 object->client = PyString_AS_STRING(value);
2613 PyErr_Format(PyExc_TypeError, "Expected string or unicode object, got %s", Py_TYPE(value)->tp_name);
2620 static PyObject *py_srvsvc_NetSessInfo1_get_user(PyObject *obj, void *closure)
2622 struct srvsvc_NetSessInfo1 *object = (struct srvsvc_NetSessInfo1 *)pytalloc_get_ptr(obj);
2624 if (object->user == NULL) {
2628 if (object->user == NULL) {
2632 py_user = PyUnicode_Decode(object->user, strlen(object->user), "utf-8", "ignore");
2638 static int py_srvsvc_NetSessInfo1_set_user(PyObject *py_obj, PyObject *value, void *closure)
2640 struct srvsvc_NetSessInfo1 *object = (struct srvsvc_NetSessInfo1 *)pytalloc_get_ptr(py_obj);
2641 if (value == Py_None) {
2642 object->user = NULL;
2644 object->user = NULL;
2645 if (PyUnicode_Check(value)) {
2646 object->user = PyString_AS_STRING(PyUnicode_AsEncodedString(value, "utf-8", "ignore"));
2647 } else if (PyString_Check(value)) {
2648 object->user = PyString_AS_STRING(value);
2650 PyErr_Format(PyExc_TypeError, "Expected string or unicode object, got %s", Py_TYPE(value)->tp_name);
2657 static PyObject *py_srvsvc_NetSessInfo1_get_num_open(PyObject *obj, void *closure)
2659 struct srvsvc_NetSessInfo1 *object = (struct srvsvc_NetSessInfo1 *)pytalloc_get_ptr(obj);
2660 PyObject *py_num_open;
2661 py_num_open = PyInt_FromLong(object->num_open);
2665 static int py_srvsvc_NetSessInfo1_set_num_open(PyObject *py_obj, PyObject *value, void *closure)
2667 struct srvsvc_NetSessInfo1 *object = (struct srvsvc_NetSessInfo1 *)pytalloc_get_ptr(py_obj);
2668 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
2669 object->num_open = PyInt_AsLong(value);
2673 static PyObject *py_srvsvc_NetSessInfo1_get_time(PyObject *obj, void *closure)
2675 struct srvsvc_NetSessInfo1 *object = (struct srvsvc_NetSessInfo1 *)pytalloc_get_ptr(obj);
2677 py_time = PyInt_FromLong(object->time);
2681 static int py_srvsvc_NetSessInfo1_set_time(PyObject *py_obj, PyObject *value, void *closure)
2683 struct srvsvc_NetSessInfo1 *object = (struct srvsvc_NetSessInfo1 *)pytalloc_get_ptr(py_obj);
2684 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
2685 object->time = PyInt_AsLong(value);
2689 static PyObject *py_srvsvc_NetSessInfo1_get_idle_time(PyObject *obj, void *closure)
2691 struct srvsvc_NetSessInfo1 *object = (struct srvsvc_NetSessInfo1 *)pytalloc_get_ptr(obj);
2692 PyObject *py_idle_time;
2693 py_idle_time = PyInt_FromLong(object->idle_time);
2694 return py_idle_time;
2697 static int py_srvsvc_NetSessInfo1_set_idle_time(PyObject *py_obj, PyObject *value, void *closure)
2699 struct srvsvc_NetSessInfo1 *object = (struct srvsvc_NetSessInfo1 *)pytalloc_get_ptr(py_obj);
2700 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
2701 object->idle_time = PyInt_AsLong(value);
2705 static PyObject *py_srvsvc_NetSessInfo1_get_user_flags(PyObject *obj, void *closure)
2707 struct srvsvc_NetSessInfo1 *object = (struct srvsvc_NetSessInfo1 *)pytalloc_get_ptr(obj);
2708 PyObject *py_user_flags;
2709 py_user_flags = PyInt_FromLong(object->user_flags);
2710 return py_user_flags;
2713 static int py_srvsvc_NetSessInfo1_set_user_flags(PyObject *py_obj, PyObject *value, void *closure)
2715 struct srvsvc_NetSessInfo1 *object = (struct srvsvc_NetSessInfo1 *)pytalloc_get_ptr(py_obj);
2716 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
2717 object->user_flags = PyInt_AsLong(value);
2721 static PyGetSetDef py_srvsvc_NetSessInfo1_getsetters[] = {
2722 { discard_const_p(char, "client"), py_srvsvc_NetSessInfo1_get_client, py_srvsvc_NetSessInfo1_set_client },
2723 { discard_const_p(char, "user"), py_srvsvc_NetSessInfo1_get_user, py_srvsvc_NetSessInfo1_set_user },
2724 { discard_const_p(char, "num_open"), py_srvsvc_NetSessInfo1_get_num_open, py_srvsvc_NetSessInfo1_set_num_open },
2725 { discard_const_p(char, "time"), py_srvsvc_NetSessInfo1_get_time, py_srvsvc_NetSessInfo1_set_time },
2726 { discard_const_p(char, "idle_time"), py_srvsvc_NetSessInfo1_get_idle_time, py_srvsvc_NetSessInfo1_set_idle_time },
2727 { discard_const_p(char, "user_flags"), py_srvsvc_NetSessInfo1_get_user_flags, py_srvsvc_NetSessInfo1_set_user_flags },
2731 static PyObject *py_srvsvc_NetSessInfo1_new(PyTypeObject *type, PyObject *args, PyObject *kwargs)
2733 return pytalloc_new(struct srvsvc_NetSessInfo1, type);
2737 static PyTypeObject srvsvc_NetSessInfo1_Type = {
2738 PyObject_HEAD_INIT(NULL) 0,
2739 .tp_name = "srvsvc.NetSessInfo1",
2740 .tp_getset = py_srvsvc_NetSessInfo1_getsetters,
2742 .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
2743 .tp_basicsize = sizeof(pytalloc_Object),
2744 .tp_new = py_srvsvc_NetSessInfo1_new,
2748 static PyObject *py_srvsvc_NetSessCtr1_get_count(PyObject *obj, void *closure)
2750 struct srvsvc_NetSessCtr1 *object = (struct srvsvc_NetSessCtr1 *)pytalloc_get_ptr(obj);
2752 py_count = PyInt_FromLong(object->count);
2756 static int py_srvsvc_NetSessCtr1_set_count(PyObject *py_obj, PyObject *value, void *closure)
2758 struct srvsvc_NetSessCtr1 *object = (struct srvsvc_NetSessCtr1 *)pytalloc_get_ptr(py_obj);
2759 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
2760 object->count = PyInt_AsLong(value);
2764 static PyObject *py_srvsvc_NetSessCtr1_get_array(PyObject *obj, void *closure)
2766 struct srvsvc_NetSessCtr1 *object = (struct srvsvc_NetSessCtr1 *)pytalloc_get_ptr(obj);
2768 if (object->array == NULL) {
2770 Py_INCREF(py_array);
2772 py_array = PyList_New(object->count);
2773 if (py_array == NULL) {
2778 for (array_cntr_1 = 0; array_cntr_1 < object->count; array_cntr_1++) {
2779 PyObject *py_array_1;
2780 py_array_1 = pytalloc_reference_ex(&srvsvc_NetSessInfo1_Type, object->array, &object->array[array_cntr_1]);
2781 PyList_SetItem(py_array, array_cntr_1, py_array_1);
2788 static int py_srvsvc_NetSessCtr1_set_array(PyObject *py_obj, PyObject *value, void *closure)
2790 struct srvsvc_NetSessCtr1 *object = (struct srvsvc_NetSessCtr1 *)pytalloc_get_ptr(py_obj);
2791 talloc_unlink(pytalloc_get_mem_ctx(py_obj), object->array);
2792 if (value == Py_None) {
2793 object->array = NULL;
2795 object->array = NULL;
2796 PY_CHECK_TYPE(&PyList_Type, value, return -1;);
2799 object->array = talloc_array_ptrtype(pytalloc_get_mem_ctx(py_obj), object->array, PyList_GET_SIZE(value));
2800 if (!object->array) { return -1;; }
2801 talloc_set_name_const(object->array, "ARRAY: object->array");
2802 for (array_cntr_1 = 0; array_cntr_1 < PyList_GET_SIZE(value); array_cntr_1++) {
2803 PY_CHECK_TYPE(&srvsvc_NetSessInfo1_Type, PyList_GET_ITEM(value, array_cntr_1), return -1;);
2804 if (talloc_reference(object->array, pytalloc_get_mem_ctx(PyList_GET_ITEM(value, array_cntr_1))) == NULL) {
2808 object->array[array_cntr_1] = *(struct srvsvc_NetSessInfo1 *)pytalloc_get_ptr(PyList_GET_ITEM(value, array_cntr_1));
2815 static PyGetSetDef py_srvsvc_NetSessCtr1_getsetters[] = {
2816 { discard_const_p(char, "count"), py_srvsvc_NetSessCtr1_get_count, py_srvsvc_NetSessCtr1_set_count },
2817 { discard_const_p(char, "array"), py_srvsvc_NetSessCtr1_get_array, py_srvsvc_NetSessCtr1_set_array },
2821 static PyObject *py_srvsvc_NetSessCtr1_new(PyTypeObject *type, PyObject *args, PyObject *kwargs)
2823 return pytalloc_new(struct srvsvc_NetSessCtr1, type);
2827 static PyTypeObject srvsvc_NetSessCtr1_Type = {
2828 PyObject_HEAD_INIT(NULL) 0,
2829 .tp_name = "srvsvc.NetSessCtr1",
2830 .tp_getset = py_srvsvc_NetSessCtr1_getsetters,
2832 .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
2833 .tp_basicsize = sizeof(pytalloc_Object),
2834 .tp_new = py_srvsvc_NetSessCtr1_new,
2838 static PyObject *py_srvsvc_NetSessInfo2_get_client(PyObject *obj, void *closure)
2840 struct srvsvc_NetSessInfo2 *object = (struct srvsvc_NetSessInfo2 *)pytalloc_get_ptr(obj);
2841 PyObject *py_client;
2842 if (object->client == NULL) {
2843 py_client = Py_None;
2844 Py_INCREF(py_client);
2846 if (object->client == NULL) {
2847 py_client = Py_None;
2848 Py_INCREF(py_client);
2850 py_client = PyUnicode_Decode(object->client, strlen(object->client), "utf-8", "ignore");
2856 static int py_srvsvc_NetSessInfo2_set_client(PyObject *py_obj, PyObject *value, void *closure)
2858 struct srvsvc_NetSessInfo2 *object = (struct srvsvc_NetSessInfo2 *)pytalloc_get_ptr(py_obj);
2859 if (value == Py_None) {
2860 object->client = NULL;
2862 object->client = NULL;
2863 if (PyUnicode_Check(value)) {
2864 object->client = PyString_AS_STRING(PyUnicode_AsEncodedString(value, "utf-8", "ignore"));
2865 } else if (PyString_Check(value)) {
2866 object->client = PyString_AS_STRING(value);
2868 PyErr_Format(PyExc_TypeError, "Expected string or unicode object, got %s", Py_TYPE(value)->tp_name);
2875 static PyObject *py_srvsvc_NetSessInfo2_get_user(PyObject *obj, void *closure)
2877 struct srvsvc_NetSessInfo2 *object = (struct srvsvc_NetSessInfo2 *)pytalloc_get_ptr(obj);
2879 if (object->user == NULL) {
2883 if (object->user == NULL) {
2887 py_user = PyUnicode_Decode(object->user, strlen(object->user), "utf-8", "ignore");
2893 static int py_srvsvc_NetSessInfo2_set_user(PyObject *py_obj, PyObject *value, void *closure)
2895 struct srvsvc_NetSessInfo2 *object = (struct srvsvc_NetSessInfo2 *)pytalloc_get_ptr(py_obj);
2896 if (value == Py_None) {
2897 object->user = NULL;
2899 object->user = NULL;
2900 if (PyUnicode_Check(value)) {
2901 object->user = PyString_AS_STRING(PyUnicode_AsEncodedString(value, "utf-8", "ignore"));
2902 } else if (PyString_Check(value)) {
2903 object->user = PyString_AS_STRING(value);
2905 PyErr_Format(PyExc_TypeError, "Expected string or unicode object, got %s", Py_TYPE(value)->tp_name);
2912 static PyObject *py_srvsvc_NetSessInfo2_get_num_open(PyObject *obj, void *closure)
2914 struct srvsvc_NetSessInfo2 *object = (struct srvsvc_NetSessInfo2 *)pytalloc_get_ptr(obj);
2915 PyObject *py_num_open;
2916 py_num_open = PyInt_FromLong(object->num_open);
2920 static int py_srvsvc_NetSessInfo2_set_num_open(PyObject *py_obj, PyObject *value, void *closure)
2922 struct srvsvc_NetSessInfo2 *object = (struct srvsvc_NetSessInfo2 *)pytalloc_get_ptr(py_obj);
2923 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
2924 object->num_open = PyInt_AsLong(value);
2928 static PyObject *py_srvsvc_NetSessInfo2_get_time(PyObject *obj, void *closure)
2930 struct srvsvc_NetSessInfo2 *object = (struct srvsvc_NetSessInfo2 *)pytalloc_get_ptr(obj);
2932 py_time = PyInt_FromLong(object->time);
2936 static int py_srvsvc_NetSessInfo2_set_time(PyObject *py_obj, PyObject *value, void *closure)
2938 struct srvsvc_NetSessInfo2 *object = (struct srvsvc_NetSessInfo2 *)pytalloc_get_ptr(py_obj);
2939 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
2940 object->time = PyInt_AsLong(value);
2944 static PyObject *py_srvsvc_NetSessInfo2_get_idle_time(PyObject *obj, void *closure)
2946 struct srvsvc_NetSessInfo2 *object = (struct srvsvc_NetSessInfo2 *)pytalloc_get_ptr(obj);
2947 PyObject *py_idle_time;
2948 py_idle_time = PyInt_FromLong(object->idle_time);
2949 return py_idle_time;
2952 static int py_srvsvc_NetSessInfo2_set_idle_time(PyObject *py_obj, PyObject *value, void *closure)
2954 struct srvsvc_NetSessInfo2 *object = (struct srvsvc_NetSessInfo2 *)pytalloc_get_ptr(py_obj);
2955 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
2956 object->idle_time = PyInt_AsLong(value);
2960 static PyObject *py_srvsvc_NetSessInfo2_get_user_flags(PyObject *obj, void *closure)
2962 struct srvsvc_NetSessInfo2 *object = (struct srvsvc_NetSessInfo2 *)pytalloc_get_ptr(obj);
2963 PyObject *py_user_flags;
2964 py_user_flags = PyInt_FromLong(object->user_flags);
2965 return py_user_flags;
2968 static int py_srvsvc_NetSessInfo2_set_user_flags(PyObject *py_obj, PyObject *value, void *closure)
2970 struct srvsvc_NetSessInfo2 *object = (struct srvsvc_NetSessInfo2 *)pytalloc_get_ptr(py_obj);
2971 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
2972 object->user_flags = PyInt_AsLong(value);
2976 static PyObject *py_srvsvc_NetSessInfo2_get_client_type(PyObject *obj, void *closure)
2978 struct srvsvc_NetSessInfo2 *object = (struct srvsvc_NetSessInfo2 *)pytalloc_get_ptr(obj);
2979 PyObject *py_client_type;
2980 if (object->client_type == NULL) {
2981 py_client_type = Py_None;
2982 Py_INCREF(py_client_type);
2984 if (object->client_type == NULL) {
2985 py_client_type = Py_None;
2986 Py_INCREF(py_client_type);
2988 py_client_type = PyUnicode_Decode(object->client_type, strlen(object->client_type), "utf-8", "ignore");
2991 return py_client_type;
2994 static int py_srvsvc_NetSessInfo2_set_client_type(PyObject *py_obj, PyObject *value, void *closure)
2996 struct srvsvc_NetSessInfo2 *object = (struct srvsvc_NetSessInfo2 *)pytalloc_get_ptr(py_obj);
2997 if (value == Py_None) {
2998 object->client_type = NULL;
3000 object->client_type = NULL;
3001 if (PyUnicode_Check(value)) {
3002 object->client_type = PyString_AS_STRING(PyUnicode_AsEncodedString(value, "utf-8", "ignore"));
3003 } else if (PyString_Check(value)) {
3004 object->client_type = PyString_AS_STRING(value);
3006 PyErr_Format(PyExc_TypeError, "Expected string or unicode object, got %s", Py_TYPE(value)->tp_name);
3013 static PyGetSetDef py_srvsvc_NetSessInfo2_getsetters[] = {
3014 { discard_const_p(char, "client"), py_srvsvc_NetSessInfo2_get_client, py_srvsvc_NetSessInfo2_set_client },
3015 { discard_const_p(char, "user"), py_srvsvc_NetSessInfo2_get_user, py_srvsvc_NetSessInfo2_set_user },
3016 { discard_const_p(char, "num_open"), py_srvsvc_NetSessInfo2_get_num_open, py_srvsvc_NetSessInfo2_set_num_open },
3017 { discard_const_p(char, "time"), py_srvsvc_NetSessInfo2_get_time, py_srvsvc_NetSessInfo2_set_time },
3018 { discard_const_p(char, "idle_time"), py_srvsvc_NetSessInfo2_get_idle_time, py_srvsvc_NetSessInfo2_set_idle_time },
3019 { discard_const_p(char, "user_flags"), py_srvsvc_NetSessInfo2_get_user_flags, py_srvsvc_NetSessInfo2_set_user_flags },
3020 { discard_const_p(char, "client_type"), py_srvsvc_NetSessInfo2_get_client_type, py_srvsvc_NetSessInfo2_set_client_type },
3024 static PyObject *py_srvsvc_NetSessInfo2_new(PyTypeObject *type, PyObject *args, PyObject *kwargs)
3026 return pytalloc_new(struct srvsvc_NetSessInfo2, type);
3030 static PyTypeObject srvsvc_NetSessInfo2_Type = {
3031 PyObject_HEAD_INIT(NULL) 0,
3032 .tp_name = "srvsvc.NetSessInfo2",
3033 .tp_getset = py_srvsvc_NetSessInfo2_getsetters,
3035 .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
3036 .tp_basicsize = sizeof(pytalloc_Object),
3037 .tp_new = py_srvsvc_NetSessInfo2_new,
3041 static PyObject *py_srvsvc_NetSessCtr2_get_count(PyObject *obj, void *closure)
3043 struct srvsvc_NetSessCtr2 *object = (struct srvsvc_NetSessCtr2 *)pytalloc_get_ptr(obj);
3045 py_count = PyInt_FromLong(object->count);
3049 static int py_srvsvc_NetSessCtr2_set_count(PyObject *py_obj, PyObject *value, void *closure)
3051 struct srvsvc_NetSessCtr2 *object = (struct srvsvc_NetSessCtr2 *)pytalloc_get_ptr(py_obj);
3052 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
3053 object->count = PyInt_AsLong(value);
3057 static PyObject *py_srvsvc_NetSessCtr2_get_array(PyObject *obj, void *closure)
3059 struct srvsvc_NetSessCtr2 *object = (struct srvsvc_NetSessCtr2 *)pytalloc_get_ptr(obj);
3061 if (object->array == NULL) {
3063 Py_INCREF(py_array);
3065 py_array = PyList_New(object->count);
3066 if (py_array == NULL) {
3071 for (array_cntr_1 = 0; array_cntr_1 < object->count; array_cntr_1++) {
3072 PyObject *py_array_1;
3073 py_array_1 = pytalloc_reference_ex(&srvsvc_NetSessInfo2_Type, object->array, &object->array[array_cntr_1]);
3074 PyList_SetItem(py_array, array_cntr_1, py_array_1);
3081 static int py_srvsvc_NetSessCtr2_set_array(PyObject *py_obj, PyObject *value, void *closure)
3083 struct srvsvc_NetSessCtr2 *object = (struct srvsvc_NetSessCtr2 *)pytalloc_get_ptr(py_obj);
3084 talloc_unlink(pytalloc_get_mem_ctx(py_obj), object->array);
3085 if (value == Py_None) {
3086 object->array = NULL;
3088 object->array = NULL;
3089 PY_CHECK_TYPE(&PyList_Type, value, return -1;);
3092 object->array = talloc_array_ptrtype(pytalloc_get_mem_ctx(py_obj), object->array, PyList_GET_SIZE(value));
3093 if (!object->array) { return -1;; }
3094 talloc_set_name_const(object->array, "ARRAY: object->array");
3095 for (array_cntr_1 = 0; array_cntr_1 < PyList_GET_SIZE(value); array_cntr_1++) {
3096 PY_CHECK_TYPE(&srvsvc_NetSessInfo2_Type, PyList_GET_ITEM(value, array_cntr_1), return -1;);
3097 if (talloc_reference(object->array, pytalloc_get_mem_ctx(PyList_GET_ITEM(value, array_cntr_1))) == NULL) {
3101 object->array[array_cntr_1] = *(struct srvsvc_NetSessInfo2 *)pytalloc_get_ptr(PyList_GET_ITEM(value, array_cntr_1));
3108 static PyGetSetDef py_srvsvc_NetSessCtr2_getsetters[] = {
3109 { discard_const_p(char, "count"), py_srvsvc_NetSessCtr2_get_count, py_srvsvc_NetSessCtr2_set_count },
3110 { discard_const_p(char, "array"), py_srvsvc_NetSessCtr2_get_array, py_srvsvc_NetSessCtr2_set_array },
3114 static PyObject *py_srvsvc_NetSessCtr2_new(PyTypeObject *type, PyObject *args, PyObject *kwargs)
3116 return pytalloc_new(struct srvsvc_NetSessCtr2, type);
3120 static PyTypeObject srvsvc_NetSessCtr2_Type = {
3121 PyObject_HEAD_INIT(NULL) 0,
3122 .tp_name = "srvsvc.NetSessCtr2",
3123 .tp_getset = py_srvsvc_NetSessCtr2_getsetters,
3125 .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
3126 .tp_basicsize = sizeof(pytalloc_Object),
3127 .tp_new = py_srvsvc_NetSessCtr2_new,
3131 static PyObject *py_srvsvc_NetSessInfo10_get_client(PyObject *obj, void *closure)
3133 struct srvsvc_NetSessInfo10 *object = (struct srvsvc_NetSessInfo10 *)pytalloc_get_ptr(obj);
3134 PyObject *py_client;
3135 if (object->client == NULL) {
3136 py_client = Py_None;
3137 Py_INCREF(py_client);
3139 if (object->client == NULL) {
3140 py_client = Py_None;
3141 Py_INCREF(py_client);
3143 py_client = PyUnicode_Decode(object->client, strlen(object->client), "utf-8", "ignore");
3149 static int py_srvsvc_NetSessInfo10_set_client(PyObject *py_obj, PyObject *value, void *closure)
3151 struct srvsvc_NetSessInfo10 *object = (struct srvsvc_NetSessInfo10 *)pytalloc_get_ptr(py_obj);
3152 if (value == Py_None) {
3153 object->client = NULL;
3155 object->client = NULL;
3156 if (PyUnicode_Check(value)) {
3157 object->client = PyString_AS_STRING(PyUnicode_AsEncodedString(value, "utf-8", "ignore"));
3158 } else if (PyString_Check(value)) {
3159 object->client = PyString_AS_STRING(value);
3161 PyErr_Format(PyExc_TypeError, "Expected string or unicode object, got %s", Py_TYPE(value)->tp_name);
3168 static PyObject *py_srvsvc_NetSessInfo10_get_user(PyObject *obj, void *closure)
3170 struct srvsvc_NetSessInfo10 *object = (struct srvsvc_NetSessInfo10 *)pytalloc_get_ptr(obj);
3172 if (object->user == NULL) {
3176 if (object->user == NULL) {
3180 py_user = PyUnicode_Decode(object->user, strlen(object->user), "utf-8", "ignore");
3186 static int py_srvsvc_NetSessInfo10_set_user(PyObject *py_obj, PyObject *value, void *closure)
3188 struct srvsvc_NetSessInfo10 *object = (struct srvsvc_NetSessInfo10 *)pytalloc_get_ptr(py_obj);
3189 if (value == Py_None) {
3190 object->user = NULL;
3192 object->user = NULL;
3193 if (PyUnicode_Check(value)) {
3194 object->user = PyString_AS_STRING(PyUnicode_AsEncodedString(value, "utf-8", "ignore"));
3195 } else if (PyString_Check(value)) {
3196 object->user = PyString_AS_STRING(value);
3198 PyErr_Format(PyExc_TypeError, "Expected string or unicode object, got %s", Py_TYPE(value)->tp_name);
3205 static PyObject *py_srvsvc_NetSessInfo10_get_time(PyObject *obj, void *closure)
3207 struct srvsvc_NetSessInfo10 *object = (struct srvsvc_NetSessInfo10 *)pytalloc_get_ptr(obj);
3209 py_time = PyInt_FromLong(object->time);
3213 static int py_srvsvc_NetSessInfo10_set_time(PyObject *py_obj, PyObject *value, void *closure)
3215 struct srvsvc_NetSessInfo10 *object = (struct srvsvc_NetSessInfo10 *)pytalloc_get_ptr(py_obj);
3216 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
3217 object->time = PyInt_AsLong(value);
3221 static PyObject *py_srvsvc_NetSessInfo10_get_idle_time(PyObject *obj, void *closure)
3223 struct srvsvc_NetSessInfo10 *object = (struct srvsvc_NetSessInfo10 *)pytalloc_get_ptr(obj);
3224 PyObject *py_idle_time;
3225 py_idle_time = PyInt_FromLong(object->idle_time);
3226 return py_idle_time;
3229 static int py_srvsvc_NetSessInfo10_set_idle_time(PyObject *py_obj, PyObject *value, void *closure)
3231 struct srvsvc_NetSessInfo10 *object = (struct srvsvc_NetSessInfo10 *)pytalloc_get_ptr(py_obj);
3232 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
3233 object->idle_time = PyInt_AsLong(value);
3237 static PyGetSetDef py_srvsvc_NetSessInfo10_getsetters[] = {
3238 { discard_const_p(char, "client"), py_srvsvc_NetSessInfo10_get_client, py_srvsvc_NetSessInfo10_set_client },
3239 { discard_const_p(char, "user"), py_srvsvc_NetSessInfo10_get_user, py_srvsvc_NetSessInfo10_set_user },
3240 { discard_const_p(char, "time"), py_srvsvc_NetSessInfo10_get_time, py_srvsvc_NetSessInfo10_set_time },
3241 { discard_const_p(char, "idle_time"), py_srvsvc_NetSessInfo10_get_idle_time, py_srvsvc_NetSessInfo10_set_idle_time },
3245 static PyObject *py_srvsvc_NetSessInfo10_new(PyTypeObject *type, PyObject *args, PyObject *kwargs)
3247 return pytalloc_new(struct srvsvc_NetSessInfo10, type);
3251 static PyTypeObject srvsvc_NetSessInfo10_Type = {
3252 PyObject_HEAD_INIT(NULL) 0,
3253 .tp_name = "srvsvc.NetSessInfo10",
3254 .tp_getset = py_srvsvc_NetSessInfo10_getsetters,
3256 .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
3257 .tp_basicsize = sizeof(pytalloc_Object),
3258 .tp_new = py_srvsvc_NetSessInfo10_new,
3262 static PyObject *py_srvsvc_NetSessCtr10_get_count(PyObject *obj, void *closure)
3264 struct srvsvc_NetSessCtr10 *object = (struct srvsvc_NetSessCtr10 *)pytalloc_get_ptr(obj);
3266 py_count = PyInt_FromLong(object->count);
3270 static int py_srvsvc_NetSessCtr10_set_count(PyObject *py_obj, PyObject *value, void *closure)
3272 struct srvsvc_NetSessCtr10 *object = (struct srvsvc_NetSessCtr10 *)pytalloc_get_ptr(py_obj);
3273 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
3274 object->count = PyInt_AsLong(value);
3278 static PyObject *py_srvsvc_NetSessCtr10_get_array(PyObject *obj, void *closure)
3280 struct srvsvc_NetSessCtr10 *object = (struct srvsvc_NetSessCtr10 *)pytalloc_get_ptr(obj);
3282 if (object->array == NULL) {
3284 Py_INCREF(py_array);
3286 py_array = PyList_New(object->count);
3287 if (py_array == NULL) {
3292 for (array_cntr_1 = 0; array_cntr_1 < object->count; array_cntr_1++) {
3293 PyObject *py_array_1;
3294 py_array_1 = pytalloc_reference_ex(&srvsvc_NetSessInfo10_Type, object->array, &object->array[array_cntr_1]);
3295 PyList_SetItem(py_array, array_cntr_1, py_array_1);
3302 static int py_srvsvc_NetSessCtr10_set_array(PyObject *py_obj, PyObject *value, void *closure)
3304 struct srvsvc_NetSessCtr10 *object = (struct srvsvc_NetSessCtr10 *)pytalloc_get_ptr(py_obj);
3305 talloc_unlink(pytalloc_get_mem_ctx(py_obj), object->array);
3306 if (value == Py_None) {
3307 object->array = NULL;
3309 object->array = NULL;
3310 PY_CHECK_TYPE(&PyList_Type, value, return -1;);
3313 object->array = talloc_array_ptrtype(pytalloc_get_mem_ctx(py_obj), object->array, PyList_GET_SIZE(value));
3314 if (!object->array) { return -1;; }
3315 talloc_set_name_const(object->array, "ARRAY: object->array");
3316 for (array_cntr_1 = 0; array_cntr_1 < PyList_GET_SIZE(value); array_cntr_1++) {
3317 PY_CHECK_TYPE(&srvsvc_NetSessInfo10_Type, PyList_GET_ITEM(value, array_cntr_1), return -1;);
3318 if (talloc_reference(object->array, pytalloc_get_mem_ctx(PyList_GET_ITEM(value, array_cntr_1))) == NULL) {
3322 object->array[array_cntr_1] = *(struct srvsvc_NetSessInfo10 *)pytalloc_get_ptr(PyList_GET_ITEM(value, array_cntr_1));
3329 static PyGetSetDef py_srvsvc_NetSessCtr10_getsetters[] = {
3330 { discard_const_p(char, "count"), py_srvsvc_NetSessCtr10_get_count, py_srvsvc_NetSessCtr10_set_count },
3331 { discard_const_p(char, "array"), py_srvsvc_NetSessCtr10_get_array, py_srvsvc_NetSessCtr10_set_array },
3335 static PyObject *py_srvsvc_NetSessCtr10_new(PyTypeObject *type, PyObject *args, PyObject *kwargs)
3337 return pytalloc_new(struct srvsvc_NetSessCtr10, type);
3341 static PyTypeObject srvsvc_NetSessCtr10_Type = {
3342 PyObject_HEAD_INIT(NULL) 0,
3343 .tp_name = "srvsvc.NetSessCtr10",
3344 .tp_getset = py_srvsvc_NetSessCtr10_getsetters,
3346 .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
3347 .tp_basicsize = sizeof(pytalloc_Object),
3348 .tp_new = py_srvsvc_NetSessCtr10_new,
3352 static PyObject *py_srvsvc_NetSessInfo502_get_client(PyObject *obj, void *closure)
3354 struct srvsvc_NetSessInfo502 *object = (struct srvsvc_NetSessInfo502 *)pytalloc_get_ptr(obj);
3355 PyObject *py_client;
3356 if (object->client == NULL) {
3357 py_client = Py_None;
3358 Py_INCREF(py_client);
3360 if (object->client == NULL) {
3361 py_client = Py_None;
3362 Py_INCREF(py_client);
3364 py_client = PyUnicode_Decode(object->client, strlen(object->client), "utf-8", "ignore");
3370 static int py_srvsvc_NetSessInfo502_set_client(PyObject *py_obj, PyObject *value, void *closure)
3372 struct srvsvc_NetSessInfo502 *object = (struct srvsvc_NetSessInfo502 *)pytalloc_get_ptr(py_obj);
3373 if (value == Py_None) {
3374 object->client = NULL;
3376 object->client = NULL;
3377 if (PyUnicode_Check(value)) {
3378 object->client = PyString_AS_STRING(PyUnicode_AsEncodedString(value, "utf-8", "ignore"));
3379 } else if (PyString_Check(value)) {
3380 object->client = PyString_AS_STRING(value);
3382 PyErr_Format(PyExc_TypeError, "Expected string or unicode object, got %s", Py_TYPE(value)->tp_name);
3389 static PyObject *py_srvsvc_NetSessInfo502_get_user(PyObject *obj, void *closure)
3391 struct srvsvc_NetSessInfo502 *object = (struct srvsvc_NetSessInfo502 *)pytalloc_get_ptr(obj);
3393 if (object->user == NULL) {
3397 if (object->user == NULL) {
3401 py_user = PyUnicode_Decode(object->user, strlen(object->user), "utf-8", "ignore");
3407 static int py_srvsvc_NetSessInfo502_set_user(PyObject *py_obj, PyObject *value, void *closure)
3409 struct srvsvc_NetSessInfo502 *object = (struct srvsvc_NetSessInfo502 *)pytalloc_get_ptr(py_obj);
3410 if (value == Py_None) {
3411 object->user = NULL;
3413 object->user = NULL;
3414 if (PyUnicode_Check(value)) {
3415 object->user = PyString_AS_STRING(PyUnicode_AsEncodedString(value, "utf-8", "ignore"));
3416 } else if (PyString_Check(value)) {
3417 object->user = PyString_AS_STRING(value);
3419 PyErr_Format(PyExc_TypeError, "Expected string or unicode object, got %s", Py_TYPE(value)->tp_name);
3426 static PyObject *py_srvsvc_NetSessInfo502_get_num_open(PyObject *obj, void *closure)
3428 struct srvsvc_NetSessInfo502 *object = (struct srvsvc_NetSessInfo502 *)pytalloc_get_ptr(obj);
3429 PyObject *py_num_open;
3430 py_num_open = PyInt_FromLong(object->num_open);
3434 static int py_srvsvc_NetSessInfo502_set_num_open(PyObject *py_obj, PyObject *value, void *closure)
3436 struct srvsvc_NetSessInfo502 *object = (struct srvsvc_NetSessInfo502 *)pytalloc_get_ptr(py_obj);
3437 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
3438 object->num_open = PyInt_AsLong(value);
3442 static PyObject *py_srvsvc_NetSessInfo502_get_time(PyObject *obj, void *closure)
3444 struct srvsvc_NetSessInfo502 *object = (struct srvsvc_NetSessInfo502 *)pytalloc_get_ptr(obj);
3446 py_time = PyInt_FromLong(object->time);
3450 static int py_srvsvc_NetSessInfo502_set_time(PyObject *py_obj, PyObject *value, void *closure)
3452 struct srvsvc_NetSessInfo502 *object = (struct srvsvc_NetSessInfo502 *)pytalloc_get_ptr(py_obj);
3453 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
3454 object->time = PyInt_AsLong(value);
3458 static PyObject *py_srvsvc_NetSessInfo502_get_idle_time(PyObject *obj, void *closure)
3460 struct srvsvc_NetSessInfo502 *object = (struct srvsvc_NetSessInfo502 *)pytalloc_get_ptr(obj);
3461 PyObject *py_idle_time;
3462 py_idle_time = PyInt_FromLong(object->idle_time);
3463 return py_idle_time;
3466 static int py_srvsvc_NetSessInfo502_set_idle_time(PyObject *py_obj, PyObject *value, void *closure)
3468 struct srvsvc_NetSessInfo502 *object = (struct srvsvc_NetSessInfo502 *)pytalloc_get_ptr(py_obj);
3469 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
3470 object->idle_time = PyInt_AsLong(value);
3474 static PyObject *py_srvsvc_NetSessInfo502_get_user_flags(PyObject *obj, void *closure)
3476 struct srvsvc_NetSessInfo502 *object = (struct srvsvc_NetSessInfo502 *)pytalloc_get_ptr(obj);
3477 PyObject *py_user_flags;
3478 py_user_flags = PyInt_FromLong(object->user_flags);
3479 return py_user_flags;
3482 static int py_srvsvc_NetSessInfo502_set_user_flags(PyObject *py_obj, PyObject *value, void *closure)
3484 struct srvsvc_NetSessInfo502 *object = (struct srvsvc_NetSessInfo502 *)pytalloc_get_ptr(py_obj);
3485 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
3486 object->user_flags = PyInt_AsLong(value);
3490 static PyObject *py_srvsvc_NetSessInfo502_get_client_type(PyObject *obj, void *closure)
3492 struct srvsvc_NetSessInfo502 *object = (struct srvsvc_NetSessInfo502 *)pytalloc_get_ptr(obj);
3493 PyObject *py_client_type;
3494 if (object->client_type == NULL) {
3495 py_client_type = Py_None;
3496 Py_INCREF(py_client_type);
3498 if (object->client_type == NULL) {
3499 py_client_type = Py_None;
3500 Py_INCREF(py_client_type);
3502 py_client_type = PyUnicode_Decode(object->client_type, strlen(object->client_type), "utf-8", "ignore");
3505 return py_client_type;
3508 static int py_srvsvc_NetSessInfo502_set_client_type(PyObject *py_obj, PyObject *value, void *closure)
3510 struct srvsvc_NetSessInfo502 *object = (struct srvsvc_NetSessInfo502 *)pytalloc_get_ptr(py_obj);
3511 if (value == Py_None) {
3512 object->client_type = NULL;
3514 object->client_type = NULL;
3515 if (PyUnicode_Check(value)) {
3516 object->client_type = PyString_AS_STRING(PyUnicode_AsEncodedString(value, "utf-8", "ignore"));
3517 } else if (PyString_Check(value)) {
3518 object->client_type = PyString_AS_STRING(value);
3520 PyErr_Format(PyExc_TypeError, "Expected string or unicode object, got %s", Py_TYPE(value)->tp_name);
3527 static PyObject *py_srvsvc_NetSessInfo502_get_transport(PyObject *obj, void *closure)
3529 struct srvsvc_NetSessInfo502 *object = (struct srvsvc_NetSessInfo502 *)pytalloc_get_ptr(obj);
3530 PyObject *py_transport;
3531 if (object->transport == NULL) {
3532 py_transport = Py_None;
3533 Py_INCREF(py_transport);
3535 if (object->transport == NULL) {
3536 py_transport = Py_None;
3537 Py_INCREF(py_transport);
3539 py_transport = PyUnicode_Decode(object->transport, strlen(object->transport), "utf-8", "ignore");
3542 return py_transport;
3545 static int py_srvsvc_NetSessInfo502_set_transport(PyObject *py_obj, PyObject *value, void *closure)
3547 struct srvsvc_NetSessInfo502 *object = (struct srvsvc_NetSessInfo502 *)pytalloc_get_ptr(py_obj);
3548 if (value == Py_None) {
3549 object->transport = NULL;
3551 object->transport = NULL;
3552 if (PyUnicode_Check(value)) {
3553 object->transport = PyString_AS_STRING(PyUnicode_AsEncodedString(value, "utf-8", "ignore"));
3554 } else if (PyString_Check(value)) {
3555 object->transport = PyString_AS_STRING(value);
3557 PyErr_Format(PyExc_TypeError, "Expected string or unicode object, got %s", Py_TYPE(value)->tp_name);
3564 static PyGetSetDef py_srvsvc_NetSessInfo502_getsetters[] = {
3565 { discard_const_p(char, "client"), py_srvsvc_NetSessInfo502_get_client, py_srvsvc_NetSessInfo502_set_client },
3566 { discard_const_p(char, "user"), py_srvsvc_NetSessInfo502_get_user, py_srvsvc_NetSessInfo502_set_user },
3567 { discard_const_p(char, "num_open"), py_srvsvc_NetSessInfo502_get_num_open, py_srvsvc_NetSessInfo502_set_num_open },
3568 { discard_const_p(char, "time"), py_srvsvc_NetSessInfo502_get_time, py_srvsvc_NetSessInfo502_set_time },
3569 { discard_const_p(char, "idle_time"), py_srvsvc_NetSessInfo502_get_idle_time, py_srvsvc_NetSessInfo502_set_idle_time },
3570 { discard_const_p(char, "user_flags"), py_srvsvc_NetSessInfo502_get_user_flags, py_srvsvc_NetSessInfo502_set_user_flags },
3571 { discard_const_p(char, "client_type"), py_srvsvc_NetSessInfo502_get_client_type, py_srvsvc_NetSessInfo502_set_client_type },
3572 { discard_const_p(char, "transport"), py_srvsvc_NetSessInfo502_get_transport, py_srvsvc_NetSessInfo502_set_transport },
3576 static PyObject *py_srvsvc_NetSessInfo502_new(PyTypeObject *type, PyObject *args, PyObject *kwargs)
3578 return pytalloc_new(struct srvsvc_NetSessInfo502, type);
3582 static PyTypeObject srvsvc_NetSessInfo502_Type = {
3583 PyObject_HEAD_INIT(NULL) 0,
3584 .tp_name = "srvsvc.NetSessInfo502",
3585 .tp_getset = py_srvsvc_NetSessInfo502_getsetters,
3587 .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
3588 .tp_basicsize = sizeof(pytalloc_Object),
3589 .tp_new = py_srvsvc_NetSessInfo502_new,
3593 static PyObject *py_srvsvc_NetSessCtr502_get_count(PyObject *obj, void *closure)
3595 struct srvsvc_NetSessCtr502 *object = (struct srvsvc_NetSessCtr502 *)pytalloc_get_ptr(obj);
3597 py_count = PyInt_FromLong(object->count);
3601 static int py_srvsvc_NetSessCtr502_set_count(PyObject *py_obj, PyObject *value, void *closure)
3603 struct srvsvc_NetSessCtr502 *object = (struct srvsvc_NetSessCtr502 *)pytalloc_get_ptr(py_obj);
3604 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
3605 object->count = PyInt_AsLong(value);
3609 static PyObject *py_srvsvc_NetSessCtr502_get_array(PyObject *obj, void *closure)
3611 struct srvsvc_NetSessCtr502 *object = (struct srvsvc_NetSessCtr502 *)pytalloc_get_ptr(obj);
3613 if (object->array == NULL) {
3615 Py_INCREF(py_array);
3617 py_array = PyList_New(object->count);
3618 if (py_array == NULL) {
3623 for (array_cntr_1 = 0; array_cntr_1 < object->count; array_cntr_1++) {
3624 PyObject *py_array_1;
3625 py_array_1 = pytalloc_reference_ex(&srvsvc_NetSessInfo502_Type, object->array, &object->array[array_cntr_1]);
3626 PyList_SetItem(py_array, array_cntr_1, py_array_1);
3633 static int py_srvsvc_NetSessCtr502_set_array(PyObject *py_obj, PyObject *value, void *closure)
3635 struct srvsvc_NetSessCtr502 *object = (struct srvsvc_NetSessCtr502 *)pytalloc_get_ptr(py_obj);
3636 talloc_unlink(pytalloc_get_mem_ctx(py_obj), object->array);
3637 if (value == Py_None) {
3638 object->array = NULL;
3640 object->array = NULL;
3641 PY_CHECK_TYPE(&PyList_Type, value, return -1;);
3644 object->array = talloc_array_ptrtype(pytalloc_get_mem_ctx(py_obj), object->array, PyList_GET_SIZE(value));
3645 if (!object->array) { return -1;; }
3646 talloc_set_name_const(object->array, "ARRAY: object->array");
3647 for (array_cntr_1 = 0; array_cntr_1 < PyList_GET_SIZE(value); array_cntr_1++) {
3648 PY_CHECK_TYPE(&srvsvc_NetSessInfo502_Type, PyList_GET_ITEM(value, array_cntr_1), return -1;);
3649 if (talloc_reference(object->array, pytalloc_get_mem_ctx(PyList_GET_ITEM(value, array_cntr_1))) == NULL) {
3653 object->array[array_cntr_1] = *(struct srvsvc_NetSessInfo502 *)pytalloc_get_ptr(PyList_GET_ITEM(value, array_cntr_1));
3660 static PyGetSetDef py_srvsvc_NetSessCtr502_getsetters[] = {
3661 { discard_const_p(char, "count"), py_srvsvc_NetSessCtr502_get_count, py_srvsvc_NetSessCtr502_set_count },
3662 { discard_const_p(char, "array"), py_srvsvc_NetSessCtr502_get_array, py_srvsvc_NetSessCtr502_set_array },
3666 static PyObject *py_srvsvc_NetSessCtr502_new(PyTypeObject *type, PyObject *args, PyObject *kwargs)
3668 return pytalloc_new(struct srvsvc_NetSessCtr502, type);
3672 static PyTypeObject srvsvc_NetSessCtr502_Type = {
3673 PyObject_HEAD_INIT(NULL) 0,
3674 .tp_name = "srvsvc.NetSessCtr502",
3675 .tp_getset = py_srvsvc_NetSessCtr502_getsetters,
3677 .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
3678 .tp_basicsize = sizeof(pytalloc_Object),
3679 .tp_new = py_srvsvc_NetSessCtr502_new,
3682 PyObject *py_import_srvsvc_NetSessCtr(TALLOC_CTX *mem_ctx, int level, union srvsvc_NetSessCtr *in)
3688 if (in->ctr0 == NULL) {
3692 ret = pytalloc_reference_ex(&srvsvc_NetSessCtr0_Type, in->ctr0, in->ctr0);
3697 if (in->ctr1 == NULL) {
3701 ret = pytalloc_reference_ex(&srvsvc_NetSessCtr1_Type, in->ctr1, in->ctr1);
3706 if (in->ctr2 == NULL) {
3710 ret = pytalloc_reference_ex(&srvsvc_NetSessCtr2_Type, in->ctr2, in->ctr2);
3715 if (in->ctr10 == NULL) {
3719 ret = pytalloc_reference_ex(&srvsvc_NetSessCtr10_Type, in->ctr10, in->ctr10);
3724 if (in->ctr502 == NULL) {
3728 ret = pytalloc_reference_ex(&srvsvc_NetSessCtr502_Type, in->ctr502, in->ctr502);
3738 PyErr_SetString(PyExc_TypeError, "unknown union level");
3742 union srvsvc_NetSessCtr *py_export_srvsvc_NetSessCtr(TALLOC_CTX *mem_ctx, int level, PyObject *in)
3744 union srvsvc_NetSessCtr *ret = talloc_zero(mem_ctx, union srvsvc_NetSessCtr);
3747 if (in == Py_None) {
3751 PY_CHECK_TYPE(&srvsvc_NetSessCtr0_Type, in, talloc_free(ret); return NULL;);
3752 if (talloc_reference(mem_ctx, pytalloc_get_mem_ctx(in)) == NULL) {
3754 talloc_free(ret); return NULL;
3756 ret->ctr0 = (struct srvsvc_NetSessCtr0 *)pytalloc_get_ptr(in);
3761 if (in == Py_None) {
3765 PY_CHECK_TYPE(&srvsvc_NetSessCtr1_Type, in, talloc_free(ret); return NULL;);
3766 if (talloc_reference(mem_ctx, pytalloc_get_mem_ctx(in)) == NULL) {
3768 talloc_free(ret); return NULL;
3770 ret->ctr1 = (struct srvsvc_NetSessCtr1 *)pytalloc_get_ptr(in);
3775 if (in == Py_None) {
3779 PY_CHECK_TYPE(&srvsvc_NetSessCtr2_Type, in, talloc_free(ret); return NULL;);
3780 if (talloc_reference(mem_ctx, pytalloc_get_mem_ctx(in)) == NULL) {
3782 talloc_free(ret); return NULL;
3784 ret->ctr2 = (struct srvsvc_NetSessCtr2 *)pytalloc_get_ptr(in);
3789 if (in == Py_None) {
3793 PY_CHECK_TYPE(&srvsvc_NetSessCtr10_Type, in, talloc_free(ret); return NULL;);
3794 if (talloc_reference(mem_ctx, pytalloc_get_mem_ctx(in)) == NULL) {
3796 talloc_free(ret); return NULL;
3798 ret->ctr10 = (struct srvsvc_NetSessCtr10 *)pytalloc_get_ptr(in);
3803 if (in == Py_None) {
3807 PY_CHECK_TYPE(&srvsvc_NetSessCtr502_Type, in, talloc_free(ret); return NULL;);
3808 if (talloc_reference(mem_ctx, pytalloc_get_mem_ctx(in)) == NULL) {
3810 talloc_free(ret); return NULL;
3812 ret->ctr502 = (struct srvsvc_NetSessCtr502 *)pytalloc_get_ptr(in);
3825 static PyObject *py_srvsvc_NetSessInfoCtr_get_level(PyObject *obj, void *closure)
3827 struct srvsvc_NetSessInfoCtr *object = (struct srvsvc_NetSessInfoCtr *)pytalloc_get_ptr(obj);
3829 py_level = PyInt_FromLong(object->level);
3833 static int py_srvsvc_NetSessInfoCtr_set_level(PyObject *py_obj, PyObject *value, void *closure)
3835 struct srvsvc_NetSessInfoCtr *object = (struct srvsvc_NetSessInfoCtr *)pytalloc_get_ptr(py_obj);
3836 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
3837 object->level = PyInt_AsLong(value);
3841 static PyObject *py_srvsvc_NetSessInfoCtr_get_ctr(PyObject *obj, void *closure)
3843 struct srvsvc_NetSessInfoCtr *object = (struct srvsvc_NetSessInfoCtr *)pytalloc_get_ptr(obj);
3845 py_ctr = py_import_srvsvc_NetSessCtr(pytalloc_get_mem_ctx(obj), object->level, &object->ctr);
3846 if (py_ctr == NULL) {
3852 static int py_srvsvc_NetSessInfoCtr_set_ctr(PyObject *py_obj, PyObject *value, void *closure)
3854 struct srvsvc_NetSessInfoCtr *object = (struct srvsvc_NetSessInfoCtr *)pytalloc_get_ptr(py_obj);
3856 union srvsvc_NetSessCtr *ctr_switch_0;
3857 ctr_switch_0 = py_export_srvsvc_NetSessCtr(pytalloc_get_mem_ctx(py_obj), object->level, value);
3858 if (ctr_switch_0 == NULL) {
3861 object->ctr = *ctr_switch_0;
3866 static PyGetSetDef py_srvsvc_NetSessInfoCtr_getsetters[] = {
3867 { discard_const_p(char, "level"), py_srvsvc_NetSessInfoCtr_get_level, py_srvsvc_NetSessInfoCtr_set_level },
3868 { discard_const_p(char, "ctr"), py_srvsvc_NetSessInfoCtr_get_ctr, py_srvsvc_NetSessInfoCtr_set_ctr },
3872 static PyObject *py_srvsvc_NetSessInfoCtr_new(PyTypeObject *type, PyObject *args, PyObject *kwargs)
3874 return pytalloc_new(struct srvsvc_NetSessInfoCtr, type);
3878 static PyTypeObject srvsvc_NetSessInfoCtr_Type = {
3879 PyObject_HEAD_INIT(NULL) 0,
3880 .tp_name = "srvsvc.NetSessInfoCtr",
3881 .tp_getset = py_srvsvc_NetSessInfoCtr_getsetters,
3883 .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
3884 .tp_basicsize = sizeof(pytalloc_Object),
3885 .tp_new = py_srvsvc_NetSessInfoCtr_new,
3889 static PyObject *py_srvsvc_NetShareInfo0_get_name(PyObject *obj, void *closure)
3891 struct srvsvc_NetShareInfo0 *object = (struct srvsvc_NetShareInfo0 *)pytalloc_get_ptr(obj);
3893 if (object->name == NULL) {
3897 if (object->name == NULL) {
3901 py_name = PyUnicode_Decode(object->name, strlen(object->name), "utf-8", "ignore");
3907 static int py_srvsvc_NetShareInfo0_set_name(PyObject *py_obj, PyObject *value, void *closure)
3909 struct srvsvc_NetShareInfo0 *object = (struct srvsvc_NetShareInfo0 *)pytalloc_get_ptr(py_obj);
3910 if (value == Py_None) {
3911 object->name = NULL;
3913 object->name = NULL;
3914 if (PyUnicode_Check(value)) {
3915 object->name = PyString_AS_STRING(PyUnicode_AsEncodedString(value, "utf-8", "ignore"));
3916 } else if (PyString_Check(value)) {
3917 object->name = PyString_AS_STRING(value);
3919 PyErr_Format(PyExc_TypeError, "Expected string or unicode object, got %s", Py_TYPE(value)->tp_name);
3926 static PyGetSetDef py_srvsvc_NetShareInfo0_getsetters[] = {
3927 { discard_const_p(char, "name"), py_srvsvc_NetShareInfo0_get_name, py_srvsvc_NetShareInfo0_set_name },
3931 static PyObject *py_srvsvc_NetShareInfo0_new(PyTypeObject *type, PyObject *args, PyObject *kwargs)
3933 return pytalloc_new(struct srvsvc_NetShareInfo0, type);
3937 static PyTypeObject srvsvc_NetShareInfo0_Type = {
3938 PyObject_HEAD_INIT(NULL) 0,
3939 .tp_name = "srvsvc.NetShareInfo0",
3940 .tp_getset = py_srvsvc_NetShareInfo0_getsetters,
3942 .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
3943 .tp_basicsize = sizeof(pytalloc_Object),
3944 .tp_new = py_srvsvc_NetShareInfo0_new,
3948 static PyObject *py_srvsvc_NetShareCtr0_get_count(PyObject *obj, void *closure)
3950 struct srvsvc_NetShareCtr0 *object = (struct srvsvc_NetShareCtr0 *)pytalloc_get_ptr(obj);
3952 py_count = PyInt_FromLong(object->count);
3956 static int py_srvsvc_NetShareCtr0_set_count(PyObject *py_obj, PyObject *value, void *closure)
3958 struct srvsvc_NetShareCtr0 *object = (struct srvsvc_NetShareCtr0 *)pytalloc_get_ptr(py_obj);
3959 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
3960 object->count = PyInt_AsLong(value);
3964 static PyObject *py_srvsvc_NetShareCtr0_get_array(PyObject *obj, void *closure)
3966 struct srvsvc_NetShareCtr0 *object = (struct srvsvc_NetShareCtr0 *)pytalloc_get_ptr(obj);
3968 if (object->array == NULL) {
3970 Py_INCREF(py_array);
3972 py_array = PyList_New(object->count);
3973 if (py_array == NULL) {
3978 for (array_cntr_1 = 0; array_cntr_1 < object->count; array_cntr_1++) {
3979 PyObject *py_array_1;
3980 py_array_1 = pytalloc_reference_ex(&srvsvc_NetShareInfo0_Type, object->array, &object->array[array_cntr_1]);
3981 PyList_SetItem(py_array, array_cntr_1, py_array_1);
3988 static int py_srvsvc_NetShareCtr0_set_array(PyObject *py_obj, PyObject *value, void *closure)
3990 struct srvsvc_NetShareCtr0 *object = (struct srvsvc_NetShareCtr0 *)pytalloc_get_ptr(py_obj);
3991 talloc_unlink(pytalloc_get_mem_ctx(py_obj), object->array);
3992 if (value == Py_None) {
3993 object->array = NULL;
3995 object->array = NULL;
3996 PY_CHECK_TYPE(&PyList_Type, value, return -1;);
3999 object->array = talloc_array_ptrtype(pytalloc_get_mem_ctx(py_obj), object->array, PyList_GET_SIZE(value));
4000 if (!object->array) { return -1;; }
4001 talloc_set_name_const(object->array, "ARRAY: object->array");
4002 for (array_cntr_1 = 0; array_cntr_1 < PyList_GET_SIZE(value); array_cntr_1++) {
4003 PY_CHECK_TYPE(&srvsvc_NetShareInfo0_Type, PyList_GET_ITEM(value, array_cntr_1), return -1;);
4004 if (talloc_reference(object->array, pytalloc_get_mem_ctx(PyList_GET_ITEM(value, array_cntr_1))) == NULL) {
4008 object->array[array_cntr_1] = *(struct srvsvc_NetShareInfo0 *)pytalloc_get_ptr(PyList_GET_ITEM(value, array_cntr_1));
4015 static PyGetSetDef py_srvsvc_NetShareCtr0_getsetters[] = {
4016 { discard_const_p(char, "count"), py_srvsvc_NetShareCtr0_get_count, py_srvsvc_NetShareCtr0_set_count },
4017 { discard_const_p(char, "array"), py_srvsvc_NetShareCtr0_get_array, py_srvsvc_NetShareCtr0_set_array },
4021 static PyObject *py_srvsvc_NetShareCtr0_new(PyTypeObject *type, PyObject *args, PyObject *kwargs)
4023 return pytalloc_new(struct srvsvc_NetShareCtr0, type);
4027 static PyTypeObject srvsvc_NetShareCtr0_Type = {
4028 PyObject_HEAD_INIT(NULL) 0,
4029 .tp_name = "srvsvc.NetShareCtr0",
4030 .tp_getset = py_srvsvc_NetShareCtr0_getsetters,
4032 .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
4033 .tp_basicsize = sizeof(pytalloc_Object),
4034 .tp_new = py_srvsvc_NetShareCtr0_new,
4038 static PyObject *py_srvsvc_NetShareInfo1_get_name(PyObject *obj, void *closure)
4040 struct srvsvc_NetShareInfo1 *object = (struct srvsvc_NetShareInfo1 *)pytalloc_get_ptr(obj);
4042 if (object->name == NULL) {
4046 if (object->name == NULL) {
4050 py_name = PyUnicode_Decode(object->name, strlen(object->name), "utf-8", "ignore");
4056 static int py_srvsvc_NetShareInfo1_set_name(PyObject *py_obj, PyObject *value, void *closure)
4058 struct srvsvc_NetShareInfo1 *object = (struct srvsvc_NetShareInfo1 *)pytalloc_get_ptr(py_obj);
4059 if (value == Py_None) {
4060 object->name = NULL;
4062 object->name = NULL;
4063 if (PyUnicode_Check(value)) {
4064 object->name = PyString_AS_STRING(PyUnicode_AsEncodedString(value, "utf-8", "ignore"));
4065 } else if (PyString_Check(value)) {
4066 object->name = PyString_AS_STRING(value);
4068 PyErr_Format(PyExc_TypeError, "Expected string or unicode object, got %s", Py_TYPE(value)->tp_name);
4075 static PyObject *py_srvsvc_NetShareInfo1_get_type(PyObject *obj, void *closure)
4077 struct srvsvc_NetShareInfo1 *object = (struct srvsvc_NetShareInfo1 *)pytalloc_get_ptr(obj);
4079 py_type = PyInt_FromLong(object->type);
4083 static int py_srvsvc_NetShareInfo1_set_type(PyObject *py_obj, PyObject *value, void *closure)
4085 struct srvsvc_NetShareInfo1 *object = (struct srvsvc_NetShareInfo1 *)pytalloc_get_ptr(py_obj);
4086 if (PyLong_Check(value)) {
4087 object->type = PyLong_AsLongLong(value);
4088 } else if (PyInt_Check(value)) {
4089 object->type = PyInt_AsLong(value);
4091 PyErr_Format(PyExc_TypeError, "Expected type %s or %s",\
4092 PyInt_Type.tp_name, PyLong_Type.tp_name);
4098 static PyObject *py_srvsvc_NetShareInfo1_get_comment(PyObject *obj, void *closure)
4100 struct srvsvc_NetShareInfo1 *object = (struct srvsvc_NetShareInfo1 *)pytalloc_get_ptr(obj);
4101 PyObject *py_comment;
4102 if (object->comment == NULL) {
4103 py_comment = Py_None;
4104 Py_INCREF(py_comment);
4106 if (object->comment == NULL) {
4107 py_comment = Py_None;
4108 Py_INCREF(py_comment);
4110 py_comment = PyUnicode_Decode(object->comment, strlen(object->comment), "utf-8", "ignore");
4116 static int py_srvsvc_NetShareInfo1_set_comment(PyObject *py_obj, PyObject *value, void *closure)
4118 struct srvsvc_NetShareInfo1 *object = (struct srvsvc_NetShareInfo1 *)pytalloc_get_ptr(py_obj);
4119 if (value == Py_None) {
4120 object->comment = NULL;
4122 object->comment = NULL;
4123 if (PyUnicode_Check(value)) {
4124 object->comment = PyString_AS_STRING(PyUnicode_AsEncodedString(value, "utf-8", "ignore"));
4125 } else if (PyString_Check(value)) {
4126 object->comment = PyString_AS_STRING(value);
4128 PyErr_Format(PyExc_TypeError, "Expected string or unicode object, got %s", Py_TYPE(value)->tp_name);
4135 static PyGetSetDef py_srvsvc_NetShareInfo1_getsetters[] = {
4136 { discard_const_p(char, "name"), py_srvsvc_NetShareInfo1_get_name, py_srvsvc_NetShareInfo1_set_name },
4137 { discard_const_p(char, "type"), py_srvsvc_NetShareInfo1_get_type, py_srvsvc_NetShareInfo1_set_type },
4138 { discard_const_p(char, "comment"), py_srvsvc_NetShareInfo1_get_comment, py_srvsvc_NetShareInfo1_set_comment },
4142 static PyObject *py_srvsvc_NetShareInfo1_new(PyTypeObject *type, PyObject *args, PyObject *kwargs)
4144 return pytalloc_new(struct srvsvc_NetShareInfo1, type);
4148 static PyTypeObject srvsvc_NetShareInfo1_Type = {
4149 PyObject_HEAD_INIT(NULL) 0,
4150 .tp_name = "srvsvc.NetShareInfo1",
4151 .tp_getset = py_srvsvc_NetShareInfo1_getsetters,
4153 .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
4154 .tp_basicsize = sizeof(pytalloc_Object),
4155 .tp_new = py_srvsvc_NetShareInfo1_new,
4159 static PyObject *py_srvsvc_NetShareCtr1_get_count(PyObject *obj, void *closure)
4161 struct srvsvc_NetShareCtr1 *object = (struct srvsvc_NetShareCtr1 *)pytalloc_get_ptr(obj);
4163 py_count = PyInt_FromLong(object->count);
4167 static int py_srvsvc_NetShareCtr1_set_count(PyObject *py_obj, PyObject *value, void *closure)
4169 struct srvsvc_NetShareCtr1 *object = (struct srvsvc_NetShareCtr1 *)pytalloc_get_ptr(py_obj);
4170 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
4171 object->count = PyInt_AsLong(value);
4175 static PyObject *py_srvsvc_NetShareCtr1_get_array(PyObject *obj, void *closure)
4177 struct srvsvc_NetShareCtr1 *object = (struct srvsvc_NetShareCtr1 *)pytalloc_get_ptr(obj);
4179 if (object->array == NULL) {
4181 Py_INCREF(py_array);
4183 py_array = PyList_New(object->count);
4184 if (py_array == NULL) {
4189 for (array_cntr_1 = 0; array_cntr_1 < object->count; array_cntr_1++) {
4190 PyObject *py_array_1;
4191 py_array_1 = pytalloc_reference_ex(&srvsvc_NetShareInfo1_Type, object->array, &object->array[array_cntr_1]);
4192 PyList_SetItem(py_array, array_cntr_1, py_array_1);
4199 static int py_srvsvc_NetShareCtr1_set_array(PyObject *py_obj, PyObject *value, void *closure)
4201 struct srvsvc_NetShareCtr1 *object = (struct srvsvc_NetShareCtr1 *)pytalloc_get_ptr(py_obj);
4202 talloc_unlink(pytalloc_get_mem_ctx(py_obj), object->array);
4203 if (value == Py_None) {
4204 object->array = NULL;
4206 object->array = NULL;
4207 PY_CHECK_TYPE(&PyList_Type, value, return -1;);
4210 object->array = talloc_array_ptrtype(pytalloc_get_mem_ctx(py_obj), object->array, PyList_GET_SIZE(value));
4211 if (!object->array) { return -1;; }
4212 talloc_set_name_const(object->array, "ARRAY: object->array");
4213 for (array_cntr_1 = 0; array_cntr_1 < PyList_GET_SIZE(value); array_cntr_1++) {
4214 PY_CHECK_TYPE(&srvsvc_NetShareInfo1_Type, PyList_GET_ITEM(value, array_cntr_1), return -1;);
4215 if (talloc_reference(object->array, pytalloc_get_mem_ctx(PyList_GET_ITEM(value, array_cntr_1))) == NULL) {
4219 object->array[array_cntr_1] = *(struct srvsvc_NetShareInfo1 *)pytalloc_get_ptr(PyList_GET_ITEM(value, array_cntr_1));
4226 static PyGetSetDef py_srvsvc_NetShareCtr1_getsetters[] = {
4227 { discard_const_p(char, "count"), py_srvsvc_NetShareCtr1_get_count, py_srvsvc_NetShareCtr1_set_count },
4228 { discard_const_p(char, "array"), py_srvsvc_NetShareCtr1_get_array, py_srvsvc_NetShareCtr1_set_array },
4232 static PyObject *py_srvsvc_NetShareCtr1_new(PyTypeObject *type, PyObject *args, PyObject *kwargs)
4234 return pytalloc_new(struct srvsvc_NetShareCtr1, type);
4238 static PyTypeObject srvsvc_NetShareCtr1_Type = {
4239 PyObject_HEAD_INIT(NULL) 0,
4240 .tp_name = "srvsvc.NetShareCtr1",
4241 .tp_getset = py_srvsvc_NetShareCtr1_getsetters,
4243 .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
4244 .tp_basicsize = sizeof(pytalloc_Object),
4245 .tp_new = py_srvsvc_NetShareCtr1_new,
4249 static PyObject *py_srvsvc_NetShareInfo2_get_name(PyObject *obj, void *closure)
4251 struct srvsvc_NetShareInfo2 *object = (struct srvsvc_NetShareInfo2 *)pytalloc_get_ptr(obj);
4253 if (object->name == NULL) {
4257 if (object->name == NULL) {
4261 py_name = PyUnicode_Decode(object->name, strlen(object->name), "utf-8", "ignore");
4267 static int py_srvsvc_NetShareInfo2_set_name(PyObject *py_obj, PyObject *value, void *closure)
4269 struct srvsvc_NetShareInfo2 *object = (struct srvsvc_NetShareInfo2 *)pytalloc_get_ptr(py_obj);
4270 if (value == Py_None) {
4271 object->name = NULL;
4273 object->name = NULL;
4274 if (PyUnicode_Check(value)) {
4275 object->name = PyString_AS_STRING(PyUnicode_AsEncodedString(value, "utf-8", "ignore"));
4276 } else if (PyString_Check(value)) {
4277 object->name = PyString_AS_STRING(value);
4279 PyErr_Format(PyExc_TypeError, "Expected string or unicode object, got %s", Py_TYPE(value)->tp_name);
4286 static PyObject *py_srvsvc_NetShareInfo2_get_type(PyObject *obj, void *closure)
4288 struct srvsvc_NetShareInfo2 *object = (struct srvsvc_NetShareInfo2 *)pytalloc_get_ptr(obj);
4290 py_type = PyInt_FromLong(object->type);
4294 static int py_srvsvc_NetShareInfo2_set_type(PyObject *py_obj, PyObject *value, void *closure)
4296 struct srvsvc_NetShareInfo2 *object = (struct srvsvc_NetShareInfo2 *)pytalloc_get_ptr(py_obj);
4297 if (PyLong_Check(value)) {
4298 object->type = PyLong_AsLongLong(value);
4299 } else if (PyInt_Check(value)) {
4300 object->type = PyInt_AsLong(value);
4302 PyErr_Format(PyExc_TypeError, "Expected type %s or %s",\
4303 PyInt_Type.tp_name, PyLong_Type.tp_name);
4309 static PyObject *py_srvsvc_NetShareInfo2_get_comment(PyObject *obj, void *closure)
4311 struct srvsvc_NetShareInfo2 *object = (struct srvsvc_NetShareInfo2 *)pytalloc_get_ptr(obj);
4312 PyObject *py_comment;
4313 if (object->comment == NULL) {
4314 py_comment = Py_None;
4315 Py_INCREF(py_comment);
4317 if (object->comment == NULL) {
4318 py_comment = Py_None;
4319 Py_INCREF(py_comment);
4321 py_comment = PyUnicode_Decode(object->comment, strlen(object->comment), "utf-8", "ignore");
4327 static int py_srvsvc_NetShareInfo2_set_comment(PyObject *py_obj, PyObject *value, void *closure)
4329 struct srvsvc_NetShareInfo2 *object = (struct srvsvc_NetShareInfo2 *)pytalloc_get_ptr(py_obj);
4330 if (value == Py_None) {
4331 object->comment = NULL;
4333 object->comment = NULL;
4334 if (PyUnicode_Check(value)) {
4335 object->comment = PyString_AS_STRING(PyUnicode_AsEncodedString(value, "utf-8", "ignore"));
4336 } else if (PyString_Check(value)) {
4337 object->comment = PyString_AS_STRING(value);
4339 PyErr_Format(PyExc_TypeError, "Expected string or unicode object, got %s", Py_TYPE(value)->tp_name);
4346 static PyObject *py_srvsvc_NetShareInfo2_get_permissions(PyObject *obj, void *closure)
4348 struct srvsvc_NetShareInfo2 *object = (struct srvsvc_NetShareInfo2 *)pytalloc_get_ptr(obj);
4349 PyObject *py_permissions;
4350 py_permissions = PyInt_FromLong(object->permissions);
4351 return py_permissions;
4354 static int py_srvsvc_NetShareInfo2_set_permissions(PyObject *py_obj, PyObject *value, void *closure)
4356 struct srvsvc_NetShareInfo2 *object = (struct srvsvc_NetShareInfo2 *)pytalloc_get_ptr(py_obj);
4357 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
4358 object->permissions = PyInt_AsLong(value);
4362 static PyObject *py_srvsvc_NetShareInfo2_get_max_users(PyObject *obj, void *closure)
4364 struct srvsvc_NetShareInfo2 *object = (struct srvsvc_NetShareInfo2 *)pytalloc_get_ptr(obj);
4365 PyObject *py_max_users;
4366 py_max_users = PyInt_FromLong(object->max_users);
4367 return py_max_users;
4370 static int py_srvsvc_NetShareInfo2_set_max_users(PyObject *py_obj, PyObject *value, void *closure)
4372 struct srvsvc_NetShareInfo2 *object = (struct srvsvc_NetShareInfo2 *)pytalloc_get_ptr(py_obj);
4373 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
4374 object->max_users = PyInt_AsLong(value);
4378 static PyObject *py_srvsvc_NetShareInfo2_get_current_users(PyObject *obj, void *closure)
4380 struct srvsvc_NetShareInfo2 *object = (struct srvsvc_NetShareInfo2 *)pytalloc_get_ptr(obj);
4381 PyObject *py_current_users;
4382 py_current_users = PyInt_FromLong(object->current_users);
4383 return py_current_users;
4386 static int py_srvsvc_NetShareInfo2_set_current_users(PyObject *py_obj, PyObject *value, void *closure)
4388 struct srvsvc_NetShareInfo2 *object = (struct srvsvc_NetShareInfo2 *)pytalloc_get_ptr(py_obj);
4389 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
4390 object->current_users = PyInt_AsLong(value);
4394 static PyObject *py_srvsvc_NetShareInfo2_get_path(PyObject *obj, void *closure)
4396 struct srvsvc_NetShareInfo2 *object = (struct srvsvc_NetShareInfo2 *)pytalloc_get_ptr(obj);
4398 if (object->path == NULL) {
4402 if (object->path == NULL) {
4406 py_path = PyUnicode_Decode(object->path, strlen(object->path), "utf-8", "ignore");
4412 static int py_srvsvc_NetShareInfo2_set_path(PyObject *py_obj, PyObject *value, void *closure)
4414 struct srvsvc_NetShareInfo2 *object = (struct srvsvc_NetShareInfo2 *)pytalloc_get_ptr(py_obj);
4415 if (value == Py_None) {
4416 object->path = NULL;
4418 object->path = NULL;
4419 if (PyUnicode_Check(value)) {
4420 object->path = PyString_AS_STRING(PyUnicode_AsEncodedString(value, "utf-8", "ignore"));
4421 } else if (PyString_Check(value)) {
4422 object->path = PyString_AS_STRING(value);
4424 PyErr_Format(PyExc_TypeError, "Expected string or unicode object, got %s", Py_TYPE(value)->tp_name);
4431 static PyObject *py_srvsvc_NetShareInfo2_get_password(PyObject *obj, void *closure)
4433 struct srvsvc_NetShareInfo2 *object = (struct srvsvc_NetShareInfo2 *)pytalloc_get_ptr(obj);
4434 PyObject *py_password;
4435 if (object->password == NULL) {
4436 py_password = Py_None;
4437 Py_INCREF(py_password);
4439 if (object->password == NULL) {
4440 py_password = Py_None;
4441 Py_INCREF(py_password);
4443 py_password = PyUnicode_Decode(object->password, strlen(object->password), "utf-8", "ignore");
4449 static int py_srvsvc_NetShareInfo2_set_password(PyObject *py_obj, PyObject *value, void *closure)
4451 struct srvsvc_NetShareInfo2 *object = (struct srvsvc_NetShareInfo2 *)pytalloc_get_ptr(py_obj);
4452 if (value == Py_None) {
4453 object->password = NULL;
4455 object->password = NULL;
4456 if (PyUnicode_Check(value)) {
4457 object->password = PyString_AS_STRING(PyUnicode_AsEncodedString(value, "utf-8", "ignore"));
4458 } else if (PyString_Check(value)) {
4459 object->password = PyString_AS_STRING(value);
4461 PyErr_Format(PyExc_TypeError, "Expected string or unicode object, got %s", Py_TYPE(value)->tp_name);
4468 static PyGetSetDef py_srvsvc_NetShareInfo2_getsetters[] = {
4469 { discard_const_p(char, "name"), py_srvsvc_NetShareInfo2_get_name, py_srvsvc_NetShareInfo2_set_name },
4470 { discard_const_p(char, "type"), py_srvsvc_NetShareInfo2_get_type, py_srvsvc_NetShareInfo2_set_type },
4471 { discard_const_p(char, "comment"), py_srvsvc_NetShareInfo2_get_comment, py_srvsvc_NetShareInfo2_set_comment },
4472 { discard_const_p(char, "permissions"), py_srvsvc_NetShareInfo2_get_permissions, py_srvsvc_NetShareInfo2_set_permissions },
4473 { discard_const_p(char, "max_users"), py_srvsvc_NetShareInfo2_get_max_users, py_srvsvc_NetShareInfo2_set_max_users },
4474 { discard_const_p(char, "current_users"), py_srvsvc_NetShareInfo2_get_current_users, py_srvsvc_NetShareInfo2_set_current_users },
4475 { discard_const_p(char, "path"), py_srvsvc_NetShareInfo2_get_path, py_srvsvc_NetShareInfo2_set_path },
4476 { discard_const_p(char, "password"), py_srvsvc_NetShareInfo2_get_password, py_srvsvc_NetShareInfo2_set_password },
4480 static PyObject *py_srvsvc_NetShareInfo2_new(PyTypeObject *type, PyObject *args, PyObject *kwargs)
4482 return pytalloc_new(struct srvsvc_NetShareInfo2, type);
4486 static PyTypeObject srvsvc_NetShareInfo2_Type = {
4487 PyObject_HEAD_INIT(NULL) 0,
4488 .tp_name = "srvsvc.NetShareInfo2",
4489 .tp_getset = py_srvsvc_NetShareInfo2_getsetters,
4491 .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
4492 .tp_basicsize = sizeof(pytalloc_Object),
4493 .tp_new = py_srvsvc_NetShareInfo2_new,
4497 static PyObject *py_srvsvc_NetShareCtr2_get_count(PyObject *obj, void *closure)
4499 struct srvsvc_NetShareCtr2 *object = (struct srvsvc_NetShareCtr2 *)pytalloc_get_ptr(obj);
4501 py_count = PyInt_FromLong(object->count);
4505 static int py_srvsvc_NetShareCtr2_set_count(PyObject *py_obj, PyObject *value, void *closure)
4507 struct srvsvc_NetShareCtr2 *object = (struct srvsvc_NetShareCtr2 *)pytalloc_get_ptr(py_obj);
4508 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
4509 object->count = PyInt_AsLong(value);
4513 static PyObject *py_srvsvc_NetShareCtr2_get_array(PyObject *obj, void *closure)
4515 struct srvsvc_NetShareCtr2 *object = (struct srvsvc_NetShareCtr2 *)pytalloc_get_ptr(obj);
4517 if (object->array == NULL) {
4519 Py_INCREF(py_array);
4521 py_array = PyList_New(object->count);
4522 if (py_array == NULL) {
4527 for (array_cntr_1 = 0; array_cntr_1 < object->count; array_cntr_1++) {
4528 PyObject *py_array_1;
4529 py_array_1 = pytalloc_reference_ex(&srvsvc_NetShareInfo2_Type, object->array, &object->array[array_cntr_1]);
4530 PyList_SetItem(py_array, array_cntr_1, py_array_1);
4537 static int py_srvsvc_NetShareCtr2_set_array(PyObject *py_obj, PyObject *value, void *closure)
4539 struct srvsvc_NetShareCtr2 *object = (struct srvsvc_NetShareCtr2 *)pytalloc_get_ptr(py_obj);
4540 talloc_unlink(pytalloc_get_mem_ctx(py_obj), object->array);
4541 if (value == Py_None) {
4542 object->array = NULL;
4544 object->array = NULL;
4545 PY_CHECK_TYPE(&PyList_Type, value, return -1;);
4548 object->array = talloc_array_ptrtype(pytalloc_get_mem_ctx(py_obj), object->array, PyList_GET_SIZE(value));
4549 if (!object->array) { return -1;; }
4550 talloc_set_name_const(object->array, "ARRAY: object->array");
4551 for (array_cntr_1 = 0; array_cntr_1 < PyList_GET_SIZE(value); array_cntr_1++) {
4552 PY_CHECK_TYPE(&srvsvc_NetShareInfo2_Type, PyList_GET_ITEM(value, array_cntr_1), return -1;);
4553 if (talloc_reference(object->array, pytalloc_get_mem_ctx(PyList_GET_ITEM(value, array_cntr_1))) == NULL) {
4557 object->array[array_cntr_1] = *(struct srvsvc_NetShareInfo2 *)pytalloc_get_ptr(PyList_GET_ITEM(value, array_cntr_1));
4564 static PyGetSetDef py_srvsvc_NetShareCtr2_getsetters[] = {
4565 { discard_const_p(char, "count"), py_srvsvc_NetShareCtr2_get_count, py_srvsvc_NetShareCtr2_set_count },
4566 { discard_const_p(char, "array"), py_srvsvc_NetShareCtr2_get_array, py_srvsvc_NetShareCtr2_set_array },
4570 static PyObject *py_srvsvc_NetShareCtr2_new(PyTypeObject *type, PyObject *args, PyObject *kwargs)
4572 return pytalloc_new(struct srvsvc_NetShareCtr2, type);
4576 static PyTypeObject srvsvc_NetShareCtr2_Type = {
4577 PyObject_HEAD_INIT(NULL) 0,
4578 .tp_name = "srvsvc.NetShareCtr2",
4579 .tp_getset = py_srvsvc_NetShareCtr2_getsetters,
4581 .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
4582 .tp_basicsize = sizeof(pytalloc_Object),
4583 .tp_new = py_srvsvc_NetShareCtr2_new,
4587 static PyObject *py_srvsvc_NetShareInfo501_get_name(PyObject *obj, void *closure)
4589 struct srvsvc_NetShareInfo501 *object = (struct srvsvc_NetShareInfo501 *)pytalloc_get_ptr(obj);
4591 if (object->name == NULL) {
4595 if (object->name == NULL) {
4599 py_name = PyUnicode_Decode(object->name, strlen(object->name), "utf-8", "ignore");
4605 static int py_srvsvc_NetShareInfo501_set_name(PyObject *py_obj, PyObject *value, void *closure)
4607 struct srvsvc_NetShareInfo501 *object = (struct srvsvc_NetShareInfo501 *)pytalloc_get_ptr(py_obj);
4608 if (value == Py_None) {
4609 object->name = NULL;
4611 object->name = NULL;
4612 if (PyUnicode_Check(value)) {
4613 object->name = PyString_AS_STRING(PyUnicode_AsEncodedString(value, "utf-8", "ignore"));
4614 } else if (PyString_Check(value)) {
4615 object->name = PyString_AS_STRING(value);
4617 PyErr_Format(PyExc_TypeError, "Expected string or unicode object, got %s", Py_TYPE(value)->tp_name);
4624 static PyObject *py_srvsvc_NetShareInfo501_get_type(PyObject *obj, void *closure)
4626 struct srvsvc_NetShareInfo501 *object = (struct srvsvc_NetShareInfo501 *)pytalloc_get_ptr(obj);
4628 py_type = PyInt_FromLong(object->type);
4632 static int py_srvsvc_NetShareInfo501_set_type(PyObject *py_obj, PyObject *value, void *closure)
4634 struct srvsvc_NetShareInfo501 *object = (struct srvsvc_NetShareInfo501 *)pytalloc_get_ptr(py_obj);
4635 if (PyLong_Check(value)) {
4636 object->type = PyLong_AsLongLong(value);
4637 } else if (PyInt_Check(value)) {
4638 object->type = PyInt_AsLong(value);
4640 PyErr_Format(PyExc_TypeError, "Expected type %s or %s",\
4641 PyInt_Type.tp_name, PyLong_Type.tp_name);
4647 static PyObject *py_srvsvc_NetShareInfo501_get_comment(PyObject *obj, void *closure)
4649 struct srvsvc_NetShareInfo501 *object = (struct srvsvc_NetShareInfo501 *)pytalloc_get_ptr(obj);
4650 PyObject *py_comment;
4651 if (object->comment == NULL) {
4652 py_comment = Py_None;
4653 Py_INCREF(py_comment);
4655 if (object->comment == NULL) {
4656 py_comment = Py_None;
4657 Py_INCREF(py_comment);
4659 py_comment = PyUnicode_Decode(object->comment, strlen(object->comment), "utf-8", "ignore");
4665 static int py_srvsvc_NetShareInfo501_set_comment(PyObject *py_obj, PyObject *value, void *closure)
4667 struct srvsvc_NetShareInfo501 *object = (struct srvsvc_NetShareInfo501 *)pytalloc_get_ptr(py_obj);
4668 if (value == Py_None) {
4669 object->comment = NULL;
4671 object->comment = NULL;
4672 if (PyUnicode_Check(value)) {
4673 object->comment = PyString_AS_STRING(PyUnicode_AsEncodedString(value, "utf-8", "ignore"));
4674 } else if (PyString_Check(value)) {
4675 object->comment = PyString_AS_STRING(value);
4677 PyErr_Format(PyExc_TypeError, "Expected string or unicode object, got %s", Py_TYPE(value)->tp_name);
4684 static PyObject *py_srvsvc_NetShareInfo501_get_csc_policy(PyObject *obj, void *closure)
4686 struct srvsvc_NetShareInfo501 *object = (struct srvsvc_NetShareInfo501 *)pytalloc_get_ptr(obj);
4687 PyObject *py_csc_policy;
4688 py_csc_policy = PyInt_FromLong(object->csc_policy);
4689 return py_csc_policy;
4692 static int py_srvsvc_NetShareInfo501_set_csc_policy(PyObject *py_obj, PyObject *value, void *closure)
4694 struct srvsvc_NetShareInfo501 *object = (struct srvsvc_NetShareInfo501 *)pytalloc_get_ptr(py_obj);
4695 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
4696 object->csc_policy = PyInt_AsLong(value);
4700 static PyGetSetDef py_srvsvc_NetShareInfo501_getsetters[] = {
4701 { discard_const_p(char, "name"), py_srvsvc_NetShareInfo501_get_name, py_srvsvc_NetShareInfo501_set_name },
4702 { discard_const_p(char, "type"), py_srvsvc_NetShareInfo501_get_type, py_srvsvc_NetShareInfo501_set_type },
4703 { discard_const_p(char, "comment"), py_srvsvc_NetShareInfo501_get_comment, py_srvsvc_NetShareInfo501_set_comment },
4704 { discard_const_p(char, "csc_policy"), py_srvsvc_NetShareInfo501_get_csc_policy, py_srvsvc_NetShareInfo501_set_csc_policy },
4708 static PyObject *py_srvsvc_NetShareInfo501_new(PyTypeObject *type, PyObject *args, PyObject *kwargs)
4710 return pytalloc_new(struct srvsvc_NetShareInfo501, type);
4714 static PyTypeObject srvsvc_NetShareInfo501_Type = {
4715 PyObject_HEAD_INIT(NULL) 0,
4716 .tp_name = "srvsvc.NetShareInfo501",
4717 .tp_getset = py_srvsvc_NetShareInfo501_getsetters,
4719 .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
4720 .tp_basicsize = sizeof(pytalloc_Object),
4721 .tp_new = py_srvsvc_NetShareInfo501_new,
4725 static PyObject *py_srvsvc_NetShareCtr501_get_count(PyObject *obj, void *closure)
4727 struct srvsvc_NetShareCtr501 *object = (struct srvsvc_NetShareCtr501 *)pytalloc_get_ptr(obj);
4729 py_count = PyInt_FromLong(object->count);
4733 static int py_srvsvc_NetShareCtr501_set_count(PyObject *py_obj, PyObject *value, void *closure)
4735 struct srvsvc_NetShareCtr501 *object = (struct srvsvc_NetShareCtr501 *)pytalloc_get_ptr(py_obj);
4736 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
4737 object->count = PyInt_AsLong(value);
4741 static PyObject *py_srvsvc_NetShareCtr501_get_array(PyObject *obj, void *closure)
4743 struct srvsvc_NetShareCtr501 *object = (struct srvsvc_NetShareCtr501 *)pytalloc_get_ptr(obj);
4745 if (object->array == NULL) {
4747 Py_INCREF(py_array);
4749 py_array = PyList_New(object->count);
4750 if (py_array == NULL) {
4755 for (array_cntr_1 = 0; array_cntr_1 < object->count; array_cntr_1++) {
4756 PyObject *py_array_1;
4757 py_array_1 = pytalloc_reference_ex(&srvsvc_NetShareInfo501_Type, object->array, &object->array[array_cntr_1]);
4758 PyList_SetItem(py_array, array_cntr_1, py_array_1);
4765 static int py_srvsvc_NetShareCtr501_set_array(PyObject *py_obj, PyObject *value, void *closure)
4767 struct srvsvc_NetShareCtr501 *object = (struct srvsvc_NetShareCtr501 *)pytalloc_get_ptr(py_obj);
4768 talloc_unlink(pytalloc_get_mem_ctx(py_obj), object->array);
4769 if (value == Py_None) {
4770 object->array = NULL;
4772 object->array = NULL;
4773 PY_CHECK_TYPE(&PyList_Type, value, return -1;);
4776 object->array = talloc_array_ptrtype(pytalloc_get_mem_ctx(py_obj), object->array, PyList_GET_SIZE(value));
4777 if (!object->array) { return -1;; }
4778 talloc_set_name_const(object->array, "ARRAY: object->array");
4779 for (array_cntr_1 = 0; array_cntr_1 < PyList_GET_SIZE(value); array_cntr_1++) {
4780 PY_CHECK_TYPE(&srvsvc_NetShareInfo501_Type, PyList_GET_ITEM(value, array_cntr_1), return -1;);
4781 if (talloc_reference(object->array, pytalloc_get_mem_ctx(PyList_GET_ITEM(value, array_cntr_1))) == NULL) {
4785 object->array[array_cntr_1] = *(struct srvsvc_NetShareInfo501 *)pytalloc_get_ptr(PyList_GET_ITEM(value, array_cntr_1));
4792 static PyGetSetDef py_srvsvc_NetShareCtr501_getsetters[] = {
4793 { discard_const_p(char, "count"), py_srvsvc_NetShareCtr501_get_count, py_srvsvc_NetShareCtr501_set_count },
4794 { discard_const_p(char, "array"), py_srvsvc_NetShareCtr501_get_array, py_srvsvc_NetShareCtr501_set_array },
4798 static PyObject *py_srvsvc_NetShareCtr501_new(PyTypeObject *type, PyObject *args, PyObject *kwargs)
4800 return pytalloc_new(struct srvsvc_NetShareCtr501, type);
4804 static PyTypeObject srvsvc_NetShareCtr501_Type = {
4805 PyObject_HEAD_INIT(NULL) 0,
4806 .tp_name = "srvsvc.NetShareCtr501",
4807 .tp_getset = py_srvsvc_NetShareCtr501_getsetters,
4809 .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
4810 .tp_basicsize = sizeof(pytalloc_Object),
4811 .tp_new = py_srvsvc_NetShareCtr501_new,
4815 static PyObject *py_srvsvc_NetShareInfo502_get_name(PyObject *obj, void *closure)
4817 struct srvsvc_NetShareInfo502 *object = (struct srvsvc_NetShareInfo502 *)pytalloc_get_ptr(obj);
4819 if (object->name == NULL) {
4823 if (object->name == NULL) {
4827 py_name = PyUnicode_Decode(object->name, strlen(object->name), "utf-8", "ignore");
4833 static int py_srvsvc_NetShareInfo502_set_name(PyObject *py_obj, PyObject *value, void *closure)
4835 struct srvsvc_NetShareInfo502 *object = (struct srvsvc_NetShareInfo502 *)pytalloc_get_ptr(py_obj);
4836 if (value == Py_None) {
4837 object->name = NULL;
4839 object->name = NULL;
4840 if (PyUnicode_Check(value)) {
4841 object->name = PyString_AS_STRING(PyUnicode_AsEncodedString(value, "utf-8", "ignore"));
4842 } else if (PyString_Check(value)) {
4843 object->name = PyString_AS_STRING(value);
4845 PyErr_Format(PyExc_TypeError, "Expected string or unicode object, got %s", Py_TYPE(value)->tp_name);
4852 static PyObject *py_srvsvc_NetShareInfo502_get_type(PyObject *obj, void *closure)
4854 struct srvsvc_NetShareInfo502 *object = (struct srvsvc_NetShareInfo502 *)pytalloc_get_ptr(obj);
4856 py_type = PyInt_FromLong(object->type);
4860 static int py_srvsvc_NetShareInfo502_set_type(PyObject *py_obj, PyObject *value, void *closure)
4862 struct srvsvc_NetShareInfo502 *object = (struct srvsvc_NetShareInfo502 *)pytalloc_get_ptr(py_obj);
4863 if (PyLong_Check(value)) {
4864 object->type = PyLong_AsLongLong(value);
4865 } else if (PyInt_Check(value)) {
4866 object->type = PyInt_AsLong(value);
4868 PyErr_Format(PyExc_TypeError, "Expected type %s or %s",\
4869 PyInt_Type.tp_name, PyLong_Type.tp_name);
4875 static PyObject *py_srvsvc_NetShareInfo502_get_comment(PyObject *obj, void *closure)
4877 struct srvsvc_NetShareInfo502 *object = (struct srvsvc_NetShareInfo502 *)pytalloc_get_ptr(obj);
4878 PyObject *py_comment;
4879 if (object->comment == NULL) {
4880 py_comment = Py_None;
4881 Py_INCREF(py_comment);
4883 if (object->comment == NULL) {
4884 py_comment = Py_None;
4885 Py_INCREF(py_comment);
4887 py_comment = PyUnicode_Decode(object->comment, strlen(object->comment), "utf-8", "ignore");
4893 static int py_srvsvc_NetShareInfo502_set_comment(PyObject *py_obj, PyObject *value, void *closure)
4895 struct srvsvc_NetShareInfo502 *object = (struct srvsvc_NetShareInfo502 *)pytalloc_get_ptr(py_obj);
4896 if (value == Py_None) {
4897 object->comment = NULL;
4899 object->comment = NULL;
4900 if (PyUnicode_Check(value)) {
4901 object->comment = PyString_AS_STRING(PyUnicode_AsEncodedString(value, "utf-8", "ignore"));
4902 } else if (PyString_Check(value)) {
4903 object->comment = PyString_AS_STRING(value);
4905 PyErr_Format(PyExc_TypeError, "Expected string or unicode object, got %s", Py_TYPE(value)->tp_name);
4912 static PyObject *py_srvsvc_NetShareInfo502_get_permissions(PyObject *obj, void *closure)
4914 struct srvsvc_NetShareInfo502 *object = (struct srvsvc_NetShareInfo502 *)pytalloc_get_ptr(obj);
4915 PyObject *py_permissions;
4916 py_permissions = PyInt_FromLong(object->permissions);
4917 return py_permissions;
4920 static int py_srvsvc_NetShareInfo502_set_permissions(PyObject *py_obj, PyObject *value, void *closure)
4922 struct srvsvc_NetShareInfo502 *object = (struct srvsvc_NetShareInfo502 *)pytalloc_get_ptr(py_obj);
4923 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
4924 object->permissions = PyInt_AsLong(value);
4928 static PyObject *py_srvsvc_NetShareInfo502_get_max_users(PyObject *obj, void *closure)
4930 struct srvsvc_NetShareInfo502 *object = (struct srvsvc_NetShareInfo502 *)pytalloc_get_ptr(obj);
4931 PyObject *py_max_users;
4932 py_max_users = PyInt_FromLong(object->max_users);
4933 return py_max_users;
4936 static int py_srvsvc_NetShareInfo502_set_max_users(PyObject *py_obj, PyObject *value, void *closure)
4938 struct srvsvc_NetShareInfo502 *object = (struct srvsvc_NetShareInfo502 *)pytalloc_get_ptr(py_obj);
4939 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
4940 object->max_users = PyInt_AsLong(value);
4944 static PyObject *py_srvsvc_NetShareInfo502_get_current_users(PyObject *obj, void *closure)
4946 struct srvsvc_NetShareInfo502 *object = (struct srvsvc_NetShareInfo502 *)pytalloc_get_ptr(obj);
4947 PyObject *py_current_users;
4948 py_current_users = PyInt_FromLong(object->current_users);
4949 return py_current_users;
4952 static int py_srvsvc_NetShareInfo502_set_current_users(PyObject *py_obj, PyObject *value, void *closure)
4954 struct srvsvc_NetShareInfo502 *object = (struct srvsvc_NetShareInfo502 *)pytalloc_get_ptr(py_obj);
4955 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
4956 object->current_users = PyInt_AsLong(value);
4960 static PyObject *py_srvsvc_NetShareInfo502_get_path(PyObject *obj, void *closure)
4962 struct srvsvc_NetShareInfo502 *object = (struct srvsvc_NetShareInfo502 *)pytalloc_get_ptr(obj);
4964 if (object->path == NULL) {
4968 if (object->path == NULL) {
4972 py_path = PyUnicode_Decode(object->path, strlen(object->path), "utf-8", "ignore");
4978 static int py_srvsvc_NetShareInfo502_set_path(PyObject *py_obj, PyObject *value, void *closure)
4980 struct srvsvc_NetShareInfo502 *object = (struct srvsvc_NetShareInfo502 *)pytalloc_get_ptr(py_obj);
4981 if (value == Py_None) {
4982 object->path = NULL;
4984 object->path = NULL;
4985 if (PyUnicode_Check(value)) {
4986 object->path = PyString_AS_STRING(PyUnicode_AsEncodedString(value, "utf-8", "ignore"));
4987 } else if (PyString_Check(value)) {
4988 object->path = PyString_AS_STRING(value);
4990 PyErr_Format(PyExc_TypeError, "Expected string or unicode object, got %s", Py_TYPE(value)->tp_name);
4997 static PyObject *py_srvsvc_NetShareInfo502_get_password(PyObject *obj, void *closure)
4999 struct srvsvc_NetShareInfo502 *object = (struct srvsvc_NetShareInfo502 *)pytalloc_get_ptr(obj);
5000 PyObject *py_password;
5001 if (object->password == NULL) {
5002 py_password = Py_None;
5003 Py_INCREF(py_password);
5005 if (object->password == NULL) {
5006 py_password = Py_None;
5007 Py_INCREF(py_password);
5009 py_password = PyUnicode_Decode(object->password, strlen(object->password), "utf-8", "ignore");
5015 static int py_srvsvc_NetShareInfo502_set_password(PyObject *py_obj, PyObject *value, void *closure)
5017 struct srvsvc_NetShareInfo502 *object = (struct srvsvc_NetShareInfo502 *)pytalloc_get_ptr(py_obj);
5018 if (value == Py_None) {
5019 object->password = NULL;
5021 object->password = NULL;
5022 if (PyUnicode_Check(value)) {
5023 object->password = PyString_AS_STRING(PyUnicode_AsEncodedString(value, "utf-8", "ignore"));
5024 } else if (PyString_Check(value)) {
5025 object->password = PyString_AS_STRING(value);
5027 PyErr_Format(PyExc_TypeError, "Expected string or unicode object, got %s", Py_TYPE(value)->tp_name);
5034 static PyObject *py_srvsvc_NetShareInfo502_get_sd_buf(PyObject *obj, void *closure)
5036 struct srvsvc_NetShareInfo502 *object = (struct srvsvc_NetShareInfo502 *)pytalloc_get_ptr(obj);
5037 PyObject *py_sd_buf;
5038 py_sd_buf = pytalloc_reference_ex(sec_desc_buf_Type, pytalloc_get_mem_ctx(obj), &object->sd_buf);
5042 static int py_srvsvc_NetShareInfo502_set_sd_buf(PyObject *py_obj, PyObject *value, void *closure)
5044 struct srvsvc_NetShareInfo502 *object = (struct srvsvc_NetShareInfo502 *)pytalloc_get_ptr(py_obj);
5045 PY_CHECK_TYPE(sec_desc_buf_Type, value, return -1;);
5046 if (talloc_reference(pytalloc_get_mem_ctx(py_obj), pytalloc_get_mem_ctx(value)) == NULL) {
5050 object->sd_buf = *(struct sec_desc_buf *)pytalloc_get_ptr(value);
5054 static PyGetSetDef py_srvsvc_NetShareInfo502_getsetters[] = {
5055 { discard_const_p(char, "name"), py_srvsvc_NetShareInfo502_get_name, py_srvsvc_NetShareInfo502_set_name },
5056 { discard_const_p(char, "type"), py_srvsvc_NetShareInfo502_get_type, py_srvsvc_NetShareInfo502_set_type },
5057 { discard_const_p(char, "comment"), py_srvsvc_NetShareInfo502_get_comment, py_srvsvc_NetShareInfo502_set_comment },
5058 { discard_const_p(char, "permissions"), py_srvsvc_NetShareInfo502_get_permissions, py_srvsvc_NetShareInfo502_set_permissions },
5059 { discard_const_p(char, "max_users"), py_srvsvc_NetShareInfo502_get_max_users, py_srvsvc_NetShareInfo502_set_max_users },
5060 { discard_const_p(char, "current_users"), py_srvsvc_NetShareInfo502_get_current_users, py_srvsvc_NetShareInfo502_set_current_users },
5061 { discard_const_p(char, "path"), py_srvsvc_NetShareInfo502_get_path, py_srvsvc_NetShareInfo502_set_path },
5062 { discard_const_p(char, "password"), py_srvsvc_NetShareInfo502_get_password, py_srvsvc_NetShareInfo502_set_password },
5063 { discard_const_p(char, "sd_buf"), py_srvsvc_NetShareInfo502_get_sd_buf, py_srvsvc_NetShareInfo502_set_sd_buf },
5067 static PyObject *py_srvsvc_NetShareInfo502_new(PyTypeObject *type, PyObject *args, PyObject *kwargs)
5069 return pytalloc_new(struct srvsvc_NetShareInfo502, type);
5073 static PyTypeObject srvsvc_NetShareInfo502_Type = {
5074 PyObject_HEAD_INIT(NULL) 0,
5075 .tp_name = "srvsvc.NetShareInfo502",
5076 .tp_getset = py_srvsvc_NetShareInfo502_getsetters,
5078 .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
5079 .tp_basicsize = sizeof(pytalloc_Object),
5080 .tp_new = py_srvsvc_NetShareInfo502_new,
5084 static PyObject *py_srvsvc_NetShareCtr502_get_count(PyObject *obj, void *closure)
5086 struct srvsvc_NetShareCtr502 *object = (struct srvsvc_NetShareCtr502 *)pytalloc_get_ptr(obj);
5088 py_count = PyInt_FromLong(object->count);
5092 static int py_srvsvc_NetShareCtr502_set_count(PyObject *py_obj, PyObject *value, void *closure)
5094 struct srvsvc_NetShareCtr502 *object = (struct srvsvc_NetShareCtr502 *)pytalloc_get_ptr(py_obj);
5095 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
5096 object->count = PyInt_AsLong(value);
5100 static PyObject *py_srvsvc_NetShareCtr502_get_array(PyObject *obj, void *closure)
5102 struct srvsvc_NetShareCtr502 *object = (struct srvsvc_NetShareCtr502 *)pytalloc_get_ptr(obj);
5104 if (object->array == NULL) {
5106 Py_INCREF(py_array);
5108 py_array = PyList_New(object->count);
5109 if (py_array == NULL) {
5114 for (array_cntr_1 = 0; array_cntr_1 < object->count; array_cntr_1++) {
5115 PyObject *py_array_1;
5116 py_array_1 = pytalloc_reference_ex(&srvsvc_NetShareInfo502_Type, object->array, &object->array[array_cntr_1]);
5117 PyList_SetItem(py_array, array_cntr_1, py_array_1);
5124 static int py_srvsvc_NetShareCtr502_set_array(PyObject *py_obj, PyObject *value, void *closure)
5126 struct srvsvc_NetShareCtr502 *object = (struct srvsvc_NetShareCtr502 *)pytalloc_get_ptr(py_obj);
5127 talloc_unlink(pytalloc_get_mem_ctx(py_obj), object->array);
5128 if (value == Py_None) {
5129 object->array = NULL;
5131 object->array = NULL;
5132 PY_CHECK_TYPE(&PyList_Type, value, return -1;);
5135 object->array = talloc_array_ptrtype(pytalloc_get_mem_ctx(py_obj), object->array, PyList_GET_SIZE(value));
5136 if (!object->array) { return -1;; }
5137 talloc_set_name_const(object->array, "ARRAY: object->array");
5138 for (array_cntr_1 = 0; array_cntr_1 < PyList_GET_SIZE(value); array_cntr_1++) {
5139 PY_CHECK_TYPE(&srvsvc_NetShareInfo502_Type, PyList_GET_ITEM(value, array_cntr_1), return -1;);
5140 if (talloc_reference(object->array, pytalloc_get_mem_ctx(PyList_GET_ITEM(value, array_cntr_1))) == NULL) {
5144 object->array[array_cntr_1] = *(struct srvsvc_NetShareInfo502 *)pytalloc_get_ptr(PyList_GET_ITEM(value, array_cntr_1));
5151 static PyGetSetDef py_srvsvc_NetShareCtr502_getsetters[] = {
5152 { discard_const_p(char, "count"), py_srvsvc_NetShareCtr502_get_count, py_srvsvc_NetShareCtr502_set_count },
5153 { discard_const_p(char, "array"), py_srvsvc_NetShareCtr502_get_array, py_srvsvc_NetShareCtr502_set_array },
5157 static PyObject *py_srvsvc_NetShareCtr502_new(PyTypeObject *type, PyObject *args, PyObject *kwargs)
5159 return pytalloc_new(struct srvsvc_NetShareCtr502, type);
5163 static PyTypeObject srvsvc_NetShareCtr502_Type = {
5164 PyObject_HEAD_INIT(NULL) 0,
5165 .tp_name = "srvsvc.NetShareCtr502",
5166 .tp_getset = py_srvsvc_NetShareCtr502_getsetters,
5168 .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
5169 .tp_basicsize = sizeof(pytalloc_Object),
5170 .tp_new = py_srvsvc_NetShareCtr502_new,
5174 static PyObject *py_srvsvc_NetShareInfo1004_get_comment(PyObject *obj, void *closure)
5176 struct srvsvc_NetShareInfo1004 *object = (struct srvsvc_NetShareInfo1004 *)pytalloc_get_ptr(obj);
5177 PyObject *py_comment;
5178 if (object->comment == NULL) {
5179 py_comment = Py_None;
5180 Py_INCREF(py_comment);
5182 if (object->comment == NULL) {
5183 py_comment = Py_None;
5184 Py_INCREF(py_comment);
5186 py_comment = PyUnicode_Decode(object->comment, strlen(object->comment), "utf-8", "ignore");
5192 static int py_srvsvc_NetShareInfo1004_set_comment(PyObject *py_obj, PyObject *value, void *closure)
5194 struct srvsvc_NetShareInfo1004 *object = (struct srvsvc_NetShareInfo1004 *)pytalloc_get_ptr(py_obj);
5195 if (value == Py_None) {
5196 object->comment = NULL;
5198 object->comment = NULL;
5199 if (PyUnicode_Check(value)) {
5200 object->comment = PyString_AS_STRING(PyUnicode_AsEncodedString(value, "utf-8", "ignore"));
5201 } else if (PyString_Check(value)) {
5202 object->comment = PyString_AS_STRING(value);
5204 PyErr_Format(PyExc_TypeError, "Expected string or unicode object, got %s", Py_TYPE(value)->tp_name);
5211 static PyGetSetDef py_srvsvc_NetShareInfo1004_getsetters[] = {
5212 { discard_const_p(char, "comment"), py_srvsvc_NetShareInfo1004_get_comment, py_srvsvc_NetShareInfo1004_set_comment },
5216 static PyObject *py_srvsvc_NetShareInfo1004_new(PyTypeObject *type, PyObject *args, PyObject *kwargs)
5218 return pytalloc_new(struct srvsvc_NetShareInfo1004, type);
5222 static PyTypeObject srvsvc_NetShareInfo1004_Type = {
5223 PyObject_HEAD_INIT(NULL) 0,
5224 .tp_name = "srvsvc.NetShareInfo1004",
5225 .tp_getset = py_srvsvc_NetShareInfo1004_getsetters,
5227 .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
5228 .tp_basicsize = sizeof(pytalloc_Object),
5229 .tp_new = py_srvsvc_NetShareInfo1004_new,
5233 static PyObject *py_srvsvc_NetShareCtr1004_get_count(PyObject *obj, void *closure)
5235 struct srvsvc_NetShareCtr1004 *object = (struct srvsvc_NetShareCtr1004 *)pytalloc_get_ptr(obj);
5237 py_count = PyInt_FromLong(object->count);
5241 static int py_srvsvc_NetShareCtr1004_set_count(PyObject *py_obj, PyObject *value, void *closure)
5243 struct srvsvc_NetShareCtr1004 *object = (struct srvsvc_NetShareCtr1004 *)pytalloc_get_ptr(py_obj);
5244 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
5245 object->count = PyInt_AsLong(value);
5249 static PyObject *py_srvsvc_NetShareCtr1004_get_array(PyObject *obj, void *closure)
5251 struct srvsvc_NetShareCtr1004 *object = (struct srvsvc_NetShareCtr1004 *)pytalloc_get_ptr(obj);
5253 if (object->array == NULL) {
5255 Py_INCREF(py_array);
5257 py_array = PyList_New(object->count);
5258 if (py_array == NULL) {
5263 for (array_cntr_1 = 0; array_cntr_1 < object->count; array_cntr_1++) {
5264 PyObject *py_array_1;
5265 py_array_1 = pytalloc_reference_ex(&srvsvc_NetShareInfo1004_Type, object->array, &object->array[array_cntr_1]);
5266 PyList_SetItem(py_array, array_cntr_1, py_array_1);
5273 static int py_srvsvc_NetShareCtr1004_set_array(PyObject *py_obj, PyObject *value, void *closure)
5275 struct srvsvc_NetShareCtr1004 *object = (struct srvsvc_NetShareCtr1004 *)pytalloc_get_ptr(py_obj);
5276 talloc_unlink(pytalloc_get_mem_ctx(py_obj), object->array);
5277 if (value == Py_None) {
5278 object->array = NULL;
5280 object->array = NULL;
5281 PY_CHECK_TYPE(&PyList_Type, value, return -1;);
5284 object->array = talloc_array_ptrtype(pytalloc_get_mem_ctx(py_obj), object->array, PyList_GET_SIZE(value));
5285 if (!object->array) { return -1;; }
5286 talloc_set_name_const(object->array, "ARRAY: object->array");
5287 for (array_cntr_1 = 0; array_cntr_1 < PyList_GET_SIZE(value); array_cntr_1++) {
5288 PY_CHECK_TYPE(&srvsvc_NetShareInfo1004_Type, PyList_GET_ITEM(value, array_cntr_1), return -1;);
5289 if (talloc_reference(object->array, pytalloc_get_mem_ctx(PyList_GET_ITEM(value, array_cntr_1))) == NULL) {
5293 object->array[array_cntr_1] = *(struct srvsvc_NetShareInfo1004 *)pytalloc_get_ptr(PyList_GET_ITEM(value, array_cntr_1));
5300 static PyGetSetDef py_srvsvc_NetShareCtr1004_getsetters[] = {
5301 { discard_const_p(char, "count"), py_srvsvc_NetShareCtr1004_get_count, py_srvsvc_NetShareCtr1004_set_count },
5302 { discard_const_p(char, "array"), py_srvsvc_NetShareCtr1004_get_array, py_srvsvc_NetShareCtr1004_set_array },
5306 static PyObject *py_srvsvc_NetShareCtr1004_new(PyTypeObject *type, PyObject *args, PyObject *kwargs)
5308 return pytalloc_new(struct srvsvc_NetShareCtr1004, type);
5312 static PyTypeObject srvsvc_NetShareCtr1004_Type = {
5313 PyObject_HEAD_INIT(NULL) 0,
5314 .tp_name = "srvsvc.NetShareCtr1004",
5315 .tp_getset = py_srvsvc_NetShareCtr1004_getsetters,
5317 .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
5318 .tp_basicsize = sizeof(pytalloc_Object),
5319 .tp_new = py_srvsvc_NetShareCtr1004_new,
5323 static PyObject *py_srvsvc_NetShareInfo1005_get_dfs_flags(PyObject *obj, void *closure)
5325 struct srvsvc_NetShareInfo1005 *object = (struct srvsvc_NetShareInfo1005 *)pytalloc_get_ptr(obj);
5326 PyObject *py_dfs_flags;
5327 py_dfs_flags = PyInt_FromLong(object->dfs_flags);
5328 return py_dfs_flags;
5331 static int py_srvsvc_NetShareInfo1005_set_dfs_flags(PyObject *py_obj, PyObject *value, void *closure)
5333 struct srvsvc_NetShareInfo1005 *object = (struct srvsvc_NetShareInfo1005 *)pytalloc_get_ptr(py_obj);
5334 if (PyLong_Check(value)) {
5335 object->dfs_flags = PyLong_AsLongLong(value);
5336 } else if (PyInt_Check(value)) {
5337 object->dfs_flags = PyInt_AsLong(value);
5339 PyErr_Format(PyExc_TypeError, "Expected type %s or %s",\
5340 PyInt_Type.tp_name, PyLong_Type.tp_name);
5346 static PyGetSetDef py_srvsvc_NetShareInfo1005_getsetters[] = {
5347 { discard_const_p(char, "dfs_flags"), py_srvsvc_NetShareInfo1005_get_dfs_flags, py_srvsvc_NetShareInfo1005_set_dfs_flags },
5351 static PyObject *py_srvsvc_NetShareInfo1005_new(PyTypeObject *type, PyObject *args, PyObject *kwargs)
5353 return pytalloc_new(struct srvsvc_NetShareInfo1005, type);
5357 static PyTypeObject srvsvc_NetShareInfo1005_Type = {
5358 PyObject_HEAD_INIT(NULL) 0,
5359 .tp_name = "srvsvc.NetShareInfo1005",
5360 .tp_getset = py_srvsvc_NetShareInfo1005_getsetters,
5362 .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
5363 .tp_basicsize = sizeof(pytalloc_Object),
5364 .tp_new = py_srvsvc_NetShareInfo1005_new,
5368 static PyObject *py_srvsvc_NetShareCtr1005_get_count(PyObject *obj, void *closure)
5370 struct srvsvc_NetShareCtr1005 *object = (struct srvsvc_NetShareCtr1005 *)pytalloc_get_ptr(obj);
5372 py_count = PyInt_FromLong(object->count);
5376 static int py_srvsvc_NetShareCtr1005_set_count(PyObject *py_obj, PyObject *value, void *closure)
5378 struct srvsvc_NetShareCtr1005 *object = (struct srvsvc_NetShareCtr1005 *)pytalloc_get_ptr(py_obj);
5379 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
5380 object->count = PyInt_AsLong(value);
5384 static PyObject *py_srvsvc_NetShareCtr1005_get_array(PyObject *obj, void *closure)
5386 struct srvsvc_NetShareCtr1005 *object = (struct srvsvc_NetShareCtr1005 *)pytalloc_get_ptr(obj);
5388 if (object->array == NULL) {
5390 Py_INCREF(py_array);
5392 py_array = PyList_New(object->count);
5393 if (py_array == NULL) {
5398 for (array_cntr_1 = 0; array_cntr_1 < object->count; array_cntr_1++) {
5399 PyObject *py_array_1;
5400 py_array_1 = pytalloc_reference_ex(&srvsvc_NetShareInfo1005_Type, object->array, &object->array[array_cntr_1]);
5401 PyList_SetItem(py_array, array_cntr_1, py_array_1);
5408 static int py_srvsvc_NetShareCtr1005_set_array(PyObject *py_obj, PyObject *value, void *closure)
5410 struct srvsvc_NetShareCtr1005 *object = (struct srvsvc_NetShareCtr1005 *)pytalloc_get_ptr(py_obj);
5411 talloc_unlink(pytalloc_get_mem_ctx(py_obj), object->array);
5412 if (value == Py_None) {
5413 object->array = NULL;
5415 object->array = NULL;
5416 PY_CHECK_TYPE(&PyList_Type, value, return -1;);
5419 object->array = talloc_array_ptrtype(pytalloc_get_mem_ctx(py_obj), object->array, PyList_GET_SIZE(value));
5420 if (!object->array) { return -1;; }
5421 talloc_set_name_const(object->array, "ARRAY: object->array");
5422 for (array_cntr_1 = 0; array_cntr_1 < PyList_GET_SIZE(value); array_cntr_1++) {
5423 PY_CHECK_TYPE(&srvsvc_NetShareInfo1005_Type, PyList_GET_ITEM(value, array_cntr_1), return -1;);
5424 if (talloc_reference(object->array, pytalloc_get_mem_ctx(PyList_GET_ITEM(value, array_cntr_1))) == NULL) {
5428 object->array[array_cntr_1] = *(struct srvsvc_NetShareInfo1005 *)pytalloc_get_ptr(PyList_GET_ITEM(value, array_cntr_1));
5435 static PyGetSetDef py_srvsvc_NetShareCtr1005_getsetters[] = {
5436 { discard_const_p(char, "count"), py_srvsvc_NetShareCtr1005_get_count, py_srvsvc_NetShareCtr1005_set_count },
5437 { discard_const_p(char, "array"), py_srvsvc_NetShareCtr1005_get_array, py_srvsvc_NetShareCtr1005_set_array },
5441 static PyObject *py_srvsvc_NetShareCtr1005_new(PyTypeObject *type, PyObject *args, PyObject *kwargs)
5443 return pytalloc_new(struct srvsvc_NetShareCtr1005, type);
5447 static PyTypeObject srvsvc_NetShareCtr1005_Type = {
5448 PyObject_HEAD_INIT(NULL) 0,
5449 .tp_name = "srvsvc.NetShareCtr1005",
5450 .tp_getset = py_srvsvc_NetShareCtr1005_getsetters,
5452 .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
5453 .tp_basicsize = sizeof(pytalloc_Object),
5454 .tp_new = py_srvsvc_NetShareCtr1005_new,
5458 static PyObject *py_srvsvc_NetShareInfo1006_get_max_users(PyObject *obj, void *closure)
5460 struct srvsvc_NetShareInfo1006 *object = (struct srvsvc_NetShareInfo1006 *)pytalloc_get_ptr(obj);
5461 PyObject *py_max_users;
5462 py_max_users = PyInt_FromLong(object->max_users);
5463 return py_max_users;
5466 static int py_srvsvc_NetShareInfo1006_set_max_users(PyObject *py_obj, PyObject *value, void *closure)
5468 struct srvsvc_NetShareInfo1006 *object = (struct srvsvc_NetShareInfo1006 *)pytalloc_get_ptr(py_obj);
5469 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
5470 object->max_users = PyInt_AsLong(value);
5474 static PyGetSetDef py_srvsvc_NetShareInfo1006_getsetters[] = {
5475 { discard_const_p(char, "max_users"), py_srvsvc_NetShareInfo1006_get_max_users, py_srvsvc_NetShareInfo1006_set_max_users },
5479 static PyObject *py_srvsvc_NetShareInfo1006_new(PyTypeObject *type, PyObject *args, PyObject *kwargs)
5481 return pytalloc_new(struct srvsvc_NetShareInfo1006, type);
5485 static PyTypeObject srvsvc_NetShareInfo1006_Type = {
5486 PyObject_HEAD_INIT(NULL) 0,
5487 .tp_name = "srvsvc.NetShareInfo1006",
5488 .tp_getset = py_srvsvc_NetShareInfo1006_getsetters,
5490 .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
5491 .tp_basicsize = sizeof(pytalloc_Object),
5492 .tp_new = py_srvsvc_NetShareInfo1006_new,
5496 static PyObject *py_srvsvc_NetShareCtr1006_get_count(PyObject *obj, void *closure)
5498 struct srvsvc_NetShareCtr1006 *object = (struct srvsvc_NetShareCtr1006 *)pytalloc_get_ptr(obj);
5500 py_count = PyInt_FromLong(object->count);
5504 static int py_srvsvc_NetShareCtr1006_set_count(PyObject *py_obj, PyObject *value, void *closure)
5506 struct srvsvc_NetShareCtr1006 *object = (struct srvsvc_NetShareCtr1006 *)pytalloc_get_ptr(py_obj);
5507 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
5508 object->count = PyInt_AsLong(value);
5512 static PyObject *py_srvsvc_NetShareCtr1006_get_array(PyObject *obj, void *closure)
5514 struct srvsvc_NetShareCtr1006 *object = (struct srvsvc_NetShareCtr1006 *)pytalloc_get_ptr(obj);
5516 if (object->array == NULL) {
5518 Py_INCREF(py_array);
5520 py_array = PyList_New(object->count);
5521 if (py_array == NULL) {
5526 for (array_cntr_1 = 0; array_cntr_1 < object->count; array_cntr_1++) {
5527 PyObject *py_array_1;
5528 py_array_1 = pytalloc_reference_ex(&srvsvc_NetShareInfo1006_Type, object->array, &object->array[array_cntr_1]);
5529 PyList_SetItem(py_array, array_cntr_1, py_array_1);
5536 static int py_srvsvc_NetShareCtr1006_set_array(PyObject *py_obj, PyObject *value, void *closure)
5538 struct srvsvc_NetShareCtr1006 *object = (struct srvsvc_NetShareCtr1006 *)pytalloc_get_ptr(py_obj);
5539 talloc_unlink(pytalloc_get_mem_ctx(py_obj), object->array);
5540 if (value == Py_None) {
5541 object->array = NULL;
5543 object->array = NULL;
5544 PY_CHECK_TYPE(&PyList_Type, value, return -1;);
5547 object->array = talloc_array_ptrtype(pytalloc_get_mem_ctx(py_obj), object->array, PyList_GET_SIZE(value));
5548 if (!object->array) { return -1;; }
5549 talloc_set_name_const(object->array, "ARRAY: object->array");
5550 for (array_cntr_1 = 0; array_cntr_1 < PyList_GET_SIZE(value); array_cntr_1++) {
5551 PY_CHECK_TYPE(&srvsvc_NetShareInfo1006_Type, PyList_GET_ITEM(value, array_cntr_1), return -1;);
5552 if (talloc_reference(object->array, pytalloc_get_mem_ctx(PyList_GET_ITEM(value, array_cntr_1))) == NULL) {
5556 object->array[array_cntr_1] = *(struct srvsvc_NetShareInfo1006 *)pytalloc_get_ptr(PyList_GET_ITEM(value, array_cntr_1));
5563 static PyGetSetDef py_srvsvc_NetShareCtr1006_getsetters[] = {
5564 { discard_const_p(char, "count"), py_srvsvc_NetShareCtr1006_get_count, py_srvsvc_NetShareCtr1006_set_count },
5565 { discard_const_p(char, "array"), py_srvsvc_NetShareCtr1006_get_array, py_srvsvc_NetShareCtr1006_set_array },
5569 static PyObject *py_srvsvc_NetShareCtr1006_new(PyTypeObject *type, PyObject *args, PyObject *kwargs)
5571 return pytalloc_new(struct srvsvc_NetShareCtr1006, type);
5575 static PyTypeObject srvsvc_NetShareCtr1006_Type = {
5576 PyObject_HEAD_INIT(NULL) 0,
5577 .tp_name = "srvsvc.NetShareCtr1006",
5578 .tp_getset = py_srvsvc_NetShareCtr1006_getsetters,
5580 .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
5581 .tp_basicsize = sizeof(pytalloc_Object),
5582 .tp_new = py_srvsvc_NetShareCtr1006_new,
5586 static PyObject *py_srvsvc_NetShareInfo1007_get_flags(PyObject *obj, void *closure)
5588 struct srvsvc_NetShareInfo1007 *object = (struct srvsvc_NetShareInfo1007 *)pytalloc_get_ptr(obj);
5590 py_flags = PyInt_FromLong(object->flags);
5594 static int py_srvsvc_NetShareInfo1007_set_flags(PyObject *py_obj, PyObject *value, void *closure)
5596 struct srvsvc_NetShareInfo1007 *object = (struct srvsvc_NetShareInfo1007 *)pytalloc_get_ptr(py_obj);
5597 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
5598 object->flags = PyInt_AsLong(value);
5602 static PyObject *py_srvsvc_NetShareInfo1007_get_alternate_directory_name(PyObject *obj, void *closure)
5604 struct srvsvc_NetShareInfo1007 *object = (struct srvsvc_NetShareInfo1007 *)pytalloc_get_ptr(obj);
5605 PyObject *py_alternate_directory_name;
5606 if (object->alternate_directory_name == NULL) {
5607 py_alternate_directory_name = Py_None;
5608 Py_INCREF(py_alternate_directory_name);
5610 if (object->alternate_directory_name == NULL) {
5611 py_alternate_directory_name = Py_None;
5612 Py_INCREF(py_alternate_directory_name);
5614 py_alternate_directory_name = PyUnicode_Decode(object->alternate_directory_name, strlen(object->alternate_directory_name), "utf-8", "ignore");
5617 return py_alternate_directory_name;
5620 static int py_srvsvc_NetShareInfo1007_set_alternate_directory_name(PyObject *py_obj, PyObject *value, void *closure)
5622 struct srvsvc_NetShareInfo1007 *object = (struct srvsvc_NetShareInfo1007 *)pytalloc_get_ptr(py_obj);
5623 if (value == Py_None) {
5624 object->alternate_directory_name = NULL;
5626 object->alternate_directory_name = NULL;
5627 if (PyUnicode_Check(value)) {
5628 object->alternate_directory_name = PyString_AS_STRING(PyUnicode_AsEncodedString(value, "utf-8", "ignore"));
5629 } else if (PyString_Check(value)) {
5630 object->alternate_directory_name = PyString_AS_STRING(value);
5632 PyErr_Format(PyExc_TypeError, "Expected string or unicode object, got %s", Py_TYPE(value)->tp_name);
5639 static PyGetSetDef py_srvsvc_NetShareInfo1007_getsetters[] = {
5640 { discard_const_p(char, "flags"), py_srvsvc_NetShareInfo1007_get_flags, py_srvsvc_NetShareInfo1007_set_flags },
5641 { discard_const_p(char, "alternate_directory_name"), py_srvsvc_NetShareInfo1007_get_alternate_directory_name, py_srvsvc_NetShareInfo1007_set_alternate_directory_name },
5645 static PyObject *py_srvsvc_NetShareInfo1007_new(PyTypeObject *type, PyObject *args, PyObject *kwargs)
5647 return pytalloc_new(struct srvsvc_NetShareInfo1007, type);
5651 static PyTypeObject srvsvc_NetShareInfo1007_Type = {
5652 PyObject_HEAD_INIT(NULL) 0,
5653 .tp_name = "srvsvc.NetShareInfo1007",
5654 .tp_getset = py_srvsvc_NetShareInfo1007_getsetters,
5656 .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
5657 .tp_basicsize = sizeof(pytalloc_Object),
5658 .tp_new = py_srvsvc_NetShareInfo1007_new,
5662 static PyObject *py_srvsvc_NetShareCtr1007_get_count(PyObject *obj, void *closure)
5664 struct srvsvc_NetShareCtr1007 *object = (struct srvsvc_NetShareCtr1007 *)pytalloc_get_ptr(obj);
5666 py_count = PyInt_FromLong(object->count);
5670 static int py_srvsvc_NetShareCtr1007_set_count(PyObject *py_obj, PyObject *value, void *closure)
5672 struct srvsvc_NetShareCtr1007 *object = (struct srvsvc_NetShareCtr1007 *)pytalloc_get_ptr(py_obj);
5673 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
5674 object->count = PyInt_AsLong(value);
5678 static PyObject *py_srvsvc_NetShareCtr1007_get_array(PyObject *obj, void *closure)
5680 struct srvsvc_NetShareCtr1007 *object = (struct srvsvc_NetShareCtr1007 *)pytalloc_get_ptr(obj);
5682 if (object->array == NULL) {
5684 Py_INCREF(py_array);
5686 py_array = PyList_New(object->count);
5687 if (py_array == NULL) {
5692 for (array_cntr_1 = 0; array_cntr_1 < object->count; array_cntr_1++) {
5693 PyObject *py_array_1;
5694 py_array_1 = pytalloc_reference_ex(&srvsvc_NetShareInfo1007_Type, object->array, &object->array[array_cntr_1]);
5695 PyList_SetItem(py_array, array_cntr_1, py_array_1);
5702 static int py_srvsvc_NetShareCtr1007_set_array(PyObject *py_obj, PyObject *value, void *closure)
5704 struct srvsvc_NetShareCtr1007 *object = (struct srvsvc_NetShareCtr1007 *)pytalloc_get_ptr(py_obj);
5705 talloc_unlink(pytalloc_get_mem_ctx(py_obj), object->array);
5706 if (value == Py_None) {
5707 object->array = NULL;
5709 object->array = NULL;
5710 PY_CHECK_TYPE(&PyList_Type, value, return -1;);
5713 object->array = talloc_array_ptrtype(pytalloc_get_mem_ctx(py_obj), object->array, PyList_GET_SIZE(value));
5714 if (!object->array) { return -1;; }
5715 talloc_set_name_const(object->array, "ARRAY: object->array");
5716 for (array_cntr_1 = 0; array_cntr_1 < PyList_GET_SIZE(value); array_cntr_1++) {
5717 PY_CHECK_TYPE(&srvsvc_NetShareInfo1007_Type, PyList_GET_ITEM(value, array_cntr_1), return -1;);
5718 if (talloc_reference(object->array, pytalloc_get_mem_ctx(PyList_GET_ITEM(value, array_cntr_1))) == NULL) {
5722 object->array[array_cntr_1] = *(struct srvsvc_NetShareInfo1007 *)pytalloc_get_ptr(PyList_GET_ITEM(value, array_cntr_1));
5729 static PyGetSetDef py_srvsvc_NetShareCtr1007_getsetters[] = {
5730 { discard_const_p(char, "count"), py_srvsvc_NetShareCtr1007_get_count, py_srvsvc_NetShareCtr1007_set_count },
5731 { discard_const_p(char, "array"), py_srvsvc_NetShareCtr1007_get_array, py_srvsvc_NetShareCtr1007_set_array },
5735 static PyObject *py_srvsvc_NetShareCtr1007_new(PyTypeObject *type, PyObject *args, PyObject *kwargs)
5737 return pytalloc_new(struct srvsvc_NetShareCtr1007, type);
5741 static PyTypeObject srvsvc_NetShareCtr1007_Type = {
5742 PyObject_HEAD_INIT(NULL) 0,
5743 .tp_name = "srvsvc.NetShareCtr1007",
5744 .tp_getset = py_srvsvc_NetShareCtr1007_getsetters,
5746 .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
5747 .tp_basicsize = sizeof(pytalloc_Object),
5748 .tp_new = py_srvsvc_NetShareCtr1007_new,
5752 static PyObject *py_srvsvc_NetShareCtr1501_get_count(PyObject *obj, void *closure)
5754 struct srvsvc_NetShareCtr1501 *object = (struct srvsvc_NetShareCtr1501 *)pytalloc_get_ptr(obj);
5756 py_count = PyInt_FromLong(object->count);
5760 static int py_srvsvc_NetShareCtr1501_set_count(PyObject *py_obj, PyObject *value, void *closure)
5762 struct srvsvc_NetShareCtr1501 *object = (struct srvsvc_NetShareCtr1501 *)pytalloc_get_ptr(py_obj);
5763 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
5764 object->count = PyInt_AsLong(value);
5768 static PyObject *py_srvsvc_NetShareCtr1501_get_array(PyObject *obj, void *closure)
5770 struct srvsvc_NetShareCtr1501 *object = (struct srvsvc_NetShareCtr1501 *)pytalloc_get_ptr(obj);
5772 if (object->array == NULL) {
5774 Py_INCREF(py_array);
5776 py_array = PyList_New(object->count);
5777 if (py_array == NULL) {
5782 for (array_cntr_1 = 0; array_cntr_1 < object->count; array_cntr_1++) {
5783 PyObject *py_array_1;
5784 py_array_1 = pytalloc_reference_ex(sec_desc_buf_Type, object->array, &object->array[array_cntr_1]);
5785 PyList_SetItem(py_array, array_cntr_1, py_array_1);
5792 static int py_srvsvc_NetShareCtr1501_set_array(PyObject *py_obj, PyObject *value, void *closure)
5794 struct srvsvc_NetShareCtr1501 *object = (struct srvsvc_NetShareCtr1501 *)pytalloc_get_ptr(py_obj);
5795 talloc_unlink(pytalloc_get_mem_ctx(py_obj), object->array);
5796 if (value == Py_None) {
5797 object->array = NULL;
5799 object->array = NULL;
5800 PY_CHECK_TYPE(&PyList_Type, value, return -1;);
5803 object->array = talloc_array_ptrtype(pytalloc_get_mem_ctx(py_obj), object->array, PyList_GET_SIZE(value));
5804 if (!object->array) { return -1;; }
5805 talloc_set_name_const(object->array, "ARRAY: object->array");
5806 for (array_cntr_1 = 0; array_cntr_1 < PyList_GET_SIZE(value); array_cntr_1++) {
5807 PY_CHECK_TYPE(sec_desc_buf_Type, PyList_GET_ITEM(value, array_cntr_1), return -1;);
5808 if (talloc_reference(object->array, pytalloc_get_mem_ctx(PyList_GET_ITEM(value, array_cntr_1))) == NULL) {
5812 object->array[array_cntr_1] = *(struct sec_desc_buf *)pytalloc_get_ptr(PyList_GET_ITEM(value, array_cntr_1));
5819 static PyGetSetDef py_srvsvc_NetShareCtr1501_getsetters[] = {
5820 { discard_const_p(char, "count"), py_srvsvc_NetShareCtr1501_get_count, py_srvsvc_NetShareCtr1501_set_count },
5821 { discard_const_p(char, "array"), py_srvsvc_NetShareCtr1501_get_array, py_srvsvc_NetShareCtr1501_set_array },
5825 static PyObject *py_srvsvc_NetShareCtr1501_new(PyTypeObject *type, PyObject *args, PyObject *kwargs)
5827 return pytalloc_new(struct srvsvc_NetShareCtr1501, type);
5831 static PyTypeObject srvsvc_NetShareCtr1501_Type = {
5832 PyObject_HEAD_INIT(NULL) 0,
5833 .tp_name = "srvsvc.NetShareCtr1501",
5834 .tp_getset = py_srvsvc_NetShareCtr1501_getsetters,
5836 .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
5837 .tp_basicsize = sizeof(pytalloc_Object),
5838 .tp_new = py_srvsvc_NetShareCtr1501_new,
5841 PyObject *py_import_srvsvc_NetShareInfo(TALLOC_CTX *mem_ctx, int level, union srvsvc_NetShareInfo *in)
5847 if (in->info0 == NULL) {
5851 ret = pytalloc_reference_ex(&srvsvc_NetShareInfo0_Type, in->info0, in->info0);
5856 if (in->info1 == NULL) {
5860 ret = pytalloc_reference_ex(&srvsvc_NetShareInfo1_Type, in->info1, in->info1);
5865 if (in->info2 == NULL) {
5869 ret = pytalloc_reference_ex(&srvsvc_NetShareInfo2_Type, in->info2, in->info2);
5874 if (in->info501 == NULL) {
5878 ret = pytalloc_reference_ex(&srvsvc_NetShareInfo501_Type, in->info501, in->info501);
5883 if (in->info502 == NULL) {
5887 ret = pytalloc_reference_ex(&srvsvc_NetShareInfo502_Type, in->info502, in->info502);
5892 if (in->info1004 == NULL) {
5896 ret = pytalloc_reference_ex(&srvsvc_NetShareInfo1004_Type, in->info1004, in->info1004);
5901 if (in->info1005 == NULL) {
5905 ret = pytalloc_reference_ex(&srvsvc_NetShareInfo1005_Type, in->info1005, in->info1005);
5910 if (in->info1006 == NULL) {
5914 ret = pytalloc_reference_ex(&srvsvc_NetShareInfo1006_Type, in->info1006, in->info1006);
5919 if (in->info1007 == NULL) {
5923 ret = pytalloc_reference_ex(&srvsvc_NetShareInfo1007_Type, in->info1007, in->info1007);
5928 if (in->info1501 == NULL) {
5932 ret = pytalloc_reference_ex(sec_desc_buf_Type, in->info1501, in->info1501);
5942 PyErr_SetString(PyExc_TypeError, "unknown union level");
5946 union srvsvc_NetShareInfo *py_export_srvsvc_NetShareInfo(TALLOC_CTX *mem_ctx, int level, PyObject *in)
5948 union srvsvc_NetShareInfo *ret = talloc_zero(mem_ctx, union srvsvc_NetShareInfo);
5951 if (in == Py_None) {
5955 PY_CHECK_TYPE(&srvsvc_NetShareInfo0_Type, in, talloc_free(ret); return NULL;);
5956 if (talloc_reference(mem_ctx, pytalloc_get_mem_ctx(in)) == NULL) {
5958 talloc_free(ret); return NULL;
5960 ret->info0 = (struct srvsvc_NetShareInfo0 *)pytalloc_get_ptr(in);
5965 if (in == Py_None) {
5969 PY_CHECK_TYPE(&srvsvc_NetShareInfo1_Type, in, talloc_free(ret); return NULL;);
5970 if (talloc_reference(mem_ctx, pytalloc_get_mem_ctx(in)) == NULL) {
5972 talloc_free(ret); return NULL;
5974 ret->info1 = (struct srvsvc_NetShareInfo1 *)pytalloc_get_ptr(in);
5979 if (in == Py_None) {
5983 PY_CHECK_TYPE(&srvsvc_NetShareInfo2_Type, in, talloc_free(ret); return NULL;);
5984 if (talloc_reference(mem_ctx, pytalloc_get_mem_ctx(in)) == NULL) {
5986 talloc_free(ret); return NULL;
5988 ret->info2 = (struct srvsvc_NetShareInfo2 *)pytalloc_get_ptr(in);
5993 if (in == Py_None) {
5994 ret->info501 = NULL;
5996 ret->info501 = NULL;
5997 PY_CHECK_TYPE(&srvsvc_NetShareInfo501_Type, in, talloc_free(ret); return NULL;);
5998 if (talloc_reference(mem_ctx, pytalloc_get_mem_ctx(in)) == NULL) {
6000 talloc_free(ret); return NULL;
6002 ret->info501 = (struct srvsvc_NetShareInfo501 *)pytalloc_get_ptr(in);
6007 if (in == Py_None) {
6008 ret->info502 = NULL;
6010 ret->info502 = NULL;
6011 PY_CHECK_TYPE(&srvsvc_NetShareInfo502_Type, in, talloc_free(ret); return NULL;);
6012 if (talloc_reference(mem_ctx, pytalloc_get_mem_ctx(in)) == NULL) {
6014 talloc_free(ret); return NULL;
6016 ret->info502 = (struct srvsvc_NetShareInfo502 *)pytalloc_get_ptr(in);
6021 if (in == Py_None) {
6022 ret->info1004 = NULL;
6024 ret->info1004 = NULL;
6025 PY_CHECK_TYPE(&srvsvc_NetShareInfo1004_Type, in, talloc_free(ret); return NULL;);
6026 if (talloc_reference(mem_ctx, pytalloc_get_mem_ctx(in)) == NULL) {
6028 talloc_free(ret); return NULL;
6030 ret->info1004 = (struct srvsvc_NetShareInfo1004 *)pytalloc_get_ptr(in);
6035 if (in == Py_None) {
6036 ret->info1005 = NULL;
6038 ret->info1005 = NULL;
6039 PY_CHECK_TYPE(&srvsvc_NetShareInfo1005_Type, in, talloc_free(ret); return NULL;);
6040 if (talloc_reference(mem_ctx, pytalloc_get_mem_ctx(in)) == NULL) {
6042 talloc_free(ret); return NULL;
6044 ret->info1005 = (struct srvsvc_NetShareInfo1005 *)pytalloc_get_ptr(in);
6049 if (in == Py_None) {
6050 ret->info1006 = NULL;
6052 ret->info1006 = NULL;
6053 PY_CHECK_TYPE(&srvsvc_NetShareInfo1006_Type, in, talloc_free(ret); return NULL;);
6054 if (talloc_reference(mem_ctx, pytalloc_get_mem_ctx(in)) == NULL) {
6056 talloc_free(ret); return NULL;
6058 ret->info1006 = (struct srvsvc_NetShareInfo1006 *)pytalloc_get_ptr(in);
6063 if (in == Py_None) {
6064 ret->info1007 = NULL;
6066 ret->info1007 = NULL;
6067 PY_CHECK_TYPE(&srvsvc_NetShareInfo1007_Type, in, talloc_free(ret); return NULL;);
6068 if (talloc_reference(mem_ctx, pytalloc_get_mem_ctx(in)) == NULL) {
6070 talloc_free(ret); return NULL;
6072 ret->info1007 = (struct srvsvc_NetShareInfo1007 *)pytalloc_get_ptr(in);
6077 if (in == Py_None) {
6078 ret->info1501 = NULL;
6080 ret->info1501 = NULL;
6081 PY_CHECK_TYPE(sec_desc_buf_Type, in, talloc_free(ret); return NULL;);
6082 if (talloc_reference(mem_ctx, pytalloc_get_mem_ctx(in)) == NULL) {
6084 talloc_free(ret); return NULL;
6086 ret->info1501 = (struct sec_desc_buf *)pytalloc_get_ptr(in);
6098 PyObject *py_import_srvsvc_NetShareCtr(TALLOC_CTX *mem_ctx, int level, union srvsvc_NetShareCtr *in)
6104 if (in->ctr0 == NULL) {
6108 ret = pytalloc_reference_ex(&srvsvc_NetShareCtr0_Type, in->ctr0, in->ctr0);
6113 if (in->ctr1 == NULL) {
6117 ret = pytalloc_reference_ex(&srvsvc_NetShareCtr1_Type, in->ctr1, in->ctr1);
6122 if (in->ctr2 == NULL) {
6126 ret = pytalloc_reference_ex(&srvsvc_NetShareCtr2_Type, in->ctr2, in->ctr2);
6131 if (in->ctr501 == NULL) {
6135 ret = pytalloc_reference_ex(&srvsvc_NetShareCtr501_Type, in->ctr501, in->ctr501);
6140 if (in->ctr502 == NULL) {
6144 ret = pytalloc_reference_ex(&srvsvc_NetShareCtr502_Type, in->ctr502, in->ctr502);
6149 if (in->ctr1004 == NULL) {
6153 ret = pytalloc_reference_ex(&srvsvc_NetShareCtr1004_Type, in->ctr1004, in->ctr1004);
6158 if (in->ctr1005 == NULL) {
6162 ret = pytalloc_reference_ex(&srvsvc_NetShareCtr1005_Type, in->ctr1005, in->ctr1005);
6167 if (in->ctr1006 == NULL) {
6171 ret = pytalloc_reference_ex(&srvsvc_NetShareCtr1006_Type, in->ctr1006, in->ctr1006);
6176 if (in->ctr1007 == NULL) {
6180 ret = pytalloc_reference_ex(&srvsvc_NetShareCtr1007_Type, in->ctr1007, in->ctr1007);
6185 if (in->ctr1501 == NULL) {
6189 ret = pytalloc_reference_ex(&srvsvc_NetShareCtr1501_Type, in->ctr1501, in->ctr1501);
6199 PyErr_SetString(PyExc_TypeError, "unknown union level");
6203 union srvsvc_NetShareCtr *py_export_srvsvc_NetShareCtr(TALLOC_CTX *mem_ctx, int level, PyObject *in)
6205 union srvsvc_NetShareCtr *ret = talloc_zero(mem_ctx, union srvsvc_NetShareCtr);
6208 if (in == Py_None) {
6212 PY_CHECK_TYPE(&srvsvc_NetShareCtr0_Type, in, talloc_free(ret); return NULL;);
6213 if (talloc_reference(mem_ctx, pytalloc_get_mem_ctx(in)) == NULL) {
6215 talloc_free(ret); return NULL;
6217 ret->ctr0 = (struct srvsvc_NetShareCtr0 *)pytalloc_get_ptr(in);
6222 if (in == Py_None) {
6226 PY_CHECK_TYPE(&srvsvc_NetShareCtr1_Type, in, talloc_free(ret); return NULL;);
6227 if (talloc_reference(mem_ctx, pytalloc_get_mem_ctx(in)) == NULL) {
6229 talloc_free(ret); return NULL;
6231 ret->ctr1 = (struct srvsvc_NetShareCtr1 *)pytalloc_get_ptr(in);
6236 if (in == Py_None) {
6240 PY_CHECK_TYPE(&srvsvc_NetShareCtr2_Type, in, talloc_free(ret); return NULL;);
6241 if (talloc_reference(mem_ctx, pytalloc_get_mem_ctx(in)) == NULL) {
6243 talloc_free(ret); return NULL;
6245 ret->ctr2 = (struct srvsvc_NetShareCtr2 *)pytalloc_get_ptr(in);
6250 if (in == Py_None) {
6254 PY_CHECK_TYPE(&srvsvc_NetShareCtr501_Type, in, talloc_free(ret); return NULL;);
6255 if (talloc_reference(mem_ctx, pytalloc_get_mem_ctx(in)) == NULL) {
6257 talloc_free(ret); return NULL;
6259 ret->ctr501 = (struct srvsvc_NetShareCtr501 *)pytalloc_get_ptr(in);
6264 if (in == Py_None) {
6268 PY_CHECK_TYPE(&srvsvc_NetShareCtr502_Type, in, talloc_free(ret); return NULL;);
6269 if (talloc_reference(mem_ctx, pytalloc_get_mem_ctx(in)) == NULL) {
6271 talloc_free(ret); return NULL;
6273 ret->ctr502 = (struct srvsvc_NetShareCtr502 *)pytalloc_get_ptr(in);
6278 if (in == Py_None) {
6279 ret->ctr1004 = NULL;
6281 ret->ctr1004 = NULL;
6282 PY_CHECK_TYPE(&srvsvc_NetShareCtr1004_Type, in, talloc_free(ret); return NULL;);
6283 if (talloc_reference(mem_ctx, pytalloc_get_mem_ctx(in)) == NULL) {
6285 talloc_free(ret); return NULL;
6287 ret->ctr1004 = (struct srvsvc_NetShareCtr1004 *)pytalloc_get_ptr(in);
6292 if (in == Py_None) {
6293 ret->ctr1005 = NULL;
6295 ret->ctr1005 = NULL;
6296 PY_CHECK_TYPE(&srvsvc_NetShareCtr1005_Type, in, talloc_free(ret); return NULL;);
6297 if (talloc_reference(mem_ctx, pytalloc_get_mem_ctx(in)) == NULL) {
6299 talloc_free(ret); return NULL;
6301 ret->ctr1005 = (struct srvsvc_NetShareCtr1005 *)pytalloc_get_ptr(in);
6306 if (in == Py_None) {
6307 ret->ctr1006 = NULL;
6309 ret->ctr1006 = NULL;
6310 PY_CHECK_TYPE(&srvsvc_NetShareCtr1006_Type, in, talloc_free(ret); return NULL;);
6311 if (talloc_reference(mem_ctx, pytalloc_get_mem_ctx(in)) == NULL) {
6313 talloc_free(ret); return NULL;
6315 ret->ctr1006 = (struct srvsvc_NetShareCtr1006 *)pytalloc_get_ptr(in);
6320 if (in == Py_None) {
6321 ret->ctr1007 = NULL;
6323 ret->ctr1007 = NULL;
6324 PY_CHECK_TYPE(&srvsvc_NetShareCtr1007_Type, in, talloc_free(ret); return NULL;);
6325 if (talloc_reference(mem_ctx, pytalloc_get_mem_ctx(in)) == NULL) {
6327 talloc_free(ret); return NULL;
6329 ret->ctr1007 = (struct srvsvc_NetShareCtr1007 *)pytalloc_get_ptr(in);
6334 if (in == Py_None) {
6335 ret->ctr1501 = NULL;
6337 ret->ctr1501 = NULL;
6338 PY_CHECK_TYPE(&srvsvc_NetShareCtr1501_Type, in, talloc_free(ret); return NULL;);
6339 if (talloc_reference(mem_ctx, pytalloc_get_mem_ctx(in)) == NULL) {
6341 talloc_free(ret); return NULL;
6343 ret->ctr1501 = (struct srvsvc_NetShareCtr1501 *)pytalloc_get_ptr(in);
6356 static PyObject *py_srvsvc_NetShareInfoCtr_get_level(PyObject *obj, void *closure)
6358 struct srvsvc_NetShareInfoCtr *object = (struct srvsvc_NetShareInfoCtr *)pytalloc_get_ptr(obj);
6360 py_level = PyInt_FromLong(object->level);
6364 static int py_srvsvc_NetShareInfoCtr_set_level(PyObject *py_obj, PyObject *value, void *closure)
6366 struct srvsvc_NetShareInfoCtr *object = (struct srvsvc_NetShareInfoCtr *)pytalloc_get_ptr(py_obj);
6367 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
6368 object->level = PyInt_AsLong(value);
6372 static PyObject *py_srvsvc_NetShareInfoCtr_get_ctr(PyObject *obj, void *closure)
6374 struct srvsvc_NetShareInfoCtr *object = (struct srvsvc_NetShareInfoCtr *)pytalloc_get_ptr(obj);
6376 py_ctr = py_import_srvsvc_NetShareCtr(pytalloc_get_mem_ctx(obj), object->level, &object->ctr);
6377 if (py_ctr == NULL) {
6383 static int py_srvsvc_NetShareInfoCtr_set_ctr(PyObject *py_obj, PyObject *value, void *closure)
6385 struct srvsvc_NetShareInfoCtr *object = (struct srvsvc_NetShareInfoCtr *)pytalloc_get_ptr(py_obj);
6387 union srvsvc_NetShareCtr *ctr_switch_0;
6388 ctr_switch_0 = py_export_srvsvc_NetShareCtr(pytalloc_get_mem_ctx(py_obj), object->level, value);
6389 if (ctr_switch_0 == NULL) {
6392 object->ctr = *ctr_switch_0;
6397 static PyGetSetDef py_srvsvc_NetShareInfoCtr_getsetters[] = {
6398 { discard_const_p(char, "level"), py_srvsvc_NetShareInfoCtr_get_level, py_srvsvc_NetShareInfoCtr_set_level },
6399 { discard_const_p(char, "ctr"), py_srvsvc_NetShareInfoCtr_get_ctr, py_srvsvc_NetShareInfoCtr_set_ctr },
6403 static PyObject *py_srvsvc_NetShareInfoCtr_new(PyTypeObject *type, PyObject *args, PyObject *kwargs)
6405 return pytalloc_new(struct srvsvc_NetShareInfoCtr, type);
6409 static PyTypeObject srvsvc_NetShareInfoCtr_Type = {
6410 PyObject_HEAD_INIT(NULL) 0,
6411 .tp_name = "srvsvc.NetShareInfoCtr",
6412 .tp_getset = py_srvsvc_NetShareInfoCtr_getsetters,
6414 .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
6415 .tp_basicsize = sizeof(pytalloc_Object),
6416 .tp_new = py_srvsvc_NetShareInfoCtr_new,
6420 static PyObject *py_srvsvc_NetSrvInfo100_get_platform_id(PyObject *obj, void *closure)
6422 struct srvsvc_NetSrvInfo100 *object = (struct srvsvc_NetSrvInfo100 *)pytalloc_get_ptr(obj);
6423 PyObject *py_platform_id;
6424 py_platform_id = PyInt_FromLong(object->platform_id);
6425 return py_platform_id;
6428 static int py_srvsvc_NetSrvInfo100_set_platform_id(PyObject *py_obj, PyObject *value, void *closure)
6430 struct srvsvc_NetSrvInfo100 *object = (struct srvsvc_NetSrvInfo100 *)pytalloc_get_ptr(py_obj);
6431 if (PyLong_Check(value)) {
6432 object->platform_id = PyLong_AsLongLong(value);
6433 } else if (PyInt_Check(value)) {
6434 object->platform_id = PyInt_AsLong(value);
6436 PyErr_Format(PyExc_TypeError, "Expected type %s or %s",\
6437 PyInt_Type.tp_name, PyLong_Type.tp_name);
6443 static PyObject *py_srvsvc_NetSrvInfo100_get_server_name(PyObject *obj, void *closure)
6445 struct srvsvc_NetSrvInfo100 *object = (struct srvsvc_NetSrvInfo100 *)pytalloc_get_ptr(obj);
6446 PyObject *py_server_name;
6447 if (object->server_name == NULL) {
6448 py_server_name = Py_None;
6449 Py_INCREF(py_server_name);
6451 if (object->server_name == NULL) {
6452 py_server_name = Py_None;
6453 Py_INCREF(py_server_name);
6455 py_server_name = PyUnicode_Decode(object->server_name, strlen(object->server_name), "utf-8", "ignore");
6458 return py_server_name;
6461 static int py_srvsvc_NetSrvInfo100_set_server_name(PyObject *py_obj, PyObject *value, void *closure)
6463 struct srvsvc_NetSrvInfo100 *object = (struct srvsvc_NetSrvInfo100 *)pytalloc_get_ptr(py_obj);
6464 if (value == Py_None) {
6465 object->server_name = NULL;
6467 object->server_name = NULL;
6468 if (PyUnicode_Check(value)) {
6469 object->server_name = PyString_AS_STRING(PyUnicode_AsEncodedString(value, "utf-8", "ignore"));
6470 } else if (PyString_Check(value)) {
6471 object->server_name = PyString_AS_STRING(value);
6473 PyErr_Format(PyExc_TypeError, "Expected string or unicode object, got %s", Py_TYPE(value)->tp_name);
6480 static PyGetSetDef py_srvsvc_NetSrvInfo100_getsetters[] = {
6481 { discard_const_p(char, "platform_id"), py_srvsvc_NetSrvInfo100_get_platform_id, py_srvsvc_NetSrvInfo100_set_platform_id },
6482 { discard_const_p(char, "server_name"), py_srvsvc_NetSrvInfo100_get_server_name, py_srvsvc_NetSrvInfo100_set_server_name },
6486 static PyObject *py_srvsvc_NetSrvInfo100_new(PyTypeObject *type, PyObject *args, PyObject *kwargs)
6488 return pytalloc_new(struct srvsvc_NetSrvInfo100, type);
6491 static PyObject *py_srvsvc_NetSrvInfo100_ndr_pack(PyObject *py_obj)
6493 struct srvsvc_NetSrvInfo100 *object = (struct srvsvc_NetSrvInfo100 *)pytalloc_get_ptr(py_obj);
6495 enum ndr_err_code err;
6496 err = ndr_push_struct_blob(&blob, pytalloc_get_mem_ctx(py_obj), object, (ndr_push_flags_fn_t)ndr_push_srvsvc_NetSrvInfo100);
6497 if (err != NDR_ERR_SUCCESS) {
6498 PyErr_SetNdrError(err);
6502 return PyString_FromStringAndSize((char *)blob.data, blob.length);
6505 static PyObject *py_srvsvc_NetSrvInfo100_ndr_unpack(PyObject *py_obj, PyObject *args, PyObject *kwargs)
6507 struct srvsvc_NetSrvInfo100 *object = (struct srvsvc_NetSrvInfo100 *)pytalloc_get_ptr(py_obj);
6509 int blob_length = 0;
6510 enum ndr_err_code err;
6511 const char * const kwnames[] = { "data_blob", "allow_remaining", NULL };
6512 PyObject *allow_remaining_obj = NULL;
6513 bool allow_remaining = false;
6515 if (!PyArg_ParseTupleAndKeywords(args, kwargs, "s#|O:__ndr_unpack__",
6516 discard_const_p(char *, kwnames),
6517 &blob.data, &blob_length,
6518 &allow_remaining_obj)) {
6521 blob.length = blob_length;
6523 if (allow_remaining_obj && PyObject_IsTrue(allow_remaining_obj)) {
6524 allow_remaining = true;
6527 if (allow_remaining) {
6528 err = ndr_pull_struct_blob(&blob, pytalloc_get_mem_ctx(py_obj), object, (ndr_pull_flags_fn_t)ndr_pull_srvsvc_NetSrvInfo100);
6530 err = ndr_pull_struct_blob_all(&blob, pytalloc_get_mem_ctx(py_obj), object, (ndr_pull_flags_fn_t)ndr_pull_srvsvc_NetSrvInfo100);
6532 if (err != NDR_ERR_SUCCESS) {
6533 PyErr_SetNdrError(err);
6540 static PyObject *py_srvsvc_NetSrvInfo100_ndr_print(PyObject *py_obj)
6542 struct srvsvc_NetSrvInfo100 *object = (struct srvsvc_NetSrvInfo100 *)pytalloc_get_ptr(py_obj);
6546 retstr = ndr_print_struct_string(pytalloc_get_mem_ctx(py_obj), (ndr_print_fn_t)ndr_print_srvsvc_NetSrvInfo100, "srvsvc_NetSrvInfo100", object);
6547 ret = PyString_FromString(retstr);
6548 talloc_free(retstr);
6553 static PyMethodDef py_srvsvc_NetSrvInfo100_methods[] = {
6554 { "__ndr_pack__", (PyCFunction)py_srvsvc_NetSrvInfo100_ndr_pack, METH_NOARGS, "S.ndr_pack(object) -> blob\nNDR pack" },
6555 { "__ndr_unpack__", (PyCFunction)py_srvsvc_NetSrvInfo100_ndr_unpack, METH_VARARGS|METH_KEYWORDS, "S.ndr_unpack(class, blob, allow_remaining=False) -> None\nNDR unpack" },
6556 { "__ndr_print__", (PyCFunction)py_srvsvc_NetSrvInfo100_ndr_print, METH_VARARGS, "S.ndr_print(object) -> None\nNDR print" },
6557 { NULL, NULL, 0, NULL }
6561 static PyTypeObject srvsvc_NetSrvInfo100_Type = {
6562 PyObject_HEAD_INIT(NULL) 0,
6563 .tp_name = "srvsvc.NetSrvInfo100",
6564 .tp_getset = py_srvsvc_NetSrvInfo100_getsetters,
6565 .tp_methods = py_srvsvc_NetSrvInfo100_methods,
6566 .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
6567 .tp_basicsize = sizeof(pytalloc_Object),
6568 .tp_new = py_srvsvc_NetSrvInfo100_new,
6572 static PyObject *py_srvsvc_NetSrvInfo101_get_platform_id(PyObject *obj, void *closure)
6574 struct srvsvc_NetSrvInfo101 *object = (struct srvsvc_NetSrvInfo101 *)pytalloc_get_ptr(obj);
6575 PyObject *py_platform_id;
6576 py_platform_id = PyInt_FromLong(object->platform_id);
6577 return py_platform_id;
6580 static int py_srvsvc_NetSrvInfo101_set_platform_id(PyObject *py_obj, PyObject *value, void *closure)
6582 struct srvsvc_NetSrvInfo101 *object = (struct srvsvc_NetSrvInfo101 *)pytalloc_get_ptr(py_obj);
6583 if (PyLong_Check(value)) {
6584 object->platform_id = PyLong_AsLongLong(value);
6585 } else if (PyInt_Check(value)) {
6586 object->platform_id = PyInt_AsLong(value);
6588 PyErr_Format(PyExc_TypeError, "Expected type %s or %s",\
6589 PyInt_Type.tp_name, PyLong_Type.tp_name);
6595 static PyObject *py_srvsvc_NetSrvInfo101_get_server_name(PyObject *obj, void *closure)
6597 struct srvsvc_NetSrvInfo101 *object = (struct srvsvc_NetSrvInfo101 *)pytalloc_get_ptr(obj);
6598 PyObject *py_server_name;
6599 if (object->server_name == NULL) {
6600 py_server_name = Py_None;
6601 Py_INCREF(py_server_name);
6603 if (object->server_name == NULL) {
6604 py_server_name = Py_None;
6605 Py_INCREF(py_server_name);
6607 py_server_name = PyUnicode_Decode(object->server_name, strlen(object->server_name), "utf-8", "ignore");
6610 return py_server_name;
6613 static int py_srvsvc_NetSrvInfo101_set_server_name(PyObject *py_obj, PyObject *value, void *closure)
6615 struct srvsvc_NetSrvInfo101 *object = (struct srvsvc_NetSrvInfo101 *)pytalloc_get_ptr(py_obj);
6616 if (value == Py_None) {
6617 object->server_name = NULL;
6619 object->server_name = NULL;
6620 if (PyUnicode_Check(value)) {
6621 object->server_name = PyString_AS_STRING(PyUnicode_AsEncodedString(value, "utf-8", "ignore"));
6622 } else if (PyString_Check(value)) {
6623 object->server_name = PyString_AS_STRING(value);
6625 PyErr_Format(PyExc_TypeError, "Expected string or unicode object, got %s", Py_TYPE(value)->tp_name);
6632 static PyObject *py_srvsvc_NetSrvInfo101_get_version_major(PyObject *obj, void *closure)
6634 struct srvsvc_NetSrvInfo101 *object = (struct srvsvc_NetSrvInfo101 *)pytalloc_get_ptr(obj);
6635 PyObject *py_version_major;
6636 py_version_major = PyInt_FromLong(object->version_major);
6637 return py_version_major;
6640 static int py_srvsvc_NetSrvInfo101_set_version_major(PyObject *py_obj, PyObject *value, void *closure)
6642 struct srvsvc_NetSrvInfo101 *object = (struct srvsvc_NetSrvInfo101 *)pytalloc_get_ptr(py_obj);
6643 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
6644 object->version_major = PyInt_AsLong(value);
6648 static PyObject *py_srvsvc_NetSrvInfo101_get_version_minor(PyObject *obj, void *closure)
6650 struct srvsvc_NetSrvInfo101 *object = (struct srvsvc_NetSrvInfo101 *)pytalloc_get_ptr(obj);
6651 PyObject *py_version_minor;
6652 py_version_minor = PyInt_FromLong(object->version_minor);
6653 return py_version_minor;
6656 static int py_srvsvc_NetSrvInfo101_set_version_minor(PyObject *py_obj, PyObject *value, void *closure)
6658 struct srvsvc_NetSrvInfo101 *object = (struct srvsvc_NetSrvInfo101 *)pytalloc_get_ptr(py_obj);
6659 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
6660 object->version_minor = PyInt_AsLong(value);
6664 static PyObject *py_srvsvc_NetSrvInfo101_get_server_type(PyObject *obj, void *closure)
6666 struct srvsvc_NetSrvInfo101 *object = (struct srvsvc_NetSrvInfo101 *)pytalloc_get_ptr(obj);
6667 PyObject *py_server_type;
6668 py_server_type = PyInt_FromLong(object->server_type);
6669 return py_server_type;
6672 static int py_srvsvc_NetSrvInfo101_set_server_type(PyObject *py_obj, PyObject *value, void *closure)
6674 struct srvsvc_NetSrvInfo101 *object = (struct srvsvc_NetSrvInfo101 *)pytalloc_get_ptr(py_obj);
6675 if (PyLong_Check(value)) {
6676 object->server_type = PyLong_AsLongLong(value);
6677 } else if (PyInt_Check(value)) {
6678 object->server_type = PyInt_AsLong(value);
6680 PyErr_Format(PyExc_TypeError, "Expected type %s or %s",\
6681 PyInt_Type.tp_name, PyLong_Type.tp_name);
6687 static PyObject *py_srvsvc_NetSrvInfo101_get_comment(PyObject *obj, void *closure)
6689 struct srvsvc_NetSrvInfo101 *object = (struct srvsvc_NetSrvInfo101 *)pytalloc_get_ptr(obj);
6690 PyObject *py_comment;
6691 if (object->comment == NULL) {
6692 py_comment = Py_None;
6693 Py_INCREF(py_comment);
6695 if (object->comment == NULL) {
6696 py_comment = Py_None;
6697 Py_INCREF(py_comment);
6699 py_comment = PyUnicode_Decode(object->comment, strlen(object->comment), "utf-8", "ignore");
6705 static int py_srvsvc_NetSrvInfo101_set_comment(PyObject *py_obj, PyObject *value, void *closure)
6707 struct srvsvc_NetSrvInfo101 *object = (struct srvsvc_NetSrvInfo101 *)pytalloc_get_ptr(py_obj);
6708 if (value == Py_None) {
6709 object->comment = NULL;
6711 object->comment = NULL;
6712 if (PyUnicode_Check(value)) {
6713 object->comment = PyString_AS_STRING(PyUnicode_AsEncodedString(value, "utf-8", "ignore"));
6714 } else if (PyString_Check(value)) {
6715 object->comment = PyString_AS_STRING(value);
6717 PyErr_Format(PyExc_TypeError, "Expected string or unicode object, got %s", Py_TYPE(value)->tp_name);
6724 static PyGetSetDef py_srvsvc_NetSrvInfo101_getsetters[] = {
6725 { discard_const_p(char, "platform_id"), py_srvsvc_NetSrvInfo101_get_platform_id, py_srvsvc_NetSrvInfo101_set_platform_id },
6726 { discard_const_p(char, "server_name"), py_srvsvc_NetSrvInfo101_get_server_name, py_srvsvc_NetSrvInfo101_set_server_name },
6727 { discard_const_p(char, "version_major"), py_srvsvc_NetSrvInfo101_get_version_major, py_srvsvc_NetSrvInfo101_set_version_major },
6728 { discard_const_p(char, "version_minor"), py_srvsvc_NetSrvInfo101_get_version_minor, py_srvsvc_NetSrvInfo101_set_version_minor },
6729 { discard_const_p(char, "server_type"), py_srvsvc_NetSrvInfo101_get_server_type, py_srvsvc_NetSrvInfo101_set_server_type },
6730 { discard_const_p(char, "comment"), py_srvsvc_NetSrvInfo101_get_comment, py_srvsvc_NetSrvInfo101_set_comment },
6734 static PyObject *py_srvsvc_NetSrvInfo101_new(PyTypeObject *type, PyObject *args, PyObject *kwargs)
6736 return pytalloc_new(struct srvsvc_NetSrvInfo101, type);
6739 static PyObject *py_srvsvc_NetSrvInfo101_ndr_pack(PyObject *py_obj)
6741 struct srvsvc_NetSrvInfo101 *object = (struct srvsvc_NetSrvInfo101 *)pytalloc_get_ptr(py_obj);
6743 enum ndr_err_code err;
6744 err = ndr_push_struct_blob(&blob, pytalloc_get_mem_ctx(py_obj), object, (ndr_push_flags_fn_t)ndr_push_srvsvc_NetSrvInfo101);
6745 if (err != NDR_ERR_SUCCESS) {
6746 PyErr_SetNdrError(err);
6750 return PyString_FromStringAndSize((char *)blob.data, blob.length);
6753 static PyObject *py_srvsvc_NetSrvInfo101_ndr_unpack(PyObject *py_obj, PyObject *args, PyObject *kwargs)
6755 struct srvsvc_NetSrvInfo101 *object = (struct srvsvc_NetSrvInfo101 *)pytalloc_get_ptr(py_obj);
6757 int blob_length = 0;
6758 enum ndr_err_code err;
6759 const char * const kwnames[] = { "data_blob", "allow_remaining", NULL };
6760 PyObject *allow_remaining_obj = NULL;
6761 bool allow_remaining = false;
6763 if (!PyArg_ParseTupleAndKeywords(args, kwargs, "s#|O:__ndr_unpack__",
6764 discard_const_p(char *, kwnames),
6765 &blob.data, &blob_length,
6766 &allow_remaining_obj)) {
6769 blob.length = blob_length;
6771 if (allow_remaining_obj && PyObject_IsTrue(allow_remaining_obj)) {
6772 allow_remaining = true;
6775 if (allow_remaining) {
6776 err = ndr_pull_struct_blob(&blob, pytalloc_get_mem_ctx(py_obj), object, (ndr_pull_flags_fn_t)ndr_pull_srvsvc_NetSrvInfo101);
6778 err = ndr_pull_struct_blob_all(&blob, pytalloc_get_mem_ctx(py_obj), object, (ndr_pull_flags_fn_t)ndr_pull_srvsvc_NetSrvInfo101);
6780 if (err != NDR_ERR_SUCCESS) {
6781 PyErr_SetNdrError(err);
6788 static PyObject *py_srvsvc_NetSrvInfo101_ndr_print(PyObject *py_obj)
6790 struct srvsvc_NetSrvInfo101 *object = (struct srvsvc_NetSrvInfo101 *)pytalloc_get_ptr(py_obj);
6794 retstr = ndr_print_struct_string(pytalloc_get_mem_ctx(py_obj), (ndr_print_fn_t)ndr_print_srvsvc_NetSrvInfo101, "srvsvc_NetSrvInfo101", object);
6795 ret = PyString_FromString(retstr);
6796 talloc_free(retstr);
6801 static PyMethodDef py_srvsvc_NetSrvInfo101_methods[] = {
6802 { "__ndr_pack__", (PyCFunction)py_srvsvc_NetSrvInfo101_ndr_pack, METH_NOARGS, "S.ndr_pack(object) -> blob\nNDR pack" },
6803 { "__ndr_unpack__", (PyCFunction)py_srvsvc_NetSrvInfo101_ndr_unpack, METH_VARARGS|METH_KEYWORDS, "S.ndr_unpack(class, blob, allow_remaining=False) -> None\nNDR unpack" },
6804 { "__ndr_print__", (PyCFunction)py_srvsvc_NetSrvInfo101_ndr_print, METH_VARARGS, "S.ndr_print(object) -> None\nNDR print" },
6805 { NULL, NULL, 0, NULL }
6809 static PyTypeObject srvsvc_NetSrvInfo101_Type = {
6810 PyObject_HEAD_INIT(NULL) 0,
6811 .tp_name = "srvsvc.NetSrvInfo101",
6812 .tp_getset = py_srvsvc_NetSrvInfo101_getsetters,
6813 .tp_methods = py_srvsvc_NetSrvInfo101_methods,
6814 .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
6815 .tp_basicsize = sizeof(pytalloc_Object),
6816 .tp_new = py_srvsvc_NetSrvInfo101_new,
6820 static PyObject *py_srvsvc_NetSrvInfo102_get_platform_id(PyObject *obj, void *closure)
6822 struct srvsvc_NetSrvInfo102 *object = (struct srvsvc_NetSrvInfo102 *)pytalloc_get_ptr(obj);
6823 PyObject *py_platform_id;
6824 py_platform_id = PyInt_FromLong(object->platform_id);
6825 return py_platform_id;
6828 static int py_srvsvc_NetSrvInfo102_set_platform_id(PyObject *py_obj, PyObject *value, void *closure)
6830 struct srvsvc_NetSrvInfo102 *object = (struct srvsvc_NetSrvInfo102 *)pytalloc_get_ptr(py_obj);
6831 if (PyLong_Check(value)) {
6832 object->platform_id = PyLong_AsLongLong(value);
6833 } else if (PyInt_Check(value)) {
6834 object->platform_id = PyInt_AsLong(value);
6836 PyErr_Format(PyExc_TypeError, "Expected type %s or %s",\
6837 PyInt_Type.tp_name, PyLong_Type.tp_name);
6843 static PyObject *py_srvsvc_NetSrvInfo102_get_server_name(PyObject *obj, void *closure)
6845 struct srvsvc_NetSrvInfo102 *object = (struct srvsvc_NetSrvInfo102 *)pytalloc_get_ptr(obj);
6846 PyObject *py_server_name;
6847 if (object->server_name == NULL) {
6848 py_server_name = Py_None;
6849 Py_INCREF(py_server_name);
6851 if (object->server_name == NULL) {
6852 py_server_name = Py_None;
6853 Py_INCREF(py_server_name);
6855 py_server_name = PyUnicode_Decode(object->server_name, strlen(object->server_name), "utf-8", "ignore");
6858 return py_server_name;
6861 static int py_srvsvc_NetSrvInfo102_set_server_name(PyObject *py_obj, PyObject *value, void *closure)
6863 struct srvsvc_NetSrvInfo102 *object = (struct srvsvc_NetSrvInfo102 *)pytalloc_get_ptr(py_obj);
6864 if (value == Py_None) {
6865 object->server_name = NULL;
6867 object->server_name = NULL;
6868 if (PyUnicode_Check(value)) {
6869 object->server_name = PyString_AS_STRING(PyUnicode_AsEncodedString(value, "utf-8", "ignore"));
6870 } else if (PyString_Check(value)) {
6871 object->server_name = PyString_AS_STRING(value);
6873 PyErr_Format(PyExc_TypeError, "Expected string or unicode object, got %s", Py_TYPE(value)->tp_name);
6880 static PyObject *py_srvsvc_NetSrvInfo102_get_version_major(PyObject *obj, void *closure)
6882 struct srvsvc_NetSrvInfo102 *object = (struct srvsvc_NetSrvInfo102 *)pytalloc_get_ptr(obj);
6883 PyObject *py_version_major;
6884 py_version_major = PyInt_FromLong(object->version_major);
6885 return py_version_major;
6888 static int py_srvsvc_NetSrvInfo102_set_version_major(PyObject *py_obj, PyObject *value, void *closure)
6890 struct srvsvc_NetSrvInfo102 *object = (struct srvsvc_NetSrvInfo102 *)pytalloc_get_ptr(py_obj);
6891 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
6892 object->version_major = PyInt_AsLong(value);
6896 static PyObject *py_srvsvc_NetSrvInfo102_get_version_minor(PyObject *obj, void *closure)
6898 struct srvsvc_NetSrvInfo102 *object = (struct srvsvc_NetSrvInfo102 *)pytalloc_get_ptr(obj);
6899 PyObject *py_version_minor;
6900 py_version_minor = PyInt_FromLong(object->version_minor);
6901 return py_version_minor;
6904 static int py_srvsvc_NetSrvInfo102_set_version_minor(PyObject *py_obj, PyObject *value, void *closure)
6906 struct srvsvc_NetSrvInfo102 *object = (struct srvsvc_NetSrvInfo102 *)pytalloc_get_ptr(py_obj);
6907 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
6908 object->version_minor = PyInt_AsLong(value);
6912 static PyObject *py_srvsvc_NetSrvInfo102_get_server_type(PyObject *obj, void *closure)
6914 struct srvsvc_NetSrvInfo102 *object = (struct srvsvc_NetSrvInfo102 *)pytalloc_get_ptr(obj);
6915 PyObject *py_server_type;
6916 py_server_type = PyInt_FromLong(object->server_type);
6917 return py_server_type;
6920 static int py_srvsvc_NetSrvInfo102_set_server_type(PyObject *py_obj, PyObject *value, void *closure)
6922 struct srvsvc_NetSrvInfo102 *object = (struct srvsvc_NetSrvInfo102 *)pytalloc_get_ptr(py_obj);
6923 if (PyLong_Check(value)) {
6924 object->server_type = PyLong_AsLongLong(value);
6925 } else if (PyInt_Check(value)) {
6926 object->server_type = PyInt_AsLong(value);
6928 PyErr_Format(PyExc_TypeError, "Expected type %s or %s",\
6929 PyInt_Type.tp_name, PyLong_Type.tp_name);
6935 static PyObject *py_srvsvc_NetSrvInfo102_get_comment(PyObject *obj, void *closure)
6937 struct srvsvc_NetSrvInfo102 *object = (struct srvsvc_NetSrvInfo102 *)pytalloc_get_ptr(obj);
6938 PyObject *py_comment;
6939 if (object->comment == NULL) {
6940 py_comment = Py_None;
6941 Py_INCREF(py_comment);
6943 if (object->comment == NULL) {
6944 py_comment = Py_None;
6945 Py_INCREF(py_comment);
6947 py_comment = PyUnicode_Decode(object->comment, strlen(object->comment), "utf-8", "ignore");
6953 static int py_srvsvc_NetSrvInfo102_set_comment(PyObject *py_obj, PyObject *value, void *closure)
6955 struct srvsvc_NetSrvInfo102 *object = (struct srvsvc_NetSrvInfo102 *)pytalloc_get_ptr(py_obj);
6956 if (value == Py_None) {
6957 object->comment = NULL;
6959 object->comment = NULL;
6960 if (PyUnicode_Check(value)) {
6961 object->comment = PyString_AS_STRING(PyUnicode_AsEncodedString(value, "utf-8", "ignore"));
6962 } else if (PyString_Check(value)) {
6963 object->comment = PyString_AS_STRING(value);
6965 PyErr_Format(PyExc_TypeError, "Expected string or unicode object, got %s", Py_TYPE(value)->tp_name);
6972 static PyObject *py_srvsvc_NetSrvInfo102_get_users(PyObject *obj, void *closure)
6974 struct srvsvc_NetSrvInfo102 *object = (struct srvsvc_NetSrvInfo102 *)pytalloc_get_ptr(obj);
6976 py_users = PyInt_FromLong(object->users);
6980 static int py_srvsvc_NetSrvInfo102_set_users(PyObject *py_obj, PyObject *value, void *closure)
6982 struct srvsvc_NetSrvInfo102 *object = (struct srvsvc_NetSrvInfo102 *)pytalloc_get_ptr(py_obj);
6983 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
6984 object->users = PyInt_AsLong(value);
6988 static PyObject *py_srvsvc_NetSrvInfo102_get_disc(PyObject *obj, void *closure)
6990 struct srvsvc_NetSrvInfo102 *object = (struct srvsvc_NetSrvInfo102 *)pytalloc_get_ptr(obj);
6992 py_disc = PyInt_FromLong(object->disc);
6996 static int py_srvsvc_NetSrvInfo102_set_disc(PyObject *py_obj, PyObject *value, void *closure)
6998 struct srvsvc_NetSrvInfo102 *object = (struct srvsvc_NetSrvInfo102 *)pytalloc_get_ptr(py_obj);
6999 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
7000 object->disc = PyInt_AsLong(value);
7004 static PyObject *py_srvsvc_NetSrvInfo102_get_hidden(PyObject *obj, void *closure)
7006 struct srvsvc_NetSrvInfo102 *object = (struct srvsvc_NetSrvInfo102 *)pytalloc_get_ptr(obj);
7007 PyObject *py_hidden;
7008 py_hidden = PyInt_FromLong(object->hidden);
7012 static int py_srvsvc_NetSrvInfo102_set_hidden(PyObject *py_obj, PyObject *value, void *closure)
7014 struct srvsvc_NetSrvInfo102 *object = (struct srvsvc_NetSrvInfo102 *)pytalloc_get_ptr(py_obj);
7015 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
7016 object->hidden = PyInt_AsLong(value);
7020 static PyObject *py_srvsvc_NetSrvInfo102_get_announce(PyObject *obj, void *closure)
7022 struct srvsvc_NetSrvInfo102 *object = (struct srvsvc_NetSrvInfo102 *)pytalloc_get_ptr(obj);
7023 PyObject *py_announce;
7024 py_announce = PyInt_FromLong(object->announce);
7028 static int py_srvsvc_NetSrvInfo102_set_announce(PyObject *py_obj, PyObject *value, void *closure)
7030 struct srvsvc_NetSrvInfo102 *object = (struct srvsvc_NetSrvInfo102 *)pytalloc_get_ptr(py_obj);
7031 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
7032 object->announce = PyInt_AsLong(value);
7036 static PyObject *py_srvsvc_NetSrvInfo102_get_anndelta(PyObject *obj, void *closure)
7038 struct srvsvc_NetSrvInfo102 *object = (struct srvsvc_NetSrvInfo102 *)pytalloc_get_ptr(obj);
7039 PyObject *py_anndelta;
7040 py_anndelta = PyInt_FromLong(object->anndelta);
7044 static int py_srvsvc_NetSrvInfo102_set_anndelta(PyObject *py_obj, PyObject *value, void *closure)
7046 struct srvsvc_NetSrvInfo102 *object = (struct srvsvc_NetSrvInfo102 *)pytalloc_get_ptr(py_obj);
7047 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
7048 object->anndelta = PyInt_AsLong(value);
7052 static PyObject *py_srvsvc_NetSrvInfo102_get_licenses(PyObject *obj, void *closure)
7054 struct srvsvc_NetSrvInfo102 *object = (struct srvsvc_NetSrvInfo102 *)pytalloc_get_ptr(obj);
7055 PyObject *py_licenses;
7056 py_licenses = PyInt_FromLong(object->licenses);
7060 static int py_srvsvc_NetSrvInfo102_set_licenses(PyObject *py_obj, PyObject *value, void *closure)
7062 struct srvsvc_NetSrvInfo102 *object = (struct srvsvc_NetSrvInfo102 *)pytalloc_get_ptr(py_obj);
7063 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
7064 object->licenses = PyInt_AsLong(value);
7068 static PyObject *py_srvsvc_NetSrvInfo102_get_userpath(PyObject *obj, void *closure)
7070 struct srvsvc_NetSrvInfo102 *object = (struct srvsvc_NetSrvInfo102 *)pytalloc_get_ptr(obj);
7071 PyObject *py_userpath;
7072 if (object->userpath == NULL) {
7073 py_userpath = Py_None;
7074 Py_INCREF(py_userpath);
7076 if (object->userpath == NULL) {
7077 py_userpath = Py_None;
7078 Py_INCREF(py_userpath);
7080 py_userpath = PyUnicode_Decode(object->userpath, strlen(object->userpath), "utf-8", "ignore");
7086 static int py_srvsvc_NetSrvInfo102_set_userpath(PyObject *py_obj, PyObject *value, void *closure)
7088 struct srvsvc_NetSrvInfo102 *object = (struct srvsvc_NetSrvInfo102 *)pytalloc_get_ptr(py_obj);
7089 if (value == Py_None) {
7090 object->userpath = NULL;
7092 object->userpath = NULL;
7093 if (PyUnicode_Check(value)) {
7094 object->userpath = PyString_AS_STRING(PyUnicode_AsEncodedString(value, "utf-8", "ignore"));
7095 } else if (PyString_Check(value)) {
7096 object->userpath = PyString_AS_STRING(value);
7098 PyErr_Format(PyExc_TypeError, "Expected string or unicode object, got %s", Py_TYPE(value)->tp_name);
7105 static PyGetSetDef py_srvsvc_NetSrvInfo102_getsetters[] = {
7106 { discard_const_p(char, "platform_id"), py_srvsvc_NetSrvInfo102_get_platform_id, py_srvsvc_NetSrvInfo102_set_platform_id },
7107 { discard_const_p(char, "server_name"), py_srvsvc_NetSrvInfo102_get_server_name, py_srvsvc_NetSrvInfo102_set_server_name },
7108 { discard_const_p(char, "version_major"), py_srvsvc_NetSrvInfo102_get_version_major, py_srvsvc_NetSrvInfo102_set_version_major },
7109 { discard_const_p(char, "version_minor"), py_srvsvc_NetSrvInfo102_get_version_minor, py_srvsvc_NetSrvInfo102_set_version_minor },
7110 { discard_const_p(char, "server_type"), py_srvsvc_NetSrvInfo102_get_server_type, py_srvsvc_NetSrvInfo102_set_server_type },
7111 { discard_const_p(char, "comment"), py_srvsvc_NetSrvInfo102_get_comment, py_srvsvc_NetSrvInfo102_set_comment },
7112 { discard_const_p(char, "users"), py_srvsvc_NetSrvInfo102_get_users, py_srvsvc_NetSrvInfo102_set_users },
7113 { discard_const_p(char, "disc"), py_srvsvc_NetSrvInfo102_get_disc, py_srvsvc_NetSrvInfo102_set_disc },
7114 { discard_const_p(char, "hidden"), py_srvsvc_NetSrvInfo102_get_hidden, py_srvsvc_NetSrvInfo102_set_hidden },
7115 { discard_const_p(char, "announce"), py_srvsvc_NetSrvInfo102_get_announce, py_srvsvc_NetSrvInfo102_set_announce },
7116 { discard_const_p(char, "anndelta"), py_srvsvc_NetSrvInfo102_get_anndelta, py_srvsvc_NetSrvInfo102_set_anndelta },
7117 { discard_const_p(char, "licenses"), py_srvsvc_NetSrvInfo102_get_licenses, py_srvsvc_NetSrvInfo102_set_licenses },
7118 { discard_const_p(char, "userpath"), py_srvsvc_NetSrvInfo102_get_userpath, py_srvsvc_NetSrvInfo102_set_userpath },
7122 static PyObject *py_srvsvc_NetSrvInfo102_new(PyTypeObject *type, PyObject *args, PyObject *kwargs)
7124 return pytalloc_new(struct srvsvc_NetSrvInfo102, type);
7128 static PyTypeObject srvsvc_NetSrvInfo102_Type = {
7129 PyObject_HEAD_INIT(NULL) 0,
7130 .tp_name = "srvsvc.NetSrvInfo102",
7131 .tp_getset = py_srvsvc_NetSrvInfo102_getsetters,
7133 .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
7134 .tp_basicsize = sizeof(pytalloc_Object),
7135 .tp_new = py_srvsvc_NetSrvInfo102_new,
7139 static PyObject *py_srvsvc_NetSrvInfo402_get_ulist_mtime(PyObject *obj, void *closure)
7141 struct srvsvc_NetSrvInfo402 *object = (struct srvsvc_NetSrvInfo402 *)pytalloc_get_ptr(obj);
7142 PyObject *py_ulist_mtime;
7143 py_ulist_mtime = PyInt_FromLong(object->ulist_mtime);
7144 return py_ulist_mtime;
7147 static int py_srvsvc_NetSrvInfo402_set_ulist_mtime(PyObject *py_obj, PyObject *value, void *closure)
7149 struct srvsvc_NetSrvInfo402 *object = (struct srvsvc_NetSrvInfo402 *)pytalloc_get_ptr(py_obj);
7150 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
7151 object->ulist_mtime = PyInt_AsLong(value);
7155 static PyObject *py_srvsvc_NetSrvInfo402_get_glist_mtime(PyObject *obj, void *closure)
7157 struct srvsvc_NetSrvInfo402 *object = (struct srvsvc_NetSrvInfo402 *)pytalloc_get_ptr(obj);
7158 PyObject *py_glist_mtime;
7159 py_glist_mtime = PyInt_FromLong(object->glist_mtime);
7160 return py_glist_mtime;
7163 static int py_srvsvc_NetSrvInfo402_set_glist_mtime(PyObject *py_obj, PyObject *value, void *closure)
7165 struct srvsvc_NetSrvInfo402 *object = (struct srvsvc_NetSrvInfo402 *)pytalloc_get_ptr(py_obj);
7166 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
7167 object->glist_mtime = PyInt_AsLong(value);
7171 static PyObject *py_srvsvc_NetSrvInfo402_get_alist_mtime(PyObject *obj, void *closure)
7173 struct srvsvc_NetSrvInfo402 *object = (struct srvsvc_NetSrvInfo402 *)pytalloc_get_ptr(obj);
7174 PyObject *py_alist_mtime;
7175 py_alist_mtime = PyInt_FromLong(object->alist_mtime);
7176 return py_alist_mtime;
7179 static int py_srvsvc_NetSrvInfo402_set_alist_mtime(PyObject *py_obj, PyObject *value, void *closure)
7181 struct srvsvc_NetSrvInfo402 *object = (struct srvsvc_NetSrvInfo402 *)pytalloc_get_ptr(py_obj);
7182 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
7183 object->alist_mtime = PyInt_AsLong(value);
7187 static PyObject *py_srvsvc_NetSrvInfo402_get_alerts(PyObject *obj, void *closure)
7189 struct srvsvc_NetSrvInfo402 *object = (struct srvsvc_NetSrvInfo402 *)pytalloc_get_ptr(obj);
7190 PyObject *py_alerts;
7191 if (object->alerts == NULL) {
7192 py_alerts = Py_None;
7193 Py_INCREF(py_alerts);
7195 if (object->alerts == NULL) {
7196 py_alerts = Py_None;
7197 Py_INCREF(py_alerts);
7199 py_alerts = PyUnicode_Decode(object->alerts, strlen(object->alerts), "utf-8", "ignore");
7205 static int py_srvsvc_NetSrvInfo402_set_alerts(PyObject *py_obj, PyObject *value, void *closure)
7207 struct srvsvc_NetSrvInfo402 *object = (struct srvsvc_NetSrvInfo402 *)pytalloc_get_ptr(py_obj);
7208 if (value == Py_None) {
7209 object->alerts = NULL;
7211 object->alerts = NULL;
7212 if (PyUnicode_Check(value)) {
7213 object->alerts = PyString_AS_STRING(PyUnicode_AsEncodedString(value, "utf-8", "ignore"));
7214 } else if (PyString_Check(value)) {
7215 object->alerts = PyString_AS_STRING(value);
7217 PyErr_Format(PyExc_TypeError, "Expected string or unicode object, got %s", Py_TYPE(value)->tp_name);
7224 static PyObject *py_srvsvc_NetSrvInfo402_get_security(PyObject *obj, void *closure)
7226 struct srvsvc_NetSrvInfo402 *object = (struct srvsvc_NetSrvInfo402 *)pytalloc_get_ptr(obj);
7227 PyObject *py_security;
7228 py_security = PyInt_FromLong(object->security);
7232 static int py_srvsvc_NetSrvInfo402_set_security(PyObject *py_obj, PyObject *value, void *closure)
7234 struct srvsvc_NetSrvInfo402 *object = (struct srvsvc_NetSrvInfo402 *)pytalloc_get_ptr(py_obj);
7235 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
7236 object->security = PyInt_AsLong(value);
7240 static PyObject *py_srvsvc_NetSrvInfo402_get_numadmin(PyObject *obj, void *closure)
7242 struct srvsvc_NetSrvInfo402 *object = (struct srvsvc_NetSrvInfo402 *)pytalloc_get_ptr(obj);
7243 PyObject *py_numadmin;
7244 py_numadmin = PyInt_FromLong(object->numadmin);
7248 static int py_srvsvc_NetSrvInfo402_set_numadmin(PyObject *py_obj, PyObject *value, void *closure)
7250 struct srvsvc_NetSrvInfo402 *object = (struct srvsvc_NetSrvInfo402 *)pytalloc_get_ptr(py_obj);
7251 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
7252 object->numadmin = PyInt_AsLong(value);
7256 static PyObject *py_srvsvc_NetSrvInfo402_get_lanmask(PyObject *obj, void *closure)
7258 struct srvsvc_NetSrvInfo402 *object = (struct srvsvc_NetSrvInfo402 *)pytalloc_get_ptr(obj);
7259 PyObject *py_lanmask;
7260 py_lanmask = PyInt_FromLong(object->lanmask);
7264 static int py_srvsvc_NetSrvInfo402_set_lanmask(PyObject *py_obj, PyObject *value, void *closure)
7266 struct srvsvc_NetSrvInfo402 *object = (struct srvsvc_NetSrvInfo402 *)pytalloc_get_ptr(py_obj);
7267 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
7268 object->lanmask = PyInt_AsLong(value);
7272 static PyObject *py_srvsvc_NetSrvInfo402_get_guestaccount(PyObject *obj, void *closure)
7274 struct srvsvc_NetSrvInfo402 *object = (struct srvsvc_NetSrvInfo402 *)pytalloc_get_ptr(obj);
7275 PyObject *py_guestaccount;
7276 if (object->guestaccount == NULL) {
7277 py_guestaccount = Py_None;
7278 Py_INCREF(py_guestaccount);
7280 if (object->guestaccount == NULL) {
7281 py_guestaccount = Py_None;
7282 Py_INCREF(py_guestaccount);
7284 py_guestaccount = PyUnicode_Decode(object->guestaccount, strlen(object->guestaccount), "utf-8", "ignore");
7287 return py_guestaccount;
7290 static int py_srvsvc_NetSrvInfo402_set_guestaccount(PyObject *py_obj, PyObject *value, void *closure)
7292 struct srvsvc_NetSrvInfo402 *object = (struct srvsvc_NetSrvInfo402 *)pytalloc_get_ptr(py_obj);
7293 if (value == Py_None) {
7294 object->guestaccount = NULL;
7296 object->guestaccount = NULL;
7297 if (PyUnicode_Check(value)) {
7298 object->guestaccount = PyString_AS_STRING(PyUnicode_AsEncodedString(value, "utf-8", "ignore"));
7299 } else if (PyString_Check(value)) {
7300 object->guestaccount = PyString_AS_STRING(value);
7302 PyErr_Format(PyExc_TypeError, "Expected string or unicode object, got %s", Py_TYPE(value)->tp_name);
7309 static PyObject *py_srvsvc_NetSrvInfo402_get_chdevs(PyObject *obj, void *closure)
7311 struct srvsvc_NetSrvInfo402 *object = (struct srvsvc_NetSrvInfo402 *)pytalloc_get_ptr(obj);
7312 PyObject *py_chdevs;
7313 py_chdevs = PyInt_FromLong(object->chdevs);
7317 static int py_srvsvc_NetSrvInfo402_set_chdevs(PyObject *py_obj, PyObject *value, void *closure)
7319 struct srvsvc_NetSrvInfo402 *object = (struct srvsvc_NetSrvInfo402 *)pytalloc_get_ptr(py_obj);
7320 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
7321 object->chdevs = PyInt_AsLong(value);
7325 static PyObject *py_srvsvc_NetSrvInfo402_get_chdevqs(PyObject *obj, void *closure)
7327 struct srvsvc_NetSrvInfo402 *object = (struct srvsvc_NetSrvInfo402 *)pytalloc_get_ptr(obj);
7328 PyObject *py_chdevqs;
7329 py_chdevqs = PyInt_FromLong(object->chdevqs);
7333 static int py_srvsvc_NetSrvInfo402_set_chdevqs(PyObject *py_obj, PyObject *value, void *closure)
7335 struct srvsvc_NetSrvInfo402 *object = (struct srvsvc_NetSrvInfo402 *)pytalloc_get_ptr(py_obj);
7336 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
7337 object->chdevqs = PyInt_AsLong(value);
7341 static PyObject *py_srvsvc_NetSrvInfo402_get_chdevjobs(PyObject *obj, void *closure)
7343 struct srvsvc_NetSrvInfo402 *object = (struct srvsvc_NetSrvInfo402 *)pytalloc_get_ptr(obj);
7344 PyObject *py_chdevjobs;
7345 py_chdevjobs = PyInt_FromLong(object->chdevjobs);
7346 return py_chdevjobs;
7349 static int py_srvsvc_NetSrvInfo402_set_chdevjobs(PyObject *py_obj, PyObject *value, void *closure)
7351 struct srvsvc_NetSrvInfo402 *object = (struct srvsvc_NetSrvInfo402 *)pytalloc_get_ptr(py_obj);
7352 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
7353 object->chdevjobs = PyInt_AsLong(value);
7357 static PyObject *py_srvsvc_NetSrvInfo402_get_connections(PyObject *obj, void *closure)
7359 struct srvsvc_NetSrvInfo402 *object = (struct srvsvc_NetSrvInfo402 *)pytalloc_get_ptr(obj);
7360 PyObject *py_connections;
7361 py_connections = PyInt_FromLong(object->connections);
7362 return py_connections;
7365 static int py_srvsvc_NetSrvInfo402_set_connections(PyObject *py_obj, PyObject *value, void *closure)
7367 struct srvsvc_NetSrvInfo402 *object = (struct srvsvc_NetSrvInfo402 *)pytalloc_get_ptr(py_obj);
7368 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
7369 object->connections = PyInt_AsLong(value);
7373 static PyObject *py_srvsvc_NetSrvInfo402_get_shares(PyObject *obj, void *closure)
7375 struct srvsvc_NetSrvInfo402 *object = (struct srvsvc_NetSrvInfo402 *)pytalloc_get_ptr(obj);
7376 PyObject *py_shares;
7377 py_shares = PyInt_FromLong(object->shares);
7381 static int py_srvsvc_NetSrvInfo402_set_shares(PyObject *py_obj, PyObject *value, void *closure)
7383 struct srvsvc_NetSrvInfo402 *object = (struct srvsvc_NetSrvInfo402 *)pytalloc_get_ptr(py_obj);
7384 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
7385 object->shares = PyInt_AsLong(value);
7389 static PyObject *py_srvsvc_NetSrvInfo402_get_openfiles(PyObject *obj, void *closure)
7391 struct srvsvc_NetSrvInfo402 *object = (struct srvsvc_NetSrvInfo402 *)pytalloc_get_ptr(obj);
7392 PyObject *py_openfiles;
7393 py_openfiles = PyInt_FromLong(object->openfiles);
7394 return py_openfiles;
7397 static int py_srvsvc_NetSrvInfo402_set_openfiles(PyObject *py_obj, PyObject *value, void *closure)
7399 struct srvsvc_NetSrvInfo402 *object = (struct srvsvc_NetSrvInfo402 *)pytalloc_get_ptr(py_obj);
7400 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
7401 object->openfiles = PyInt_AsLong(value);
7405 static PyObject *py_srvsvc_NetSrvInfo402_get_sessopen(PyObject *obj, void *closure)
7407 struct srvsvc_NetSrvInfo402 *object = (struct srvsvc_NetSrvInfo402 *)pytalloc_get_ptr(obj);
7408 PyObject *py_sessopen;
7409 py_sessopen = PyInt_FromLong(object->sessopen);
7413 static int py_srvsvc_NetSrvInfo402_set_sessopen(PyObject *py_obj, PyObject *value, void *closure)
7415 struct srvsvc_NetSrvInfo402 *object = (struct srvsvc_NetSrvInfo402 *)pytalloc_get_ptr(py_obj);
7416 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
7417 object->sessopen = PyInt_AsLong(value);
7421 static PyObject *py_srvsvc_NetSrvInfo402_get_sesssvc(PyObject *obj, void *closure)
7423 struct srvsvc_NetSrvInfo402 *object = (struct srvsvc_NetSrvInfo402 *)pytalloc_get_ptr(obj);
7424 PyObject *py_sesssvc;
7425 py_sesssvc = PyInt_FromLong(object->sesssvc);
7429 static int py_srvsvc_NetSrvInfo402_set_sesssvc(PyObject *py_obj, PyObject *value, void *closure)
7431 struct srvsvc_NetSrvInfo402 *object = (struct srvsvc_NetSrvInfo402 *)pytalloc_get_ptr(py_obj);
7432 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
7433 object->sesssvc = PyInt_AsLong(value);
7437 static PyObject *py_srvsvc_NetSrvInfo402_get_sessreqs(PyObject *obj, void *closure)
7439 struct srvsvc_NetSrvInfo402 *object = (struct srvsvc_NetSrvInfo402 *)pytalloc_get_ptr(obj);
7440 PyObject *py_sessreqs;
7441 py_sessreqs = PyInt_FromLong(object->sessreqs);
7445 static int py_srvsvc_NetSrvInfo402_set_sessreqs(PyObject *py_obj, PyObject *value, void *closure)
7447 struct srvsvc_NetSrvInfo402 *object = (struct srvsvc_NetSrvInfo402 *)pytalloc_get_ptr(py_obj);
7448 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
7449 object->sessreqs = PyInt_AsLong(value);
7453 static PyObject *py_srvsvc_NetSrvInfo402_get_opensearch(PyObject *obj, void *closure)
7455 struct srvsvc_NetSrvInfo402 *object = (struct srvsvc_NetSrvInfo402 *)pytalloc_get_ptr(obj);
7456 PyObject *py_opensearch;
7457 py_opensearch = PyInt_FromLong(object->opensearch);
7458 return py_opensearch;
7461 static int py_srvsvc_NetSrvInfo402_set_opensearch(PyObject *py_obj, PyObject *value, void *closure)
7463 struct srvsvc_NetSrvInfo402 *object = (struct srvsvc_NetSrvInfo402 *)pytalloc_get_ptr(py_obj);
7464 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
7465 object->opensearch = PyInt_AsLong(value);
7469 static PyObject *py_srvsvc_NetSrvInfo402_get_activelocks(PyObject *obj, void *closure)
7471 struct srvsvc_NetSrvInfo402 *object = (struct srvsvc_NetSrvInfo402 *)pytalloc_get_ptr(obj);
7472 PyObject *py_activelocks;
7473 py_activelocks = PyInt_FromLong(object->activelocks);
7474 return py_activelocks;
7477 static int py_srvsvc_NetSrvInfo402_set_activelocks(PyObject *py_obj, PyObject *value, void *closure)
7479 struct srvsvc_NetSrvInfo402 *object = (struct srvsvc_NetSrvInfo402 *)pytalloc_get_ptr(py_obj);
7480 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
7481 object->activelocks = PyInt_AsLong(value);
7485 static PyObject *py_srvsvc_NetSrvInfo402_get_numreqbufs(PyObject *obj, void *closure)
7487 struct srvsvc_NetSrvInfo402 *object = (struct srvsvc_NetSrvInfo402 *)pytalloc_get_ptr(obj);
7488 PyObject *py_numreqbufs;
7489 py_numreqbufs = PyInt_FromLong(object->numreqbufs);
7490 return py_numreqbufs;
7493 static int py_srvsvc_NetSrvInfo402_set_numreqbufs(PyObject *py_obj, PyObject *value, void *closure)
7495 struct srvsvc_NetSrvInfo402 *object = (struct srvsvc_NetSrvInfo402 *)pytalloc_get_ptr(py_obj);
7496 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
7497 object->numreqbufs = PyInt_AsLong(value);
7501 static PyObject *py_srvsvc_NetSrvInfo402_get_sizereqbufs(PyObject *obj, void *closure)
7503 struct srvsvc_NetSrvInfo402 *object = (struct srvsvc_NetSrvInfo402 *)pytalloc_get_ptr(obj);
7504 PyObject *py_sizereqbufs;
7505 py_sizereqbufs = PyInt_FromLong(object->sizereqbufs);
7506 return py_sizereqbufs;
7509 static int py_srvsvc_NetSrvInfo402_set_sizereqbufs(PyObject *py_obj, PyObject *value, void *closure)
7511 struct srvsvc_NetSrvInfo402 *object = (struct srvsvc_NetSrvInfo402 *)pytalloc_get_ptr(py_obj);
7512 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
7513 object->sizereqbufs = PyInt_AsLong(value);
7517 static PyObject *py_srvsvc_NetSrvInfo402_get_numbigbufs(PyObject *obj, void *closure)
7519 struct srvsvc_NetSrvInfo402 *object = (struct srvsvc_NetSrvInfo402 *)pytalloc_get_ptr(obj);
7520 PyObject *py_numbigbufs;
7521 py_numbigbufs = PyInt_FromLong(object->numbigbufs);
7522 return py_numbigbufs;
7525 static int py_srvsvc_NetSrvInfo402_set_numbigbufs(PyObject *py_obj, PyObject *value, void *closure)
7527 struct srvsvc_NetSrvInfo402 *object = (struct srvsvc_NetSrvInfo402 *)pytalloc_get_ptr(py_obj);
7528 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
7529 object->numbigbufs = PyInt_AsLong(value);
7533 static PyObject *py_srvsvc_NetSrvInfo402_get_numfiletasks(PyObject *obj, void *closure)
7535 struct srvsvc_NetSrvInfo402 *object = (struct srvsvc_NetSrvInfo402 *)pytalloc_get_ptr(obj);
7536 PyObject *py_numfiletasks;
7537 py_numfiletasks = PyInt_FromLong(object->numfiletasks);
7538 return py_numfiletasks;
7541 static int py_srvsvc_NetSrvInfo402_set_numfiletasks(PyObject *py_obj, PyObject *value, void *closure)
7543 struct srvsvc_NetSrvInfo402 *object = (struct srvsvc_NetSrvInfo402 *)pytalloc_get_ptr(py_obj);
7544 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
7545 object->numfiletasks = PyInt_AsLong(value);
7549 static PyObject *py_srvsvc_NetSrvInfo402_get_alertsched(PyObject *obj, void *closure)
7551 struct srvsvc_NetSrvInfo402 *object = (struct srvsvc_NetSrvInfo402 *)pytalloc_get_ptr(obj);
7552 PyObject *py_alertsched;
7553 py_alertsched = PyInt_FromLong(object->alertsched);
7554 return py_alertsched;
7557 static int py_srvsvc_NetSrvInfo402_set_alertsched(PyObject *py_obj, PyObject *value, void *closure)
7559 struct srvsvc_NetSrvInfo402 *object = (struct srvsvc_NetSrvInfo402 *)pytalloc_get_ptr(py_obj);
7560 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
7561 object->alertsched = PyInt_AsLong(value);
7565 static PyObject *py_srvsvc_NetSrvInfo402_get_erroralert(PyObject *obj, void *closure)
7567 struct srvsvc_NetSrvInfo402 *object = (struct srvsvc_NetSrvInfo402 *)pytalloc_get_ptr(obj);
7568 PyObject *py_erroralert;
7569 py_erroralert = PyInt_FromLong(object->erroralert);
7570 return py_erroralert;
7573 static int py_srvsvc_NetSrvInfo402_set_erroralert(PyObject *py_obj, PyObject *value, void *closure)
7575 struct srvsvc_NetSrvInfo402 *object = (struct srvsvc_NetSrvInfo402 *)pytalloc_get_ptr(py_obj);
7576 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
7577 object->erroralert = PyInt_AsLong(value);
7581 static PyObject *py_srvsvc_NetSrvInfo402_get_logonalert(PyObject *obj, void *closure)
7583 struct srvsvc_NetSrvInfo402 *object = (struct srvsvc_NetSrvInfo402 *)pytalloc_get_ptr(obj);
7584 PyObject *py_logonalert;
7585 py_logonalert = PyInt_FromLong(object->logonalert);
7586 return py_logonalert;
7589 static int py_srvsvc_NetSrvInfo402_set_logonalert(PyObject *py_obj, PyObject *value, void *closure)
7591 struct srvsvc_NetSrvInfo402 *object = (struct srvsvc_NetSrvInfo402 *)pytalloc_get_ptr(py_obj);
7592 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
7593 object->logonalert = PyInt_AsLong(value);
7597 static PyObject *py_srvsvc_NetSrvInfo402_get_accessalert(PyObject *obj, void *closure)
7599 struct srvsvc_NetSrvInfo402 *object = (struct srvsvc_NetSrvInfo402 *)pytalloc_get_ptr(obj);
7600 PyObject *py_accessalert;
7601 py_accessalert = PyInt_FromLong(object->accessalert);
7602 return py_accessalert;
7605 static int py_srvsvc_NetSrvInfo402_set_accessalert(PyObject *py_obj, PyObject *value, void *closure)
7607 struct srvsvc_NetSrvInfo402 *object = (struct srvsvc_NetSrvInfo402 *)pytalloc_get_ptr(py_obj);
7608 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
7609 object->accessalert = PyInt_AsLong(value);
7613 static PyObject *py_srvsvc_NetSrvInfo402_get_diskalert(PyObject *obj, void *closure)
7615 struct srvsvc_NetSrvInfo402 *object = (struct srvsvc_NetSrvInfo402 *)pytalloc_get_ptr(obj);
7616 PyObject *py_diskalert;
7617 py_diskalert = PyInt_FromLong(object->diskalert);
7618 return py_diskalert;
7621 static int py_srvsvc_NetSrvInfo402_set_diskalert(PyObject *py_obj, PyObject *value, void *closure)
7623 struct srvsvc_NetSrvInfo402 *object = (struct srvsvc_NetSrvInfo402 *)pytalloc_get_ptr(py_obj);
7624 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
7625 object->diskalert = PyInt_AsLong(value);
7629 static PyObject *py_srvsvc_NetSrvInfo402_get_netioalert(PyObject *obj, void *closure)
7631 struct srvsvc_NetSrvInfo402 *object = (struct srvsvc_NetSrvInfo402 *)pytalloc_get_ptr(obj);
7632 PyObject *py_netioalert;
7633 py_netioalert = PyInt_FromLong(object->netioalert);
7634 return py_netioalert;
7637 static int py_srvsvc_NetSrvInfo402_set_netioalert(PyObject *py_obj, PyObject *value, void *closure)
7639 struct srvsvc_NetSrvInfo402 *object = (struct srvsvc_NetSrvInfo402 *)pytalloc_get_ptr(py_obj);
7640 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
7641 object->netioalert = PyInt_AsLong(value);
7645 static PyObject *py_srvsvc_NetSrvInfo402_get_maxaudits(PyObject *obj, void *closure)
7647 struct srvsvc_NetSrvInfo402 *object = (struct srvsvc_NetSrvInfo402 *)pytalloc_get_ptr(obj);
7648 PyObject *py_maxaudits;
7649 py_maxaudits = PyInt_FromLong(object->maxaudits);
7650 return py_maxaudits;
7653 static int py_srvsvc_NetSrvInfo402_set_maxaudits(PyObject *py_obj, PyObject *value, void *closure)
7655 struct srvsvc_NetSrvInfo402 *object = (struct srvsvc_NetSrvInfo402 *)pytalloc_get_ptr(py_obj);
7656 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
7657 object->maxaudits = PyInt_AsLong(value);
7661 static PyObject *py_srvsvc_NetSrvInfo402_get_srvheuristics(PyObject *obj, void *closure)
7663 struct srvsvc_NetSrvInfo402 *object = (struct srvsvc_NetSrvInfo402 *)pytalloc_get_ptr(obj);
7664 PyObject *py_srvheuristics;
7665 if (object->srvheuristics == NULL) {
7666 py_srvheuristics = Py_None;
7667 Py_INCREF(py_srvheuristics);
7669 if (object->srvheuristics == NULL) {
7670 py_srvheuristics = Py_None;
7671 Py_INCREF(py_srvheuristics);
7673 py_srvheuristics = PyUnicode_Decode(object->srvheuristics, strlen(object->srvheuristics), "utf-8", "ignore");
7676 return py_srvheuristics;
7679 static int py_srvsvc_NetSrvInfo402_set_srvheuristics(PyObject *py_obj, PyObject *value, void *closure)
7681 struct srvsvc_NetSrvInfo402 *object = (struct srvsvc_NetSrvInfo402 *)pytalloc_get_ptr(py_obj);
7682 if (value == Py_None) {
7683 object->srvheuristics = NULL;
7685 object->srvheuristics = NULL;
7686 if (PyUnicode_Check(value)) {
7687 object->srvheuristics = PyString_AS_STRING(PyUnicode_AsEncodedString(value, "utf-8", "ignore"));
7688 } else if (PyString_Check(value)) {
7689 object->srvheuristics = PyString_AS_STRING(value);
7691 PyErr_Format(PyExc_TypeError, "Expected string or unicode object, got %s", Py_TYPE(value)->tp_name);
7698 static PyGetSetDef py_srvsvc_NetSrvInfo402_getsetters[] = {
7699 { discard_const_p(char, "ulist_mtime"), py_srvsvc_NetSrvInfo402_get_ulist_mtime, py_srvsvc_NetSrvInfo402_set_ulist_mtime },
7700 { discard_const_p(char, "glist_mtime"), py_srvsvc_NetSrvInfo402_get_glist_mtime, py_srvsvc_NetSrvInfo402_set_glist_mtime },
7701 { discard_const_p(char, "alist_mtime"), py_srvsvc_NetSrvInfo402_get_alist_mtime, py_srvsvc_NetSrvInfo402_set_alist_mtime },
7702 { discard_const_p(char, "alerts"), py_srvsvc_NetSrvInfo402_get_alerts, py_srvsvc_NetSrvInfo402_set_alerts },
7703 { discard_const_p(char, "security"), py_srvsvc_NetSrvInfo402_get_security, py_srvsvc_NetSrvInfo402_set_security },
7704 { discard_const_p(char, "numadmin"), py_srvsvc_NetSrvInfo402_get_numadmin, py_srvsvc_NetSrvInfo402_set_numadmin },
7705 { discard_const_p(char, "lanmask"), py_srvsvc_NetSrvInfo402_get_lanmask, py_srvsvc_NetSrvInfo402_set_lanmask },
7706 { discard_const_p(char, "guestaccount"), py_srvsvc_NetSrvInfo402_get_guestaccount, py_srvsvc_NetSrvInfo402_set_guestaccount },
7707 { discard_const_p(char, "chdevs"), py_srvsvc_NetSrvInfo402_get_chdevs, py_srvsvc_NetSrvInfo402_set_chdevs },
7708 { discard_const_p(char, "chdevqs"), py_srvsvc_NetSrvInfo402_get_chdevqs, py_srvsvc_NetSrvInfo402_set_chdevqs },
7709 { discard_const_p(char, "chdevjobs"), py_srvsvc_NetSrvInfo402_get_chdevjobs, py_srvsvc_NetSrvInfo402_set_chdevjobs },
7710 { discard_const_p(char, "connections"), py_srvsvc_NetSrvInfo402_get_connections, py_srvsvc_NetSrvInfo402_set_connections },
7711 { discard_const_p(char, "shares"), py_srvsvc_NetSrvInfo402_get_shares, py_srvsvc_NetSrvInfo402_set_shares },
7712 { discard_const_p(char, "openfiles"), py_srvsvc_NetSrvInfo402_get_openfiles, py_srvsvc_NetSrvInfo402_set_openfiles },
7713 { discard_const_p(char, "sessopen"), py_srvsvc_NetSrvInfo402_get_sessopen, py_srvsvc_NetSrvInfo402_set_sessopen },
7714 { discard_const_p(char, "sesssvc"), py_srvsvc_NetSrvInfo402_get_sesssvc, py_srvsvc_NetSrvInfo402_set_sesssvc },
7715 { discard_const_p(char, "sessreqs"), py_srvsvc_NetSrvInfo402_get_sessreqs, py_srvsvc_NetSrvInfo402_set_sessreqs },
7716 { discard_const_p(char, "opensearch"), py_srvsvc_NetSrvInfo402_get_opensearch, py_srvsvc_NetSrvInfo402_set_opensearch },
7717 { discard_const_p(char, "activelocks"), py_srvsvc_NetSrvInfo402_get_activelocks, py_srvsvc_NetSrvInfo402_set_activelocks },
7718 { discard_const_p(char, "numreqbufs"), py_srvsvc_NetSrvInfo402_get_numreqbufs, py_srvsvc_NetSrvInfo402_set_numreqbufs },
7719 { discard_const_p(char, "sizereqbufs"), py_srvsvc_NetSrvInfo402_get_sizereqbufs, py_srvsvc_NetSrvInfo402_set_sizereqbufs },
7720 { discard_const_p(char, "numbigbufs"), py_srvsvc_NetSrvInfo402_get_numbigbufs, py_srvsvc_NetSrvInfo402_set_numbigbufs },
7721 { discard_const_p(char, "numfiletasks"), py_srvsvc_NetSrvInfo402_get_numfiletasks, py_srvsvc_NetSrvInfo402_set_numfiletasks },
7722 { discard_const_p(char, "alertsched"), py_srvsvc_NetSrvInfo402_get_alertsched, py_srvsvc_NetSrvInfo402_set_alertsched },
7723 { discard_const_p(char, "erroralert"), py_srvsvc_NetSrvInfo402_get_erroralert, py_srvsvc_NetSrvInfo402_set_erroralert },
7724 { discard_const_p(char, "logonalert"), py_srvsvc_NetSrvInfo402_get_logonalert, py_srvsvc_NetSrvInfo402_set_logonalert },
7725 { discard_const_p(char, "accessalert"), py_srvsvc_NetSrvInfo402_get_accessalert, py_srvsvc_NetSrvInfo402_set_accessalert },
7726 { discard_const_p(char, "diskalert"), py_srvsvc_NetSrvInfo402_get_diskalert, py_srvsvc_NetSrvInfo402_set_diskalert },
7727 { discard_const_p(char, "netioalert"), py_srvsvc_NetSrvInfo402_get_netioalert, py_srvsvc_NetSrvInfo402_set_netioalert },
7728 { discard_const_p(char, "maxaudits"), py_srvsvc_NetSrvInfo402_get_maxaudits, py_srvsvc_NetSrvInfo402_set_maxaudits },
7729 { discard_const_p(char, "srvheuristics"), py_srvsvc_NetSrvInfo402_get_srvheuristics, py_srvsvc_NetSrvInfo402_set_srvheuristics },
7733 static PyObject *py_srvsvc_NetSrvInfo402_new(PyTypeObject *type, PyObject *args, PyObject *kwargs)
7735 return pytalloc_new(struct srvsvc_NetSrvInfo402, type);
7739 static PyTypeObject srvsvc_NetSrvInfo402_Type = {
7740 PyObject_HEAD_INIT(NULL) 0,
7741 .tp_name = "srvsvc.NetSrvInfo402",
7742 .tp_getset = py_srvsvc_NetSrvInfo402_getsetters,
7744 .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
7745 .tp_basicsize = sizeof(pytalloc_Object),
7746 .tp_new = py_srvsvc_NetSrvInfo402_new,
7750 static PyObject *py_srvsvc_NetSrvInfo403_get_ulist_mtime(PyObject *obj, void *closure)
7752 struct srvsvc_NetSrvInfo403 *object = (struct srvsvc_NetSrvInfo403 *)pytalloc_get_ptr(obj);
7753 PyObject *py_ulist_mtime;
7754 py_ulist_mtime = PyInt_FromLong(object->ulist_mtime);
7755 return py_ulist_mtime;
7758 static int py_srvsvc_NetSrvInfo403_set_ulist_mtime(PyObject *py_obj, PyObject *value, void *closure)
7760 struct srvsvc_NetSrvInfo403 *object = (struct srvsvc_NetSrvInfo403 *)pytalloc_get_ptr(py_obj);
7761 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
7762 object->ulist_mtime = PyInt_AsLong(value);
7766 static PyObject *py_srvsvc_NetSrvInfo403_get_glist_mtime(PyObject *obj, void *closure)
7768 struct srvsvc_NetSrvInfo403 *object = (struct srvsvc_NetSrvInfo403 *)pytalloc_get_ptr(obj);
7769 PyObject *py_glist_mtime;
7770 py_glist_mtime = PyInt_FromLong(object->glist_mtime);
7771 return py_glist_mtime;
7774 static int py_srvsvc_NetSrvInfo403_set_glist_mtime(PyObject *py_obj, PyObject *value, void *closure)
7776 struct srvsvc_NetSrvInfo403 *object = (struct srvsvc_NetSrvInfo403 *)pytalloc_get_ptr(py_obj);
7777 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
7778 object->glist_mtime = PyInt_AsLong(value);
7782 static PyObject *py_srvsvc_NetSrvInfo403_get_alist_mtime(PyObject *obj, void *closure)
7784 struct srvsvc_NetSrvInfo403 *object = (struct srvsvc_NetSrvInfo403 *)pytalloc_get_ptr(obj);
7785 PyObject *py_alist_mtime;
7786 py_alist_mtime = PyInt_FromLong(object->alist_mtime);
7787 return py_alist_mtime;
7790 static int py_srvsvc_NetSrvInfo403_set_alist_mtime(PyObject *py_obj, PyObject *value, void *closure)
7792 struct srvsvc_NetSrvInfo403 *object = (struct srvsvc_NetSrvInfo403 *)pytalloc_get_ptr(py_obj);
7793 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
7794 object->alist_mtime = PyInt_AsLong(value);
7798 static PyObject *py_srvsvc_NetSrvInfo403_get_alerts(PyObject *obj, void *closure)
7800 struct srvsvc_NetSrvInfo403 *object = (struct srvsvc_NetSrvInfo403 *)pytalloc_get_ptr(obj);
7801 PyObject *py_alerts;
7802 if (object->alerts == NULL) {
7803 py_alerts = Py_None;
7804 Py_INCREF(py_alerts);
7806 if (object->alerts == NULL) {
7807 py_alerts = Py_None;
7808 Py_INCREF(py_alerts);
7810 py_alerts = PyUnicode_Decode(object->alerts, strlen(object->alerts), "utf-8", "ignore");
7816 static int py_srvsvc_NetSrvInfo403_set_alerts(PyObject *py_obj, PyObject *value, void *closure)
7818 struct srvsvc_NetSrvInfo403 *object = (struct srvsvc_NetSrvInfo403 *)pytalloc_get_ptr(py_obj);
7819 if (value == Py_None) {
7820 object->alerts = NULL;
7822 object->alerts = NULL;
7823 if (PyUnicode_Check(value)) {
7824 object->alerts = PyString_AS_STRING(PyUnicode_AsEncodedString(value, "utf-8", "ignore"));
7825 } else if (PyString_Check(value)) {
7826 object->alerts = PyString_AS_STRING(value);
7828 PyErr_Format(PyExc_TypeError, "Expected string or unicode object, got %s", Py_TYPE(value)->tp_name);
7835 static PyObject *py_srvsvc_NetSrvInfo403_get_security(PyObject *obj, void *closure)
7837 struct srvsvc_NetSrvInfo403 *object = (struct srvsvc_NetSrvInfo403 *)pytalloc_get_ptr(obj);
7838 PyObject *py_security;
7839 py_security = PyInt_FromLong(object->security);
7843 static int py_srvsvc_NetSrvInfo403_set_security(PyObject *py_obj, PyObject *value, void *closure)
7845 struct srvsvc_NetSrvInfo403 *object = (struct srvsvc_NetSrvInfo403 *)pytalloc_get_ptr(py_obj);
7846 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
7847 object->security = PyInt_AsLong(value);
7851 static PyObject *py_srvsvc_NetSrvInfo403_get_numadmin(PyObject *obj, void *closure)
7853 struct srvsvc_NetSrvInfo403 *object = (struct srvsvc_NetSrvInfo403 *)pytalloc_get_ptr(obj);
7854 PyObject *py_numadmin;
7855 py_numadmin = PyInt_FromLong(object->numadmin);
7859 static int py_srvsvc_NetSrvInfo403_set_numadmin(PyObject *py_obj, PyObject *value, void *closure)
7861 struct srvsvc_NetSrvInfo403 *object = (struct srvsvc_NetSrvInfo403 *)pytalloc_get_ptr(py_obj);
7862 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
7863 object->numadmin = PyInt_AsLong(value);
7867 static PyObject *py_srvsvc_NetSrvInfo403_get_lanmask(PyObject *obj, void *closure)
7869 struct srvsvc_NetSrvInfo403 *object = (struct srvsvc_NetSrvInfo403 *)pytalloc_get_ptr(obj);
7870 PyObject *py_lanmask;
7871 py_lanmask = PyInt_FromLong(object->lanmask);
7875 static int py_srvsvc_NetSrvInfo403_set_lanmask(PyObject *py_obj, PyObject *value, void *closure)
7877 struct srvsvc_NetSrvInfo403 *object = (struct srvsvc_NetSrvInfo403 *)pytalloc_get_ptr(py_obj);
7878 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
7879 object->lanmask = PyInt_AsLong(value);
7883 static PyObject *py_srvsvc_NetSrvInfo403_get_guestaccount(PyObject *obj, void *closure)
7885 struct srvsvc_NetSrvInfo403 *object = (struct srvsvc_NetSrvInfo403 *)pytalloc_get_ptr(obj);
7886 PyObject *py_guestaccount;
7887 if (object->guestaccount == NULL) {
7888 py_guestaccount = Py_None;
7889 Py_INCREF(py_guestaccount);
7891 if (object->guestaccount == NULL) {
7892 py_guestaccount = Py_None;
7893 Py_INCREF(py_guestaccount);
7895 py_guestaccount = PyUnicode_Decode(object->guestaccount, strlen(object->guestaccount), "utf-8", "ignore");
7898 return py_guestaccount;
7901 static int py_srvsvc_NetSrvInfo403_set_guestaccount(PyObject *py_obj, PyObject *value, void *closure)
7903 struct srvsvc_NetSrvInfo403 *object = (struct srvsvc_NetSrvInfo403 *)pytalloc_get_ptr(py_obj);
7904 if (value == Py_None) {
7905 object->guestaccount = NULL;
7907 object->guestaccount = NULL;
7908 if (PyUnicode_Check(value)) {
7909 object->guestaccount = PyString_AS_STRING(PyUnicode_AsEncodedString(value, "utf-8", "ignore"));
7910 } else if (PyString_Check(value)) {
7911 object->guestaccount = PyString_AS_STRING(value);
7913 PyErr_Format(PyExc_TypeError, "Expected string or unicode object, got %s", Py_TYPE(value)->tp_name);
7920 static PyObject *py_srvsvc_NetSrvInfo403_get_chdevs(PyObject *obj, void *closure)
7922 struct srvsvc_NetSrvInfo403 *object = (struct srvsvc_NetSrvInfo403 *)pytalloc_get_ptr(obj);
7923 PyObject *py_chdevs;
7924 py_chdevs = PyInt_FromLong(object->chdevs);
7928 static int py_srvsvc_NetSrvInfo403_set_chdevs(PyObject *py_obj, PyObject *value, void *closure)
7930 struct srvsvc_NetSrvInfo403 *object = (struct srvsvc_NetSrvInfo403 *)pytalloc_get_ptr(py_obj);
7931 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
7932 object->chdevs = PyInt_AsLong(value);
7936 static PyObject *py_srvsvc_NetSrvInfo403_get_chdevqs(PyObject *obj, void *closure)
7938 struct srvsvc_NetSrvInfo403 *object = (struct srvsvc_NetSrvInfo403 *)pytalloc_get_ptr(obj);
7939 PyObject *py_chdevqs;
7940 py_chdevqs = PyInt_FromLong(object->chdevqs);
7944 static int py_srvsvc_NetSrvInfo403_set_chdevqs(PyObject *py_obj, PyObject *value, void *closure)
7946 struct srvsvc_NetSrvInfo403 *object = (struct srvsvc_NetSrvInfo403 *)pytalloc_get_ptr(py_obj);
7947 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
7948 object->chdevqs = PyInt_AsLong(value);
7952 static PyObject *py_srvsvc_NetSrvInfo403_get_chdevjobs(PyObject *obj, void *closure)
7954 struct srvsvc_NetSrvInfo403 *object = (struct srvsvc_NetSrvInfo403 *)pytalloc_get_ptr(obj);
7955 PyObject *py_chdevjobs;
7956 py_chdevjobs = PyInt_FromLong(object->chdevjobs);
7957 return py_chdevjobs;
7960 static int py_srvsvc_NetSrvInfo403_set_chdevjobs(PyObject *py_obj, PyObject *value, void *closure)
7962 struct srvsvc_NetSrvInfo403 *object = (struct srvsvc_NetSrvInfo403 *)pytalloc_get_ptr(py_obj);
7963 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
7964 object->chdevjobs = PyInt_AsLong(value);
7968 static PyObject *py_srvsvc_NetSrvInfo403_get_connections(PyObject *obj, void *closure)
7970 struct srvsvc_NetSrvInfo403 *object = (struct srvsvc_NetSrvInfo403 *)pytalloc_get_ptr(obj);
7971 PyObject *py_connections;
7972 py_connections = PyInt_FromLong(object->connections);
7973 return py_connections;
7976 static int py_srvsvc_NetSrvInfo403_set_connections(PyObject *py_obj, PyObject *value, void *closure)
7978 struct srvsvc_NetSrvInfo403 *object = (struct srvsvc_NetSrvInfo403 *)pytalloc_get_ptr(py_obj);
7979 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
7980 object->connections = PyInt_AsLong(value);
7984 static PyObject *py_srvsvc_NetSrvInfo403_get_shares(PyObject *obj, void *closure)
7986 struct srvsvc_NetSrvInfo403 *object = (struct srvsvc_NetSrvInfo403 *)pytalloc_get_ptr(obj);
7987 PyObject *py_shares;
7988 py_shares = PyInt_FromLong(object->shares);
7992 static int py_srvsvc_NetSrvInfo403_set_shares(PyObject *py_obj, PyObject *value, void *closure)
7994 struct srvsvc_NetSrvInfo403 *object = (struct srvsvc_NetSrvInfo403 *)pytalloc_get_ptr(py_obj);
7995 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
7996 object->shares = PyInt_AsLong(value);
8000 static PyObject *py_srvsvc_NetSrvInfo403_get_openfiles(PyObject *obj, void *closure)
8002 struct srvsvc_NetSrvInfo403 *object = (struct srvsvc_NetSrvInfo403 *)pytalloc_get_ptr(obj);
8003 PyObject *py_openfiles;
8004 py_openfiles = PyInt_FromLong(object->openfiles);
8005 return py_openfiles;
8008 static int py_srvsvc_NetSrvInfo403_set_openfiles(PyObject *py_obj, PyObject *value, void *closure)
8010 struct srvsvc_NetSrvInfo403 *object = (struct srvsvc_NetSrvInfo403 *)pytalloc_get_ptr(py_obj);
8011 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
8012 object->openfiles = PyInt_AsLong(value);
8016 static PyObject *py_srvsvc_NetSrvInfo403_get_sessopen(PyObject *obj, void *closure)
8018 struct srvsvc_NetSrvInfo403 *object = (struct srvsvc_NetSrvInfo403 *)pytalloc_get_ptr(obj);
8019 PyObject *py_sessopen;
8020 py_sessopen = PyInt_FromLong(object->sessopen);
8024 static int py_srvsvc_NetSrvInfo403_set_sessopen(PyObject *py_obj, PyObject *value, void *closure)
8026 struct srvsvc_NetSrvInfo403 *object = (struct srvsvc_NetSrvInfo403 *)pytalloc_get_ptr(py_obj);
8027 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
8028 object->sessopen = PyInt_AsLong(value);
8032 static PyObject *py_srvsvc_NetSrvInfo403_get_sesssvc(PyObject *obj, void *closure)
8034 struct srvsvc_NetSrvInfo403 *object = (struct srvsvc_NetSrvInfo403 *)pytalloc_get_ptr(obj);
8035 PyObject *py_sesssvc;
8036 py_sesssvc = PyInt_FromLong(object->sesssvc);
8040 static int py_srvsvc_NetSrvInfo403_set_sesssvc(PyObject *py_obj, PyObject *value, void *closure)
8042 struct srvsvc_NetSrvInfo403 *object = (struct srvsvc_NetSrvInfo403 *)pytalloc_get_ptr(py_obj);
8043 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
8044 object->sesssvc = PyInt_AsLong(value);
8048 static PyObject *py_srvsvc_NetSrvInfo403_get_sessreqs(PyObject *obj, void *closure)
8050 struct srvsvc_NetSrvInfo403 *object = (struct srvsvc_NetSrvInfo403 *)pytalloc_get_ptr(obj);
8051 PyObject *py_sessreqs;
8052 py_sessreqs = PyInt_FromLong(object->sessreqs);
8056 static int py_srvsvc_NetSrvInfo403_set_sessreqs(PyObject *py_obj, PyObject *value, void *closure)
8058 struct srvsvc_NetSrvInfo403 *object = (struct srvsvc_NetSrvInfo403 *)pytalloc_get_ptr(py_obj);
8059 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
8060 object->sessreqs = PyInt_AsLong(value);
8064 static PyObject *py_srvsvc_NetSrvInfo403_get_opensearch(PyObject *obj, void *closure)
8066 struct srvsvc_NetSrvInfo403 *object = (struct srvsvc_NetSrvInfo403 *)pytalloc_get_ptr(obj);
8067 PyObject *py_opensearch;
8068 py_opensearch = PyInt_FromLong(object->opensearch);
8069 return py_opensearch;
8072 static int py_srvsvc_NetSrvInfo403_set_opensearch(PyObject *py_obj, PyObject *value, void *closure)
8074 struct srvsvc_NetSrvInfo403 *object = (struct srvsvc_NetSrvInfo403 *)pytalloc_get_ptr(py_obj);
8075 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
8076 object->opensearch = PyInt_AsLong(value);
8080 static PyObject *py_srvsvc_NetSrvInfo403_get_activelocks(PyObject *obj, void *closure)
8082 struct srvsvc_NetSrvInfo403 *object = (struct srvsvc_NetSrvInfo403 *)pytalloc_get_ptr(obj);
8083 PyObject *py_activelocks;
8084 py_activelocks = PyInt_FromLong(object->activelocks);
8085 return py_activelocks;
8088 static int py_srvsvc_NetSrvInfo403_set_activelocks(PyObject *py_obj, PyObject *value, void *closure)
8090 struct srvsvc_NetSrvInfo403 *object = (struct srvsvc_NetSrvInfo403 *)pytalloc_get_ptr(py_obj);
8091 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
8092 object->activelocks = PyInt_AsLong(value);
8096 static PyObject *py_srvsvc_NetSrvInfo403_get_numreqbufs(PyObject *obj, void *closure)
8098 struct srvsvc_NetSrvInfo403 *object = (struct srvsvc_NetSrvInfo403 *)pytalloc_get_ptr(obj);
8099 PyObject *py_numreqbufs;
8100 py_numreqbufs = PyInt_FromLong(object->numreqbufs);
8101 return py_numreqbufs;
8104 static int py_srvsvc_NetSrvInfo403_set_numreqbufs(PyObject *py_obj, PyObject *value, void *closure)
8106 struct srvsvc_NetSrvInfo403 *object = (struct srvsvc_NetSrvInfo403 *)pytalloc_get_ptr(py_obj);
8107 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
8108 object->numreqbufs = PyInt_AsLong(value);
8112 static PyObject *py_srvsvc_NetSrvInfo403_get_sizereqbufs(PyObject *obj, void *closure)
8114 struct srvsvc_NetSrvInfo403 *object = (struct srvsvc_NetSrvInfo403 *)pytalloc_get_ptr(obj);
8115 PyObject *py_sizereqbufs;
8116 py_sizereqbufs = PyInt_FromLong(object->sizereqbufs);
8117 return py_sizereqbufs;
8120 static int py_srvsvc_NetSrvInfo403_set_sizereqbufs(PyObject *py_obj, PyObject *value, void *closure)
8122 struct srvsvc_NetSrvInfo403 *object = (struct srvsvc_NetSrvInfo403 *)pytalloc_get_ptr(py_obj);
8123 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
8124 object->sizereqbufs = PyInt_AsLong(value);
8128 static PyObject *py_srvsvc_NetSrvInfo403_get_numbigbufs(PyObject *obj, void *closure)
8130 struct srvsvc_NetSrvInfo403 *object = (struct srvsvc_NetSrvInfo403 *)pytalloc_get_ptr(obj);
8131 PyObject *py_numbigbufs;
8132 py_numbigbufs = PyInt_FromLong(object->numbigbufs);
8133 return py_numbigbufs;
8136 static int py_srvsvc_NetSrvInfo403_set_numbigbufs(PyObject *py_obj, PyObject *value, void *closure)
8138 struct srvsvc_NetSrvInfo403 *object = (struct srvsvc_NetSrvInfo403 *)pytalloc_get_ptr(py_obj);
8139 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
8140 object->numbigbufs = PyInt_AsLong(value);
8144 static PyObject *py_srvsvc_NetSrvInfo403_get_numfiletasks(PyObject *obj, void *closure)
8146 struct srvsvc_NetSrvInfo403 *object = (struct srvsvc_NetSrvInfo403 *)pytalloc_get_ptr(obj);
8147 PyObject *py_numfiletasks;
8148 py_numfiletasks = PyInt_FromLong(object->numfiletasks);
8149 return py_numfiletasks;
8152 static int py_srvsvc_NetSrvInfo403_set_numfiletasks(PyObject *py_obj, PyObject *value, void *closure)
8154 struct srvsvc_NetSrvInfo403 *object = (struct srvsvc_NetSrvInfo403 *)pytalloc_get_ptr(py_obj);
8155 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
8156 object->numfiletasks = PyInt_AsLong(value);
8160 static PyObject *py_srvsvc_NetSrvInfo403_get_alertsched(PyObject *obj, void *closure)
8162 struct srvsvc_NetSrvInfo403 *object = (struct srvsvc_NetSrvInfo403 *)pytalloc_get_ptr(obj);
8163 PyObject *py_alertsched;
8164 py_alertsched = PyInt_FromLong(object->alertsched);
8165 return py_alertsched;
8168 static int py_srvsvc_NetSrvInfo403_set_alertsched(PyObject *py_obj, PyObject *value, void *closure)
8170 struct srvsvc_NetSrvInfo403 *object = (struct srvsvc_NetSrvInfo403 *)pytalloc_get_ptr(py_obj);
8171 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
8172 object->alertsched = PyInt_AsLong(value);
8176 static PyObject *py_srvsvc_NetSrvInfo403_get_erroralert(PyObject *obj, void *closure)
8178 struct srvsvc_NetSrvInfo403 *object = (struct srvsvc_NetSrvInfo403 *)pytalloc_get_ptr(obj);
8179 PyObject *py_erroralert;
8180 py_erroralert = PyInt_FromLong(object->erroralert);
8181 return py_erroralert;
8184 static int py_srvsvc_NetSrvInfo403_set_erroralert(PyObject *py_obj, PyObject *value, void *closure)
8186 struct srvsvc_NetSrvInfo403 *object = (struct srvsvc_NetSrvInfo403 *)pytalloc_get_ptr(py_obj);
8187 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
8188 object->erroralert = PyInt_AsLong(value);
8192 static PyObject *py_srvsvc_NetSrvInfo403_get_logonalert(PyObject *obj, void *closure)
8194 struct srvsvc_NetSrvInfo403 *object = (struct srvsvc_NetSrvInfo403 *)pytalloc_get_ptr(obj);
8195 PyObject *py_logonalert;
8196 py_logonalert = PyInt_FromLong(object->logonalert);
8197 return py_logonalert;
8200 static int py_srvsvc_NetSrvInfo403_set_logonalert(PyObject *py_obj, PyObject *value, void *closure)
8202 struct srvsvc_NetSrvInfo403 *object = (struct srvsvc_NetSrvInfo403 *)pytalloc_get_ptr(py_obj);
8203 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
8204 object->logonalert = PyInt_AsLong(value);
8208 static PyObject *py_srvsvc_NetSrvInfo403_get_accessalert(PyObject *obj, void *closure)
8210 struct srvsvc_NetSrvInfo403 *object = (struct srvsvc_NetSrvInfo403 *)pytalloc_get_ptr(obj);
8211 PyObject *py_accessalert;
8212 py_accessalert = PyInt_FromLong(object->accessalert);
8213 return py_accessalert;
8216 static int py_srvsvc_NetSrvInfo403_set_accessalert(PyObject *py_obj, PyObject *value, void *closure)
8218 struct srvsvc_NetSrvInfo403 *object = (struct srvsvc_NetSrvInfo403 *)pytalloc_get_ptr(py_obj);
8219 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
8220 object->accessalert = PyInt_AsLong(value);
8224 static PyObject *py_srvsvc_NetSrvInfo403_get_diskalert(PyObject *obj, void *closure)
8226 struct srvsvc_NetSrvInfo403 *object = (struct srvsvc_NetSrvInfo403 *)pytalloc_get_ptr(obj);
8227 PyObject *py_diskalert;
8228 py_diskalert = PyInt_FromLong(object->diskalert);
8229 return py_diskalert;
8232 static int py_srvsvc_NetSrvInfo403_set_diskalert(PyObject *py_obj, PyObject *value, void *closure)
8234 struct srvsvc_NetSrvInfo403 *object = (struct srvsvc_NetSrvInfo403 *)pytalloc_get_ptr(py_obj);
8235 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
8236 object->diskalert = PyInt_AsLong(value);
8240 static PyObject *py_srvsvc_NetSrvInfo403_get_netioalert(PyObject *obj, void *closure)
8242 struct srvsvc_NetSrvInfo403 *object = (struct srvsvc_NetSrvInfo403 *)pytalloc_get_ptr(obj);
8243 PyObject *py_netioalert;
8244 py_netioalert = PyInt_FromLong(object->netioalert);
8245 return py_netioalert;
8248 static int py_srvsvc_NetSrvInfo403_set_netioalert(PyObject *py_obj, PyObject *value, void *closure)
8250 struct srvsvc_NetSrvInfo403 *object = (struct srvsvc_NetSrvInfo403 *)pytalloc_get_ptr(py_obj);
8251 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
8252 object->netioalert = PyInt_AsLong(value);
8256 static PyObject *py_srvsvc_NetSrvInfo403_get_maxaudits(PyObject *obj, void *closure)
8258 struct srvsvc_NetSrvInfo403 *object = (struct srvsvc_NetSrvInfo403 *)pytalloc_get_ptr(obj);
8259 PyObject *py_maxaudits;
8260 py_maxaudits = PyInt_FromLong(object->maxaudits);
8261 return py_maxaudits;
8264 static int py_srvsvc_NetSrvInfo403_set_maxaudits(PyObject *py_obj, PyObject *value, void *closure)
8266 struct srvsvc_NetSrvInfo403 *object = (struct srvsvc_NetSrvInfo403 *)pytalloc_get_ptr(py_obj);
8267 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
8268 object->maxaudits = PyInt_AsLong(value);
8272 static PyObject *py_srvsvc_NetSrvInfo403_get_srvheuristics(PyObject *obj, void *closure)
8274 struct srvsvc_NetSrvInfo403 *object = (struct srvsvc_NetSrvInfo403 *)pytalloc_get_ptr(obj);
8275 PyObject *py_srvheuristics;
8276 if (object->srvheuristics == NULL) {
8277 py_srvheuristics = Py_None;
8278 Py_INCREF(py_srvheuristics);
8280 if (object->srvheuristics == NULL) {
8281 py_srvheuristics = Py_None;
8282 Py_INCREF(py_srvheuristics);
8284 py_srvheuristics = PyUnicode_Decode(object->srvheuristics, strlen(object->srvheuristics), "utf-8", "ignore");
8287 return py_srvheuristics;
8290 static int py_srvsvc_NetSrvInfo403_set_srvheuristics(PyObject *py_obj, PyObject *value, void *closure)
8292 struct srvsvc_NetSrvInfo403 *object = (struct srvsvc_NetSrvInfo403 *)pytalloc_get_ptr(py_obj);
8293 if (value == Py_None) {
8294 object->srvheuristics = NULL;
8296 object->srvheuristics = NULL;
8297 if (PyUnicode_Check(value)) {
8298 object->srvheuristics = PyString_AS_STRING(PyUnicode_AsEncodedString(value, "utf-8", "ignore"));
8299 } else if (PyString_Check(value)) {
8300 object->srvheuristics = PyString_AS_STRING(value);
8302 PyErr_Format(PyExc_TypeError, "Expected string or unicode object, got %s", Py_TYPE(value)->tp_name);
8309 static PyObject *py_srvsvc_NetSrvInfo403_get_auditedevents(PyObject *obj, void *closure)
8311 struct srvsvc_NetSrvInfo403 *object = (struct srvsvc_NetSrvInfo403 *)pytalloc_get_ptr(obj);
8312 PyObject *py_auditedevents;
8313 py_auditedevents = PyInt_FromLong(object->auditedevents);
8314 return py_auditedevents;
8317 static int py_srvsvc_NetSrvInfo403_set_auditedevents(PyObject *py_obj, PyObject *value, void *closure)
8319 struct srvsvc_NetSrvInfo403 *object = (struct srvsvc_NetSrvInfo403 *)pytalloc_get_ptr(py_obj);
8320 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
8321 object->auditedevents = PyInt_AsLong(value);
8325 static PyObject *py_srvsvc_NetSrvInfo403_get_auditprofile(PyObject *obj, void *closure)
8327 struct srvsvc_NetSrvInfo403 *object = (struct srvsvc_NetSrvInfo403 *)pytalloc_get_ptr(obj);
8328 PyObject *py_auditprofile;
8329 py_auditprofile = PyInt_FromLong(object->auditprofile);
8330 return py_auditprofile;
8333 static int py_srvsvc_NetSrvInfo403_set_auditprofile(PyObject *py_obj, PyObject *value, void *closure)
8335 struct srvsvc_NetSrvInfo403 *object = (struct srvsvc_NetSrvInfo403 *)pytalloc_get_ptr(py_obj);
8336 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
8337 object->auditprofile = PyInt_AsLong(value);
8341 static PyObject *py_srvsvc_NetSrvInfo403_get_autopath(PyObject *obj, void *closure)
8343 struct srvsvc_NetSrvInfo403 *object = (struct srvsvc_NetSrvInfo403 *)pytalloc_get_ptr(obj);
8344 PyObject *py_autopath;
8345 if (object->autopath == NULL) {
8346 py_autopath = Py_None;
8347 Py_INCREF(py_autopath);
8349 if (object->autopath == NULL) {
8350 py_autopath = Py_None;
8351 Py_INCREF(py_autopath);
8353 py_autopath = PyUnicode_Decode(object->autopath, strlen(object->autopath), "utf-8", "ignore");
8359 static int py_srvsvc_NetSrvInfo403_set_autopath(PyObject *py_obj, PyObject *value, void *closure)
8361 struct srvsvc_NetSrvInfo403 *object = (struct srvsvc_NetSrvInfo403 *)pytalloc_get_ptr(py_obj);
8362 if (value == Py_None) {
8363 object->autopath = NULL;
8365 object->autopath = NULL;
8366 if (PyUnicode_Check(value)) {
8367 object->autopath = PyString_AS_STRING(PyUnicode_AsEncodedString(value, "utf-8", "ignore"));
8368 } else if (PyString_Check(value)) {
8369 object->autopath = PyString_AS_STRING(value);
8371 PyErr_Format(PyExc_TypeError, "Expected string or unicode object, got %s", Py_TYPE(value)->tp_name);
8378 static PyGetSetDef py_srvsvc_NetSrvInfo403_getsetters[] = {
8379 { discard_const_p(char, "ulist_mtime"), py_srvsvc_NetSrvInfo403_get_ulist_mtime, py_srvsvc_NetSrvInfo403_set_ulist_mtime },
8380 { discard_const_p(char, "glist_mtime"), py_srvsvc_NetSrvInfo403_get_glist_mtime, py_srvsvc_NetSrvInfo403_set_glist_mtime },
8381 { discard_const_p(char, "alist_mtime"), py_srvsvc_NetSrvInfo403_get_alist_mtime, py_srvsvc_NetSrvInfo403_set_alist_mtime },
8382 { discard_const_p(char, "alerts"), py_srvsvc_NetSrvInfo403_get_alerts, py_srvsvc_NetSrvInfo403_set_alerts },
8383 { discard_const_p(char, "security"), py_srvsvc_NetSrvInfo403_get_security, py_srvsvc_NetSrvInfo403_set_security },
8384 { discard_const_p(char, "numadmin"), py_srvsvc_NetSrvInfo403_get_numadmin, py_srvsvc_NetSrvInfo403_set_numadmin },
8385 { discard_const_p(char, "lanmask"), py_srvsvc_NetSrvInfo403_get_lanmask, py_srvsvc_NetSrvInfo403_set_lanmask },
8386 { discard_const_p(char, "guestaccount"), py_srvsvc_NetSrvInfo403_get_guestaccount, py_srvsvc_NetSrvInfo403_set_guestaccount },
8387 { discard_const_p(char, "chdevs"), py_srvsvc_NetSrvInfo403_get_chdevs, py_srvsvc_NetSrvInfo403_set_chdevs },
8388 { discard_const_p(char, "chdevqs"), py_srvsvc_NetSrvInfo403_get_chdevqs, py_srvsvc_NetSrvInfo403_set_chdevqs },
8389 { discard_const_p(char, "chdevjobs"), py_srvsvc_NetSrvInfo403_get_chdevjobs, py_srvsvc_NetSrvInfo403_set_chdevjobs },
8390 { discard_const_p(char, "connections"), py_srvsvc_NetSrvInfo403_get_connections, py_srvsvc_NetSrvInfo403_set_connections },
8391 { discard_const_p(char, "shares"), py_srvsvc_NetSrvInfo403_get_shares, py_srvsvc_NetSrvInfo403_set_shares },
8392 { discard_const_p(char, "openfiles"), py_srvsvc_NetSrvInfo403_get_openfiles, py_srvsvc_NetSrvInfo403_set_openfiles },
8393 { discard_const_p(char, "sessopen"), py_srvsvc_NetSrvInfo403_get_sessopen, py_srvsvc_NetSrvInfo403_set_sessopen },
8394 { discard_const_p(char, "sesssvc"), py_srvsvc_NetSrvInfo403_get_sesssvc, py_srvsvc_NetSrvInfo403_set_sesssvc },
8395 { discard_const_p(char, "sessreqs"), py_srvsvc_NetSrvInfo403_get_sessreqs, py_srvsvc_NetSrvInfo403_set_sessreqs },
8396 { discard_const_p(char, "opensearch"), py_srvsvc_NetSrvInfo403_get_opensearch, py_srvsvc_NetSrvInfo403_set_opensearch },
8397 { discard_const_p(char, "activelocks"), py_srvsvc_NetSrvInfo403_get_activelocks, py_srvsvc_NetSrvInfo403_set_activelocks },
8398 { discard_const_p(char, "numreqbufs"), py_srvsvc_NetSrvInfo403_get_numreqbufs, py_srvsvc_NetSrvInfo403_set_numreqbufs },
8399 { discard_const_p(char, "sizereqbufs"), py_srvsvc_NetSrvInfo403_get_sizereqbufs, py_srvsvc_NetSrvInfo403_set_sizereqbufs },
8400 { discard_const_p(char, "numbigbufs"), py_srvsvc_NetSrvInfo403_get_numbigbufs, py_srvsvc_NetSrvInfo403_set_numbigbufs },
8401 { discard_const_p(char, "numfiletasks"), py_srvsvc_NetSrvInfo403_get_numfiletasks, py_srvsvc_NetSrvInfo403_set_numfiletasks },
8402 { discard_const_p(char, "alertsched"), py_srvsvc_NetSrvInfo403_get_alertsched, py_srvsvc_NetSrvInfo403_set_alertsched },
8403 { discard_const_p(char, "erroralert"), py_srvsvc_NetSrvInfo403_get_erroralert, py_srvsvc_NetSrvInfo403_set_erroralert },
8404 { discard_const_p(char, "logonalert"), py_srvsvc_NetSrvInfo403_get_logonalert, py_srvsvc_NetSrvInfo403_set_logonalert },
8405 { discard_const_p(char, "accessalert"), py_srvsvc_NetSrvInfo403_get_accessalert, py_srvsvc_NetSrvInfo403_set_accessalert },
8406 { discard_const_p(char, "diskalert"), py_srvsvc_NetSrvInfo403_get_diskalert, py_srvsvc_NetSrvInfo403_set_diskalert },
8407 { discard_const_p(char, "netioalert"), py_srvsvc_NetSrvInfo403_get_netioalert, py_srvsvc_NetSrvInfo403_set_netioalert },
8408 { discard_const_p(char, "maxaudits"), py_srvsvc_NetSrvInfo403_get_maxaudits, py_srvsvc_NetSrvInfo403_set_maxaudits },
8409 { discard_const_p(char, "srvheuristics"), py_srvsvc_NetSrvInfo403_get_srvheuristics, py_srvsvc_NetSrvInfo403_set_srvheuristics },
8410 { discard_const_p(char, "auditedevents"), py_srvsvc_NetSrvInfo403_get_auditedevents, py_srvsvc_NetSrvInfo403_set_auditedevents },
8411 { discard_const_p(char, "auditprofile"), py_srvsvc_NetSrvInfo403_get_auditprofile, py_srvsvc_NetSrvInfo403_set_auditprofile },
8412 { discard_const_p(char, "autopath"), py_srvsvc_NetSrvInfo403_get_autopath, py_srvsvc_NetSrvInfo403_set_autopath },
8416 static PyObject *py_srvsvc_NetSrvInfo403_new(PyTypeObject *type, PyObject *args, PyObject *kwargs)
8418 return pytalloc_new(struct srvsvc_NetSrvInfo403, type);
8422 static PyTypeObject srvsvc_NetSrvInfo403_Type = {
8423 PyObject_HEAD_INIT(NULL) 0,
8424 .tp_name = "srvsvc.NetSrvInfo403",
8425 .tp_getset = py_srvsvc_NetSrvInfo403_getsetters,
8427 .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
8428 .tp_basicsize = sizeof(pytalloc_Object),
8429 .tp_new = py_srvsvc_NetSrvInfo403_new,
8433 static PyObject *py_srvsvc_NetSrvInfo502_get_sessopen(PyObject *obj, void *closure)
8435 struct srvsvc_NetSrvInfo502 *object = (struct srvsvc_NetSrvInfo502 *)pytalloc_get_ptr(obj);
8436 PyObject *py_sessopen;
8437 py_sessopen = PyInt_FromLong(object->sessopen);
8441 static int py_srvsvc_NetSrvInfo502_set_sessopen(PyObject *py_obj, PyObject *value, void *closure)
8443 struct srvsvc_NetSrvInfo502 *object = (struct srvsvc_NetSrvInfo502 *)pytalloc_get_ptr(py_obj);
8444 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
8445 object->sessopen = PyInt_AsLong(value);
8449 static PyObject *py_srvsvc_NetSrvInfo502_get_sesssvc(PyObject *obj, void *closure)
8451 struct srvsvc_NetSrvInfo502 *object = (struct srvsvc_NetSrvInfo502 *)pytalloc_get_ptr(obj);
8452 PyObject *py_sesssvc;
8453 py_sesssvc = PyInt_FromLong(object->sesssvc);
8457 static int py_srvsvc_NetSrvInfo502_set_sesssvc(PyObject *py_obj, PyObject *value, void *closure)
8459 struct srvsvc_NetSrvInfo502 *object = (struct srvsvc_NetSrvInfo502 *)pytalloc_get_ptr(py_obj);
8460 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
8461 object->sesssvc = PyInt_AsLong(value);
8465 static PyObject *py_srvsvc_NetSrvInfo502_get_opensearch(PyObject *obj, void *closure)
8467 struct srvsvc_NetSrvInfo502 *object = (struct srvsvc_NetSrvInfo502 *)pytalloc_get_ptr(obj);
8468 PyObject *py_opensearch;
8469 py_opensearch = PyInt_FromLong(object->opensearch);
8470 return py_opensearch;
8473 static int py_srvsvc_NetSrvInfo502_set_opensearch(PyObject *py_obj, PyObject *value, void *closure)
8475 struct srvsvc_NetSrvInfo502 *object = (struct srvsvc_NetSrvInfo502 *)pytalloc_get_ptr(py_obj);
8476 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
8477 object->opensearch = PyInt_AsLong(value);
8481 static PyObject *py_srvsvc_NetSrvInfo502_get_sizereqbufs(PyObject *obj, void *closure)
8483 struct srvsvc_NetSrvInfo502 *object = (struct srvsvc_NetSrvInfo502 *)pytalloc_get_ptr(obj);
8484 PyObject *py_sizereqbufs;
8485 py_sizereqbufs = PyInt_FromLong(object->sizereqbufs);
8486 return py_sizereqbufs;
8489 static int py_srvsvc_NetSrvInfo502_set_sizereqbufs(PyObject *py_obj, PyObject *value, void *closure)
8491 struct srvsvc_NetSrvInfo502 *object = (struct srvsvc_NetSrvInfo502 *)pytalloc_get_ptr(py_obj);
8492 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
8493 object->sizereqbufs = PyInt_AsLong(value);
8497 static PyObject *py_srvsvc_NetSrvInfo502_get_initworkitems(PyObject *obj, void *closure)
8499 struct srvsvc_NetSrvInfo502 *object = (struct srvsvc_NetSrvInfo502 *)pytalloc_get_ptr(obj);
8500 PyObject *py_initworkitems;
8501 py_initworkitems = PyInt_FromLong(object->initworkitems);
8502 return py_initworkitems;
8505 static int py_srvsvc_NetSrvInfo502_set_initworkitems(PyObject *py_obj, PyObject *value, void *closure)
8507 struct srvsvc_NetSrvInfo502 *object = (struct srvsvc_NetSrvInfo502 *)pytalloc_get_ptr(py_obj);
8508 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
8509 object->initworkitems = PyInt_AsLong(value);
8513 static PyObject *py_srvsvc_NetSrvInfo502_get_maxworkitems(PyObject *obj, void *closure)
8515 struct srvsvc_NetSrvInfo502 *object = (struct srvsvc_NetSrvInfo502 *)pytalloc_get_ptr(obj);
8516 PyObject *py_maxworkitems;
8517 py_maxworkitems = PyInt_FromLong(object->maxworkitems);
8518 return py_maxworkitems;
8521 static int py_srvsvc_NetSrvInfo502_set_maxworkitems(PyObject *py_obj, PyObject *value, void *closure)
8523 struct srvsvc_NetSrvInfo502 *object = (struct srvsvc_NetSrvInfo502 *)pytalloc_get_ptr(py_obj);
8524 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
8525 object->maxworkitems = PyInt_AsLong(value);
8529 static PyObject *py_srvsvc_NetSrvInfo502_get_rawworkitems(PyObject *obj, void *closure)
8531 struct srvsvc_NetSrvInfo502 *object = (struct srvsvc_NetSrvInfo502 *)pytalloc_get_ptr(obj);
8532 PyObject *py_rawworkitems;
8533 py_rawworkitems = PyInt_FromLong(object->rawworkitems);
8534 return py_rawworkitems;
8537 static int py_srvsvc_NetSrvInfo502_set_rawworkitems(PyObject *py_obj, PyObject *value, void *closure)
8539 struct srvsvc_NetSrvInfo502 *object = (struct srvsvc_NetSrvInfo502 *)pytalloc_get_ptr(py_obj);
8540 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
8541 object->rawworkitems = PyInt_AsLong(value);
8545 static PyObject *py_srvsvc_NetSrvInfo502_get_irpstacksize(PyObject *obj, void *closure)
8547 struct srvsvc_NetSrvInfo502 *object = (struct srvsvc_NetSrvInfo502 *)pytalloc_get_ptr(obj);
8548 PyObject *py_irpstacksize;
8549 py_irpstacksize = PyInt_FromLong(object->irpstacksize);
8550 return py_irpstacksize;
8553 static int py_srvsvc_NetSrvInfo502_set_irpstacksize(PyObject *py_obj, PyObject *value, void *closure)
8555 struct srvsvc_NetSrvInfo502 *object = (struct srvsvc_NetSrvInfo502 *)pytalloc_get_ptr(py_obj);
8556 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
8557 object->irpstacksize = PyInt_AsLong(value);
8561 static PyObject *py_srvsvc_NetSrvInfo502_get_maxrawbuflen(PyObject *obj, void *closure)
8563 struct srvsvc_NetSrvInfo502 *object = (struct srvsvc_NetSrvInfo502 *)pytalloc_get_ptr(obj);
8564 PyObject *py_maxrawbuflen;
8565 py_maxrawbuflen = PyInt_FromLong(object->maxrawbuflen);
8566 return py_maxrawbuflen;
8569 static int py_srvsvc_NetSrvInfo502_set_maxrawbuflen(PyObject *py_obj, PyObject *value, void *closure)
8571 struct srvsvc_NetSrvInfo502 *object = (struct srvsvc_NetSrvInfo502 *)pytalloc_get_ptr(py_obj);
8572 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
8573 object->maxrawbuflen = PyInt_AsLong(value);
8577 static PyObject *py_srvsvc_NetSrvInfo502_get_sessusers(PyObject *obj, void *closure)
8579 struct srvsvc_NetSrvInfo502 *object = (struct srvsvc_NetSrvInfo502 *)pytalloc_get_ptr(obj);
8580 PyObject *py_sessusers;
8581 py_sessusers = PyInt_FromLong(object->sessusers);
8582 return py_sessusers;
8585 static int py_srvsvc_NetSrvInfo502_set_sessusers(PyObject *py_obj, PyObject *value, void *closure)
8587 struct srvsvc_NetSrvInfo502 *object = (struct srvsvc_NetSrvInfo502 *)pytalloc_get_ptr(py_obj);
8588 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
8589 object->sessusers = PyInt_AsLong(value);
8593 static PyObject *py_srvsvc_NetSrvInfo502_get_sessconns(PyObject *obj, void *closure)
8595 struct srvsvc_NetSrvInfo502 *object = (struct srvsvc_NetSrvInfo502 *)pytalloc_get_ptr(obj);
8596 PyObject *py_sessconns;
8597 py_sessconns = PyInt_FromLong(object->sessconns);
8598 return py_sessconns;
8601 static int py_srvsvc_NetSrvInfo502_set_sessconns(PyObject *py_obj, PyObject *value, void *closure)
8603 struct srvsvc_NetSrvInfo502 *object = (struct srvsvc_NetSrvInfo502 *)pytalloc_get_ptr(py_obj);
8604 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
8605 object->sessconns = PyInt_AsLong(value);
8609 static PyObject *py_srvsvc_NetSrvInfo502_get_maxpagedmemoryusage(PyObject *obj, void *closure)
8611 struct srvsvc_NetSrvInfo502 *object = (struct srvsvc_NetSrvInfo502 *)pytalloc_get_ptr(obj);
8612 PyObject *py_maxpagedmemoryusage;
8613 py_maxpagedmemoryusage = PyInt_FromLong(object->maxpagedmemoryusage);
8614 return py_maxpagedmemoryusage;
8617 static int py_srvsvc_NetSrvInfo502_set_maxpagedmemoryusage(PyObject *py_obj, PyObject *value, void *closure)
8619 struct srvsvc_NetSrvInfo502 *object = (struct srvsvc_NetSrvInfo502 *)pytalloc_get_ptr(py_obj);
8620 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
8621 object->maxpagedmemoryusage = PyInt_AsLong(value);
8625 static PyObject *py_srvsvc_NetSrvInfo502_get_maxnonpagedmemoryusage(PyObject *obj, void *closure)
8627 struct srvsvc_NetSrvInfo502 *object = (struct srvsvc_NetSrvInfo502 *)pytalloc_get_ptr(obj);
8628 PyObject *py_maxnonpagedmemoryusage;
8629 py_maxnonpagedmemoryusage = PyInt_FromLong(object->maxnonpagedmemoryusage);
8630 return py_maxnonpagedmemoryusage;
8633 static int py_srvsvc_NetSrvInfo502_set_maxnonpagedmemoryusage(PyObject *py_obj, PyObject *value, void *closure)
8635 struct srvsvc_NetSrvInfo502 *object = (struct srvsvc_NetSrvInfo502 *)pytalloc_get_ptr(py_obj);
8636 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
8637 object->maxnonpagedmemoryusage = PyInt_AsLong(value);
8641 static PyObject *py_srvsvc_NetSrvInfo502_get_enablesoftcompat(PyObject *obj, void *closure)
8643 struct srvsvc_NetSrvInfo502 *object = (struct srvsvc_NetSrvInfo502 *)pytalloc_get_ptr(obj);
8644 PyObject *py_enablesoftcompat;
8645 py_enablesoftcompat = PyInt_FromLong(object->enablesoftcompat);
8646 return py_enablesoftcompat;
8649 static int py_srvsvc_NetSrvInfo502_set_enablesoftcompat(PyObject *py_obj, PyObject *value, void *closure)
8651 struct srvsvc_NetSrvInfo502 *object = (struct srvsvc_NetSrvInfo502 *)pytalloc_get_ptr(py_obj);
8652 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
8653 object->enablesoftcompat = PyInt_AsLong(value);
8657 static PyObject *py_srvsvc_NetSrvInfo502_get_enableforcedlogoff(PyObject *obj, void *closure)
8659 struct srvsvc_NetSrvInfo502 *object = (struct srvsvc_NetSrvInfo502 *)pytalloc_get_ptr(obj);
8660 PyObject *py_enableforcedlogoff;
8661 py_enableforcedlogoff = PyInt_FromLong(object->enableforcedlogoff);
8662 return py_enableforcedlogoff;
8665 static int py_srvsvc_NetSrvInfo502_set_enableforcedlogoff(PyObject *py_obj, PyObject *value, void *closure)
8667 struct srvsvc_NetSrvInfo502 *object = (struct srvsvc_NetSrvInfo502 *)pytalloc_get_ptr(py_obj);
8668 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
8669 object->enableforcedlogoff = PyInt_AsLong(value);
8673 static PyObject *py_srvsvc_NetSrvInfo502_get_timesource(PyObject *obj, void *closure)
8675 struct srvsvc_NetSrvInfo502 *object = (struct srvsvc_NetSrvInfo502 *)pytalloc_get_ptr(obj);
8676 PyObject *py_timesource;
8677 py_timesource = PyInt_FromLong(object->timesource);
8678 return py_timesource;
8681 static int py_srvsvc_NetSrvInfo502_set_timesource(PyObject *py_obj, PyObject *value, void *closure)
8683 struct srvsvc_NetSrvInfo502 *object = (struct srvsvc_NetSrvInfo502 *)pytalloc_get_ptr(py_obj);
8684 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
8685 object->timesource = PyInt_AsLong(value);
8689 static PyObject *py_srvsvc_NetSrvInfo502_get_acceptdownlevelapis(PyObject *obj, void *closure)
8691 struct srvsvc_NetSrvInfo502 *object = (struct srvsvc_NetSrvInfo502 *)pytalloc_get_ptr(obj);
8692 PyObject *py_acceptdownlevelapis;
8693 py_acceptdownlevelapis = PyInt_FromLong(object->acceptdownlevelapis);
8694 return py_acceptdownlevelapis;
8697 static int py_srvsvc_NetSrvInfo502_set_acceptdownlevelapis(PyObject *py_obj, PyObject *value, void *closure)
8699 struct srvsvc_NetSrvInfo502 *object = (struct srvsvc_NetSrvInfo502 *)pytalloc_get_ptr(py_obj);
8700 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
8701 object->acceptdownlevelapis = PyInt_AsLong(value);
8705 static PyObject *py_srvsvc_NetSrvInfo502_get_lmannounce(PyObject *obj, void *closure)
8707 struct srvsvc_NetSrvInfo502 *object = (struct srvsvc_NetSrvInfo502 *)pytalloc_get_ptr(obj);
8708 PyObject *py_lmannounce;
8709 py_lmannounce = PyInt_FromLong(object->lmannounce);
8710 return py_lmannounce;
8713 static int py_srvsvc_NetSrvInfo502_set_lmannounce(PyObject *py_obj, PyObject *value, void *closure)
8715 struct srvsvc_NetSrvInfo502 *object = (struct srvsvc_NetSrvInfo502 *)pytalloc_get_ptr(py_obj);
8716 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
8717 object->lmannounce = PyInt_AsLong(value);
8721 static PyGetSetDef py_srvsvc_NetSrvInfo502_getsetters[] = {
8722 { discard_const_p(char, "sessopen"), py_srvsvc_NetSrvInfo502_get_sessopen, py_srvsvc_NetSrvInfo502_set_sessopen },
8723 { discard_const_p(char, "sesssvc"), py_srvsvc_NetSrvInfo502_get_sesssvc, py_srvsvc_NetSrvInfo502_set_sesssvc },
8724 { discard_const_p(char, "opensearch"), py_srvsvc_NetSrvInfo502_get_opensearch, py_srvsvc_NetSrvInfo502_set_opensearch },
8725 { discard_const_p(char, "sizereqbufs"), py_srvsvc_NetSrvInfo502_get_sizereqbufs, py_srvsvc_NetSrvInfo502_set_sizereqbufs },
8726 { discard_const_p(char, "initworkitems"), py_srvsvc_NetSrvInfo502_get_initworkitems, py_srvsvc_NetSrvInfo502_set_initworkitems },
8727 { discard_const_p(char, "maxworkitems"), py_srvsvc_NetSrvInfo502_get_maxworkitems, py_srvsvc_NetSrvInfo502_set_maxworkitems },
8728 { discard_const_p(char, "rawworkitems"), py_srvsvc_NetSrvInfo502_get_rawworkitems, py_srvsvc_NetSrvInfo502_set_rawworkitems },
8729 { discard_const_p(char, "irpstacksize"), py_srvsvc_NetSrvInfo502_get_irpstacksize, py_srvsvc_NetSrvInfo502_set_irpstacksize },
8730 { discard_const_p(char, "maxrawbuflen"), py_srvsvc_NetSrvInfo502_get_maxrawbuflen, py_srvsvc_NetSrvInfo502_set_maxrawbuflen },
8731 { discard_const_p(char, "sessusers"), py_srvsvc_NetSrvInfo502_get_sessusers, py_srvsvc_NetSrvInfo502_set_sessusers },
8732 { discard_const_p(char, "sessconns"), py_srvsvc_NetSrvInfo502_get_sessconns, py_srvsvc_NetSrvInfo502_set_sessconns },
8733 { discard_const_p(char, "maxpagedmemoryusage"), py_srvsvc_NetSrvInfo502_get_maxpagedmemoryusage, py_srvsvc_NetSrvInfo502_set_maxpagedmemoryusage },
8734 { discard_const_p(char, "maxnonpagedmemoryusage"), py_srvsvc_NetSrvInfo502_get_maxnonpagedmemoryusage, py_srvsvc_NetSrvInfo502_set_maxnonpagedmemoryusage },
8735 { discard_const_p(char, "enablesoftcompat"), py_srvsvc_NetSrvInfo502_get_enablesoftcompat, py_srvsvc_NetSrvInfo502_set_enablesoftcompat },
8736 { discard_const_p(char, "enableforcedlogoff"), py_srvsvc_NetSrvInfo502_get_enableforcedlogoff, py_srvsvc_NetSrvInfo502_set_enableforcedlogoff },
8737 { discard_const_p(char, "timesource"), py_srvsvc_NetSrvInfo502_get_timesource, py_srvsvc_NetSrvInfo502_set_timesource },
8738 { discard_const_p(char, "acceptdownlevelapis"), py_srvsvc_NetSrvInfo502_get_acceptdownlevelapis, py_srvsvc_NetSrvInfo502_set_acceptdownlevelapis },
8739 { discard_const_p(char, "lmannounce"), py_srvsvc_NetSrvInfo502_get_lmannounce, py_srvsvc_NetSrvInfo502_set_lmannounce },
8743 static PyObject *py_srvsvc_NetSrvInfo502_new(PyTypeObject *type, PyObject *args, PyObject *kwargs)
8745 return pytalloc_new(struct srvsvc_NetSrvInfo502, type);
8749 static PyTypeObject srvsvc_NetSrvInfo502_Type = {
8750 PyObject_HEAD_INIT(NULL) 0,
8751 .tp_name = "srvsvc.NetSrvInfo502",
8752 .tp_getset = py_srvsvc_NetSrvInfo502_getsetters,
8754 .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
8755 .tp_basicsize = sizeof(pytalloc_Object),
8756 .tp_new = py_srvsvc_NetSrvInfo502_new,
8760 static PyObject *py_srvsvc_NetSrvInfo503_get_sessopen(PyObject *obj, void *closure)
8762 struct srvsvc_NetSrvInfo503 *object = (struct srvsvc_NetSrvInfo503 *)pytalloc_get_ptr(obj);
8763 PyObject *py_sessopen;
8764 py_sessopen = PyInt_FromLong(object->sessopen);
8768 static int py_srvsvc_NetSrvInfo503_set_sessopen(PyObject *py_obj, PyObject *value, void *closure)
8770 struct srvsvc_NetSrvInfo503 *object = (struct srvsvc_NetSrvInfo503 *)pytalloc_get_ptr(py_obj);
8771 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
8772 object->sessopen = PyInt_AsLong(value);
8776 static PyObject *py_srvsvc_NetSrvInfo503_get_sesssvc(PyObject *obj, void *closure)
8778 struct srvsvc_NetSrvInfo503 *object = (struct srvsvc_NetSrvInfo503 *)pytalloc_get_ptr(obj);
8779 PyObject *py_sesssvc;
8780 py_sesssvc = PyInt_FromLong(object->sesssvc);
8784 static int py_srvsvc_NetSrvInfo503_set_sesssvc(PyObject *py_obj, PyObject *value, void *closure)
8786 struct srvsvc_NetSrvInfo503 *object = (struct srvsvc_NetSrvInfo503 *)pytalloc_get_ptr(py_obj);
8787 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
8788 object->sesssvc = PyInt_AsLong(value);
8792 static PyObject *py_srvsvc_NetSrvInfo503_get_opensearch(PyObject *obj, void *closure)
8794 struct srvsvc_NetSrvInfo503 *object = (struct srvsvc_NetSrvInfo503 *)pytalloc_get_ptr(obj);
8795 PyObject *py_opensearch;
8796 py_opensearch = PyInt_FromLong(object->opensearch);
8797 return py_opensearch;
8800 static int py_srvsvc_NetSrvInfo503_set_opensearch(PyObject *py_obj, PyObject *value, void *closure)
8802 struct srvsvc_NetSrvInfo503 *object = (struct srvsvc_NetSrvInfo503 *)pytalloc_get_ptr(py_obj);
8803 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
8804 object->opensearch = PyInt_AsLong(value);
8808 static PyObject *py_srvsvc_NetSrvInfo503_get_sizereqbufs(PyObject *obj, void *closure)
8810 struct srvsvc_NetSrvInfo503 *object = (struct srvsvc_NetSrvInfo503 *)pytalloc_get_ptr(obj);
8811 PyObject *py_sizereqbufs;
8812 py_sizereqbufs = PyInt_FromLong(object->sizereqbufs);
8813 return py_sizereqbufs;
8816 static int py_srvsvc_NetSrvInfo503_set_sizereqbufs(PyObject *py_obj, PyObject *value, void *closure)
8818 struct srvsvc_NetSrvInfo503 *object = (struct srvsvc_NetSrvInfo503 *)pytalloc_get_ptr(py_obj);
8819 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
8820 object->sizereqbufs = PyInt_AsLong(value);
8824 static PyObject *py_srvsvc_NetSrvInfo503_get_initworkitems(PyObject *obj, void *closure)
8826 struct srvsvc_NetSrvInfo503 *object = (struct srvsvc_NetSrvInfo503 *)pytalloc_get_ptr(obj);
8827 PyObject *py_initworkitems;
8828 py_initworkitems = PyInt_FromLong(object->initworkitems);
8829 return py_initworkitems;
8832 static int py_srvsvc_NetSrvInfo503_set_initworkitems(PyObject *py_obj, PyObject *value, void *closure)
8834 struct srvsvc_NetSrvInfo503 *object = (struct srvsvc_NetSrvInfo503 *)pytalloc_get_ptr(py_obj);
8835 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
8836 object->initworkitems = PyInt_AsLong(value);
8840 static PyObject *py_srvsvc_NetSrvInfo503_get_maxworkitems(PyObject *obj, void *closure)
8842 struct srvsvc_NetSrvInfo503 *object = (struct srvsvc_NetSrvInfo503 *)pytalloc_get_ptr(obj);
8843 PyObject *py_maxworkitems;
8844 py_maxworkitems = PyInt_FromLong(object->maxworkitems);
8845 return py_maxworkitems;
8848 static int py_srvsvc_NetSrvInfo503_set_maxworkitems(PyObject *py_obj, PyObject *value, void *closure)
8850 struct srvsvc_NetSrvInfo503 *object = (struct srvsvc_NetSrvInfo503 *)pytalloc_get_ptr(py_obj);
8851 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
8852 object->maxworkitems = PyInt_AsLong(value);
8856 static PyObject *py_srvsvc_NetSrvInfo503_get_rawworkitems(PyObject *obj, void *closure)
8858 struct srvsvc_NetSrvInfo503 *object = (struct srvsvc_NetSrvInfo503 *)pytalloc_get_ptr(obj);
8859 PyObject *py_rawworkitems;
8860 py_rawworkitems = PyInt_FromLong(object->rawworkitems);
8861 return py_rawworkitems;
8864 static int py_srvsvc_NetSrvInfo503_set_rawworkitems(PyObject *py_obj, PyObject *value, void *closure)
8866 struct srvsvc_NetSrvInfo503 *object = (struct srvsvc_NetSrvInfo503 *)pytalloc_get_ptr(py_obj);
8867 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
8868 object->rawworkitems = PyInt_AsLong(value);
8872 static PyObject *py_srvsvc_NetSrvInfo503_get_irpstacksize(PyObject *obj, void *closure)
8874 struct srvsvc_NetSrvInfo503 *object = (struct srvsvc_NetSrvInfo503 *)pytalloc_get_ptr(obj);
8875 PyObject *py_irpstacksize;
8876 py_irpstacksize = PyInt_FromLong(object->irpstacksize);
8877 return py_irpstacksize;
8880 static int py_srvsvc_NetSrvInfo503_set_irpstacksize(PyObject *py_obj, PyObject *value, void *closure)
8882 struct srvsvc_NetSrvInfo503 *object = (struct srvsvc_NetSrvInfo503 *)pytalloc_get_ptr(py_obj);
8883 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
8884 object->irpstacksize = PyInt_AsLong(value);
8888 static PyObject *py_srvsvc_NetSrvInfo503_get_maxrawbuflen(PyObject *obj, void *closure)
8890 struct srvsvc_NetSrvInfo503 *object = (struct srvsvc_NetSrvInfo503 *)pytalloc_get_ptr(obj);
8891 PyObject *py_maxrawbuflen;
8892 py_maxrawbuflen = PyInt_FromLong(object->maxrawbuflen);
8893 return py_maxrawbuflen;
8896 static int py_srvsvc_NetSrvInfo503_set_maxrawbuflen(PyObject *py_obj, PyObject *value, void *closure)
8898 struct srvsvc_NetSrvInfo503 *object = (struct srvsvc_NetSrvInfo503 *)pytalloc_get_ptr(py_obj);
8899 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
8900 object->maxrawbuflen = PyInt_AsLong(value);
8904 static PyObject *py_srvsvc_NetSrvInfo503_get_sessusers(PyObject *obj, void *closure)
8906 struct srvsvc_NetSrvInfo503 *object = (struct srvsvc_NetSrvInfo503 *)pytalloc_get_ptr(obj);
8907 PyObject *py_sessusers;
8908 py_sessusers = PyInt_FromLong(object->sessusers);
8909 return py_sessusers;
8912 static int py_srvsvc_NetSrvInfo503_set_sessusers(PyObject *py_obj, PyObject *value, void *closure)
8914 struct srvsvc_NetSrvInfo503 *object = (struct srvsvc_NetSrvInfo503 *)pytalloc_get_ptr(py_obj);
8915 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
8916 object->sessusers = PyInt_AsLong(value);
8920 static PyObject *py_srvsvc_NetSrvInfo503_get_sessconns(PyObject *obj, void *closure)
8922 struct srvsvc_NetSrvInfo503 *object = (struct srvsvc_NetSrvInfo503 *)pytalloc_get_ptr(obj);
8923 PyObject *py_sessconns;
8924 py_sessconns = PyInt_FromLong(object->sessconns);
8925 return py_sessconns;
8928 static int py_srvsvc_NetSrvInfo503_set_sessconns(PyObject *py_obj, PyObject *value, void *closure)
8930 struct srvsvc_NetSrvInfo503 *object = (struct srvsvc_NetSrvInfo503 *)pytalloc_get_ptr(py_obj);
8931 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
8932 object->sessconns = PyInt_AsLong(value);
8936 static PyObject *py_srvsvc_NetSrvInfo503_get_maxpagedmemoryusage(PyObject *obj, void *closure)
8938 struct srvsvc_NetSrvInfo503 *object = (struct srvsvc_NetSrvInfo503 *)pytalloc_get_ptr(obj);
8939 PyObject *py_maxpagedmemoryusage;
8940 py_maxpagedmemoryusage = PyInt_FromLong(object->maxpagedmemoryusage);
8941 return py_maxpagedmemoryusage;
8944 static int py_srvsvc_NetSrvInfo503_set_maxpagedmemoryusage(PyObject *py_obj, PyObject *value, void *closure)
8946 struct srvsvc_NetSrvInfo503 *object = (struct srvsvc_NetSrvInfo503 *)pytalloc_get_ptr(py_obj);
8947 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
8948 object->maxpagedmemoryusage = PyInt_AsLong(value);
8952 static PyObject *py_srvsvc_NetSrvInfo503_get_maxnonpagedmemoryusage(PyObject *obj, void *closure)
8954 struct srvsvc_NetSrvInfo503 *object = (struct srvsvc_NetSrvInfo503 *)pytalloc_get_ptr(obj);
8955 PyObject *py_maxnonpagedmemoryusage;
8956 py_maxnonpagedmemoryusage = PyInt_FromLong(object->maxnonpagedmemoryusage);
8957 return py_maxnonpagedmemoryusage;
8960 static int py_srvsvc_NetSrvInfo503_set_maxnonpagedmemoryusage(PyObject *py_obj, PyObject *value, void *closure)
8962 struct srvsvc_NetSrvInfo503 *object = (struct srvsvc_NetSrvInfo503 *)pytalloc_get_ptr(py_obj);
8963 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
8964 object->maxnonpagedmemoryusage = PyInt_AsLong(value);
8968 static PyObject *py_srvsvc_NetSrvInfo503_get_enablesoftcompat(PyObject *obj, void *closure)
8970 struct srvsvc_NetSrvInfo503 *object = (struct srvsvc_NetSrvInfo503 *)pytalloc_get_ptr(obj);
8971 PyObject *py_enablesoftcompat;
8972 py_enablesoftcompat = PyInt_FromLong(object->enablesoftcompat);
8973 return py_enablesoftcompat;
8976 static int py_srvsvc_NetSrvInfo503_set_enablesoftcompat(PyObject *py_obj, PyObject *value, void *closure)
8978 struct srvsvc_NetSrvInfo503 *object = (struct srvsvc_NetSrvInfo503 *)pytalloc_get_ptr(py_obj);
8979 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
8980 object->enablesoftcompat = PyInt_AsLong(value);
8984 static PyObject *py_srvsvc_NetSrvInfo503_get_enableforcedlogoff(PyObject *obj, void *closure)
8986 struct srvsvc_NetSrvInfo503 *object = (struct srvsvc_NetSrvInfo503 *)pytalloc_get_ptr(obj);
8987 PyObject *py_enableforcedlogoff;
8988 py_enableforcedlogoff = PyInt_FromLong(object->enableforcedlogoff);
8989 return py_enableforcedlogoff;
8992 static int py_srvsvc_NetSrvInfo503_set_enableforcedlogoff(PyObject *py_obj, PyObject *value, void *closure)
8994 struct srvsvc_NetSrvInfo503 *object = (struct srvsvc_NetSrvInfo503 *)pytalloc_get_ptr(py_obj);
8995 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
8996 object->enableforcedlogoff = PyInt_AsLong(value);
9000 static PyObject *py_srvsvc_NetSrvInfo503_get_timesource(PyObject *obj, void *closure)
9002 struct srvsvc_NetSrvInfo503 *object = (struct srvsvc_NetSrvInfo503 *)pytalloc_get_ptr(obj);
9003 PyObject *py_timesource;
9004 py_timesource = PyInt_FromLong(object->timesource);
9005 return py_timesource;
9008 static int py_srvsvc_NetSrvInfo503_set_timesource(PyObject *py_obj, PyObject *value, void *closure)
9010 struct srvsvc_NetSrvInfo503 *object = (struct srvsvc_NetSrvInfo503 *)pytalloc_get_ptr(py_obj);
9011 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
9012 object->timesource = PyInt_AsLong(value);
9016 static PyObject *py_srvsvc_NetSrvInfo503_get_acceptdownlevelapis(PyObject *obj, void *closure)
9018 struct srvsvc_NetSrvInfo503 *object = (struct srvsvc_NetSrvInfo503 *)pytalloc_get_ptr(obj);
9019 PyObject *py_acceptdownlevelapis;
9020 py_acceptdownlevelapis = PyInt_FromLong(object->acceptdownlevelapis);
9021 return py_acceptdownlevelapis;
9024 static int py_srvsvc_NetSrvInfo503_set_acceptdownlevelapis(PyObject *py_obj, PyObject *value, void *closure)
9026 struct srvsvc_NetSrvInfo503 *object = (struct srvsvc_NetSrvInfo503 *)pytalloc_get_ptr(py_obj);
9027 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
9028 object->acceptdownlevelapis = PyInt_AsLong(value);
9032 static PyObject *py_srvsvc_NetSrvInfo503_get_lmannounce(PyObject *obj, void *closure)
9034 struct srvsvc_NetSrvInfo503 *object = (struct srvsvc_NetSrvInfo503 *)pytalloc_get_ptr(obj);
9035 PyObject *py_lmannounce;
9036 py_lmannounce = PyInt_FromLong(object->lmannounce);
9037 return py_lmannounce;
9040 static int py_srvsvc_NetSrvInfo503_set_lmannounce(PyObject *py_obj, PyObject *value, void *closure)
9042 struct srvsvc_NetSrvInfo503 *object = (struct srvsvc_NetSrvInfo503 *)pytalloc_get_ptr(py_obj);
9043 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
9044 object->lmannounce = PyInt_AsLong(value);
9048 static PyObject *py_srvsvc_NetSrvInfo503_get_domain(PyObject *obj, void *closure)
9050 struct srvsvc_NetSrvInfo503 *object = (struct srvsvc_NetSrvInfo503 *)pytalloc_get_ptr(obj);
9051 PyObject *py_domain;
9052 if (object->domain == NULL) {
9053 py_domain = Py_None;
9054 Py_INCREF(py_domain);
9056 if (object->domain == NULL) {
9057 py_domain = Py_None;
9058 Py_INCREF(py_domain);
9060 py_domain = PyUnicode_Decode(object->domain, strlen(object->domain), "utf-8", "ignore");
9066 static int py_srvsvc_NetSrvInfo503_set_domain(PyObject *py_obj, PyObject *value, void *closure)
9068 struct srvsvc_NetSrvInfo503 *object = (struct srvsvc_NetSrvInfo503 *)pytalloc_get_ptr(py_obj);
9069 if (value == Py_None) {
9070 object->domain = NULL;
9072 object->domain = NULL;
9073 if (PyUnicode_Check(value)) {
9074 object->domain = PyString_AS_STRING(PyUnicode_AsEncodedString(value, "utf-8", "ignore"));
9075 } else if (PyString_Check(value)) {
9076 object->domain = PyString_AS_STRING(value);
9078 PyErr_Format(PyExc_TypeError, "Expected string or unicode object, got %s", Py_TYPE(value)->tp_name);
9085 static PyObject *py_srvsvc_NetSrvInfo503_get_maxcopyreadlen(PyObject *obj, void *closure)
9087 struct srvsvc_NetSrvInfo503 *object = (struct srvsvc_NetSrvInfo503 *)pytalloc_get_ptr(obj);
9088 PyObject *py_maxcopyreadlen;
9089 py_maxcopyreadlen = PyInt_FromLong(object->maxcopyreadlen);
9090 return py_maxcopyreadlen;
9093 static int py_srvsvc_NetSrvInfo503_set_maxcopyreadlen(PyObject *py_obj, PyObject *value, void *closure)
9095 struct srvsvc_NetSrvInfo503 *object = (struct srvsvc_NetSrvInfo503 *)pytalloc_get_ptr(py_obj);
9096 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
9097 object->maxcopyreadlen = PyInt_AsLong(value);
9101 static PyObject *py_srvsvc_NetSrvInfo503_get_maxcopywritelen(PyObject *obj, void *closure)
9103 struct srvsvc_NetSrvInfo503 *object = (struct srvsvc_NetSrvInfo503 *)pytalloc_get_ptr(obj);
9104 PyObject *py_maxcopywritelen;
9105 py_maxcopywritelen = PyInt_FromLong(object->maxcopywritelen);
9106 return py_maxcopywritelen;
9109 static int py_srvsvc_NetSrvInfo503_set_maxcopywritelen(PyObject *py_obj, PyObject *value, void *closure)
9111 struct srvsvc_NetSrvInfo503 *object = (struct srvsvc_NetSrvInfo503 *)pytalloc_get_ptr(py_obj);
9112 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
9113 object->maxcopywritelen = PyInt_AsLong(value);
9117 static PyObject *py_srvsvc_NetSrvInfo503_get_minkeepsearch(PyObject *obj, void *closure)
9119 struct srvsvc_NetSrvInfo503 *object = (struct srvsvc_NetSrvInfo503 *)pytalloc_get_ptr(obj);
9120 PyObject *py_minkeepsearch;
9121 py_minkeepsearch = PyInt_FromLong(object->minkeepsearch);
9122 return py_minkeepsearch;
9125 static int py_srvsvc_NetSrvInfo503_set_minkeepsearch(PyObject *py_obj, PyObject *value, void *closure)
9127 struct srvsvc_NetSrvInfo503 *object = (struct srvsvc_NetSrvInfo503 *)pytalloc_get_ptr(py_obj);
9128 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
9129 object->minkeepsearch = PyInt_AsLong(value);
9133 static PyObject *py_srvsvc_NetSrvInfo503_get_maxkeepsearch(PyObject *obj, void *closure)
9135 struct srvsvc_NetSrvInfo503 *object = (struct srvsvc_NetSrvInfo503 *)pytalloc_get_ptr(obj);
9136 PyObject *py_maxkeepsearch;
9137 py_maxkeepsearch = PyInt_FromLong(object->maxkeepsearch);
9138 return py_maxkeepsearch;
9141 static int py_srvsvc_NetSrvInfo503_set_maxkeepsearch(PyObject *py_obj, PyObject *value, void *closure)
9143 struct srvsvc_NetSrvInfo503 *object = (struct srvsvc_NetSrvInfo503 *)pytalloc_get_ptr(py_obj);
9144 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
9145 object->maxkeepsearch = PyInt_AsLong(value);
9149 static PyObject *py_srvsvc_NetSrvInfo503_get_minkeepcomplsearch(PyObject *obj, void *closure)
9151 struct srvsvc_NetSrvInfo503 *object = (struct srvsvc_NetSrvInfo503 *)pytalloc_get_ptr(obj);
9152 PyObject *py_minkeepcomplsearch;
9153 py_minkeepcomplsearch = PyInt_FromLong(object->minkeepcomplsearch);
9154 return py_minkeepcomplsearch;
9157 static int py_srvsvc_NetSrvInfo503_set_minkeepcomplsearch(PyObject *py_obj, PyObject *value, void *closure)
9159 struct srvsvc_NetSrvInfo503 *object = (struct srvsvc_NetSrvInfo503 *)pytalloc_get_ptr(py_obj);
9160 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
9161 object->minkeepcomplsearch = PyInt_AsLong(value);
9165 static PyObject *py_srvsvc_NetSrvInfo503_get_maxkeepcomplsearch(PyObject *obj, void *closure)
9167 struct srvsvc_NetSrvInfo503 *object = (struct srvsvc_NetSrvInfo503 *)pytalloc_get_ptr(obj);
9168 PyObject *py_maxkeepcomplsearch;
9169 py_maxkeepcomplsearch = PyInt_FromLong(object->maxkeepcomplsearch);
9170 return py_maxkeepcomplsearch;
9173 static int py_srvsvc_NetSrvInfo503_set_maxkeepcomplsearch(PyObject *py_obj, PyObject *value, void *closure)
9175 struct srvsvc_NetSrvInfo503 *object = (struct srvsvc_NetSrvInfo503 *)pytalloc_get_ptr(py_obj);
9176 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
9177 object->maxkeepcomplsearch = PyInt_AsLong(value);
9181 static PyObject *py_srvsvc_NetSrvInfo503_get_threadcountadd(PyObject *obj, void *closure)
9183 struct srvsvc_NetSrvInfo503 *object = (struct srvsvc_NetSrvInfo503 *)pytalloc_get_ptr(obj);
9184 PyObject *py_threadcountadd;
9185 py_threadcountadd = PyInt_FromLong(object->threadcountadd);
9186 return py_threadcountadd;
9189 static int py_srvsvc_NetSrvInfo503_set_threadcountadd(PyObject *py_obj, PyObject *value, void *closure)
9191 struct srvsvc_NetSrvInfo503 *object = (struct srvsvc_NetSrvInfo503 *)pytalloc_get_ptr(py_obj);
9192 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
9193 object->threadcountadd = PyInt_AsLong(value);
9197 static PyObject *py_srvsvc_NetSrvInfo503_get_numlockthreads(PyObject *obj, void *closure)
9199 struct srvsvc_NetSrvInfo503 *object = (struct srvsvc_NetSrvInfo503 *)pytalloc_get_ptr(obj);
9200 PyObject *py_numlockthreads;
9201 py_numlockthreads = PyInt_FromLong(object->numlockthreads);
9202 return py_numlockthreads;
9205 static int py_srvsvc_NetSrvInfo503_set_numlockthreads(PyObject *py_obj, PyObject *value, void *closure)
9207 struct srvsvc_NetSrvInfo503 *object = (struct srvsvc_NetSrvInfo503 *)pytalloc_get_ptr(py_obj);
9208 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
9209 object->numlockthreads = PyInt_AsLong(value);
9213 static PyObject *py_srvsvc_NetSrvInfo503_get_scavtimeout(PyObject *obj, void *closure)
9215 struct srvsvc_NetSrvInfo503 *object = (struct srvsvc_NetSrvInfo503 *)pytalloc_get_ptr(obj);
9216 PyObject *py_scavtimeout;
9217 py_scavtimeout = PyInt_FromLong(object->scavtimeout);
9218 return py_scavtimeout;
9221 static int py_srvsvc_NetSrvInfo503_set_scavtimeout(PyObject *py_obj, PyObject *value, void *closure)
9223 struct srvsvc_NetSrvInfo503 *object = (struct srvsvc_NetSrvInfo503 *)pytalloc_get_ptr(py_obj);
9224 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
9225 object->scavtimeout = PyInt_AsLong(value);
9229 static PyObject *py_srvsvc_NetSrvInfo503_get_minrcvqueue(PyObject *obj, void *closure)
9231 struct srvsvc_NetSrvInfo503 *object = (struct srvsvc_NetSrvInfo503 *)pytalloc_get_ptr(obj);
9232 PyObject *py_minrcvqueue;
9233 py_minrcvqueue = PyInt_FromLong(object->minrcvqueue);
9234 return py_minrcvqueue;
9237 static int py_srvsvc_NetSrvInfo503_set_minrcvqueue(PyObject *py_obj, PyObject *value, void *closure)
9239 struct srvsvc_NetSrvInfo503 *object = (struct srvsvc_NetSrvInfo503 *)pytalloc_get_ptr(py_obj);
9240 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
9241 object->minrcvqueue = PyInt_AsLong(value);
9245 static PyObject *py_srvsvc_NetSrvInfo503_get_minfreeworkitems(PyObject *obj, void *closure)
9247 struct srvsvc_NetSrvInfo503 *object = (struct srvsvc_NetSrvInfo503 *)pytalloc_get_ptr(obj);
9248 PyObject *py_minfreeworkitems;
9249 py_minfreeworkitems = PyInt_FromLong(object->minfreeworkitems);
9250 return py_minfreeworkitems;
9253 static int py_srvsvc_NetSrvInfo503_set_minfreeworkitems(PyObject *py_obj, PyObject *value, void *closure)
9255 struct srvsvc_NetSrvInfo503 *object = (struct srvsvc_NetSrvInfo503 *)pytalloc_get_ptr(py_obj);
9256 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
9257 object->minfreeworkitems = PyInt_AsLong(value);
9261 static PyObject *py_srvsvc_NetSrvInfo503_get_xactmemsize(PyObject *obj, void *closure)
9263 struct srvsvc_NetSrvInfo503 *object = (struct srvsvc_NetSrvInfo503 *)pytalloc_get_ptr(obj);
9264 PyObject *py_xactmemsize;
9265 py_xactmemsize = PyInt_FromLong(object->xactmemsize);
9266 return py_xactmemsize;
9269 static int py_srvsvc_NetSrvInfo503_set_xactmemsize(PyObject *py_obj, PyObject *value, void *closure)
9271 struct srvsvc_NetSrvInfo503 *object = (struct srvsvc_NetSrvInfo503 *)pytalloc_get_ptr(py_obj);
9272 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
9273 object->xactmemsize = PyInt_AsLong(value);
9277 static PyObject *py_srvsvc_NetSrvInfo503_get_threadpriority(PyObject *obj, void *closure)
9279 struct srvsvc_NetSrvInfo503 *object = (struct srvsvc_NetSrvInfo503 *)pytalloc_get_ptr(obj);
9280 PyObject *py_threadpriority;
9281 py_threadpriority = PyInt_FromLong(object->threadpriority);
9282 return py_threadpriority;
9285 static int py_srvsvc_NetSrvInfo503_set_threadpriority(PyObject *py_obj, PyObject *value, void *closure)
9287 struct srvsvc_NetSrvInfo503 *object = (struct srvsvc_NetSrvInfo503 *)pytalloc_get_ptr(py_obj);
9288 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
9289 object->threadpriority = PyInt_AsLong(value);
9293 static PyObject *py_srvsvc_NetSrvInfo503_get_maxmpxct(PyObject *obj, void *closure)
9295 struct srvsvc_NetSrvInfo503 *object = (struct srvsvc_NetSrvInfo503 *)pytalloc_get_ptr(obj);
9296 PyObject *py_maxmpxct;
9297 py_maxmpxct = PyInt_FromLong(object->maxmpxct);
9301 static int py_srvsvc_NetSrvInfo503_set_maxmpxct(PyObject *py_obj, PyObject *value, void *closure)
9303 struct srvsvc_NetSrvInfo503 *object = (struct srvsvc_NetSrvInfo503 *)pytalloc_get_ptr(py_obj);
9304 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
9305 object->maxmpxct = PyInt_AsLong(value);
9309 static PyObject *py_srvsvc_NetSrvInfo503_get_oplockbreakwait(PyObject *obj, void *closure)
9311 struct srvsvc_NetSrvInfo503 *object = (struct srvsvc_NetSrvInfo503 *)pytalloc_get_ptr(obj);
9312 PyObject *py_oplockbreakwait;
9313 py_oplockbreakwait = PyInt_FromLong(object->oplockbreakwait);
9314 return py_oplockbreakwait;
9317 static int py_srvsvc_NetSrvInfo503_set_oplockbreakwait(PyObject *py_obj, PyObject *value, void *closure)
9319 struct srvsvc_NetSrvInfo503 *object = (struct srvsvc_NetSrvInfo503 *)pytalloc_get_ptr(py_obj);
9320 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
9321 object->oplockbreakwait = PyInt_AsLong(value);
9325 static PyObject *py_srvsvc_NetSrvInfo503_get_oplockbreakresponsewait(PyObject *obj, void *closure)
9327 struct srvsvc_NetSrvInfo503 *object = (struct srvsvc_NetSrvInfo503 *)pytalloc_get_ptr(obj);
9328 PyObject *py_oplockbreakresponsewait;
9329 py_oplockbreakresponsewait = PyInt_FromLong(object->oplockbreakresponsewait);
9330 return py_oplockbreakresponsewait;
9333 static int py_srvsvc_NetSrvInfo503_set_oplockbreakresponsewait(PyObject *py_obj, PyObject *value, void *closure)
9335 struct srvsvc_NetSrvInfo503 *object = (struct srvsvc_NetSrvInfo503 *)pytalloc_get_ptr(py_obj);
9336 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
9337 object->oplockbreakresponsewait = PyInt_AsLong(value);
9341 static PyObject *py_srvsvc_NetSrvInfo503_get_enableoplocks(PyObject *obj, void *closure)
9343 struct srvsvc_NetSrvInfo503 *object = (struct srvsvc_NetSrvInfo503 *)pytalloc_get_ptr(obj);
9344 PyObject *py_enableoplocks;
9345 py_enableoplocks = PyInt_FromLong(object->enableoplocks);
9346 return py_enableoplocks;
9349 static int py_srvsvc_NetSrvInfo503_set_enableoplocks(PyObject *py_obj, PyObject *value, void *closure)
9351 struct srvsvc_NetSrvInfo503 *object = (struct srvsvc_NetSrvInfo503 *)pytalloc_get_ptr(py_obj);
9352 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
9353 object->enableoplocks = PyInt_AsLong(value);
9357 static PyObject *py_srvsvc_NetSrvInfo503_get_enableoplockforceclose(PyObject *obj, void *closure)
9359 struct srvsvc_NetSrvInfo503 *object = (struct srvsvc_NetSrvInfo503 *)pytalloc_get_ptr(obj);
9360 PyObject *py_enableoplockforceclose;
9361 py_enableoplockforceclose = PyInt_FromLong(object->enableoplockforceclose);
9362 return py_enableoplockforceclose;
9365 static int py_srvsvc_NetSrvInfo503_set_enableoplockforceclose(PyObject *py_obj, PyObject *value, void *closure)
9367 struct srvsvc_NetSrvInfo503 *object = (struct srvsvc_NetSrvInfo503 *)pytalloc_get_ptr(py_obj);
9368 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
9369 object->enableoplockforceclose = PyInt_AsLong(value);
9373 static PyObject *py_srvsvc_NetSrvInfo503_get_enablefcbopens(PyObject *obj, void *closure)
9375 struct srvsvc_NetSrvInfo503 *object = (struct srvsvc_NetSrvInfo503 *)pytalloc_get_ptr(obj);
9376 PyObject *py_enablefcbopens;
9377 py_enablefcbopens = PyInt_FromLong(object->enablefcbopens);
9378 return py_enablefcbopens;
9381 static int py_srvsvc_NetSrvInfo503_set_enablefcbopens(PyObject *py_obj, PyObject *value, void *closure)
9383 struct srvsvc_NetSrvInfo503 *object = (struct srvsvc_NetSrvInfo503 *)pytalloc_get_ptr(py_obj);
9384 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
9385 object->enablefcbopens = PyInt_AsLong(value);
9389 static PyObject *py_srvsvc_NetSrvInfo503_get_enableraw(PyObject *obj, void *closure)
9391 struct srvsvc_NetSrvInfo503 *object = (struct srvsvc_NetSrvInfo503 *)pytalloc_get_ptr(obj);
9392 PyObject *py_enableraw;
9393 py_enableraw = PyInt_FromLong(object->enableraw);
9394 return py_enableraw;
9397 static int py_srvsvc_NetSrvInfo503_set_enableraw(PyObject *py_obj, PyObject *value, void *closure)
9399 struct srvsvc_NetSrvInfo503 *object = (struct srvsvc_NetSrvInfo503 *)pytalloc_get_ptr(py_obj);
9400 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
9401 object->enableraw = PyInt_AsLong(value);
9405 static PyObject *py_srvsvc_NetSrvInfo503_get_enablesharednetdrives(PyObject *obj, void *closure)
9407 struct srvsvc_NetSrvInfo503 *object = (struct srvsvc_NetSrvInfo503 *)pytalloc_get_ptr(obj);
9408 PyObject *py_enablesharednetdrives;
9409 py_enablesharednetdrives = PyInt_FromLong(object->enablesharednetdrives);
9410 return py_enablesharednetdrives;
9413 static int py_srvsvc_NetSrvInfo503_set_enablesharednetdrives(PyObject *py_obj, PyObject *value, void *closure)
9415 struct srvsvc_NetSrvInfo503 *object = (struct srvsvc_NetSrvInfo503 *)pytalloc_get_ptr(py_obj);
9416 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
9417 object->enablesharednetdrives = PyInt_AsLong(value);
9421 static PyObject *py_srvsvc_NetSrvInfo503_get_minfreeconnections(PyObject *obj, void *closure)
9423 struct srvsvc_NetSrvInfo503 *object = (struct srvsvc_NetSrvInfo503 *)pytalloc_get_ptr(obj);
9424 PyObject *py_minfreeconnections;
9425 py_minfreeconnections = PyInt_FromLong(object->minfreeconnections);
9426 return py_minfreeconnections;
9429 static int py_srvsvc_NetSrvInfo503_set_minfreeconnections(PyObject *py_obj, PyObject *value, void *closure)
9431 struct srvsvc_NetSrvInfo503 *object = (struct srvsvc_NetSrvInfo503 *)pytalloc_get_ptr(py_obj);
9432 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
9433 object->minfreeconnections = PyInt_AsLong(value);
9437 static PyObject *py_srvsvc_NetSrvInfo503_get_maxfreeconnections(PyObject *obj, void *closure)
9439 struct srvsvc_NetSrvInfo503 *object = (struct srvsvc_NetSrvInfo503 *)pytalloc_get_ptr(obj);
9440 PyObject *py_maxfreeconnections;
9441 py_maxfreeconnections = PyInt_FromLong(object->maxfreeconnections);
9442 return py_maxfreeconnections;
9445 static int py_srvsvc_NetSrvInfo503_set_maxfreeconnections(PyObject *py_obj, PyObject *value, void *closure)
9447 struct srvsvc_NetSrvInfo503 *object = (struct srvsvc_NetSrvInfo503 *)pytalloc_get_ptr(py_obj);
9448 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
9449 object->maxfreeconnections = PyInt_AsLong(value);
9453 static PyGetSetDef py_srvsvc_NetSrvInfo503_getsetters[] = {
9454 { discard_const_p(char, "sessopen"), py_srvsvc_NetSrvInfo503_get_sessopen, py_srvsvc_NetSrvInfo503_set_sessopen },
9455 { discard_const_p(char, "sesssvc"), py_srvsvc_NetSrvInfo503_get_sesssvc, py_srvsvc_NetSrvInfo503_set_sesssvc },
9456 { discard_const_p(char, "opensearch"), py_srvsvc_NetSrvInfo503_get_opensearch, py_srvsvc_NetSrvInfo503_set_opensearch },
9457 { discard_const_p(char, "sizereqbufs"), py_srvsvc_NetSrvInfo503_get_sizereqbufs, py_srvsvc_NetSrvInfo503_set_sizereqbufs },
9458 { discard_const_p(char, "initworkitems"), py_srvsvc_NetSrvInfo503_get_initworkitems, py_srvsvc_NetSrvInfo503_set_initworkitems },
9459 { discard_const_p(char, "maxworkitems"), py_srvsvc_NetSrvInfo503_get_maxworkitems, py_srvsvc_NetSrvInfo503_set_maxworkitems },
9460 { discard_const_p(char, "rawworkitems"), py_srvsvc_NetSrvInfo503_get_rawworkitems, py_srvsvc_NetSrvInfo503_set_rawworkitems },
9461 { discard_const_p(char, "irpstacksize"), py_srvsvc_NetSrvInfo503_get_irpstacksize, py_srvsvc_NetSrvInfo503_set_irpstacksize },
9462 { discard_const_p(char, "maxrawbuflen"), py_srvsvc_NetSrvInfo503_get_maxrawbuflen, py_srvsvc_NetSrvInfo503_set_maxrawbuflen },
9463 { discard_const_p(char, "sessusers"), py_srvsvc_NetSrvInfo503_get_sessusers, py_srvsvc_NetSrvInfo503_set_sessusers },
9464 { discard_const_p(char, "sessconns"), py_srvsvc_NetSrvInfo503_get_sessconns, py_srvsvc_NetSrvInfo503_set_sessconns },
9465 { discard_const_p(char, "maxpagedmemoryusage"), py_srvsvc_NetSrvInfo503_get_maxpagedmemoryusage, py_srvsvc_NetSrvInfo503_set_maxpagedmemoryusage },
9466 { discard_const_p(char, "maxnonpagedmemoryusage"), py_srvsvc_NetSrvInfo503_get_maxnonpagedmemoryusage, py_srvsvc_NetSrvInfo503_set_maxnonpagedmemoryusage },
9467 { discard_const_p(char, "enablesoftcompat"), py_srvsvc_NetSrvInfo503_get_enablesoftcompat, py_srvsvc_NetSrvInfo503_set_enablesoftcompat },
9468 { discard_const_p(char, "enableforcedlogoff"), py_srvsvc_NetSrvInfo503_get_enableforcedlogoff, py_srvsvc_NetSrvInfo503_set_enableforcedlogoff },
9469 { discard_const_p(char, "timesource"), py_srvsvc_NetSrvInfo503_get_timesource, py_srvsvc_NetSrvInfo503_set_timesource },
9470 { discard_const_p(char, "acceptdownlevelapis"), py_srvsvc_NetSrvInfo503_get_acceptdownlevelapis, py_srvsvc_NetSrvInfo503_set_acceptdownlevelapis },
9471 { discard_const_p(char, "lmannounce"), py_srvsvc_NetSrvInfo503_get_lmannounce, py_srvsvc_NetSrvInfo503_set_lmannounce },
9472 { discard_const_p(char, "domain"), py_srvsvc_NetSrvInfo503_get_domain, py_srvsvc_NetSrvInfo503_set_domain },
9473 { discard_const_p(char, "maxcopyreadlen"), py_srvsvc_NetSrvInfo503_get_maxcopyreadlen, py_srvsvc_NetSrvInfo503_set_maxcopyreadlen },
9474 { discard_const_p(char, "maxcopywritelen"), py_srvsvc_NetSrvInfo503_get_maxcopywritelen, py_srvsvc_NetSrvInfo503_set_maxcopywritelen },
9475 { discard_const_p(char, "minkeepsearch"), py_srvsvc_NetSrvInfo503_get_minkeepsearch, py_srvsvc_NetSrvInfo503_set_minkeepsearch },
9476 { discard_const_p(char, "maxkeepsearch"), py_srvsvc_NetSrvInfo503_get_maxkeepsearch, py_srvsvc_NetSrvInfo503_set_maxkeepsearch },
9477 { discard_const_p(char, "minkeepcomplsearch"), py_srvsvc_NetSrvInfo503_get_minkeepcomplsearch, py_srvsvc_NetSrvInfo503_set_minkeepcomplsearch },
9478 { discard_const_p(char, "maxkeepcomplsearch"), py_srvsvc_NetSrvInfo503_get_maxkeepcomplsearch, py_srvsvc_NetSrvInfo503_set_maxkeepcomplsearch },
9479 { discard_const_p(char, "threadcountadd"), py_srvsvc_NetSrvInfo503_get_threadcountadd, py_srvsvc_NetSrvInfo503_set_threadcountadd },
9480 { discard_const_p(char, "numlockthreads"), py_srvsvc_NetSrvInfo503_get_numlockthreads, py_srvsvc_NetSrvInfo503_set_numlockthreads },
9481 { discard_const_p(char, "scavtimeout"), py_srvsvc_NetSrvInfo503_get_scavtimeout, py_srvsvc_NetSrvInfo503_set_scavtimeout },
9482 { discard_const_p(char, "minrcvqueue"), py_srvsvc_NetSrvInfo503_get_minrcvqueue, py_srvsvc_NetSrvInfo503_set_minrcvqueue },
9483 { discard_const_p(char, "minfreeworkitems"), py_srvsvc_NetSrvInfo503_get_minfreeworkitems, py_srvsvc_NetSrvInfo503_set_minfreeworkitems },
9484 { discard_const_p(char, "xactmemsize"), py_srvsvc_NetSrvInfo503_get_xactmemsize, py_srvsvc_NetSrvInfo503_set_xactmemsize },
9485 { discard_const_p(char, "threadpriority"), py_srvsvc_NetSrvInfo503_get_threadpriority, py_srvsvc_NetSrvInfo503_set_threadpriority },
9486 { discard_const_p(char, "maxmpxct"), py_srvsvc_NetSrvInfo503_get_maxmpxct, py_srvsvc_NetSrvInfo503_set_maxmpxct },
9487 { discard_const_p(char, "oplockbreakwait"), py_srvsvc_NetSrvInfo503_get_oplockbreakwait, py_srvsvc_NetSrvInfo503_set_oplockbreakwait },
9488 { discard_const_p(char, "oplockbreakresponsewait"), py_srvsvc_NetSrvInfo503_get_oplockbreakresponsewait, py_srvsvc_NetSrvInfo503_set_oplockbreakresponsewait },
9489 { discard_const_p(char, "enableoplocks"), py_srvsvc_NetSrvInfo503_get_enableoplocks, py_srvsvc_NetSrvInfo503_set_enableoplocks },
9490 { discard_const_p(char, "enableoplockforceclose"), py_srvsvc_NetSrvInfo503_get_enableoplockforceclose, py_srvsvc_NetSrvInfo503_set_enableoplockforceclose },
9491 { discard_const_p(char, "enablefcbopens"), py_srvsvc_NetSrvInfo503_get_enablefcbopens, py_srvsvc_NetSrvInfo503_set_enablefcbopens },
9492 { discard_const_p(char, "enableraw"), py_srvsvc_NetSrvInfo503_get_enableraw, py_srvsvc_NetSrvInfo503_set_enableraw },
9493 { discard_const_p(char, "enablesharednetdrives"), py_srvsvc_NetSrvInfo503_get_enablesharednetdrives, py_srvsvc_NetSrvInfo503_set_enablesharednetdrives },
9494 { discard_const_p(char, "minfreeconnections"), py_srvsvc_NetSrvInfo503_get_minfreeconnections, py_srvsvc_NetSrvInfo503_set_minfreeconnections },
9495 { discard_const_p(char, "maxfreeconnections"), py_srvsvc_NetSrvInfo503_get_maxfreeconnections, py_srvsvc_NetSrvInfo503_set_maxfreeconnections },
9499 static PyObject *py_srvsvc_NetSrvInfo503_new(PyTypeObject *type, PyObject *args, PyObject *kwargs)
9501 return pytalloc_new(struct srvsvc_NetSrvInfo503, type);
9505 static PyTypeObject srvsvc_NetSrvInfo503_Type = {
9506 PyObject_HEAD_INIT(NULL) 0,
9507 .tp_name = "srvsvc.NetSrvInfo503",
9508 .tp_getset = py_srvsvc_NetSrvInfo503_getsetters,
9510 .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
9511 .tp_basicsize = sizeof(pytalloc_Object),
9512 .tp_new = py_srvsvc_NetSrvInfo503_new,
9516 static PyObject *py_srvsvc_NetSrvInfo599_get_sessopen(PyObject *obj, void *closure)
9518 struct srvsvc_NetSrvInfo599 *object = (struct srvsvc_NetSrvInfo599 *)pytalloc_get_ptr(obj);
9519 PyObject *py_sessopen;
9520 py_sessopen = PyInt_FromLong(object->sessopen);
9524 static int py_srvsvc_NetSrvInfo599_set_sessopen(PyObject *py_obj, PyObject *value, void *closure)
9526 struct srvsvc_NetSrvInfo599 *object = (struct srvsvc_NetSrvInfo599 *)pytalloc_get_ptr(py_obj);
9527 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
9528 object->sessopen = PyInt_AsLong(value);
9532 static PyObject *py_srvsvc_NetSrvInfo599_get_sesssvc(PyObject *obj, void *closure)
9534 struct srvsvc_NetSrvInfo599 *object = (struct srvsvc_NetSrvInfo599 *)pytalloc_get_ptr(obj);
9535 PyObject *py_sesssvc;
9536 py_sesssvc = PyInt_FromLong(object->sesssvc);
9540 static int py_srvsvc_NetSrvInfo599_set_sesssvc(PyObject *py_obj, PyObject *value, void *closure)
9542 struct srvsvc_NetSrvInfo599 *object = (struct srvsvc_NetSrvInfo599 *)pytalloc_get_ptr(py_obj);
9543 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
9544 object->sesssvc = PyInt_AsLong(value);
9548 static PyObject *py_srvsvc_NetSrvInfo599_get_opensearch(PyObject *obj, void *closure)
9550 struct srvsvc_NetSrvInfo599 *object = (struct srvsvc_NetSrvInfo599 *)pytalloc_get_ptr(obj);
9551 PyObject *py_opensearch;
9552 py_opensearch = PyInt_FromLong(object->opensearch);
9553 return py_opensearch;
9556 static int py_srvsvc_NetSrvInfo599_set_opensearch(PyObject *py_obj, PyObject *value, void *closure)
9558 struct srvsvc_NetSrvInfo599 *object = (struct srvsvc_NetSrvInfo599 *)pytalloc_get_ptr(py_obj);
9559 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
9560 object->opensearch = PyInt_AsLong(value);
9564 static PyObject *py_srvsvc_NetSrvInfo599_get_sizereqbufs(PyObject *obj, void *closure)
9566 struct srvsvc_NetSrvInfo599 *object = (struct srvsvc_NetSrvInfo599 *)pytalloc_get_ptr(obj);
9567 PyObject *py_sizereqbufs;
9568 py_sizereqbufs = PyInt_FromLong(object->sizereqbufs);
9569 return py_sizereqbufs;
9572 static int py_srvsvc_NetSrvInfo599_set_sizereqbufs(PyObject *py_obj, PyObject *value, void *closure)
9574 struct srvsvc_NetSrvInfo599 *object = (struct srvsvc_NetSrvInfo599 *)pytalloc_get_ptr(py_obj);
9575 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
9576 object->sizereqbufs = PyInt_AsLong(value);
9580 static PyObject *py_srvsvc_NetSrvInfo599_get_initworkitems(PyObject *obj, void *closure)
9582 struct srvsvc_NetSrvInfo599 *object = (struct srvsvc_NetSrvInfo599 *)pytalloc_get_ptr(obj);
9583 PyObject *py_initworkitems;
9584 py_initworkitems = PyInt_FromLong(object->initworkitems);
9585 return py_initworkitems;
9588 static int py_srvsvc_NetSrvInfo599_set_initworkitems(PyObject *py_obj, PyObject *value, void *closure)
9590 struct srvsvc_NetSrvInfo599 *object = (struct srvsvc_NetSrvInfo599 *)pytalloc_get_ptr(py_obj);
9591 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
9592 object->initworkitems = PyInt_AsLong(value);
9596 static PyObject *py_srvsvc_NetSrvInfo599_get_maxworkitems(PyObject *obj, void *closure)
9598 struct srvsvc_NetSrvInfo599 *object = (struct srvsvc_NetSrvInfo599 *)pytalloc_get_ptr(obj);
9599 PyObject *py_maxworkitems;
9600 py_maxworkitems = PyInt_FromLong(object->maxworkitems);
9601 return py_maxworkitems;
9604 static int py_srvsvc_NetSrvInfo599_set_maxworkitems(PyObject *py_obj, PyObject *value, void *closure)
9606 struct srvsvc_NetSrvInfo599 *object = (struct srvsvc_NetSrvInfo599 *)pytalloc_get_ptr(py_obj);
9607 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
9608 object->maxworkitems = PyInt_AsLong(value);
9612 static PyObject *py_srvsvc_NetSrvInfo599_get_rawworkitems(PyObject *obj, void *closure)
9614 struct srvsvc_NetSrvInfo599 *object = (struct srvsvc_NetSrvInfo599 *)pytalloc_get_ptr(obj);
9615 PyObject *py_rawworkitems;
9616 py_rawworkitems = PyInt_FromLong(object->rawworkitems);
9617 return py_rawworkitems;
9620 static int py_srvsvc_NetSrvInfo599_set_rawworkitems(PyObject *py_obj, PyObject *value, void *closure)
9622 struct srvsvc_NetSrvInfo599 *object = (struct srvsvc_NetSrvInfo599 *)pytalloc_get_ptr(py_obj);
9623 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
9624 object->rawworkitems = PyInt_AsLong(value);
9628 static PyObject *py_srvsvc_NetSrvInfo599_get_irpstacksize(PyObject *obj, void *closure)
9630 struct srvsvc_NetSrvInfo599 *object = (struct srvsvc_NetSrvInfo599 *)pytalloc_get_ptr(obj);
9631 PyObject *py_irpstacksize;
9632 py_irpstacksize = PyInt_FromLong(object->irpstacksize);
9633 return py_irpstacksize;
9636 static int py_srvsvc_NetSrvInfo599_set_irpstacksize(PyObject *py_obj, PyObject *value, void *closure)
9638 struct srvsvc_NetSrvInfo599 *object = (struct srvsvc_NetSrvInfo599 *)pytalloc_get_ptr(py_obj);
9639 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
9640 object->irpstacksize = PyInt_AsLong(value);
9644 static PyObject *py_srvsvc_NetSrvInfo599_get_maxrawbuflen(PyObject *obj, void *closure)
9646 struct srvsvc_NetSrvInfo599 *object = (struct srvsvc_NetSrvInfo599 *)pytalloc_get_ptr(obj);
9647 PyObject *py_maxrawbuflen;
9648 py_maxrawbuflen = PyInt_FromLong(object->maxrawbuflen);
9649 return py_maxrawbuflen;
9652 static int py_srvsvc_NetSrvInfo599_set_maxrawbuflen(PyObject *py_obj, PyObject *value, void *closure)
9654 struct srvsvc_NetSrvInfo599 *object = (struct srvsvc_NetSrvInfo599 *)pytalloc_get_ptr(py_obj);
9655 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
9656 object->maxrawbuflen = PyInt_AsLong(value);
9660 static PyObject *py_srvsvc_NetSrvInfo599_get_sessusers(PyObject *obj, void *closure)
9662 struct srvsvc_NetSrvInfo599 *object = (struct srvsvc_NetSrvInfo599 *)pytalloc_get_ptr(obj);
9663 PyObject *py_sessusers;
9664 py_sessusers = PyInt_FromLong(object->sessusers);
9665 return py_sessusers;
9668 static int py_srvsvc_NetSrvInfo599_set_sessusers(PyObject *py_obj, PyObject *value, void *closure)
9670 struct srvsvc_NetSrvInfo599 *object = (struct srvsvc_NetSrvInfo599 *)pytalloc_get_ptr(py_obj);
9671 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
9672 object->sessusers = PyInt_AsLong(value);
9676 static PyObject *py_srvsvc_NetSrvInfo599_get_sessconns(PyObject *obj, void *closure)
9678 struct srvsvc_NetSrvInfo599 *object = (struct srvsvc_NetSrvInfo599 *)pytalloc_get_ptr(obj);
9679 PyObject *py_sessconns;
9680 py_sessconns = PyInt_FromLong(object->sessconns);
9681 return py_sessconns;
9684 static int py_srvsvc_NetSrvInfo599_set_sessconns(PyObject *py_obj, PyObject *value, void *closure)
9686 struct srvsvc_NetSrvInfo599 *object = (struct srvsvc_NetSrvInfo599 *)pytalloc_get_ptr(py_obj);
9687 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
9688 object->sessconns = PyInt_AsLong(value);
9692 static PyObject *py_srvsvc_NetSrvInfo599_get_maxpagedmemoryusage(PyObject *obj, void *closure)
9694 struct srvsvc_NetSrvInfo599 *object = (struct srvsvc_NetSrvInfo599 *)pytalloc_get_ptr(obj);
9695 PyObject *py_maxpagedmemoryusage;
9696 py_maxpagedmemoryusage = PyInt_FromLong(object->maxpagedmemoryusage);
9697 return py_maxpagedmemoryusage;
9700 static int py_srvsvc_NetSrvInfo599_set_maxpagedmemoryusage(PyObject *py_obj, PyObject *value, void *closure)
9702 struct srvsvc_NetSrvInfo599 *object = (struct srvsvc_NetSrvInfo599 *)pytalloc_get_ptr(py_obj);
9703 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
9704 object->maxpagedmemoryusage = PyInt_AsLong(value);
9708 static PyObject *py_srvsvc_NetSrvInfo599_get_maxnonpagedmemoryusage(PyObject *obj, void *closure)
9710 struct srvsvc_NetSrvInfo599 *object = (struct srvsvc_NetSrvInfo599 *)pytalloc_get_ptr(obj);
9711 PyObject *py_maxnonpagedmemoryusage;
9712 py_maxnonpagedmemoryusage = PyInt_FromLong(object->maxnonpagedmemoryusage);
9713 return py_maxnonpagedmemoryusage;
9716 static int py_srvsvc_NetSrvInfo599_set_maxnonpagedmemoryusage(PyObject *py_obj, PyObject *value, void *closure)
9718 struct srvsvc_NetSrvInfo599 *object = (struct srvsvc_NetSrvInfo599 *)pytalloc_get_ptr(py_obj);
9719 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
9720 object->maxnonpagedmemoryusage = PyInt_AsLong(value);
9724 static PyObject *py_srvsvc_NetSrvInfo599_get_enablesoftcompat(PyObject *obj, void *closure)
9726 struct srvsvc_NetSrvInfo599 *object = (struct srvsvc_NetSrvInfo599 *)pytalloc_get_ptr(obj);
9727 PyObject *py_enablesoftcompat;
9728 py_enablesoftcompat = PyInt_FromLong(object->enablesoftcompat);
9729 return py_enablesoftcompat;
9732 static int py_srvsvc_NetSrvInfo599_set_enablesoftcompat(PyObject *py_obj, PyObject *value, void *closure)
9734 struct srvsvc_NetSrvInfo599 *object = (struct srvsvc_NetSrvInfo599 *)pytalloc_get_ptr(py_obj);
9735 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
9736 object->enablesoftcompat = PyInt_AsLong(value);
9740 static PyObject *py_srvsvc_NetSrvInfo599_get_enableforcedlogoff(PyObject *obj, void *closure)
9742 struct srvsvc_NetSrvInfo599 *object = (struct srvsvc_NetSrvInfo599 *)pytalloc_get_ptr(obj);
9743 PyObject *py_enableforcedlogoff;
9744 py_enableforcedlogoff = PyInt_FromLong(object->enableforcedlogoff);
9745 return py_enableforcedlogoff;
9748 static int py_srvsvc_NetSrvInfo599_set_enableforcedlogoff(PyObject *py_obj, PyObject *value, void *closure)
9750 struct srvsvc_NetSrvInfo599 *object = (struct srvsvc_NetSrvInfo599 *)pytalloc_get_ptr(py_obj);
9751 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
9752 object->enableforcedlogoff = PyInt_AsLong(value);
9756 static PyObject *py_srvsvc_NetSrvInfo599_get_timesource(PyObject *obj, void *closure)
9758 struct srvsvc_NetSrvInfo599 *object = (struct srvsvc_NetSrvInfo599 *)pytalloc_get_ptr(obj);
9759 PyObject *py_timesource;
9760 py_timesource = PyInt_FromLong(object->timesource);
9761 return py_timesource;
9764 static int py_srvsvc_NetSrvInfo599_set_timesource(PyObject *py_obj, PyObject *value, void *closure)
9766 struct srvsvc_NetSrvInfo599 *object = (struct srvsvc_NetSrvInfo599 *)pytalloc_get_ptr(py_obj);
9767 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
9768 object->timesource = PyInt_AsLong(value);
9772 static PyObject *py_srvsvc_NetSrvInfo599_get_acceptdownlevelapis(PyObject *obj, void *closure)
9774 struct srvsvc_NetSrvInfo599 *object = (struct srvsvc_NetSrvInfo599 *)pytalloc_get_ptr(obj);
9775 PyObject *py_acceptdownlevelapis;
9776 py_acceptdownlevelapis = PyInt_FromLong(object->acceptdownlevelapis);
9777 return py_acceptdownlevelapis;
9780 static int py_srvsvc_NetSrvInfo599_set_acceptdownlevelapis(PyObject *py_obj, PyObject *value, void *closure)
9782 struct srvsvc_NetSrvInfo599 *object = (struct srvsvc_NetSrvInfo599 *)pytalloc_get_ptr(py_obj);
9783 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
9784 object->acceptdownlevelapis = PyInt_AsLong(value);
9788 static PyObject *py_srvsvc_NetSrvInfo599_get_lmannounce(PyObject *obj, void *closure)
9790 struct srvsvc_NetSrvInfo599 *object = (struct srvsvc_NetSrvInfo599 *)pytalloc_get_ptr(obj);
9791 PyObject *py_lmannounce;
9792 py_lmannounce = PyInt_FromLong(object->lmannounce);
9793 return py_lmannounce;
9796 static int py_srvsvc_NetSrvInfo599_set_lmannounce(PyObject *py_obj, PyObject *value, void *closure)
9798 struct srvsvc_NetSrvInfo599 *object = (struct srvsvc_NetSrvInfo599 *)pytalloc_get_ptr(py_obj);
9799 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
9800 object->lmannounce = PyInt_AsLong(value);
9804 static PyObject *py_srvsvc_NetSrvInfo599_get_domain(PyObject *obj, void *closure)
9806 struct srvsvc_NetSrvInfo599 *object = (struct srvsvc_NetSrvInfo599 *)pytalloc_get_ptr(obj);
9807 PyObject *py_domain;
9808 if (object->domain == NULL) {
9809 py_domain = Py_None;
9810 Py_INCREF(py_domain);
9812 if (object->domain == NULL) {
9813 py_domain = Py_None;
9814 Py_INCREF(py_domain);
9816 py_domain = PyUnicode_Decode(object->domain, strlen(object->domain), "utf-8", "ignore");
9822 static int py_srvsvc_NetSrvInfo599_set_domain(PyObject *py_obj, PyObject *value, void *closure)
9824 struct srvsvc_NetSrvInfo599 *object = (struct srvsvc_NetSrvInfo599 *)pytalloc_get_ptr(py_obj);
9825 if (value == Py_None) {
9826 object->domain = NULL;
9828 object->domain = NULL;
9829 if (PyUnicode_Check(value)) {
9830 object->domain = PyString_AS_STRING(PyUnicode_AsEncodedString(value, "utf-8", "ignore"));
9831 } else if (PyString_Check(value)) {
9832 object->domain = PyString_AS_STRING(value);
9834 PyErr_Format(PyExc_TypeError, "Expected string or unicode object, got %s", Py_TYPE(value)->tp_name);
9841 static PyObject *py_srvsvc_NetSrvInfo599_get_maxcopyreadlen(PyObject *obj, void *closure)
9843 struct srvsvc_NetSrvInfo599 *object = (struct srvsvc_NetSrvInfo599 *)pytalloc_get_ptr(obj);
9844 PyObject *py_maxcopyreadlen;
9845 py_maxcopyreadlen = PyInt_FromLong(object->maxcopyreadlen);
9846 return py_maxcopyreadlen;
9849 static int py_srvsvc_NetSrvInfo599_set_maxcopyreadlen(PyObject *py_obj, PyObject *value, void *closure)
9851 struct srvsvc_NetSrvInfo599 *object = (struct srvsvc_NetSrvInfo599 *)pytalloc_get_ptr(py_obj);
9852 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
9853 object->maxcopyreadlen = PyInt_AsLong(value);
9857 static PyObject *py_srvsvc_NetSrvInfo599_get_maxcopywritelen(PyObject *obj, void *closure)
9859 struct srvsvc_NetSrvInfo599 *object = (struct srvsvc_NetSrvInfo599 *)pytalloc_get_ptr(obj);
9860 PyObject *py_maxcopywritelen;
9861 py_maxcopywritelen = PyInt_FromLong(object->maxcopywritelen);
9862 return py_maxcopywritelen;
9865 static int py_srvsvc_NetSrvInfo599_set_maxcopywritelen(PyObject *py_obj, PyObject *value, void *closure)
9867 struct srvsvc_NetSrvInfo599 *object = (struct srvsvc_NetSrvInfo599 *)pytalloc_get_ptr(py_obj);
9868 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
9869 object->maxcopywritelen = PyInt_AsLong(value);
9873 static PyObject *py_srvsvc_NetSrvInfo599_get_minkeepsearch(PyObject *obj, void *closure)
9875 struct srvsvc_NetSrvInfo599 *object = (struct srvsvc_NetSrvInfo599 *)pytalloc_get_ptr(obj);
9876 PyObject *py_minkeepsearch;
9877 py_minkeepsearch = PyInt_FromLong(object->minkeepsearch);
9878 return py_minkeepsearch;
9881 static int py_srvsvc_NetSrvInfo599_set_minkeepsearch(PyObject *py_obj, PyObject *value, void *closure)
9883 struct srvsvc_NetSrvInfo599 *object = (struct srvsvc_NetSrvInfo599 *)pytalloc_get_ptr(py_obj);
9884 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
9885 object->minkeepsearch = PyInt_AsLong(value);
9889 static PyObject *py_srvsvc_NetSrvInfo599_get_minkeepcomplsearch(PyObject *obj, void *closure)
9891 struct srvsvc_NetSrvInfo599 *object = (struct srvsvc_NetSrvInfo599 *)pytalloc_get_ptr(obj);
9892 PyObject *py_minkeepcomplsearch;
9893 py_minkeepcomplsearch = PyInt_FromLong(object->minkeepcomplsearch);
9894 return py_minkeepcomplsearch;
9897 static int py_srvsvc_NetSrvInfo599_set_minkeepcomplsearch(PyObject *py_obj, PyObject *value, void *closure)
9899 struct srvsvc_NetSrvInfo599 *object = (struct srvsvc_NetSrvInfo599 *)pytalloc_get_ptr(py_obj);
9900 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
9901 object->minkeepcomplsearch = PyInt_AsLong(value);
9905 static PyObject *py_srvsvc_NetSrvInfo599_get_maxkeepcomplsearch(PyObject *obj, void *closure)
9907 struct srvsvc_NetSrvInfo599 *object = (struct srvsvc_NetSrvInfo599 *)pytalloc_get_ptr(obj);
9908 PyObject *py_maxkeepcomplsearch;
9909 py_maxkeepcomplsearch = PyInt_FromLong(object->maxkeepcomplsearch);
9910 return py_maxkeepcomplsearch;
9913 static int py_srvsvc_NetSrvInfo599_set_maxkeepcomplsearch(PyObject *py_obj, PyObject *value, void *closure)
9915 struct srvsvc_NetSrvInfo599 *object = (struct srvsvc_NetSrvInfo599 *)pytalloc_get_ptr(py_obj);
9916 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
9917 object->maxkeepcomplsearch = PyInt_AsLong(value);
9921 static PyObject *py_srvsvc_NetSrvInfo599_get_threadcountadd(PyObject *obj, void *closure)
9923 struct srvsvc_NetSrvInfo599 *object = (struct srvsvc_NetSrvInfo599 *)pytalloc_get_ptr(obj);
9924 PyObject *py_threadcountadd;
9925 py_threadcountadd = PyInt_FromLong(object->threadcountadd);
9926 return py_threadcountadd;
9929 static int py_srvsvc_NetSrvInfo599_set_threadcountadd(PyObject *py_obj, PyObject *value, void *closure)
9931 struct srvsvc_NetSrvInfo599 *object = (struct srvsvc_NetSrvInfo599 *)pytalloc_get_ptr(py_obj);
9932 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
9933 object->threadcountadd = PyInt_AsLong(value);
9937 static PyObject *py_srvsvc_NetSrvInfo599_get_numlockthreads(PyObject *obj, void *closure)
9939 struct srvsvc_NetSrvInfo599 *object = (struct srvsvc_NetSrvInfo599 *)pytalloc_get_ptr(obj);
9940 PyObject *py_numlockthreads;
9941 py_numlockthreads = PyInt_FromLong(object->numlockthreads);
9942 return py_numlockthreads;
9945 static int py_srvsvc_NetSrvInfo599_set_numlockthreads(PyObject *py_obj, PyObject *value, void *closure)
9947 struct srvsvc_NetSrvInfo599 *object = (struct srvsvc_NetSrvInfo599 *)pytalloc_get_ptr(py_obj);
9948 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
9949 object->numlockthreads = PyInt_AsLong(value);
9953 static PyObject *py_srvsvc_NetSrvInfo599_get_scavtimeout(PyObject *obj, void *closure)
9955 struct srvsvc_NetSrvInfo599 *object = (struct srvsvc_NetSrvInfo599 *)pytalloc_get_ptr(obj);
9956 PyObject *py_scavtimeout;
9957 py_scavtimeout = PyInt_FromLong(object->scavtimeout);
9958 return py_scavtimeout;
9961 static int py_srvsvc_NetSrvInfo599_set_scavtimeout(PyObject *py_obj, PyObject *value, void *closure)
9963 struct srvsvc_NetSrvInfo599 *object = (struct srvsvc_NetSrvInfo599 *)pytalloc_get_ptr(py_obj);
9964 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
9965 object->scavtimeout = PyInt_AsLong(value);
9969 static PyObject *py_srvsvc_NetSrvInfo599_get_minrcvqueue(PyObject *obj, void *closure)
9971 struct srvsvc_NetSrvInfo599 *object = (struct srvsvc_NetSrvInfo599 *)pytalloc_get_ptr(obj);
9972 PyObject *py_minrcvqueue;
9973 py_minrcvqueue = PyInt_FromLong(object->minrcvqueue);
9974 return py_minrcvqueue;
9977 static int py_srvsvc_NetSrvInfo599_set_minrcvqueue(PyObject *py_obj, PyObject *value, void *closure)
9979 struct srvsvc_NetSrvInfo599 *object = (struct srvsvc_NetSrvInfo599 *)pytalloc_get_ptr(py_obj);
9980 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
9981 object->minrcvqueue = PyInt_AsLong(value);
9985 static PyObject *py_srvsvc_NetSrvInfo599_get_minfreeworkitems(PyObject *obj, void *closure)
9987 struct srvsvc_NetSrvInfo599 *object = (struct srvsvc_NetSrvInfo599 *)pytalloc_get_ptr(obj);
9988 PyObject *py_minfreeworkitems;
9989 py_minfreeworkitems = PyInt_FromLong(object->minfreeworkitems);
9990 return py_minfreeworkitems;
9993 static int py_srvsvc_NetSrvInfo599_set_minfreeworkitems(PyObject *py_obj, PyObject *value, void *closure)
9995 struct srvsvc_NetSrvInfo599 *object = (struct srvsvc_NetSrvInfo599 *)pytalloc_get_ptr(py_obj);
9996 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
9997 object->minfreeworkitems = PyInt_AsLong(value);
10001 static PyObject *py_srvsvc_NetSrvInfo599_get_xactmemsize(PyObject *obj, void *closure)
10003 struct srvsvc_NetSrvInfo599 *object = (struct srvsvc_NetSrvInfo599 *)pytalloc_get_ptr(obj);
10004 PyObject *py_xactmemsize;
10005 py_xactmemsize = PyInt_FromLong(object->xactmemsize);
10006 return py_xactmemsize;
10009 static int py_srvsvc_NetSrvInfo599_set_xactmemsize(PyObject *py_obj, PyObject *value, void *closure)
10011 struct srvsvc_NetSrvInfo599 *object = (struct srvsvc_NetSrvInfo599 *)pytalloc_get_ptr(py_obj);
10012 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
10013 object->xactmemsize = PyInt_AsLong(value);
10017 static PyObject *py_srvsvc_NetSrvInfo599_get_threadpriority(PyObject *obj, void *closure)
10019 struct srvsvc_NetSrvInfo599 *object = (struct srvsvc_NetSrvInfo599 *)pytalloc_get_ptr(obj);
10020 PyObject *py_threadpriority;
10021 py_threadpriority = PyInt_FromLong(object->threadpriority);
10022 return py_threadpriority;
10025 static int py_srvsvc_NetSrvInfo599_set_threadpriority(PyObject *py_obj, PyObject *value, void *closure)
10027 struct srvsvc_NetSrvInfo599 *object = (struct srvsvc_NetSrvInfo599 *)pytalloc_get_ptr(py_obj);
10028 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
10029 object->threadpriority = PyInt_AsLong(value);
10033 static PyObject *py_srvsvc_NetSrvInfo599_get_maxmpxct(PyObject *obj, void *closure)
10035 struct srvsvc_NetSrvInfo599 *object = (struct srvsvc_NetSrvInfo599 *)pytalloc_get_ptr(obj);
10036 PyObject *py_maxmpxct;
10037 py_maxmpxct = PyInt_FromLong(object->maxmpxct);
10038 return py_maxmpxct;
10041 static int py_srvsvc_NetSrvInfo599_set_maxmpxct(PyObject *py_obj, PyObject *value, void *closure)
10043 struct srvsvc_NetSrvInfo599 *object = (struct srvsvc_NetSrvInfo599 *)pytalloc_get_ptr(py_obj);
10044 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
10045 object->maxmpxct = PyInt_AsLong(value);
10049 static PyObject *py_srvsvc_NetSrvInfo599_get_oplockbreakwait(PyObject *obj, void *closure)
10051 struct srvsvc_NetSrvInfo599 *object = (struct srvsvc_NetSrvInfo599 *)pytalloc_get_ptr(obj);
10052 PyObject *py_oplockbreakwait;
10053 py_oplockbreakwait = PyInt_FromLong(object->oplockbreakwait);
10054 return py_oplockbreakwait;
10057 static int py_srvsvc_NetSrvInfo599_set_oplockbreakwait(PyObject *py_obj, PyObject *value, void *closure)
10059 struct srvsvc_NetSrvInfo599 *object = (struct srvsvc_NetSrvInfo599 *)pytalloc_get_ptr(py_obj);
10060 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
10061 object->oplockbreakwait = PyInt_AsLong(value);
10065 static PyObject *py_srvsvc_NetSrvInfo599_get_oplockbreakresponsewait(PyObject *obj, void *closure)
10067 struct srvsvc_NetSrvInfo599 *object = (struct srvsvc_NetSrvInfo599 *)pytalloc_get_ptr(obj);
10068 PyObject *py_oplockbreakresponsewait;
10069 py_oplockbreakresponsewait = PyInt_FromLong(object->oplockbreakresponsewait);
10070 return py_oplockbreakresponsewait;
10073 static int py_srvsvc_NetSrvInfo599_set_oplockbreakresponsewait(PyObject *py_obj, PyObject *value, void *closure)
10075 struct srvsvc_NetSrvInfo599 *object = (struct srvsvc_NetSrvInfo599 *)pytalloc_get_ptr(py_obj);
10076 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
10077 object->oplockbreakresponsewait = PyInt_AsLong(value);
10081 static PyObject *py_srvsvc_NetSrvInfo599_get_enableoplocks(PyObject *obj, void *closure)
10083 struct srvsvc_NetSrvInfo599 *object = (struct srvsvc_NetSrvInfo599 *)pytalloc_get_ptr(obj);
10084 PyObject *py_enableoplocks;
10085 py_enableoplocks = PyInt_FromLong(object->enableoplocks);
10086 return py_enableoplocks;
10089 static int py_srvsvc_NetSrvInfo599_set_enableoplocks(PyObject *py_obj, PyObject *value, void *closure)
10091 struct srvsvc_NetSrvInfo599 *object = (struct srvsvc_NetSrvInfo599 *)pytalloc_get_ptr(py_obj);
10092 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
10093 object->enableoplocks = PyInt_AsLong(value);
10097 static PyObject *py_srvsvc_NetSrvInfo599_get_enableoplockforceclose(PyObject *obj, void *closure)
10099 struct srvsvc_NetSrvInfo599 *object = (struct srvsvc_NetSrvInfo599 *)pytalloc_get_ptr(obj);
10100 PyObject *py_enableoplockforceclose;
10101 py_enableoplockforceclose = PyInt_FromLong(object->enableoplockforceclose);
10102 return py_enableoplockforceclose;
10105 static int py_srvsvc_NetSrvInfo599_set_enableoplockforceclose(PyObject *py_obj, PyObject *value, void *closure)
10107 struct srvsvc_NetSrvInfo599 *object = (struct srvsvc_NetSrvInfo599 *)pytalloc_get_ptr(py_obj);
10108 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
10109 object->enableoplockforceclose = PyInt_AsLong(value);
10113 static PyObject *py_srvsvc_NetSrvInfo599_get_enablefcbopens(PyObject *obj, void *closure)
10115 struct srvsvc_NetSrvInfo599 *object = (struct srvsvc_NetSrvInfo599 *)pytalloc_get_ptr(obj);
10116 PyObject *py_enablefcbopens;
10117 py_enablefcbopens = PyInt_FromLong(object->enablefcbopens);
10118 return py_enablefcbopens;
10121 static int py_srvsvc_NetSrvInfo599_set_enablefcbopens(PyObject *py_obj, PyObject *value, void *closure)
10123 struct srvsvc_NetSrvInfo599 *object = (struct srvsvc_NetSrvInfo599 *)pytalloc_get_ptr(py_obj);
10124 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
10125 object->enablefcbopens = PyInt_AsLong(value);
10129 static PyObject *py_srvsvc_NetSrvInfo599_get_enableraw(PyObject *obj, void *closure)
10131 struct srvsvc_NetSrvInfo599 *object = (struct srvsvc_NetSrvInfo599 *)pytalloc_get_ptr(obj);
10132 PyObject *py_enableraw;
10133 py_enableraw = PyInt_FromLong(object->enableraw);
10134 return py_enableraw;
10137 static int py_srvsvc_NetSrvInfo599_set_enableraw(PyObject *py_obj, PyObject *value, void *closure)
10139 struct srvsvc_NetSrvInfo599 *object = (struct srvsvc_NetSrvInfo599 *)pytalloc_get_ptr(py_obj);
10140 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
10141 object->enableraw = PyInt_AsLong(value);
10145 static PyObject *py_srvsvc_NetSrvInfo599_get_enablesharednetdrives(PyObject *obj, void *closure)
10147 struct srvsvc_NetSrvInfo599 *object = (struct srvsvc_NetSrvInfo599 *)pytalloc_get_ptr(obj);
10148 PyObject *py_enablesharednetdrives;
10149 py_enablesharednetdrives = PyInt_FromLong(object->enablesharednetdrives);
10150 return py_enablesharednetdrives;
10153 static int py_srvsvc_NetSrvInfo599_set_enablesharednetdrives(PyObject *py_obj, PyObject *value, void *closure)
10155 struct srvsvc_NetSrvInfo599 *object = (struct srvsvc_NetSrvInfo599 *)pytalloc_get_ptr(py_obj);
10156 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
10157 object->enablesharednetdrives = PyInt_AsLong(value);
10161 static PyObject *py_srvsvc_NetSrvInfo599_get_minfreeconnections(PyObject *obj, void *closure)
10163 struct srvsvc_NetSrvInfo599 *object = (struct srvsvc_NetSrvInfo599 *)pytalloc_get_ptr(obj);
10164 PyObject *py_minfreeconnections;
10165 py_minfreeconnections = PyInt_FromLong(object->minfreeconnections);
10166 return py_minfreeconnections;
10169 static int py_srvsvc_NetSrvInfo599_set_minfreeconnections(PyObject *py_obj, PyObject *value, void *closure)
10171 struct srvsvc_NetSrvInfo599 *object = (struct srvsvc_NetSrvInfo599 *)pytalloc_get_ptr(py_obj);
10172 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
10173 object->minfreeconnections = PyInt_AsLong(value);
10177 static PyObject *py_srvsvc_NetSrvInfo599_get_maxfreeconnections(PyObject *obj, void *closure)
10179 struct srvsvc_NetSrvInfo599 *object = (struct srvsvc_NetSrvInfo599 *)pytalloc_get_ptr(obj);
10180 PyObject *py_maxfreeconnections;
10181 py_maxfreeconnections = PyInt_FromLong(object->maxfreeconnections);
10182 return py_maxfreeconnections;
10185 static int py_srvsvc_NetSrvInfo599_set_maxfreeconnections(PyObject *py_obj, PyObject *value, void *closure)
10187 struct srvsvc_NetSrvInfo599 *object = (struct srvsvc_NetSrvInfo599 *)pytalloc_get_ptr(py_obj);
10188 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
10189 object->maxfreeconnections = PyInt_AsLong(value);
10193 static PyObject *py_srvsvc_NetSrvInfo599_get_initsesstable(PyObject *obj, void *closure)
10195 struct srvsvc_NetSrvInfo599 *object = (struct srvsvc_NetSrvInfo599 *)pytalloc_get_ptr(obj);
10196 PyObject *py_initsesstable;
10197 py_initsesstable = PyInt_FromLong(object->initsesstable);
10198 return py_initsesstable;
10201 static int py_srvsvc_NetSrvInfo599_set_initsesstable(PyObject *py_obj, PyObject *value, void *closure)
10203 struct srvsvc_NetSrvInfo599 *object = (struct srvsvc_NetSrvInfo599 *)pytalloc_get_ptr(py_obj);
10204 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
10205 object->initsesstable = PyInt_AsLong(value);
10209 static PyObject *py_srvsvc_NetSrvInfo599_get_initconntable(PyObject *obj, void *closure)
10211 struct srvsvc_NetSrvInfo599 *object = (struct srvsvc_NetSrvInfo599 *)pytalloc_get_ptr(obj);
10212 PyObject *py_initconntable;
10213 py_initconntable = PyInt_FromLong(object->initconntable);
10214 return py_initconntable;
10217 static int py_srvsvc_NetSrvInfo599_set_initconntable(PyObject *py_obj, PyObject *value, void *closure)
10219 struct srvsvc_NetSrvInfo599 *object = (struct srvsvc_NetSrvInfo599 *)pytalloc_get_ptr(py_obj);
10220 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
10221 object->initconntable = PyInt_AsLong(value);
10225 static PyObject *py_srvsvc_NetSrvInfo599_get_initfiletable(PyObject *obj, void *closure)
10227 struct srvsvc_NetSrvInfo599 *object = (struct srvsvc_NetSrvInfo599 *)pytalloc_get_ptr(obj);
10228 PyObject *py_initfiletable;
10229 py_initfiletable = PyInt_FromLong(object->initfiletable);
10230 return py_initfiletable;
10233 static int py_srvsvc_NetSrvInfo599_set_initfiletable(PyObject *py_obj, PyObject *value, void *closure)
10235 struct srvsvc_NetSrvInfo599 *object = (struct srvsvc_NetSrvInfo599 *)pytalloc_get_ptr(py_obj);
10236 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
10237 object->initfiletable = PyInt_AsLong(value);
10241 static PyObject *py_srvsvc_NetSrvInfo599_get_initsearchtable(PyObject *obj, void *closure)
10243 struct srvsvc_NetSrvInfo599 *object = (struct srvsvc_NetSrvInfo599 *)pytalloc_get_ptr(obj);
10244 PyObject *py_initsearchtable;
10245 py_initsearchtable = PyInt_FromLong(object->initsearchtable);
10246 return py_initsearchtable;
10249 static int py_srvsvc_NetSrvInfo599_set_initsearchtable(PyObject *py_obj, PyObject *value, void *closure)
10251 struct srvsvc_NetSrvInfo599 *object = (struct srvsvc_NetSrvInfo599 *)pytalloc_get_ptr(py_obj);
10252 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
10253 object->initsearchtable = PyInt_AsLong(value);
10257 static PyObject *py_srvsvc_NetSrvInfo599_get_alertsched(PyObject *obj, void *closure)
10259 struct srvsvc_NetSrvInfo599 *object = (struct srvsvc_NetSrvInfo599 *)pytalloc_get_ptr(obj);
10260 PyObject *py_alertsched;
10261 py_alertsched = PyInt_FromLong(object->alertsched);
10262 return py_alertsched;
10265 static int py_srvsvc_NetSrvInfo599_set_alertsched(PyObject *py_obj, PyObject *value, void *closure)
10267 struct srvsvc_NetSrvInfo599 *object = (struct srvsvc_NetSrvInfo599 *)pytalloc_get_ptr(py_obj);
10268 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
10269 object->alertsched = PyInt_AsLong(value);
10273 static PyObject *py_srvsvc_NetSrvInfo599_get_errortreshold(PyObject *obj, void *closure)
10275 struct srvsvc_NetSrvInfo599 *object = (struct srvsvc_NetSrvInfo599 *)pytalloc_get_ptr(obj);
10276 PyObject *py_errortreshold;
10277 py_errortreshold = PyInt_FromLong(object->errortreshold);
10278 return py_errortreshold;
10281 static int py_srvsvc_NetSrvInfo599_set_errortreshold(PyObject *py_obj, PyObject *value, void *closure)
10283 struct srvsvc_NetSrvInfo599 *object = (struct srvsvc_NetSrvInfo599 *)pytalloc_get_ptr(py_obj);
10284 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
10285 object->errortreshold = PyInt_AsLong(value);
10289 static PyObject *py_srvsvc_NetSrvInfo599_get_networkerrortreshold(PyObject *obj, void *closure)
10291 struct srvsvc_NetSrvInfo599 *object = (struct srvsvc_NetSrvInfo599 *)pytalloc_get_ptr(obj);
10292 PyObject *py_networkerrortreshold;
10293 py_networkerrortreshold = PyInt_FromLong(object->networkerrortreshold);
10294 return py_networkerrortreshold;
10297 static int py_srvsvc_NetSrvInfo599_set_networkerrortreshold(PyObject *py_obj, PyObject *value, void *closure)
10299 struct srvsvc_NetSrvInfo599 *object = (struct srvsvc_NetSrvInfo599 *)pytalloc_get_ptr(py_obj);
10300 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
10301 object->networkerrortreshold = PyInt_AsLong(value);
10305 static PyObject *py_srvsvc_NetSrvInfo599_get_diskspacetreshold(PyObject *obj, void *closure)
10307 struct srvsvc_NetSrvInfo599 *object = (struct srvsvc_NetSrvInfo599 *)pytalloc_get_ptr(obj);
10308 PyObject *py_diskspacetreshold;
10309 py_diskspacetreshold = PyInt_FromLong(object->diskspacetreshold);
10310 return py_diskspacetreshold;
10313 static int py_srvsvc_NetSrvInfo599_set_diskspacetreshold(PyObject *py_obj, PyObject *value, void *closure)
10315 struct srvsvc_NetSrvInfo599 *object = (struct srvsvc_NetSrvInfo599 *)pytalloc_get_ptr(py_obj);
10316 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
10317 object->diskspacetreshold = PyInt_AsLong(value);
10321 static PyObject *py_srvsvc_NetSrvInfo599_get_reserved(PyObject *obj, void *closure)
10323 struct srvsvc_NetSrvInfo599 *object = (struct srvsvc_NetSrvInfo599 *)pytalloc_get_ptr(obj);
10324 PyObject *py_reserved;
10325 py_reserved = PyInt_FromLong(object->reserved);
10326 return py_reserved;
10329 static int py_srvsvc_NetSrvInfo599_set_reserved(PyObject *py_obj, PyObject *value, void *closure)
10331 struct srvsvc_NetSrvInfo599 *object = (struct srvsvc_NetSrvInfo599 *)pytalloc_get_ptr(py_obj);
10332 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
10333 object->reserved = PyInt_AsLong(value);
10337 static PyObject *py_srvsvc_NetSrvInfo599_get_maxlinkdelay(PyObject *obj, void *closure)
10339 struct srvsvc_NetSrvInfo599 *object = (struct srvsvc_NetSrvInfo599 *)pytalloc_get_ptr(obj);
10340 PyObject *py_maxlinkdelay;
10341 py_maxlinkdelay = PyInt_FromLong(object->maxlinkdelay);
10342 return py_maxlinkdelay;
10345 static int py_srvsvc_NetSrvInfo599_set_maxlinkdelay(PyObject *py_obj, PyObject *value, void *closure)
10347 struct srvsvc_NetSrvInfo599 *object = (struct srvsvc_NetSrvInfo599 *)pytalloc_get_ptr(py_obj);
10348 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
10349 object->maxlinkdelay = PyInt_AsLong(value);
10353 static PyObject *py_srvsvc_NetSrvInfo599_get_minlinkthroughput(PyObject *obj, void *closure)
10355 struct srvsvc_NetSrvInfo599 *object = (struct srvsvc_NetSrvInfo599 *)pytalloc_get_ptr(obj);
10356 PyObject *py_minlinkthroughput;
10357 py_minlinkthroughput = PyInt_FromLong(object->minlinkthroughput);
10358 return py_minlinkthroughput;
10361 static int py_srvsvc_NetSrvInfo599_set_minlinkthroughput(PyObject *py_obj, PyObject *value, void *closure)
10363 struct srvsvc_NetSrvInfo599 *object = (struct srvsvc_NetSrvInfo599 *)pytalloc_get_ptr(py_obj);
10364 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
10365 object->minlinkthroughput = PyInt_AsLong(value);
10369 static PyObject *py_srvsvc_NetSrvInfo599_get_linkinfovalidtime(PyObject *obj, void *closure)
10371 struct srvsvc_NetSrvInfo599 *object = (struct srvsvc_NetSrvInfo599 *)pytalloc_get_ptr(obj);
10372 PyObject *py_linkinfovalidtime;
10373 py_linkinfovalidtime = PyInt_FromLong(object->linkinfovalidtime);
10374 return py_linkinfovalidtime;
10377 static int py_srvsvc_NetSrvInfo599_set_linkinfovalidtime(PyObject *py_obj, PyObject *value, void *closure)
10379 struct srvsvc_NetSrvInfo599 *object = (struct srvsvc_NetSrvInfo599 *)pytalloc_get_ptr(py_obj);
10380 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
10381 object->linkinfovalidtime = PyInt_AsLong(value);
10385 static PyObject *py_srvsvc_NetSrvInfo599_get_scavqosinfoupdatetime(PyObject *obj, void *closure)
10387 struct srvsvc_NetSrvInfo599 *object = (struct srvsvc_NetSrvInfo599 *)pytalloc_get_ptr(obj);
10388 PyObject *py_scavqosinfoupdatetime;
10389 py_scavqosinfoupdatetime = PyInt_FromLong(object->scavqosinfoupdatetime);
10390 return py_scavqosinfoupdatetime;
10393 static int py_srvsvc_NetSrvInfo599_set_scavqosinfoupdatetime(PyObject *py_obj, PyObject *value, void *closure)
10395 struct srvsvc_NetSrvInfo599 *object = (struct srvsvc_NetSrvInfo599 *)pytalloc_get_ptr(py_obj);
10396 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
10397 object->scavqosinfoupdatetime = PyInt_AsLong(value);
10401 static PyObject *py_srvsvc_NetSrvInfo599_get_maxworkitemidletime(PyObject *obj, void *closure)
10403 struct srvsvc_NetSrvInfo599 *object = (struct srvsvc_NetSrvInfo599 *)pytalloc_get_ptr(obj);
10404 PyObject *py_maxworkitemidletime;
10405 py_maxworkitemidletime = PyInt_FromLong(object->maxworkitemidletime);
10406 return py_maxworkitemidletime;
10409 static int py_srvsvc_NetSrvInfo599_set_maxworkitemidletime(PyObject *py_obj, PyObject *value, void *closure)
10411 struct srvsvc_NetSrvInfo599 *object = (struct srvsvc_NetSrvInfo599 *)pytalloc_get_ptr(py_obj);
10412 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
10413 object->maxworkitemidletime = PyInt_AsLong(value);
10417 static PyGetSetDef py_srvsvc_NetSrvInfo599_getsetters[] = {
10418 { discard_const_p(char, "sessopen"), py_srvsvc_NetSrvInfo599_get_sessopen, py_srvsvc_NetSrvInfo599_set_sessopen },
10419 { discard_const_p(char, "sesssvc"), py_srvsvc_NetSrvInfo599_get_sesssvc, py_srvsvc_NetSrvInfo599_set_sesssvc },
10420 { discard_const_p(char, "opensearch"), py_srvsvc_NetSrvInfo599_get_opensearch, py_srvsvc_NetSrvInfo599_set_opensearch },
10421 { discard_const_p(char, "sizereqbufs"), py_srvsvc_NetSrvInfo599_get_sizereqbufs, py_srvsvc_NetSrvInfo599_set_sizereqbufs },
10422 { discard_const_p(char, "initworkitems"), py_srvsvc_NetSrvInfo599_get_initworkitems, py_srvsvc_NetSrvInfo599_set_initworkitems },
10423 { discard_const_p(char, "maxworkitems"), py_srvsvc_NetSrvInfo599_get_maxworkitems, py_srvsvc_NetSrvInfo599_set_maxworkitems },
10424 { discard_const_p(char, "rawworkitems"), py_srvsvc_NetSrvInfo599_get_rawworkitems, py_srvsvc_NetSrvInfo599_set_rawworkitems },
10425 { discard_const_p(char, "irpstacksize"), py_srvsvc_NetSrvInfo599_get_irpstacksize, py_srvsvc_NetSrvInfo599_set_irpstacksize },
10426 { discard_const_p(char, "maxrawbuflen"), py_srvsvc_NetSrvInfo599_get_maxrawbuflen, py_srvsvc_NetSrvInfo599_set_maxrawbuflen },
10427 { discard_const_p(char, "sessusers"), py_srvsvc_NetSrvInfo599_get_sessusers, py_srvsvc_NetSrvInfo599_set_sessusers },
10428 { discard_const_p(char, "sessconns"), py_srvsvc_NetSrvInfo599_get_sessconns, py_srvsvc_NetSrvInfo599_set_sessconns },
10429 { discard_const_p(char, "maxpagedmemoryusage"), py_srvsvc_NetSrvInfo599_get_maxpagedmemoryusage, py_srvsvc_NetSrvInfo599_set_maxpagedmemoryusage },
10430 { discard_const_p(char, "maxnonpagedmemoryusage"), py_srvsvc_NetSrvInfo599_get_maxnonpagedmemoryusage, py_srvsvc_NetSrvInfo599_set_maxnonpagedmemoryusage },
10431 { discard_const_p(char, "enablesoftcompat"), py_srvsvc_NetSrvInfo599_get_enablesoftcompat, py_srvsvc_NetSrvInfo599_set_enablesoftcompat },
10432 { discard_const_p(char, "enableforcedlogoff"), py_srvsvc_NetSrvInfo599_get_enableforcedlogoff, py_srvsvc_NetSrvInfo599_set_enableforcedlogoff },
10433 { discard_const_p(char, "timesource"), py_srvsvc_NetSrvInfo599_get_timesource, py_srvsvc_NetSrvInfo599_set_timesource },
10434 { discard_const_p(char, "acceptdownlevelapis"), py_srvsvc_NetSrvInfo599_get_acceptdownlevelapis, py_srvsvc_NetSrvInfo599_set_acceptdownlevelapis },
10435 { discard_const_p(char, "lmannounce"), py_srvsvc_NetSrvInfo599_get_lmannounce, py_srvsvc_NetSrvInfo599_set_lmannounce },
10436 { discard_const_p(char, "domain"), py_srvsvc_NetSrvInfo599_get_domain, py_srvsvc_NetSrvInfo599_set_domain },
10437 { discard_const_p(char, "maxcopyreadlen"), py_srvsvc_NetSrvInfo599_get_maxcopyreadlen, py_srvsvc_NetSrvInfo599_set_maxcopyreadlen },
10438 { discard_const_p(char, "maxcopywritelen"), py_srvsvc_NetSrvInfo599_get_maxcopywritelen, py_srvsvc_NetSrvInfo599_set_maxcopywritelen },
10439 { discard_const_p(char, "minkeepsearch"), py_srvsvc_NetSrvInfo599_get_minkeepsearch, py_srvsvc_NetSrvInfo599_set_minkeepsearch },
10440 { discard_const_p(char, "minkeepcomplsearch"), py_srvsvc_NetSrvInfo599_get_minkeepcomplsearch, py_srvsvc_NetSrvInfo599_set_minkeepcomplsearch },
10441 { discard_const_p(char, "maxkeepcomplsearch"), py_srvsvc_NetSrvInfo599_get_maxkeepcomplsearch, py_srvsvc_NetSrvInfo599_set_maxkeepcomplsearch },
10442 { discard_const_p(char, "threadcountadd"), py_srvsvc_NetSrvInfo599_get_threadcountadd, py_srvsvc_NetSrvInfo599_set_threadcountadd },
10443 { discard_const_p(char, "numlockthreads"), py_srvsvc_NetSrvInfo599_get_numlockthreads, py_srvsvc_NetSrvInfo599_set_numlockthreads },
10444 { discard_const_p(char, "scavtimeout"), py_srvsvc_NetSrvInfo599_get_scavtimeout, py_srvsvc_NetSrvInfo599_set_scavtimeout },
10445 { discard_const_p(char, "minrcvqueue"), py_srvsvc_NetSrvInfo599_get_minrcvqueue, py_srvsvc_NetSrvInfo599_set_minrcvqueue },
10446 { discard_const_p(char, "minfreeworkitems"), py_srvsvc_NetSrvInfo599_get_minfreeworkitems, py_srvsvc_NetSrvInfo599_set_minfreeworkitems },
10447 { discard_const_p(char, "xactmemsize"), py_srvsvc_NetSrvInfo599_get_xactmemsize, py_srvsvc_NetSrvInfo599_set_xactmemsize },
10448 { discard_const_p(char, "threadpriority"), py_srvsvc_NetSrvInfo599_get_threadpriority, py_srvsvc_NetSrvInfo599_set_threadpriority },
10449 { discard_const_p(char, "maxmpxct"), py_srvsvc_NetSrvInfo599_get_maxmpxct, py_srvsvc_NetSrvInfo599_set_maxmpxct },
10450 { discard_const_p(char, "oplockbreakwait"), py_srvsvc_NetSrvInfo599_get_oplockbreakwait, py_srvsvc_NetSrvInfo599_set_oplockbreakwait },
10451 { discard_const_p(char, "oplockbreakresponsewait"), py_srvsvc_NetSrvInfo599_get_oplockbreakresponsewait, py_srvsvc_NetSrvInfo599_set_oplockbreakresponsewait },
10452 { discard_const_p(char, "enableoplocks"), py_srvsvc_NetSrvInfo599_get_enableoplocks, py_srvsvc_NetSrvInfo599_set_enableoplocks },
10453 { discard_const_p(char, "enableoplockforceclose"), py_srvsvc_NetSrvInfo599_get_enableoplockforceclose, py_srvsvc_NetSrvInfo599_set_enableoplockforceclose },
10454 { discard_const_p(char, "enablefcbopens"), py_srvsvc_NetSrvInfo599_get_enablefcbopens, py_srvsvc_NetSrvInfo599_set_enablefcbopens },
10455 { discard_const_p(char, "enableraw"), py_srvsvc_NetSrvInfo599_get_enableraw, py_srvsvc_NetSrvInfo599_set_enableraw },
10456 { discard_const_p(char, "enablesharednetdrives"), py_srvsvc_NetSrvInfo599_get_enablesharednetdrives, py_srvsvc_NetSrvInfo599_set_enablesharednetdrives },
10457 { discard_const_p(char, "minfreeconnections"), py_srvsvc_NetSrvInfo599_get_minfreeconnections, py_srvsvc_NetSrvInfo599_set_minfreeconnections },
10458 { discard_const_p(char, "maxfreeconnections"), py_srvsvc_NetSrvInfo599_get_maxfreeconnections, py_srvsvc_NetSrvInfo599_set_maxfreeconnections },
10459 { discard_const_p(char, "initsesstable"), py_srvsvc_NetSrvInfo599_get_initsesstable, py_srvsvc_NetSrvInfo599_set_initsesstable },
10460 { discard_const_p(char, "initconntable"), py_srvsvc_NetSrvInfo599_get_initconntable, py_srvsvc_NetSrvInfo599_set_initconntable },
10461 { discard_const_p(char, "initfiletable"), py_srvsvc_NetSrvInfo599_get_initfiletable, py_srvsvc_NetSrvInfo599_set_initfiletable },
10462 { discard_const_p(char, "initsearchtable"), py_srvsvc_NetSrvInfo599_get_initsearchtable, py_srvsvc_NetSrvInfo599_set_initsearchtable },
10463 { discard_const_p(char, "alertsched"), py_srvsvc_NetSrvInfo599_get_alertsched, py_srvsvc_NetSrvInfo599_set_alertsched },
10464 { discard_const_p(char, "errortreshold"), py_srvsvc_NetSrvInfo599_get_errortreshold, py_srvsvc_NetSrvInfo599_set_errortreshold },
10465 { discard_const_p(char, "networkerrortreshold"), py_srvsvc_NetSrvInfo599_get_networkerrortreshold, py_srvsvc_NetSrvInfo599_set_networkerrortreshold },
10466 { discard_const_p(char, "diskspacetreshold"), py_srvsvc_NetSrvInfo599_get_diskspacetreshold, py_srvsvc_NetSrvInfo599_set_diskspacetreshold },
10467 { discard_const_p(char, "reserved"), py_srvsvc_NetSrvInfo599_get_reserved, py_srvsvc_NetSrvInfo599_set_reserved },
10468 { discard_const_p(char, "maxlinkdelay"), py_srvsvc_NetSrvInfo599_get_maxlinkdelay, py_srvsvc_NetSrvInfo599_set_maxlinkdelay },
10469 { discard_const_p(char, "minlinkthroughput"), py_srvsvc_NetSrvInfo599_get_minlinkthroughput, py_srvsvc_NetSrvInfo599_set_minlinkthroughput },
10470 { discard_const_p(char, "linkinfovalidtime"), py_srvsvc_NetSrvInfo599_get_linkinfovalidtime, py_srvsvc_NetSrvInfo599_set_linkinfovalidtime },
10471 { discard_const_p(char, "scavqosinfoupdatetime"), py_srvsvc_NetSrvInfo599_get_scavqosinfoupdatetime, py_srvsvc_NetSrvInfo599_set_scavqosinfoupdatetime },
10472 { discard_const_p(char, "maxworkitemidletime"), py_srvsvc_NetSrvInfo599_get_maxworkitemidletime, py_srvsvc_NetSrvInfo599_set_maxworkitemidletime },
10476 static PyObject *py_srvsvc_NetSrvInfo599_new(PyTypeObject *type, PyObject *args, PyObject *kwargs)
10478 return pytalloc_new(struct srvsvc_NetSrvInfo599, type);
10482 static PyTypeObject srvsvc_NetSrvInfo599_Type = {
10483 PyObject_HEAD_INIT(NULL) 0,
10484 .tp_name = "srvsvc.NetSrvInfo599",
10485 .tp_getset = py_srvsvc_NetSrvInfo599_getsetters,
10486 .tp_methods = NULL,
10487 .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
10488 .tp_basicsize = sizeof(pytalloc_Object),
10489 .tp_new = py_srvsvc_NetSrvInfo599_new,
10493 static PyObject *py_srvsvc_NetSrvInfo1005_get_comment(PyObject *obj, void *closure)
10495 struct srvsvc_NetSrvInfo1005 *object = (struct srvsvc_NetSrvInfo1005 *)pytalloc_get_ptr(obj);
10496 PyObject *py_comment;
10497 if (object->comment == NULL) {
10498 py_comment = Py_None;
10499 Py_INCREF(py_comment);
10501 if (object->comment == NULL) {
10502 py_comment = Py_None;
10503 Py_INCREF(py_comment);
10505 py_comment = PyUnicode_Decode(object->comment, strlen(object->comment), "utf-8", "ignore");
10511 static int py_srvsvc_NetSrvInfo1005_set_comment(PyObject *py_obj, PyObject *value, void *closure)
10513 struct srvsvc_NetSrvInfo1005 *object = (struct srvsvc_NetSrvInfo1005 *)pytalloc_get_ptr(py_obj);
10514 if (value == Py_None) {
10515 object->comment = NULL;
10517 object->comment = NULL;
10518 if (PyUnicode_Check(value)) {
10519 object->comment = PyString_AS_STRING(PyUnicode_AsEncodedString(value, "utf-8", "ignore"));
10520 } else if (PyString_Check(value)) {
10521 object->comment = PyString_AS_STRING(value);
10523 PyErr_Format(PyExc_TypeError, "Expected string or unicode object, got %s", Py_TYPE(value)->tp_name);
10530 static PyGetSetDef py_srvsvc_NetSrvInfo1005_getsetters[] = {
10531 { discard_const_p(char, "comment"), py_srvsvc_NetSrvInfo1005_get_comment, py_srvsvc_NetSrvInfo1005_set_comment },
10535 static PyObject *py_srvsvc_NetSrvInfo1005_new(PyTypeObject *type, PyObject *args, PyObject *kwargs)
10537 return pytalloc_new(struct srvsvc_NetSrvInfo1005, type);
10541 static PyTypeObject srvsvc_NetSrvInfo1005_Type = {
10542 PyObject_HEAD_INIT(NULL) 0,
10543 .tp_name = "srvsvc.NetSrvInfo1005",
10544 .tp_getset = py_srvsvc_NetSrvInfo1005_getsetters,
10545 .tp_methods = NULL,
10546 .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
10547 .tp_basicsize = sizeof(pytalloc_Object),
10548 .tp_new = py_srvsvc_NetSrvInfo1005_new,
10552 static PyObject *py_srvsvc_NetSrvInfo1010_get_disc(PyObject *obj, void *closure)
10554 struct srvsvc_NetSrvInfo1010 *object = (struct srvsvc_NetSrvInfo1010 *)pytalloc_get_ptr(obj);
10556 py_disc = PyInt_FromLong(object->disc);
10560 static int py_srvsvc_NetSrvInfo1010_set_disc(PyObject *py_obj, PyObject *value, void *closure)
10562 struct srvsvc_NetSrvInfo1010 *object = (struct srvsvc_NetSrvInfo1010 *)pytalloc_get_ptr(py_obj);
10563 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
10564 object->disc = PyInt_AsLong(value);
10568 static PyGetSetDef py_srvsvc_NetSrvInfo1010_getsetters[] = {
10569 { discard_const_p(char, "disc"), py_srvsvc_NetSrvInfo1010_get_disc, py_srvsvc_NetSrvInfo1010_set_disc },
10573 static PyObject *py_srvsvc_NetSrvInfo1010_new(PyTypeObject *type, PyObject *args, PyObject *kwargs)
10575 return pytalloc_new(struct srvsvc_NetSrvInfo1010, type);
10579 static PyTypeObject srvsvc_NetSrvInfo1010_Type = {
10580 PyObject_HEAD_INIT(NULL) 0,
10581 .tp_name = "srvsvc.NetSrvInfo1010",
10582 .tp_getset = py_srvsvc_NetSrvInfo1010_getsetters,
10583 .tp_methods = NULL,
10584 .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
10585 .tp_basicsize = sizeof(pytalloc_Object),
10586 .tp_new = py_srvsvc_NetSrvInfo1010_new,
10590 static PyObject *py_srvsvc_NetSrvInfo1016_get_hidden(PyObject *obj, void *closure)
10592 struct srvsvc_NetSrvInfo1016 *object = (struct srvsvc_NetSrvInfo1016 *)pytalloc_get_ptr(obj);
10593 PyObject *py_hidden;
10594 py_hidden = PyInt_FromLong(object->hidden);
10598 static int py_srvsvc_NetSrvInfo1016_set_hidden(PyObject *py_obj, PyObject *value, void *closure)
10600 struct srvsvc_NetSrvInfo1016 *object = (struct srvsvc_NetSrvInfo1016 *)pytalloc_get_ptr(py_obj);
10601 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
10602 object->hidden = PyInt_AsLong(value);
10606 static PyGetSetDef py_srvsvc_NetSrvInfo1016_getsetters[] = {
10607 { discard_const_p(char, "hidden"), py_srvsvc_NetSrvInfo1016_get_hidden, py_srvsvc_NetSrvInfo1016_set_hidden },
10611 static PyObject *py_srvsvc_NetSrvInfo1016_new(PyTypeObject *type, PyObject *args, PyObject *kwargs)
10613 return pytalloc_new(struct srvsvc_NetSrvInfo1016, type);
10617 static PyTypeObject srvsvc_NetSrvInfo1016_Type = {
10618 PyObject_HEAD_INIT(NULL) 0,
10619 .tp_name = "srvsvc.NetSrvInfo1016",
10620 .tp_getset = py_srvsvc_NetSrvInfo1016_getsetters,
10621 .tp_methods = NULL,
10622 .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
10623 .tp_basicsize = sizeof(pytalloc_Object),
10624 .tp_new = py_srvsvc_NetSrvInfo1016_new,
10628 static PyObject *py_srvsvc_NetSrvInfo1017_get_announce(PyObject *obj, void *closure)
10630 struct srvsvc_NetSrvInfo1017 *object = (struct srvsvc_NetSrvInfo1017 *)pytalloc_get_ptr(obj);
10631 PyObject *py_announce;
10632 py_announce = PyInt_FromLong(object->announce);
10633 return py_announce;
10636 static int py_srvsvc_NetSrvInfo1017_set_announce(PyObject *py_obj, PyObject *value, void *closure)
10638 struct srvsvc_NetSrvInfo1017 *object = (struct srvsvc_NetSrvInfo1017 *)pytalloc_get_ptr(py_obj);
10639 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
10640 object->announce = PyInt_AsLong(value);
10644 static PyGetSetDef py_srvsvc_NetSrvInfo1017_getsetters[] = {
10645 { discard_const_p(char, "announce"), py_srvsvc_NetSrvInfo1017_get_announce, py_srvsvc_NetSrvInfo1017_set_announce },
10649 static PyObject *py_srvsvc_NetSrvInfo1017_new(PyTypeObject *type, PyObject *args, PyObject *kwargs)
10651 return pytalloc_new(struct srvsvc_NetSrvInfo1017, type);
10655 static PyTypeObject srvsvc_NetSrvInfo1017_Type = {
10656 PyObject_HEAD_INIT(NULL) 0,
10657 .tp_name = "srvsvc.NetSrvInfo1017",
10658 .tp_getset = py_srvsvc_NetSrvInfo1017_getsetters,
10659 .tp_methods = NULL,
10660 .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
10661 .tp_basicsize = sizeof(pytalloc_Object),
10662 .tp_new = py_srvsvc_NetSrvInfo1017_new,
10666 static PyObject *py_srvsvc_NetSrvInfo1018_get_anndelta(PyObject *obj, void *closure)
10668 struct srvsvc_NetSrvInfo1018 *object = (struct srvsvc_NetSrvInfo1018 *)pytalloc_get_ptr(obj);
10669 PyObject *py_anndelta;
10670 py_anndelta = PyInt_FromLong(object->anndelta);
10671 return py_anndelta;
10674 static int py_srvsvc_NetSrvInfo1018_set_anndelta(PyObject *py_obj, PyObject *value, void *closure)
10676 struct srvsvc_NetSrvInfo1018 *object = (struct srvsvc_NetSrvInfo1018 *)pytalloc_get_ptr(py_obj);
10677 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
10678 object->anndelta = PyInt_AsLong(value);
10682 static PyGetSetDef py_srvsvc_NetSrvInfo1018_getsetters[] = {
10683 { discard_const_p(char, "anndelta"), py_srvsvc_NetSrvInfo1018_get_anndelta, py_srvsvc_NetSrvInfo1018_set_anndelta },
10687 static PyObject *py_srvsvc_NetSrvInfo1018_new(PyTypeObject *type, PyObject *args, PyObject *kwargs)
10689 return pytalloc_new(struct srvsvc_NetSrvInfo1018, type);
10693 static PyTypeObject srvsvc_NetSrvInfo1018_Type = {
10694 PyObject_HEAD_INIT(NULL) 0,
10695 .tp_name = "srvsvc.NetSrvInfo1018",
10696 .tp_getset = py_srvsvc_NetSrvInfo1018_getsetters,
10697 .tp_methods = NULL,
10698 .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
10699 .tp_basicsize = sizeof(pytalloc_Object),
10700 .tp_new = py_srvsvc_NetSrvInfo1018_new,
10704 static PyObject *py_srvsvc_NetSrvInfo1107_get_users(PyObject *obj, void *closure)
10706 struct srvsvc_NetSrvInfo1107 *object = (struct srvsvc_NetSrvInfo1107 *)pytalloc_get_ptr(obj);
10707 PyObject *py_users;
10708 py_users = PyInt_FromLong(object->users);
10712 static int py_srvsvc_NetSrvInfo1107_set_users(PyObject *py_obj, PyObject *value, void *closure)
10714 struct srvsvc_NetSrvInfo1107 *object = (struct srvsvc_NetSrvInfo1107 *)pytalloc_get_ptr(py_obj);
10715 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
10716 object->users = PyInt_AsLong(value);
10720 static PyGetSetDef py_srvsvc_NetSrvInfo1107_getsetters[] = {
10721 { discard_const_p(char, "users"), py_srvsvc_NetSrvInfo1107_get_users, py_srvsvc_NetSrvInfo1107_set_users },
10725 static PyObject *py_srvsvc_NetSrvInfo1107_new(PyTypeObject *type, PyObject *args, PyObject *kwargs)
10727 return pytalloc_new(struct srvsvc_NetSrvInfo1107, type);
10731 static PyTypeObject srvsvc_NetSrvInfo1107_Type = {
10732 PyObject_HEAD_INIT(NULL) 0,
10733 .tp_name = "srvsvc.NetSrvInfo1107",
10734 .tp_getset = py_srvsvc_NetSrvInfo1107_getsetters,
10735 .tp_methods = NULL,
10736 .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
10737 .tp_basicsize = sizeof(pytalloc_Object),
10738 .tp_new = py_srvsvc_NetSrvInfo1107_new,
10742 static PyObject *py_srvsvc_NetSrvInfo1501_get_sessopens(PyObject *obj, void *closure)
10744 struct srvsvc_NetSrvInfo1501 *object = (struct srvsvc_NetSrvInfo1501 *)pytalloc_get_ptr(obj);
10745 PyObject *py_sessopens;
10746 py_sessopens = PyInt_FromLong(object->sessopens);
10747 return py_sessopens;
10750 static int py_srvsvc_NetSrvInfo1501_set_sessopens(PyObject *py_obj, PyObject *value, void *closure)
10752 struct srvsvc_NetSrvInfo1501 *object = (struct srvsvc_NetSrvInfo1501 *)pytalloc_get_ptr(py_obj);
10753 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
10754 object->sessopens = PyInt_AsLong(value);
10758 static PyGetSetDef py_srvsvc_NetSrvInfo1501_getsetters[] = {
10759 { discard_const_p(char, "sessopens"), py_srvsvc_NetSrvInfo1501_get_sessopens, py_srvsvc_NetSrvInfo1501_set_sessopens },
10763 static PyObject *py_srvsvc_NetSrvInfo1501_new(PyTypeObject *type, PyObject *args, PyObject *kwargs)
10765 return pytalloc_new(struct srvsvc_NetSrvInfo1501, type);
10769 static PyTypeObject srvsvc_NetSrvInfo1501_Type = {
10770 PyObject_HEAD_INIT(NULL) 0,
10771 .tp_name = "srvsvc.NetSrvInfo1501",
10772 .tp_getset = py_srvsvc_NetSrvInfo1501_getsetters,
10773 .tp_methods = NULL,
10774 .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
10775 .tp_basicsize = sizeof(pytalloc_Object),
10776 .tp_new = py_srvsvc_NetSrvInfo1501_new,
10780 static PyObject *py_srvsvc_NetSrvInfo1502_get_sessvcs(PyObject *obj, void *closure)
10782 struct srvsvc_NetSrvInfo1502 *object = (struct srvsvc_NetSrvInfo1502 *)pytalloc_get_ptr(obj);
10783 PyObject *py_sessvcs;
10784 py_sessvcs = PyInt_FromLong(object->sessvcs);
10788 static int py_srvsvc_NetSrvInfo1502_set_sessvcs(PyObject *py_obj, PyObject *value, void *closure)
10790 struct srvsvc_NetSrvInfo1502 *object = (struct srvsvc_NetSrvInfo1502 *)pytalloc_get_ptr(py_obj);
10791 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
10792 object->sessvcs = PyInt_AsLong(value);
10796 static PyGetSetDef py_srvsvc_NetSrvInfo1502_getsetters[] = {
10797 { discard_const_p(char, "sessvcs"), py_srvsvc_NetSrvInfo1502_get_sessvcs, py_srvsvc_NetSrvInfo1502_set_sessvcs },
10801 static PyObject *py_srvsvc_NetSrvInfo1502_new(PyTypeObject *type, PyObject *args, PyObject *kwargs)
10803 return pytalloc_new(struct srvsvc_NetSrvInfo1502, type);
10807 static PyTypeObject srvsvc_NetSrvInfo1502_Type = {
10808 PyObject_HEAD_INIT(NULL) 0,
10809 .tp_name = "srvsvc.NetSrvInfo1502",
10810 .tp_getset = py_srvsvc_NetSrvInfo1502_getsetters,
10811 .tp_methods = NULL,
10812 .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
10813 .tp_basicsize = sizeof(pytalloc_Object),
10814 .tp_new = py_srvsvc_NetSrvInfo1502_new,
10818 static PyObject *py_srvsvc_NetSrvInfo1503_get_opensearch(PyObject *obj, void *closure)
10820 struct srvsvc_NetSrvInfo1503 *object = (struct srvsvc_NetSrvInfo1503 *)pytalloc_get_ptr(obj);
10821 PyObject *py_opensearch;
10822 py_opensearch = PyInt_FromLong(object->opensearch);
10823 return py_opensearch;
10826 static int py_srvsvc_NetSrvInfo1503_set_opensearch(PyObject *py_obj, PyObject *value, void *closure)
10828 struct srvsvc_NetSrvInfo1503 *object = (struct srvsvc_NetSrvInfo1503 *)pytalloc_get_ptr(py_obj);
10829 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
10830 object->opensearch = PyInt_AsLong(value);
10834 static PyGetSetDef py_srvsvc_NetSrvInfo1503_getsetters[] = {
10835 { discard_const_p(char, "opensearch"), py_srvsvc_NetSrvInfo1503_get_opensearch, py_srvsvc_NetSrvInfo1503_set_opensearch },
10839 static PyObject *py_srvsvc_NetSrvInfo1503_new(PyTypeObject *type, PyObject *args, PyObject *kwargs)
10841 return pytalloc_new(struct srvsvc_NetSrvInfo1503, type);
10845 static PyTypeObject srvsvc_NetSrvInfo1503_Type = {
10846 PyObject_HEAD_INIT(NULL) 0,
10847 .tp_name = "srvsvc.NetSrvInfo1503",
10848 .tp_getset = py_srvsvc_NetSrvInfo1503_getsetters,
10849 .tp_methods = NULL,
10850 .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
10851 .tp_basicsize = sizeof(pytalloc_Object),
10852 .tp_new = py_srvsvc_NetSrvInfo1503_new,
10856 static PyObject *py_srvsvc_NetSrvInfo1506_get_maxworkitems(PyObject *obj, void *closure)
10858 struct srvsvc_NetSrvInfo1506 *object = (struct srvsvc_NetSrvInfo1506 *)pytalloc_get_ptr(obj);
10859 PyObject *py_maxworkitems;
10860 py_maxworkitems = PyInt_FromLong(object->maxworkitems);
10861 return py_maxworkitems;
10864 static int py_srvsvc_NetSrvInfo1506_set_maxworkitems(PyObject *py_obj, PyObject *value, void *closure)
10866 struct srvsvc_NetSrvInfo1506 *object = (struct srvsvc_NetSrvInfo1506 *)pytalloc_get_ptr(py_obj);
10867 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
10868 object->maxworkitems = PyInt_AsLong(value);
10872 static PyGetSetDef py_srvsvc_NetSrvInfo1506_getsetters[] = {
10873 { discard_const_p(char, "maxworkitems"), py_srvsvc_NetSrvInfo1506_get_maxworkitems, py_srvsvc_NetSrvInfo1506_set_maxworkitems },
10877 static PyObject *py_srvsvc_NetSrvInfo1506_new(PyTypeObject *type, PyObject *args, PyObject *kwargs)
10879 return pytalloc_new(struct srvsvc_NetSrvInfo1506, type);
10883 static PyTypeObject srvsvc_NetSrvInfo1506_Type = {
10884 PyObject_HEAD_INIT(NULL) 0,
10885 .tp_name = "srvsvc.NetSrvInfo1506",
10886 .tp_getset = py_srvsvc_NetSrvInfo1506_getsetters,
10887 .tp_methods = NULL,
10888 .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
10889 .tp_basicsize = sizeof(pytalloc_Object),
10890 .tp_new = py_srvsvc_NetSrvInfo1506_new,
10894 static PyObject *py_srvsvc_NetSrvInfo1509_get_maxrawbuflen(PyObject *obj, void *closure)
10896 struct srvsvc_NetSrvInfo1509 *object = (struct srvsvc_NetSrvInfo1509 *)pytalloc_get_ptr(obj);
10897 PyObject *py_maxrawbuflen;
10898 py_maxrawbuflen = PyInt_FromLong(object->maxrawbuflen);
10899 return py_maxrawbuflen;
10902 static int py_srvsvc_NetSrvInfo1509_set_maxrawbuflen(PyObject *py_obj, PyObject *value, void *closure)
10904 struct srvsvc_NetSrvInfo1509 *object = (struct srvsvc_NetSrvInfo1509 *)pytalloc_get_ptr(py_obj);
10905 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
10906 object->maxrawbuflen = PyInt_AsLong(value);
10910 static PyGetSetDef py_srvsvc_NetSrvInfo1509_getsetters[] = {
10911 { discard_const_p(char, "maxrawbuflen"), py_srvsvc_NetSrvInfo1509_get_maxrawbuflen, py_srvsvc_NetSrvInfo1509_set_maxrawbuflen },
10915 static PyObject *py_srvsvc_NetSrvInfo1509_new(PyTypeObject *type, PyObject *args, PyObject *kwargs)
10917 return pytalloc_new(struct srvsvc_NetSrvInfo1509, type);
10921 static PyTypeObject srvsvc_NetSrvInfo1509_Type = {
10922 PyObject_HEAD_INIT(NULL) 0,
10923 .tp_name = "srvsvc.NetSrvInfo1509",
10924 .tp_getset = py_srvsvc_NetSrvInfo1509_getsetters,
10925 .tp_methods = NULL,
10926 .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
10927 .tp_basicsize = sizeof(pytalloc_Object),
10928 .tp_new = py_srvsvc_NetSrvInfo1509_new,
10932 static PyObject *py_srvsvc_NetSrvInfo1510_get_sessusers(PyObject *obj, void *closure)
10934 struct srvsvc_NetSrvInfo1510 *object = (struct srvsvc_NetSrvInfo1510 *)pytalloc_get_ptr(obj);
10935 PyObject *py_sessusers;
10936 py_sessusers = PyInt_FromLong(object->sessusers);
10937 return py_sessusers;
10940 static int py_srvsvc_NetSrvInfo1510_set_sessusers(PyObject *py_obj, PyObject *value, void *closure)
10942 struct srvsvc_NetSrvInfo1510 *object = (struct srvsvc_NetSrvInfo1510 *)pytalloc_get_ptr(py_obj);
10943 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
10944 object->sessusers = PyInt_AsLong(value);
10948 static PyGetSetDef py_srvsvc_NetSrvInfo1510_getsetters[] = {
10949 { discard_const_p(char, "sessusers"), py_srvsvc_NetSrvInfo1510_get_sessusers, py_srvsvc_NetSrvInfo1510_set_sessusers },
10953 static PyObject *py_srvsvc_NetSrvInfo1510_new(PyTypeObject *type, PyObject *args, PyObject *kwargs)
10955 return pytalloc_new(struct srvsvc_NetSrvInfo1510, type);
10959 static PyTypeObject srvsvc_NetSrvInfo1510_Type = {
10960 PyObject_HEAD_INIT(NULL) 0,
10961 .tp_name = "srvsvc.NetSrvInfo1510",
10962 .tp_getset = py_srvsvc_NetSrvInfo1510_getsetters,
10963 .tp_methods = NULL,
10964 .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
10965 .tp_basicsize = sizeof(pytalloc_Object),
10966 .tp_new = py_srvsvc_NetSrvInfo1510_new,
10970 static PyObject *py_srvsvc_NetSrvInfo1511_get_sesscons(PyObject *obj, void *closure)
10972 struct srvsvc_NetSrvInfo1511 *object = (struct srvsvc_NetSrvInfo1511 *)pytalloc_get_ptr(obj);
10973 PyObject *py_sesscons;
10974 py_sesscons = PyInt_FromLong(object->sesscons);
10975 return py_sesscons;
10978 static int py_srvsvc_NetSrvInfo1511_set_sesscons(PyObject *py_obj, PyObject *value, void *closure)
10980 struct srvsvc_NetSrvInfo1511 *object = (struct srvsvc_NetSrvInfo1511 *)pytalloc_get_ptr(py_obj);
10981 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
10982 object->sesscons = PyInt_AsLong(value);
10986 static PyGetSetDef py_srvsvc_NetSrvInfo1511_getsetters[] = {
10987 { discard_const_p(char, "sesscons"), py_srvsvc_NetSrvInfo1511_get_sesscons, py_srvsvc_NetSrvInfo1511_set_sesscons },
10991 static PyObject *py_srvsvc_NetSrvInfo1511_new(PyTypeObject *type, PyObject *args, PyObject *kwargs)
10993 return pytalloc_new(struct srvsvc_NetSrvInfo1511, type);
10997 static PyTypeObject srvsvc_NetSrvInfo1511_Type = {
10998 PyObject_HEAD_INIT(NULL) 0,
10999 .tp_name = "srvsvc.NetSrvInfo1511",
11000 .tp_getset = py_srvsvc_NetSrvInfo1511_getsetters,
11001 .tp_methods = NULL,
11002 .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
11003 .tp_basicsize = sizeof(pytalloc_Object),
11004 .tp_new = py_srvsvc_NetSrvInfo1511_new,
11008 static PyObject *py_srvsvc_NetSrvInfo1512_get_maxnonpagedmemoryusage(PyObject *obj, void *closure)
11010 struct srvsvc_NetSrvInfo1512 *object = (struct srvsvc_NetSrvInfo1512 *)pytalloc_get_ptr(obj);
11011 PyObject *py_maxnonpagedmemoryusage;
11012 py_maxnonpagedmemoryusage = PyInt_FromLong(object->maxnonpagedmemoryusage);
11013 return py_maxnonpagedmemoryusage;
11016 static int py_srvsvc_NetSrvInfo1512_set_maxnonpagedmemoryusage(PyObject *py_obj, PyObject *value, void *closure)
11018 struct srvsvc_NetSrvInfo1512 *object = (struct srvsvc_NetSrvInfo1512 *)pytalloc_get_ptr(py_obj);
11019 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
11020 object->maxnonpagedmemoryusage = PyInt_AsLong(value);
11024 static PyGetSetDef py_srvsvc_NetSrvInfo1512_getsetters[] = {
11025 { discard_const_p(char, "maxnonpagedmemoryusage"), py_srvsvc_NetSrvInfo1512_get_maxnonpagedmemoryusage, py_srvsvc_NetSrvInfo1512_set_maxnonpagedmemoryusage },
11029 static PyObject *py_srvsvc_NetSrvInfo1512_new(PyTypeObject *type, PyObject *args, PyObject *kwargs)
11031 return pytalloc_new(struct srvsvc_NetSrvInfo1512, type);
11035 static PyTypeObject srvsvc_NetSrvInfo1512_Type = {
11036 PyObject_HEAD_INIT(NULL) 0,
11037 .tp_name = "srvsvc.NetSrvInfo1512",
11038 .tp_getset = py_srvsvc_NetSrvInfo1512_getsetters,
11039 .tp_methods = NULL,
11040 .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
11041 .tp_basicsize = sizeof(pytalloc_Object),
11042 .tp_new = py_srvsvc_NetSrvInfo1512_new,
11046 static PyObject *py_srvsvc_NetSrvInfo1513_get_maxpagedmemoryusage(PyObject *obj, void *closure)
11048 struct srvsvc_NetSrvInfo1513 *object = (struct srvsvc_NetSrvInfo1513 *)pytalloc_get_ptr(obj);
11049 PyObject *py_maxpagedmemoryusage;
11050 py_maxpagedmemoryusage = PyInt_FromLong(object->maxpagedmemoryusage);
11051 return py_maxpagedmemoryusage;
11054 static int py_srvsvc_NetSrvInfo1513_set_maxpagedmemoryusage(PyObject *py_obj, PyObject *value, void *closure)
11056 struct srvsvc_NetSrvInfo1513 *object = (struct srvsvc_NetSrvInfo1513 *)pytalloc_get_ptr(py_obj);
11057 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
11058 object->maxpagedmemoryusage = PyInt_AsLong(value);
11062 static PyGetSetDef py_srvsvc_NetSrvInfo1513_getsetters[] = {
11063 { discard_const_p(char, "maxpagedmemoryusage"), py_srvsvc_NetSrvInfo1513_get_maxpagedmemoryusage, py_srvsvc_NetSrvInfo1513_set_maxpagedmemoryusage },
11067 static PyObject *py_srvsvc_NetSrvInfo1513_new(PyTypeObject *type, PyObject *args, PyObject *kwargs)
11069 return pytalloc_new(struct srvsvc_NetSrvInfo1513, type);
11073 static PyTypeObject srvsvc_NetSrvInfo1513_Type = {
11074 PyObject_HEAD_INIT(NULL) 0,
11075 .tp_name = "srvsvc.NetSrvInfo1513",
11076 .tp_getset = py_srvsvc_NetSrvInfo1513_getsetters,
11077 .tp_methods = NULL,
11078 .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
11079 .tp_basicsize = sizeof(pytalloc_Object),
11080 .tp_new = py_srvsvc_NetSrvInfo1513_new,
11084 static PyObject *py_srvsvc_NetSrvInfo1514_get_enablesoftcompat(PyObject *obj, void *closure)
11086 struct srvsvc_NetSrvInfo1514 *object = (struct srvsvc_NetSrvInfo1514 *)pytalloc_get_ptr(obj);
11087 PyObject *py_enablesoftcompat;
11088 py_enablesoftcompat = PyInt_FromLong(object->enablesoftcompat);
11089 return py_enablesoftcompat;
11092 static int py_srvsvc_NetSrvInfo1514_set_enablesoftcompat(PyObject *py_obj, PyObject *value, void *closure)
11094 struct srvsvc_NetSrvInfo1514 *object = (struct srvsvc_NetSrvInfo1514 *)pytalloc_get_ptr(py_obj);
11095 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
11096 object->enablesoftcompat = PyInt_AsLong(value);
11100 static PyGetSetDef py_srvsvc_NetSrvInfo1514_getsetters[] = {
11101 { discard_const_p(char, "enablesoftcompat"), py_srvsvc_NetSrvInfo1514_get_enablesoftcompat, py_srvsvc_NetSrvInfo1514_set_enablesoftcompat },
11105 static PyObject *py_srvsvc_NetSrvInfo1514_new(PyTypeObject *type, PyObject *args, PyObject *kwargs)
11107 return pytalloc_new(struct srvsvc_NetSrvInfo1514, type);
11111 static PyTypeObject srvsvc_NetSrvInfo1514_Type = {
11112 PyObject_HEAD_INIT(NULL) 0,
11113 .tp_name = "srvsvc.NetSrvInfo1514",
11114 .tp_getset = py_srvsvc_NetSrvInfo1514_getsetters,
11115 .tp_methods = NULL,
11116 .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
11117 .tp_basicsize = sizeof(pytalloc_Object),
11118 .tp_new = py_srvsvc_NetSrvInfo1514_new,
11122 static PyObject *py_srvsvc_NetSrvInfo1515_get_enableforcedlogoff(PyObject *obj, void *closure)
11124 struct srvsvc_NetSrvInfo1515 *object = (struct srvsvc_NetSrvInfo1515 *)pytalloc_get_ptr(obj);
11125 PyObject *py_enableforcedlogoff;
11126 py_enableforcedlogoff = PyInt_FromLong(object->enableforcedlogoff);
11127 return py_enableforcedlogoff;
11130 static int py_srvsvc_NetSrvInfo1515_set_enableforcedlogoff(PyObject *py_obj, PyObject *value, void *closure)
11132 struct srvsvc_NetSrvInfo1515 *object = (struct srvsvc_NetSrvInfo1515 *)pytalloc_get_ptr(py_obj);
11133 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
11134 object->enableforcedlogoff = PyInt_AsLong(value);
11138 static PyGetSetDef py_srvsvc_NetSrvInfo1515_getsetters[] = {
11139 { discard_const_p(char, "enableforcedlogoff"), py_srvsvc_NetSrvInfo1515_get_enableforcedlogoff, py_srvsvc_NetSrvInfo1515_set_enableforcedlogoff },
11143 static PyObject *py_srvsvc_NetSrvInfo1515_new(PyTypeObject *type, PyObject *args, PyObject *kwargs)
11145 return pytalloc_new(struct srvsvc_NetSrvInfo1515, type);
11149 static PyTypeObject srvsvc_NetSrvInfo1515_Type = {
11150 PyObject_HEAD_INIT(NULL) 0,
11151 .tp_name = "srvsvc.NetSrvInfo1515",
11152 .tp_getset = py_srvsvc_NetSrvInfo1515_getsetters,
11153 .tp_methods = NULL,
11154 .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
11155 .tp_basicsize = sizeof(pytalloc_Object),
11156 .tp_new = py_srvsvc_NetSrvInfo1515_new,
11160 static PyObject *py_srvsvc_NetSrvInfo1516_get_timesource(PyObject *obj, void *closure)
11162 struct srvsvc_NetSrvInfo1516 *object = (struct srvsvc_NetSrvInfo1516 *)pytalloc_get_ptr(obj);
11163 PyObject *py_timesource;
11164 py_timesource = PyInt_FromLong(object->timesource);
11165 return py_timesource;
11168 static int py_srvsvc_NetSrvInfo1516_set_timesource(PyObject *py_obj, PyObject *value, void *closure)
11170 struct srvsvc_NetSrvInfo1516 *object = (struct srvsvc_NetSrvInfo1516 *)pytalloc_get_ptr(py_obj);
11171 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
11172 object->timesource = PyInt_AsLong(value);
11176 static PyGetSetDef py_srvsvc_NetSrvInfo1516_getsetters[] = {
11177 { discard_const_p(char, "timesource"), py_srvsvc_NetSrvInfo1516_get_timesource, py_srvsvc_NetSrvInfo1516_set_timesource },
11181 static PyObject *py_srvsvc_NetSrvInfo1516_new(PyTypeObject *type, PyObject *args, PyObject *kwargs)
11183 return pytalloc_new(struct srvsvc_NetSrvInfo1516, type);
11187 static PyTypeObject srvsvc_NetSrvInfo1516_Type = {
11188 PyObject_HEAD_INIT(NULL) 0,
11189 .tp_name = "srvsvc.NetSrvInfo1516",
11190 .tp_getset = py_srvsvc_NetSrvInfo1516_getsetters,
11191 .tp_methods = NULL,
11192 .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
11193 .tp_basicsize = sizeof(pytalloc_Object),
11194 .tp_new = py_srvsvc_NetSrvInfo1516_new,
11198 static PyObject *py_srvsvc_NetSrvInfo1518_get_lmannounce(PyObject *obj, void *closure)
11200 struct srvsvc_NetSrvInfo1518 *object = (struct srvsvc_NetSrvInfo1518 *)pytalloc_get_ptr(obj);
11201 PyObject *py_lmannounce;
11202 py_lmannounce = PyInt_FromLong(object->lmannounce);
11203 return py_lmannounce;
11206 static int py_srvsvc_NetSrvInfo1518_set_lmannounce(PyObject *py_obj, PyObject *value, void *closure)
11208 struct srvsvc_NetSrvInfo1518 *object = (struct srvsvc_NetSrvInfo1518 *)pytalloc_get_ptr(py_obj);
11209 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
11210 object->lmannounce = PyInt_AsLong(value);
11214 static PyGetSetDef py_srvsvc_NetSrvInfo1518_getsetters[] = {
11215 { discard_const_p(char, "lmannounce"), py_srvsvc_NetSrvInfo1518_get_lmannounce, py_srvsvc_NetSrvInfo1518_set_lmannounce },
11219 static PyObject *py_srvsvc_NetSrvInfo1518_new(PyTypeObject *type, PyObject *args, PyObject *kwargs)
11221 return pytalloc_new(struct srvsvc_NetSrvInfo1518, type);
11225 static PyTypeObject srvsvc_NetSrvInfo1518_Type = {
11226 PyObject_HEAD_INIT(NULL) 0,
11227 .tp_name = "srvsvc.NetSrvInfo1518",
11228 .tp_getset = py_srvsvc_NetSrvInfo1518_getsetters,
11229 .tp_methods = NULL,
11230 .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
11231 .tp_basicsize = sizeof(pytalloc_Object),
11232 .tp_new = py_srvsvc_NetSrvInfo1518_new,
11236 static PyObject *py_srvsvc_NetSrvInfo1520_get_maxcopyreadlen(PyObject *obj, void *closure)
11238 struct srvsvc_NetSrvInfo1520 *object = (struct srvsvc_NetSrvInfo1520 *)pytalloc_get_ptr(obj);
11239 PyObject *py_maxcopyreadlen;
11240 py_maxcopyreadlen = PyInt_FromLong(object->maxcopyreadlen);
11241 return py_maxcopyreadlen;
11244 static int py_srvsvc_NetSrvInfo1520_set_maxcopyreadlen(PyObject *py_obj, PyObject *value, void *closure)
11246 struct srvsvc_NetSrvInfo1520 *object = (struct srvsvc_NetSrvInfo1520 *)pytalloc_get_ptr(py_obj);
11247 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
11248 object->maxcopyreadlen = PyInt_AsLong(value);
11252 static PyGetSetDef py_srvsvc_NetSrvInfo1520_getsetters[] = {
11253 { discard_const_p(char, "maxcopyreadlen"), py_srvsvc_NetSrvInfo1520_get_maxcopyreadlen, py_srvsvc_NetSrvInfo1520_set_maxcopyreadlen },
11257 static PyObject *py_srvsvc_NetSrvInfo1520_new(PyTypeObject *type, PyObject *args, PyObject *kwargs)
11259 return pytalloc_new(struct srvsvc_NetSrvInfo1520, type);
11263 static PyTypeObject srvsvc_NetSrvInfo1520_Type = {
11264 PyObject_HEAD_INIT(NULL) 0,
11265 .tp_name = "srvsvc.NetSrvInfo1520",
11266 .tp_getset = py_srvsvc_NetSrvInfo1520_getsetters,
11267 .tp_methods = NULL,
11268 .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
11269 .tp_basicsize = sizeof(pytalloc_Object),
11270 .tp_new = py_srvsvc_NetSrvInfo1520_new,
11274 static PyObject *py_srvsvc_NetSrvInfo1521_get_maxcopywritelen(PyObject *obj, void *closure)
11276 struct srvsvc_NetSrvInfo1521 *object = (struct srvsvc_NetSrvInfo1521 *)pytalloc_get_ptr(obj);
11277 PyObject *py_maxcopywritelen;
11278 py_maxcopywritelen = PyInt_FromLong(object->maxcopywritelen);
11279 return py_maxcopywritelen;
11282 static int py_srvsvc_NetSrvInfo1521_set_maxcopywritelen(PyObject *py_obj, PyObject *value, void *closure)
11284 struct srvsvc_NetSrvInfo1521 *object = (struct srvsvc_NetSrvInfo1521 *)pytalloc_get_ptr(py_obj);
11285 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
11286 object->maxcopywritelen = PyInt_AsLong(value);
11290 static PyGetSetDef py_srvsvc_NetSrvInfo1521_getsetters[] = {
11291 { discard_const_p(char, "maxcopywritelen"), py_srvsvc_NetSrvInfo1521_get_maxcopywritelen, py_srvsvc_NetSrvInfo1521_set_maxcopywritelen },
11295 static PyObject *py_srvsvc_NetSrvInfo1521_new(PyTypeObject *type, PyObject *args, PyObject *kwargs)
11297 return pytalloc_new(struct srvsvc_NetSrvInfo1521, type);
11301 static PyTypeObject srvsvc_NetSrvInfo1521_Type = {
11302 PyObject_HEAD_INIT(NULL) 0,
11303 .tp_name = "srvsvc.NetSrvInfo1521",
11304 .tp_getset = py_srvsvc_NetSrvInfo1521_getsetters,
11305 .tp_methods = NULL,
11306 .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
11307 .tp_basicsize = sizeof(pytalloc_Object),
11308 .tp_new = py_srvsvc_NetSrvInfo1521_new,
11312 static PyObject *py_srvsvc_NetSrvInfo1522_get_minkeepsearch(PyObject *obj, void *closure)
11314 struct srvsvc_NetSrvInfo1522 *object = (struct srvsvc_NetSrvInfo1522 *)pytalloc_get_ptr(obj);
11315 PyObject *py_minkeepsearch;
11316 py_minkeepsearch = PyInt_FromLong(object->minkeepsearch);
11317 return py_minkeepsearch;
11320 static int py_srvsvc_NetSrvInfo1522_set_minkeepsearch(PyObject *py_obj, PyObject *value, void *closure)
11322 struct srvsvc_NetSrvInfo1522 *object = (struct srvsvc_NetSrvInfo1522 *)pytalloc_get_ptr(py_obj);
11323 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
11324 object->minkeepsearch = PyInt_AsLong(value);
11328 static PyGetSetDef py_srvsvc_NetSrvInfo1522_getsetters[] = {
11329 { discard_const_p(char, "minkeepsearch"), py_srvsvc_NetSrvInfo1522_get_minkeepsearch, py_srvsvc_NetSrvInfo1522_set_minkeepsearch },
11333 static PyObject *py_srvsvc_NetSrvInfo1522_new(PyTypeObject *type, PyObject *args, PyObject *kwargs)
11335 return pytalloc_new(struct srvsvc_NetSrvInfo1522, type);
11339 static PyTypeObject srvsvc_NetSrvInfo1522_Type = {
11340 PyObject_HEAD_INIT(NULL) 0,
11341 .tp_name = "srvsvc.NetSrvInfo1522",
11342 .tp_getset = py_srvsvc_NetSrvInfo1522_getsetters,
11343 .tp_methods = NULL,
11344 .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
11345 .tp_basicsize = sizeof(pytalloc_Object),
11346 .tp_new = py_srvsvc_NetSrvInfo1522_new,
11350 static PyObject *py_srvsvc_NetSrvInfo1523_get_maxkeepsearch(PyObject *obj, void *closure)
11352 struct srvsvc_NetSrvInfo1523 *object = (struct srvsvc_NetSrvInfo1523 *)pytalloc_get_ptr(obj);
11353 PyObject *py_maxkeepsearch;
11354 py_maxkeepsearch = PyInt_FromLong(object->maxkeepsearch);
11355 return py_maxkeepsearch;
11358 static int py_srvsvc_NetSrvInfo1523_set_maxkeepsearch(PyObject *py_obj, PyObject *value, void *closure)
11360 struct srvsvc_NetSrvInfo1523 *object = (struct srvsvc_NetSrvInfo1523 *)pytalloc_get_ptr(py_obj);
11361 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
11362 object->maxkeepsearch = PyInt_AsLong(value);
11366 static PyGetSetDef py_srvsvc_NetSrvInfo1523_getsetters[] = {
11367 { discard_const_p(char, "maxkeepsearch"), py_srvsvc_NetSrvInfo1523_get_maxkeepsearch, py_srvsvc_NetSrvInfo1523_set_maxkeepsearch },
11371 static PyObject *py_srvsvc_NetSrvInfo1523_new(PyTypeObject *type, PyObject *args, PyObject *kwargs)
11373 return pytalloc_new(struct srvsvc_NetSrvInfo1523, type);
11377 static PyTypeObject srvsvc_NetSrvInfo1523_Type = {
11378 PyObject_HEAD_INIT(NULL) 0,
11379 .tp_name = "srvsvc.NetSrvInfo1523",
11380 .tp_getset = py_srvsvc_NetSrvInfo1523_getsetters,
11381 .tp_methods = NULL,
11382 .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
11383 .tp_basicsize = sizeof(pytalloc_Object),
11384 .tp_new = py_srvsvc_NetSrvInfo1523_new,
11388 static PyObject *py_srvsvc_NetSrvInfo1524_get_minkeepcomplsearch(PyObject *obj, void *closure)
11390 struct srvsvc_NetSrvInfo1524 *object = (struct srvsvc_NetSrvInfo1524 *)pytalloc_get_ptr(obj);
11391 PyObject *py_minkeepcomplsearch;
11392 py_minkeepcomplsearch = PyInt_FromLong(object->minkeepcomplsearch);
11393 return py_minkeepcomplsearch;
11396 static int py_srvsvc_NetSrvInfo1524_set_minkeepcomplsearch(PyObject *py_obj, PyObject *value, void *closure)
11398 struct srvsvc_NetSrvInfo1524 *object = (struct srvsvc_NetSrvInfo1524 *)pytalloc_get_ptr(py_obj);
11399 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
11400 object->minkeepcomplsearch = PyInt_AsLong(value);
11404 static PyGetSetDef py_srvsvc_NetSrvInfo1524_getsetters[] = {
11405 { discard_const_p(char, "minkeepcomplsearch"), py_srvsvc_NetSrvInfo1524_get_minkeepcomplsearch, py_srvsvc_NetSrvInfo1524_set_minkeepcomplsearch },
11409 static PyObject *py_srvsvc_NetSrvInfo1524_new(PyTypeObject *type, PyObject *args, PyObject *kwargs)
11411 return pytalloc_new(struct srvsvc_NetSrvInfo1524, type);
11415 static PyTypeObject srvsvc_NetSrvInfo1524_Type = {
11416 PyObject_HEAD_INIT(NULL) 0,
11417 .tp_name = "srvsvc.NetSrvInfo1524",
11418 .tp_getset = py_srvsvc_NetSrvInfo1524_getsetters,
11419 .tp_methods = NULL,
11420 .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
11421 .tp_basicsize = sizeof(pytalloc_Object),
11422 .tp_new = py_srvsvc_NetSrvInfo1524_new,
11426 static PyObject *py_srvsvc_NetSrvInfo1525_get_maxkeepcomplsearch(PyObject *obj, void *closure)
11428 struct srvsvc_NetSrvInfo1525 *object = (struct srvsvc_NetSrvInfo1525 *)pytalloc_get_ptr(obj);
11429 PyObject *py_maxkeepcomplsearch;
11430 py_maxkeepcomplsearch = PyInt_FromLong(object->maxkeepcomplsearch);
11431 return py_maxkeepcomplsearch;
11434 static int py_srvsvc_NetSrvInfo1525_set_maxkeepcomplsearch(PyObject *py_obj, PyObject *value, void *closure)
11436 struct srvsvc_NetSrvInfo1525 *object = (struct srvsvc_NetSrvInfo1525 *)pytalloc_get_ptr(py_obj);
11437 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
11438 object->maxkeepcomplsearch = PyInt_AsLong(value);
11442 static PyGetSetDef py_srvsvc_NetSrvInfo1525_getsetters[] = {
11443 { discard_const_p(char, "maxkeepcomplsearch"), py_srvsvc_NetSrvInfo1525_get_maxkeepcomplsearch, py_srvsvc_NetSrvInfo1525_set_maxkeepcomplsearch },
11447 static PyObject *py_srvsvc_NetSrvInfo1525_new(PyTypeObject *type, PyObject *args, PyObject *kwargs)
11449 return pytalloc_new(struct srvsvc_NetSrvInfo1525, type);
11453 static PyTypeObject srvsvc_NetSrvInfo1525_Type = {
11454 PyObject_HEAD_INIT(NULL) 0,
11455 .tp_name = "srvsvc.NetSrvInfo1525",
11456 .tp_getset = py_srvsvc_NetSrvInfo1525_getsetters,
11457 .tp_methods = NULL,
11458 .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
11459 .tp_basicsize = sizeof(pytalloc_Object),
11460 .tp_new = py_srvsvc_NetSrvInfo1525_new,
11464 static PyObject *py_srvsvc_NetSrvInfo1528_get_scavtimeout(PyObject *obj, void *closure)
11466 struct srvsvc_NetSrvInfo1528 *object = (struct srvsvc_NetSrvInfo1528 *)pytalloc_get_ptr(obj);
11467 PyObject *py_scavtimeout;
11468 py_scavtimeout = PyInt_FromLong(object->scavtimeout);
11469 return py_scavtimeout;
11472 static int py_srvsvc_NetSrvInfo1528_set_scavtimeout(PyObject *py_obj, PyObject *value, void *closure)
11474 struct srvsvc_NetSrvInfo1528 *object = (struct srvsvc_NetSrvInfo1528 *)pytalloc_get_ptr(py_obj);
11475 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
11476 object->scavtimeout = PyInt_AsLong(value);
11480 static PyGetSetDef py_srvsvc_NetSrvInfo1528_getsetters[] = {
11481 { discard_const_p(char, "scavtimeout"), py_srvsvc_NetSrvInfo1528_get_scavtimeout, py_srvsvc_NetSrvInfo1528_set_scavtimeout },
11485 static PyObject *py_srvsvc_NetSrvInfo1528_new(PyTypeObject *type, PyObject *args, PyObject *kwargs)
11487 return pytalloc_new(struct srvsvc_NetSrvInfo1528, type);
11491 static PyTypeObject srvsvc_NetSrvInfo1528_Type = {
11492 PyObject_HEAD_INIT(NULL) 0,
11493 .tp_name = "srvsvc.NetSrvInfo1528",
11494 .tp_getset = py_srvsvc_NetSrvInfo1528_getsetters,
11495 .tp_methods = NULL,
11496 .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
11497 .tp_basicsize = sizeof(pytalloc_Object),
11498 .tp_new = py_srvsvc_NetSrvInfo1528_new,
11502 static PyObject *py_srvsvc_NetSrvInfo1529_get_minrcvqueue(PyObject *obj, void *closure)
11504 struct srvsvc_NetSrvInfo1529 *object = (struct srvsvc_NetSrvInfo1529 *)pytalloc_get_ptr(obj);
11505 PyObject *py_minrcvqueue;
11506 py_minrcvqueue = PyInt_FromLong(object->minrcvqueue);
11507 return py_minrcvqueue;
11510 static int py_srvsvc_NetSrvInfo1529_set_minrcvqueue(PyObject *py_obj, PyObject *value, void *closure)
11512 struct srvsvc_NetSrvInfo1529 *object = (struct srvsvc_NetSrvInfo1529 *)pytalloc_get_ptr(py_obj);
11513 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
11514 object->minrcvqueue = PyInt_AsLong(value);
11518 static PyGetSetDef py_srvsvc_NetSrvInfo1529_getsetters[] = {
11519 { discard_const_p(char, "minrcvqueue"), py_srvsvc_NetSrvInfo1529_get_minrcvqueue, py_srvsvc_NetSrvInfo1529_set_minrcvqueue },
11523 static PyObject *py_srvsvc_NetSrvInfo1529_new(PyTypeObject *type, PyObject *args, PyObject *kwargs)
11525 return pytalloc_new(struct srvsvc_NetSrvInfo1529, type);
11529 static PyTypeObject srvsvc_NetSrvInfo1529_Type = {
11530 PyObject_HEAD_INIT(NULL) 0,
11531 .tp_name = "srvsvc.NetSrvInfo1529",
11532 .tp_getset = py_srvsvc_NetSrvInfo1529_getsetters,
11533 .tp_methods = NULL,
11534 .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
11535 .tp_basicsize = sizeof(pytalloc_Object),
11536 .tp_new = py_srvsvc_NetSrvInfo1529_new,
11540 static PyObject *py_srvsvc_NetSrvInfo1530_get_minfreeworkitems(PyObject *obj, void *closure)
11542 struct srvsvc_NetSrvInfo1530 *object = (struct srvsvc_NetSrvInfo1530 *)pytalloc_get_ptr(obj);
11543 PyObject *py_minfreeworkitems;
11544 py_minfreeworkitems = PyInt_FromLong(object->minfreeworkitems);
11545 return py_minfreeworkitems;
11548 static int py_srvsvc_NetSrvInfo1530_set_minfreeworkitems(PyObject *py_obj, PyObject *value, void *closure)
11550 struct srvsvc_NetSrvInfo1530 *object = (struct srvsvc_NetSrvInfo1530 *)pytalloc_get_ptr(py_obj);
11551 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
11552 object->minfreeworkitems = PyInt_AsLong(value);
11556 static PyGetSetDef py_srvsvc_NetSrvInfo1530_getsetters[] = {
11557 { discard_const_p(char, "minfreeworkitems"), py_srvsvc_NetSrvInfo1530_get_minfreeworkitems, py_srvsvc_NetSrvInfo1530_set_minfreeworkitems },
11561 static PyObject *py_srvsvc_NetSrvInfo1530_new(PyTypeObject *type, PyObject *args, PyObject *kwargs)
11563 return pytalloc_new(struct srvsvc_NetSrvInfo1530, type);
11567 static PyTypeObject srvsvc_NetSrvInfo1530_Type = {
11568 PyObject_HEAD_INIT(NULL) 0,
11569 .tp_name = "srvsvc.NetSrvInfo1530",
11570 .tp_getset = py_srvsvc_NetSrvInfo1530_getsetters,
11571 .tp_methods = NULL,
11572 .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
11573 .tp_basicsize = sizeof(pytalloc_Object),
11574 .tp_new = py_srvsvc_NetSrvInfo1530_new,
11578 static PyObject *py_srvsvc_NetSrvInfo1533_get_maxmpxct(PyObject *obj, void *closure)
11580 struct srvsvc_NetSrvInfo1533 *object = (struct srvsvc_NetSrvInfo1533 *)pytalloc_get_ptr(obj);
11581 PyObject *py_maxmpxct;
11582 py_maxmpxct = PyInt_FromLong(object->maxmpxct);
11583 return py_maxmpxct;
11586 static int py_srvsvc_NetSrvInfo1533_set_maxmpxct(PyObject *py_obj, PyObject *value, void *closure)
11588 struct srvsvc_NetSrvInfo1533 *object = (struct srvsvc_NetSrvInfo1533 *)pytalloc_get_ptr(py_obj);
11589 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
11590 object->maxmpxct = PyInt_AsLong(value);
11594 static PyGetSetDef py_srvsvc_NetSrvInfo1533_getsetters[] = {
11595 { discard_const_p(char, "maxmpxct"), py_srvsvc_NetSrvInfo1533_get_maxmpxct, py_srvsvc_NetSrvInfo1533_set_maxmpxct },
11599 static PyObject *py_srvsvc_NetSrvInfo1533_new(PyTypeObject *type, PyObject *args, PyObject *kwargs)
11601 return pytalloc_new(struct srvsvc_NetSrvInfo1533, type);
11605 static PyTypeObject srvsvc_NetSrvInfo1533_Type = {
11606 PyObject_HEAD_INIT(NULL) 0,
11607 .tp_name = "srvsvc.NetSrvInfo1533",
11608 .tp_getset = py_srvsvc_NetSrvInfo1533_getsetters,
11609 .tp_methods = NULL,
11610 .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
11611 .tp_basicsize = sizeof(pytalloc_Object),
11612 .tp_new = py_srvsvc_NetSrvInfo1533_new,
11616 static PyObject *py_srvsvc_NetSrvInfo1534_get_oplockbreakwait(PyObject *obj, void *closure)
11618 struct srvsvc_NetSrvInfo1534 *object = (struct srvsvc_NetSrvInfo1534 *)pytalloc_get_ptr(obj);
11619 PyObject *py_oplockbreakwait;
11620 py_oplockbreakwait = PyInt_FromLong(object->oplockbreakwait);
11621 return py_oplockbreakwait;
11624 static int py_srvsvc_NetSrvInfo1534_set_oplockbreakwait(PyObject *py_obj, PyObject *value, void *closure)
11626 struct srvsvc_NetSrvInfo1534 *object = (struct srvsvc_NetSrvInfo1534 *)pytalloc_get_ptr(py_obj);
11627 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
11628 object->oplockbreakwait = PyInt_AsLong(value);
11632 static PyGetSetDef py_srvsvc_NetSrvInfo1534_getsetters[] = {
11633 { discard_const_p(char, "oplockbreakwait"), py_srvsvc_NetSrvInfo1534_get_oplockbreakwait, py_srvsvc_NetSrvInfo1534_set_oplockbreakwait },
11637 static PyObject *py_srvsvc_NetSrvInfo1534_new(PyTypeObject *type, PyObject *args, PyObject *kwargs)
11639 return pytalloc_new(struct srvsvc_NetSrvInfo1534, type);
11643 static PyTypeObject srvsvc_NetSrvInfo1534_Type = {
11644 PyObject_HEAD_INIT(NULL) 0,
11645 .tp_name = "srvsvc.NetSrvInfo1534",
11646 .tp_getset = py_srvsvc_NetSrvInfo1534_getsetters,
11647 .tp_methods = NULL,
11648 .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
11649 .tp_basicsize = sizeof(pytalloc_Object),
11650 .tp_new = py_srvsvc_NetSrvInfo1534_new,
11654 static PyObject *py_srvsvc_NetSrvInfo1535_get_oplockbreakresponsewait(PyObject *obj, void *closure)
11656 struct srvsvc_NetSrvInfo1535 *object = (struct srvsvc_NetSrvInfo1535 *)pytalloc_get_ptr(obj);
11657 PyObject *py_oplockbreakresponsewait;
11658 py_oplockbreakresponsewait = PyInt_FromLong(object->oplockbreakresponsewait);
11659 return py_oplockbreakresponsewait;
11662 static int py_srvsvc_NetSrvInfo1535_set_oplockbreakresponsewait(PyObject *py_obj, PyObject *value, void *closure)
11664 struct srvsvc_NetSrvInfo1535 *object = (struct srvsvc_NetSrvInfo1535 *)pytalloc_get_ptr(py_obj);
11665 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
11666 object->oplockbreakresponsewait = PyInt_AsLong(value);
11670 static PyGetSetDef py_srvsvc_NetSrvInfo1535_getsetters[] = {
11671 { discard_const_p(char, "oplockbreakresponsewait"), py_srvsvc_NetSrvInfo1535_get_oplockbreakresponsewait, py_srvsvc_NetSrvInfo1535_set_oplockbreakresponsewait },
11675 static PyObject *py_srvsvc_NetSrvInfo1535_new(PyTypeObject *type, PyObject *args, PyObject *kwargs)
11677 return pytalloc_new(struct srvsvc_NetSrvInfo1535, type);
11681 static PyTypeObject srvsvc_NetSrvInfo1535_Type = {
11682 PyObject_HEAD_INIT(NULL) 0,
11683 .tp_name = "srvsvc.NetSrvInfo1535",
11684 .tp_getset = py_srvsvc_NetSrvInfo1535_getsetters,
11685 .tp_methods = NULL,
11686 .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
11687 .tp_basicsize = sizeof(pytalloc_Object),
11688 .tp_new = py_srvsvc_NetSrvInfo1535_new,
11692 static PyObject *py_srvsvc_NetSrvInfo1536_get_enableoplocks(PyObject *obj, void *closure)
11694 struct srvsvc_NetSrvInfo1536 *object = (struct srvsvc_NetSrvInfo1536 *)pytalloc_get_ptr(obj);
11695 PyObject *py_enableoplocks;
11696 py_enableoplocks = PyInt_FromLong(object->enableoplocks);
11697 return py_enableoplocks;
11700 static int py_srvsvc_NetSrvInfo1536_set_enableoplocks(PyObject *py_obj, PyObject *value, void *closure)
11702 struct srvsvc_NetSrvInfo1536 *object = (struct srvsvc_NetSrvInfo1536 *)pytalloc_get_ptr(py_obj);
11703 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
11704 object->enableoplocks = PyInt_AsLong(value);
11708 static PyGetSetDef py_srvsvc_NetSrvInfo1536_getsetters[] = {
11709 { discard_const_p(char, "enableoplocks"), py_srvsvc_NetSrvInfo1536_get_enableoplocks, py_srvsvc_NetSrvInfo1536_set_enableoplocks },
11713 static PyObject *py_srvsvc_NetSrvInfo1536_new(PyTypeObject *type, PyObject *args, PyObject *kwargs)
11715 return pytalloc_new(struct srvsvc_NetSrvInfo1536, type);
11719 static PyTypeObject srvsvc_NetSrvInfo1536_Type = {
11720 PyObject_HEAD_INIT(NULL) 0,
11721 .tp_name = "srvsvc.NetSrvInfo1536",
11722 .tp_getset = py_srvsvc_NetSrvInfo1536_getsetters,
11723 .tp_methods = NULL,
11724 .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
11725 .tp_basicsize = sizeof(pytalloc_Object),
11726 .tp_new = py_srvsvc_NetSrvInfo1536_new,
11730 static PyObject *py_srvsvc_NetSrvInfo1537_get_enableoplockforceclose(PyObject *obj, void *closure)
11732 struct srvsvc_NetSrvInfo1537 *object = (struct srvsvc_NetSrvInfo1537 *)pytalloc_get_ptr(obj);
11733 PyObject *py_enableoplockforceclose;
11734 py_enableoplockforceclose = PyInt_FromLong(object->enableoplockforceclose);
11735 return py_enableoplockforceclose;
11738 static int py_srvsvc_NetSrvInfo1537_set_enableoplockforceclose(PyObject *py_obj, PyObject *value, void *closure)
11740 struct srvsvc_NetSrvInfo1537 *object = (struct srvsvc_NetSrvInfo1537 *)pytalloc_get_ptr(py_obj);
11741 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
11742 object->enableoplockforceclose = PyInt_AsLong(value);
11746 static PyGetSetDef py_srvsvc_NetSrvInfo1537_getsetters[] = {
11747 { discard_const_p(char, "enableoplockforceclose"), py_srvsvc_NetSrvInfo1537_get_enableoplockforceclose, py_srvsvc_NetSrvInfo1537_set_enableoplockforceclose },
11751 static PyObject *py_srvsvc_NetSrvInfo1537_new(PyTypeObject *type, PyObject *args, PyObject *kwargs)
11753 return pytalloc_new(struct srvsvc_NetSrvInfo1537, type);
11757 static PyTypeObject srvsvc_NetSrvInfo1537_Type = {
11758 PyObject_HEAD_INIT(NULL) 0,
11759 .tp_name = "srvsvc.NetSrvInfo1537",
11760 .tp_getset = py_srvsvc_NetSrvInfo1537_getsetters,
11761 .tp_methods = NULL,
11762 .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
11763 .tp_basicsize = sizeof(pytalloc_Object),
11764 .tp_new = py_srvsvc_NetSrvInfo1537_new,
11768 static PyObject *py_srvsvc_NetSrvInfo1538_get_enablefcbopens(PyObject *obj, void *closure)
11770 struct srvsvc_NetSrvInfo1538 *object = (struct srvsvc_NetSrvInfo1538 *)pytalloc_get_ptr(obj);
11771 PyObject *py_enablefcbopens;
11772 py_enablefcbopens = PyInt_FromLong(object->enablefcbopens);
11773 return py_enablefcbopens;
11776 static int py_srvsvc_NetSrvInfo1538_set_enablefcbopens(PyObject *py_obj, PyObject *value, void *closure)
11778 struct srvsvc_NetSrvInfo1538 *object = (struct srvsvc_NetSrvInfo1538 *)pytalloc_get_ptr(py_obj);
11779 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
11780 object->enablefcbopens = PyInt_AsLong(value);
11784 static PyGetSetDef py_srvsvc_NetSrvInfo1538_getsetters[] = {
11785 { discard_const_p(char, "enablefcbopens"), py_srvsvc_NetSrvInfo1538_get_enablefcbopens, py_srvsvc_NetSrvInfo1538_set_enablefcbopens },
11789 static PyObject *py_srvsvc_NetSrvInfo1538_new(PyTypeObject *type, PyObject *args, PyObject *kwargs)
11791 return pytalloc_new(struct srvsvc_NetSrvInfo1538, type);
11795 static PyTypeObject srvsvc_NetSrvInfo1538_Type = {
11796 PyObject_HEAD_INIT(NULL) 0,
11797 .tp_name = "srvsvc.NetSrvInfo1538",
11798 .tp_getset = py_srvsvc_NetSrvInfo1538_getsetters,
11799 .tp_methods = NULL,
11800 .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
11801 .tp_basicsize = sizeof(pytalloc_Object),
11802 .tp_new = py_srvsvc_NetSrvInfo1538_new,
11806 static PyObject *py_srvsvc_NetSrvInfo1539_get_enableraw(PyObject *obj, void *closure)
11808 struct srvsvc_NetSrvInfo1539 *object = (struct srvsvc_NetSrvInfo1539 *)pytalloc_get_ptr(obj);
11809 PyObject *py_enableraw;
11810 py_enableraw = PyInt_FromLong(object->enableraw);
11811 return py_enableraw;
11814 static int py_srvsvc_NetSrvInfo1539_set_enableraw(PyObject *py_obj, PyObject *value, void *closure)
11816 struct srvsvc_NetSrvInfo1539 *object = (struct srvsvc_NetSrvInfo1539 *)pytalloc_get_ptr(py_obj);
11817 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
11818 object->enableraw = PyInt_AsLong(value);
11822 static PyGetSetDef py_srvsvc_NetSrvInfo1539_getsetters[] = {
11823 { discard_const_p(char, "enableraw"), py_srvsvc_NetSrvInfo1539_get_enableraw, py_srvsvc_NetSrvInfo1539_set_enableraw },
11827 static PyObject *py_srvsvc_NetSrvInfo1539_new(PyTypeObject *type, PyObject *args, PyObject *kwargs)
11829 return pytalloc_new(struct srvsvc_NetSrvInfo1539, type);
11833 static PyTypeObject srvsvc_NetSrvInfo1539_Type = {
11834 PyObject_HEAD_INIT(NULL) 0,
11835 .tp_name = "srvsvc.NetSrvInfo1539",
11836 .tp_getset = py_srvsvc_NetSrvInfo1539_getsetters,
11837 .tp_methods = NULL,
11838 .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
11839 .tp_basicsize = sizeof(pytalloc_Object),
11840 .tp_new = py_srvsvc_NetSrvInfo1539_new,
11844 static PyObject *py_srvsvc_NetSrvInfo1540_get_enablesharednetdrives(PyObject *obj, void *closure)
11846 struct srvsvc_NetSrvInfo1540 *object = (struct srvsvc_NetSrvInfo1540 *)pytalloc_get_ptr(obj);
11847 PyObject *py_enablesharednetdrives;
11848 py_enablesharednetdrives = PyInt_FromLong(object->enablesharednetdrives);
11849 return py_enablesharednetdrives;
11852 static int py_srvsvc_NetSrvInfo1540_set_enablesharednetdrives(PyObject *py_obj, PyObject *value, void *closure)
11854 struct srvsvc_NetSrvInfo1540 *object = (struct srvsvc_NetSrvInfo1540 *)pytalloc_get_ptr(py_obj);
11855 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
11856 object->enablesharednetdrives = PyInt_AsLong(value);
11860 static PyGetSetDef py_srvsvc_NetSrvInfo1540_getsetters[] = {
11861 { discard_const_p(char, "enablesharednetdrives"), py_srvsvc_NetSrvInfo1540_get_enablesharednetdrives, py_srvsvc_NetSrvInfo1540_set_enablesharednetdrives },
11865 static PyObject *py_srvsvc_NetSrvInfo1540_new(PyTypeObject *type, PyObject *args, PyObject *kwargs)
11867 return pytalloc_new(struct srvsvc_NetSrvInfo1540, type);
11871 static PyTypeObject srvsvc_NetSrvInfo1540_Type = {
11872 PyObject_HEAD_INIT(NULL) 0,
11873 .tp_name = "srvsvc.NetSrvInfo1540",
11874 .tp_getset = py_srvsvc_NetSrvInfo1540_getsetters,
11875 .tp_methods = NULL,
11876 .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
11877 .tp_basicsize = sizeof(pytalloc_Object),
11878 .tp_new = py_srvsvc_NetSrvInfo1540_new,
11882 static PyObject *py_srvsvc_NetSrvInfo1541_get_minfreeconnections(PyObject *obj, void *closure)
11884 struct srvsvc_NetSrvInfo1541 *object = (struct srvsvc_NetSrvInfo1541 *)pytalloc_get_ptr(obj);
11885 PyObject *py_minfreeconnections;
11886 py_minfreeconnections = PyInt_FromLong(object->minfreeconnections);
11887 return py_minfreeconnections;
11890 static int py_srvsvc_NetSrvInfo1541_set_minfreeconnections(PyObject *py_obj, PyObject *value, void *closure)
11892 struct srvsvc_NetSrvInfo1541 *object = (struct srvsvc_NetSrvInfo1541 *)pytalloc_get_ptr(py_obj);
11893 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
11894 object->minfreeconnections = PyInt_AsLong(value);
11898 static PyGetSetDef py_srvsvc_NetSrvInfo1541_getsetters[] = {
11899 { discard_const_p(char, "minfreeconnections"), py_srvsvc_NetSrvInfo1541_get_minfreeconnections, py_srvsvc_NetSrvInfo1541_set_minfreeconnections },
11903 static PyObject *py_srvsvc_NetSrvInfo1541_new(PyTypeObject *type, PyObject *args, PyObject *kwargs)
11905 return pytalloc_new(struct srvsvc_NetSrvInfo1541, type);
11909 static PyTypeObject srvsvc_NetSrvInfo1541_Type = {
11910 PyObject_HEAD_INIT(NULL) 0,
11911 .tp_name = "srvsvc.NetSrvInfo1541",
11912 .tp_getset = py_srvsvc_NetSrvInfo1541_getsetters,
11913 .tp_methods = NULL,
11914 .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
11915 .tp_basicsize = sizeof(pytalloc_Object),
11916 .tp_new = py_srvsvc_NetSrvInfo1541_new,
11920 static PyObject *py_srvsvc_NetSrvInfo1542_get_maxfreeconnections(PyObject *obj, void *closure)
11922 struct srvsvc_NetSrvInfo1542 *object = (struct srvsvc_NetSrvInfo1542 *)pytalloc_get_ptr(obj);
11923 PyObject *py_maxfreeconnections;
11924 py_maxfreeconnections = PyInt_FromLong(object->maxfreeconnections);
11925 return py_maxfreeconnections;
11928 static int py_srvsvc_NetSrvInfo1542_set_maxfreeconnections(PyObject *py_obj, PyObject *value, void *closure)
11930 struct srvsvc_NetSrvInfo1542 *object = (struct srvsvc_NetSrvInfo1542 *)pytalloc_get_ptr(py_obj);
11931 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
11932 object->maxfreeconnections = PyInt_AsLong(value);
11936 static PyGetSetDef py_srvsvc_NetSrvInfo1542_getsetters[] = {
11937 { discard_const_p(char, "maxfreeconnections"), py_srvsvc_NetSrvInfo1542_get_maxfreeconnections, py_srvsvc_NetSrvInfo1542_set_maxfreeconnections },
11941 static PyObject *py_srvsvc_NetSrvInfo1542_new(PyTypeObject *type, PyObject *args, PyObject *kwargs)
11943 return pytalloc_new(struct srvsvc_NetSrvInfo1542, type);
11947 static PyTypeObject srvsvc_NetSrvInfo1542_Type = {
11948 PyObject_HEAD_INIT(NULL) 0,
11949 .tp_name = "srvsvc.NetSrvInfo1542",
11950 .tp_getset = py_srvsvc_NetSrvInfo1542_getsetters,
11951 .tp_methods = NULL,
11952 .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
11953 .tp_basicsize = sizeof(pytalloc_Object),
11954 .tp_new = py_srvsvc_NetSrvInfo1542_new,
11958 static PyObject *py_srvsvc_NetSrvInfo1543_get_initsesstable(PyObject *obj, void *closure)
11960 struct srvsvc_NetSrvInfo1543 *object = (struct srvsvc_NetSrvInfo1543 *)pytalloc_get_ptr(obj);
11961 PyObject *py_initsesstable;
11962 py_initsesstable = PyInt_FromLong(object->initsesstable);
11963 return py_initsesstable;
11966 static int py_srvsvc_NetSrvInfo1543_set_initsesstable(PyObject *py_obj, PyObject *value, void *closure)
11968 struct srvsvc_NetSrvInfo1543 *object = (struct srvsvc_NetSrvInfo1543 *)pytalloc_get_ptr(py_obj);
11969 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
11970 object->initsesstable = PyInt_AsLong(value);
11974 static PyGetSetDef py_srvsvc_NetSrvInfo1543_getsetters[] = {
11975 { discard_const_p(char, "initsesstable"), py_srvsvc_NetSrvInfo1543_get_initsesstable, py_srvsvc_NetSrvInfo1543_set_initsesstable },
11979 static PyObject *py_srvsvc_NetSrvInfo1543_new(PyTypeObject *type, PyObject *args, PyObject *kwargs)
11981 return pytalloc_new(struct srvsvc_NetSrvInfo1543, type);
11985 static PyTypeObject srvsvc_NetSrvInfo1543_Type = {
11986 PyObject_HEAD_INIT(NULL) 0,
11987 .tp_name = "srvsvc.NetSrvInfo1543",
11988 .tp_getset = py_srvsvc_NetSrvInfo1543_getsetters,
11989 .tp_methods = NULL,
11990 .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
11991 .tp_basicsize = sizeof(pytalloc_Object),
11992 .tp_new = py_srvsvc_NetSrvInfo1543_new,
11996 static PyObject *py_srvsvc_NetSrvInfo1544_get_initconntable(PyObject *obj, void *closure)
11998 struct srvsvc_NetSrvInfo1544 *object = (struct srvsvc_NetSrvInfo1544 *)pytalloc_get_ptr(obj);
11999 PyObject *py_initconntable;
12000 py_initconntable = PyInt_FromLong(object->initconntable);
12001 return py_initconntable;
12004 static int py_srvsvc_NetSrvInfo1544_set_initconntable(PyObject *py_obj, PyObject *value, void *closure)
12006 struct srvsvc_NetSrvInfo1544 *object = (struct srvsvc_NetSrvInfo1544 *)pytalloc_get_ptr(py_obj);
12007 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
12008 object->initconntable = PyInt_AsLong(value);
12012 static PyGetSetDef py_srvsvc_NetSrvInfo1544_getsetters[] = {
12013 { discard_const_p(char, "initconntable"), py_srvsvc_NetSrvInfo1544_get_initconntable, py_srvsvc_NetSrvInfo1544_set_initconntable },
12017 static PyObject *py_srvsvc_NetSrvInfo1544_new(PyTypeObject *type, PyObject *args, PyObject *kwargs)
12019 return pytalloc_new(struct srvsvc_NetSrvInfo1544, type);
12023 static PyTypeObject srvsvc_NetSrvInfo1544_Type = {
12024 PyObject_HEAD_INIT(NULL) 0,
12025 .tp_name = "srvsvc.NetSrvInfo1544",
12026 .tp_getset = py_srvsvc_NetSrvInfo1544_getsetters,
12027 .tp_methods = NULL,
12028 .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
12029 .tp_basicsize = sizeof(pytalloc_Object),
12030 .tp_new = py_srvsvc_NetSrvInfo1544_new,
12034 static PyObject *py_srvsvc_NetSrvInfo1545_get_initfiletable(PyObject *obj, void *closure)
12036 struct srvsvc_NetSrvInfo1545 *object = (struct srvsvc_NetSrvInfo1545 *)pytalloc_get_ptr(obj);
12037 PyObject *py_initfiletable;
12038 py_initfiletable = PyInt_FromLong(object->initfiletable);
12039 return py_initfiletable;
12042 static int py_srvsvc_NetSrvInfo1545_set_initfiletable(PyObject *py_obj, PyObject *value, void *closure)
12044 struct srvsvc_NetSrvInfo1545 *object = (struct srvsvc_NetSrvInfo1545 *)pytalloc_get_ptr(py_obj);
12045 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
12046 object->initfiletable = PyInt_AsLong(value);
12050 static PyGetSetDef py_srvsvc_NetSrvInfo1545_getsetters[] = {
12051 { discard_const_p(char, "initfiletable"), py_srvsvc_NetSrvInfo1545_get_initfiletable, py_srvsvc_NetSrvInfo1545_set_initfiletable },
12055 static PyObject *py_srvsvc_NetSrvInfo1545_new(PyTypeObject *type, PyObject *args, PyObject *kwargs)
12057 return pytalloc_new(struct srvsvc_NetSrvInfo1545, type);
12061 static PyTypeObject srvsvc_NetSrvInfo1545_Type = {
12062 PyObject_HEAD_INIT(NULL) 0,
12063 .tp_name = "srvsvc.NetSrvInfo1545",
12064 .tp_getset = py_srvsvc_NetSrvInfo1545_getsetters,
12065 .tp_methods = NULL,
12066 .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
12067 .tp_basicsize = sizeof(pytalloc_Object),
12068 .tp_new = py_srvsvc_NetSrvInfo1545_new,
12072 static PyObject *py_srvsvc_NetSrvInfo1546_get_initsearchtable(PyObject *obj, void *closure)
12074 struct srvsvc_NetSrvInfo1546 *object = (struct srvsvc_NetSrvInfo1546 *)pytalloc_get_ptr(obj);
12075 PyObject *py_initsearchtable;
12076 py_initsearchtable = PyInt_FromLong(object->initsearchtable);
12077 return py_initsearchtable;
12080 static int py_srvsvc_NetSrvInfo1546_set_initsearchtable(PyObject *py_obj, PyObject *value, void *closure)
12082 struct srvsvc_NetSrvInfo1546 *object = (struct srvsvc_NetSrvInfo1546 *)pytalloc_get_ptr(py_obj);
12083 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
12084 object->initsearchtable = PyInt_AsLong(value);
12088 static PyGetSetDef py_srvsvc_NetSrvInfo1546_getsetters[] = {
12089 { discard_const_p(char, "initsearchtable"), py_srvsvc_NetSrvInfo1546_get_initsearchtable, py_srvsvc_NetSrvInfo1546_set_initsearchtable },
12093 static PyObject *py_srvsvc_NetSrvInfo1546_new(PyTypeObject *type, PyObject *args, PyObject *kwargs)
12095 return pytalloc_new(struct srvsvc_NetSrvInfo1546, type);
12099 static PyTypeObject srvsvc_NetSrvInfo1546_Type = {
12100 PyObject_HEAD_INIT(NULL) 0,
12101 .tp_name = "srvsvc.NetSrvInfo1546",
12102 .tp_getset = py_srvsvc_NetSrvInfo1546_getsetters,
12103 .tp_methods = NULL,
12104 .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
12105 .tp_basicsize = sizeof(pytalloc_Object),
12106 .tp_new = py_srvsvc_NetSrvInfo1546_new,
12110 static PyObject *py_srvsvc_NetSrvInfo1547_get_alertsched(PyObject *obj, void *closure)
12112 struct srvsvc_NetSrvInfo1547 *object = (struct srvsvc_NetSrvInfo1547 *)pytalloc_get_ptr(obj);
12113 PyObject *py_alertsched;
12114 py_alertsched = PyInt_FromLong(object->alertsched);
12115 return py_alertsched;
12118 static int py_srvsvc_NetSrvInfo1547_set_alertsched(PyObject *py_obj, PyObject *value, void *closure)
12120 struct srvsvc_NetSrvInfo1547 *object = (struct srvsvc_NetSrvInfo1547 *)pytalloc_get_ptr(py_obj);
12121 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
12122 object->alertsched = PyInt_AsLong(value);
12126 static PyGetSetDef py_srvsvc_NetSrvInfo1547_getsetters[] = {
12127 { discard_const_p(char, "alertsched"), py_srvsvc_NetSrvInfo1547_get_alertsched, py_srvsvc_NetSrvInfo1547_set_alertsched },
12131 static PyObject *py_srvsvc_NetSrvInfo1547_new(PyTypeObject *type, PyObject *args, PyObject *kwargs)
12133 return pytalloc_new(struct srvsvc_NetSrvInfo1547, type);
12137 static PyTypeObject srvsvc_NetSrvInfo1547_Type = {
12138 PyObject_HEAD_INIT(NULL) 0,
12139 .tp_name = "srvsvc.NetSrvInfo1547",
12140 .tp_getset = py_srvsvc_NetSrvInfo1547_getsetters,
12141 .tp_methods = NULL,
12142 .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
12143 .tp_basicsize = sizeof(pytalloc_Object),
12144 .tp_new = py_srvsvc_NetSrvInfo1547_new,
12148 static PyObject *py_srvsvc_NetSrvInfo1548_get_errortreshold(PyObject *obj, void *closure)
12150 struct srvsvc_NetSrvInfo1548 *object = (struct srvsvc_NetSrvInfo1548 *)pytalloc_get_ptr(obj);
12151 PyObject *py_errortreshold;
12152 py_errortreshold = PyInt_FromLong(object->errortreshold);
12153 return py_errortreshold;
12156 static int py_srvsvc_NetSrvInfo1548_set_errortreshold(PyObject *py_obj, PyObject *value, void *closure)
12158 struct srvsvc_NetSrvInfo1548 *object = (struct srvsvc_NetSrvInfo1548 *)pytalloc_get_ptr(py_obj);
12159 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
12160 object->errortreshold = PyInt_AsLong(value);
12164 static PyGetSetDef py_srvsvc_NetSrvInfo1548_getsetters[] = {
12165 { discard_const_p(char, "errortreshold"), py_srvsvc_NetSrvInfo1548_get_errortreshold, py_srvsvc_NetSrvInfo1548_set_errortreshold },
12169 static PyObject *py_srvsvc_NetSrvInfo1548_new(PyTypeObject *type, PyObject *args, PyObject *kwargs)
12171 return pytalloc_new(struct srvsvc_NetSrvInfo1548, type);
12175 static PyTypeObject srvsvc_NetSrvInfo1548_Type = {
12176 PyObject_HEAD_INIT(NULL) 0,
12177 .tp_name = "srvsvc.NetSrvInfo1548",
12178 .tp_getset = py_srvsvc_NetSrvInfo1548_getsetters,
12179 .tp_methods = NULL,
12180 .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
12181 .tp_basicsize = sizeof(pytalloc_Object),
12182 .tp_new = py_srvsvc_NetSrvInfo1548_new,
12186 static PyObject *py_srvsvc_NetSrvInfo1549_get_networkerrortreshold(PyObject *obj, void *closure)
12188 struct srvsvc_NetSrvInfo1549 *object = (struct srvsvc_NetSrvInfo1549 *)pytalloc_get_ptr(obj);
12189 PyObject *py_networkerrortreshold;
12190 py_networkerrortreshold = PyInt_FromLong(object->networkerrortreshold);
12191 return py_networkerrortreshold;
12194 static int py_srvsvc_NetSrvInfo1549_set_networkerrortreshold(PyObject *py_obj, PyObject *value, void *closure)
12196 struct srvsvc_NetSrvInfo1549 *object = (struct srvsvc_NetSrvInfo1549 *)pytalloc_get_ptr(py_obj);
12197 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
12198 object->networkerrortreshold = PyInt_AsLong(value);
12202 static PyGetSetDef py_srvsvc_NetSrvInfo1549_getsetters[] = {
12203 { discard_const_p(char, "networkerrortreshold"), py_srvsvc_NetSrvInfo1549_get_networkerrortreshold, py_srvsvc_NetSrvInfo1549_set_networkerrortreshold },
12207 static PyObject *py_srvsvc_NetSrvInfo1549_new(PyTypeObject *type, PyObject *args, PyObject *kwargs)
12209 return pytalloc_new(struct srvsvc_NetSrvInfo1549, type);
12213 static PyTypeObject srvsvc_NetSrvInfo1549_Type = {
12214 PyObject_HEAD_INIT(NULL) 0,
12215 .tp_name = "srvsvc.NetSrvInfo1549",
12216 .tp_getset = py_srvsvc_NetSrvInfo1549_getsetters,
12217 .tp_methods = NULL,
12218 .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
12219 .tp_basicsize = sizeof(pytalloc_Object),
12220 .tp_new = py_srvsvc_NetSrvInfo1549_new,
12224 static PyObject *py_srvsvc_NetSrvInfo1550_get_diskspacetreshold(PyObject *obj, void *closure)
12226 struct srvsvc_NetSrvInfo1550 *object = (struct srvsvc_NetSrvInfo1550 *)pytalloc_get_ptr(obj);
12227 PyObject *py_diskspacetreshold;
12228 py_diskspacetreshold = PyInt_FromLong(object->diskspacetreshold);
12229 return py_diskspacetreshold;
12232 static int py_srvsvc_NetSrvInfo1550_set_diskspacetreshold(PyObject *py_obj, PyObject *value, void *closure)
12234 struct srvsvc_NetSrvInfo1550 *object = (struct srvsvc_NetSrvInfo1550 *)pytalloc_get_ptr(py_obj);
12235 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
12236 object->diskspacetreshold = PyInt_AsLong(value);
12240 static PyGetSetDef py_srvsvc_NetSrvInfo1550_getsetters[] = {
12241 { discard_const_p(char, "diskspacetreshold"), py_srvsvc_NetSrvInfo1550_get_diskspacetreshold, py_srvsvc_NetSrvInfo1550_set_diskspacetreshold },
12245 static PyObject *py_srvsvc_NetSrvInfo1550_new(PyTypeObject *type, PyObject *args, PyObject *kwargs)
12247 return pytalloc_new(struct srvsvc_NetSrvInfo1550, type);
12251 static PyTypeObject srvsvc_NetSrvInfo1550_Type = {
12252 PyObject_HEAD_INIT(NULL) 0,
12253 .tp_name = "srvsvc.NetSrvInfo1550",
12254 .tp_getset = py_srvsvc_NetSrvInfo1550_getsetters,
12255 .tp_methods = NULL,
12256 .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
12257 .tp_basicsize = sizeof(pytalloc_Object),
12258 .tp_new = py_srvsvc_NetSrvInfo1550_new,
12262 static PyObject *py_srvsvc_NetSrvInfo1552_get_maxlinkdelay(PyObject *obj, void *closure)
12264 struct srvsvc_NetSrvInfo1552 *object = (struct srvsvc_NetSrvInfo1552 *)pytalloc_get_ptr(obj);
12265 PyObject *py_maxlinkdelay;
12266 py_maxlinkdelay = PyInt_FromLong(object->maxlinkdelay);
12267 return py_maxlinkdelay;
12270 static int py_srvsvc_NetSrvInfo1552_set_maxlinkdelay(PyObject *py_obj, PyObject *value, void *closure)
12272 struct srvsvc_NetSrvInfo1552 *object = (struct srvsvc_NetSrvInfo1552 *)pytalloc_get_ptr(py_obj);
12273 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
12274 object->maxlinkdelay = PyInt_AsLong(value);
12278 static PyGetSetDef py_srvsvc_NetSrvInfo1552_getsetters[] = {
12279 { discard_const_p(char, "maxlinkdelay"), py_srvsvc_NetSrvInfo1552_get_maxlinkdelay, py_srvsvc_NetSrvInfo1552_set_maxlinkdelay },
12283 static PyObject *py_srvsvc_NetSrvInfo1552_new(PyTypeObject *type, PyObject *args, PyObject *kwargs)
12285 return pytalloc_new(struct srvsvc_NetSrvInfo1552, type);
12289 static PyTypeObject srvsvc_NetSrvInfo1552_Type = {
12290 PyObject_HEAD_INIT(NULL) 0,
12291 .tp_name = "srvsvc.NetSrvInfo1552",
12292 .tp_getset = py_srvsvc_NetSrvInfo1552_getsetters,
12293 .tp_methods = NULL,
12294 .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
12295 .tp_basicsize = sizeof(pytalloc_Object),
12296 .tp_new = py_srvsvc_NetSrvInfo1552_new,
12300 static PyObject *py_srvsvc_NetSrvInfo1553_get_minlinkthroughput(PyObject *obj, void *closure)
12302 struct srvsvc_NetSrvInfo1553 *object = (struct srvsvc_NetSrvInfo1553 *)pytalloc_get_ptr(obj);
12303 PyObject *py_minlinkthroughput;
12304 py_minlinkthroughput = PyInt_FromLong(object->minlinkthroughput);
12305 return py_minlinkthroughput;
12308 static int py_srvsvc_NetSrvInfo1553_set_minlinkthroughput(PyObject *py_obj, PyObject *value, void *closure)
12310 struct srvsvc_NetSrvInfo1553 *object = (struct srvsvc_NetSrvInfo1553 *)pytalloc_get_ptr(py_obj);
12311 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
12312 object->minlinkthroughput = PyInt_AsLong(value);
12316 static PyGetSetDef py_srvsvc_NetSrvInfo1553_getsetters[] = {
12317 { discard_const_p(char, "minlinkthroughput"), py_srvsvc_NetSrvInfo1553_get_minlinkthroughput, py_srvsvc_NetSrvInfo1553_set_minlinkthroughput },
12321 static PyObject *py_srvsvc_NetSrvInfo1553_new(PyTypeObject *type, PyObject *args, PyObject *kwargs)
12323 return pytalloc_new(struct srvsvc_NetSrvInfo1553, type);
12327 static PyTypeObject srvsvc_NetSrvInfo1553_Type = {
12328 PyObject_HEAD_INIT(NULL) 0,
12329 .tp_name = "srvsvc.NetSrvInfo1553",
12330 .tp_getset = py_srvsvc_NetSrvInfo1553_getsetters,
12331 .tp_methods = NULL,
12332 .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
12333 .tp_basicsize = sizeof(pytalloc_Object),
12334 .tp_new = py_srvsvc_NetSrvInfo1553_new,
12338 static PyObject *py_srvsvc_NetSrvInfo1554_get_linkinfovalidtime(PyObject *obj, void *closure)
12340 struct srvsvc_NetSrvInfo1554 *object = (struct srvsvc_NetSrvInfo1554 *)pytalloc_get_ptr(obj);
12341 PyObject *py_linkinfovalidtime;
12342 py_linkinfovalidtime = PyInt_FromLong(object->linkinfovalidtime);
12343 return py_linkinfovalidtime;
12346 static int py_srvsvc_NetSrvInfo1554_set_linkinfovalidtime(PyObject *py_obj, PyObject *value, void *closure)
12348 struct srvsvc_NetSrvInfo1554 *object = (struct srvsvc_NetSrvInfo1554 *)pytalloc_get_ptr(py_obj);
12349 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
12350 object->linkinfovalidtime = PyInt_AsLong(value);
12354 static PyGetSetDef py_srvsvc_NetSrvInfo1554_getsetters[] = {
12355 { discard_const_p(char, "linkinfovalidtime"), py_srvsvc_NetSrvInfo1554_get_linkinfovalidtime, py_srvsvc_NetSrvInfo1554_set_linkinfovalidtime },
12359 static PyObject *py_srvsvc_NetSrvInfo1554_new(PyTypeObject *type, PyObject *args, PyObject *kwargs)
12361 return pytalloc_new(struct srvsvc_NetSrvInfo1554, type);
12365 static PyTypeObject srvsvc_NetSrvInfo1554_Type = {
12366 PyObject_HEAD_INIT(NULL) 0,
12367 .tp_name = "srvsvc.NetSrvInfo1554",
12368 .tp_getset = py_srvsvc_NetSrvInfo1554_getsetters,
12369 .tp_methods = NULL,
12370 .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
12371 .tp_basicsize = sizeof(pytalloc_Object),
12372 .tp_new = py_srvsvc_NetSrvInfo1554_new,
12376 static PyObject *py_srvsvc_NetSrvInfo1555_get_scavqosinfoupdatetime(PyObject *obj, void *closure)
12378 struct srvsvc_NetSrvInfo1555 *object = (struct srvsvc_NetSrvInfo1555 *)pytalloc_get_ptr(obj);
12379 PyObject *py_scavqosinfoupdatetime;
12380 py_scavqosinfoupdatetime = PyInt_FromLong(object->scavqosinfoupdatetime);
12381 return py_scavqosinfoupdatetime;
12384 static int py_srvsvc_NetSrvInfo1555_set_scavqosinfoupdatetime(PyObject *py_obj, PyObject *value, void *closure)
12386 struct srvsvc_NetSrvInfo1555 *object = (struct srvsvc_NetSrvInfo1555 *)pytalloc_get_ptr(py_obj);
12387 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
12388 object->scavqosinfoupdatetime = PyInt_AsLong(value);
12392 static PyGetSetDef py_srvsvc_NetSrvInfo1555_getsetters[] = {
12393 { discard_const_p(char, "scavqosinfoupdatetime"), py_srvsvc_NetSrvInfo1555_get_scavqosinfoupdatetime, py_srvsvc_NetSrvInfo1555_set_scavqosinfoupdatetime },
12397 static PyObject *py_srvsvc_NetSrvInfo1555_new(PyTypeObject *type, PyObject *args, PyObject *kwargs)
12399 return pytalloc_new(struct srvsvc_NetSrvInfo1555, type);
12403 static PyTypeObject srvsvc_NetSrvInfo1555_Type = {
12404 PyObject_HEAD_INIT(NULL) 0,
12405 .tp_name = "srvsvc.NetSrvInfo1555",
12406 .tp_getset = py_srvsvc_NetSrvInfo1555_getsetters,
12407 .tp_methods = NULL,
12408 .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
12409 .tp_basicsize = sizeof(pytalloc_Object),
12410 .tp_new = py_srvsvc_NetSrvInfo1555_new,
12414 static PyObject *py_srvsvc_NetSrvInfo1556_get_maxworkitemidletime(PyObject *obj, void *closure)
12416 struct srvsvc_NetSrvInfo1556 *object = (struct srvsvc_NetSrvInfo1556 *)pytalloc_get_ptr(obj);
12417 PyObject *py_maxworkitemidletime;
12418 py_maxworkitemidletime = PyInt_FromLong(object->maxworkitemidletime);
12419 return py_maxworkitemidletime;
12422 static int py_srvsvc_NetSrvInfo1556_set_maxworkitemidletime(PyObject *py_obj, PyObject *value, void *closure)
12424 struct srvsvc_NetSrvInfo1556 *object = (struct srvsvc_NetSrvInfo1556 *)pytalloc_get_ptr(py_obj);
12425 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
12426 object->maxworkitemidletime = PyInt_AsLong(value);
12430 static PyGetSetDef py_srvsvc_NetSrvInfo1556_getsetters[] = {
12431 { discard_const_p(char, "maxworkitemidletime"), py_srvsvc_NetSrvInfo1556_get_maxworkitemidletime, py_srvsvc_NetSrvInfo1556_set_maxworkitemidletime },
12435 static PyObject *py_srvsvc_NetSrvInfo1556_new(PyTypeObject *type, PyObject *args, PyObject *kwargs)
12437 return pytalloc_new(struct srvsvc_NetSrvInfo1556, type);
12441 static PyTypeObject srvsvc_NetSrvInfo1556_Type = {
12442 PyObject_HEAD_INIT(NULL) 0,
12443 .tp_name = "srvsvc.NetSrvInfo1556",
12444 .tp_getset = py_srvsvc_NetSrvInfo1556_getsetters,
12445 .tp_methods = NULL,
12446 .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
12447 .tp_basicsize = sizeof(pytalloc_Object),
12448 .tp_new = py_srvsvc_NetSrvInfo1556_new,
12451 PyObject *py_import_srvsvc_NetSrvInfo(TALLOC_CTX *mem_ctx, int level, union srvsvc_NetSrvInfo *in)
12457 if (in->info100 == NULL) {
12461 ret = pytalloc_reference_ex(&srvsvc_NetSrvInfo100_Type, in->info100, in->info100);
12466 if (in->info101 == NULL) {
12470 ret = pytalloc_reference_ex(&srvsvc_NetSrvInfo101_Type, in->info101, in->info101);
12475 if (in->info102 == NULL) {
12479 ret = pytalloc_reference_ex(&srvsvc_NetSrvInfo102_Type, in->info102, in->info102);
12484 if (in->info402 == NULL) {
12488 ret = pytalloc_reference_ex(&srvsvc_NetSrvInfo402_Type, in->info402, in->info402);
12493 if (in->info403 == NULL) {
12497 ret = pytalloc_reference_ex(&srvsvc_NetSrvInfo403_Type, in->info403, in->info403);
12502 if (in->info502 == NULL) {
12506 ret = pytalloc_reference_ex(&srvsvc_NetSrvInfo502_Type, in->info502, in->info502);
12511 if (in->info503 == NULL) {
12515 ret = pytalloc_reference_ex(&srvsvc_NetSrvInfo503_Type, in->info503, in->info503);
12520 if (in->info599 == NULL) {
12524 ret = pytalloc_reference_ex(&srvsvc_NetSrvInfo599_Type, in->info599, in->info599);
12529 if (in->info1005 == NULL) {
12533 ret = pytalloc_reference_ex(&srvsvc_NetSrvInfo1005_Type, in->info1005, in->info1005);
12538 if (in->info1010 == NULL) {
12542 ret = pytalloc_reference_ex(&srvsvc_NetSrvInfo1010_Type, in->info1010, in->info1010);
12547 if (in->info1016 == NULL) {
12551 ret = pytalloc_reference_ex(&srvsvc_NetSrvInfo1016_Type, in->info1016, in->info1016);
12556 if (in->info1017 == NULL) {
12560 ret = pytalloc_reference_ex(&srvsvc_NetSrvInfo1017_Type, in->info1017, in->info1017);
12565 if (in->info1018 == NULL) {
12569 ret = pytalloc_reference_ex(&srvsvc_NetSrvInfo1018_Type, in->info1018, in->info1018);
12574 if (in->info1107 == NULL) {
12578 ret = pytalloc_reference_ex(&srvsvc_NetSrvInfo1107_Type, in->info1107, in->info1107);
12583 if (in->info1501 == NULL) {
12587 ret = pytalloc_reference_ex(&srvsvc_NetSrvInfo1501_Type, in->info1501, in->info1501);
12592 if (in->info1502 == NULL) {
12596 ret = pytalloc_reference_ex(&srvsvc_NetSrvInfo1502_Type, in->info1502, in->info1502);
12601 if (in->info1503 == NULL) {
12605 ret = pytalloc_reference_ex(&srvsvc_NetSrvInfo1503_Type, in->info1503, in->info1503);
12610 if (in->info1506 == NULL) {
12614 ret = pytalloc_reference_ex(&srvsvc_NetSrvInfo1506_Type, in->info1506, in->info1506);
12619 if (in->info1509 == NULL) {
12623 ret = pytalloc_reference_ex(&srvsvc_NetSrvInfo1509_Type, in->info1509, in->info1509);
12628 if (in->info1510 == NULL) {
12632 ret = pytalloc_reference_ex(&srvsvc_NetSrvInfo1510_Type, in->info1510, in->info1510);
12637 if (in->info1511 == NULL) {
12641 ret = pytalloc_reference_ex(&srvsvc_NetSrvInfo1511_Type, in->info1511, in->info1511);
12646 if (in->info1512 == NULL) {
12650 ret = pytalloc_reference_ex(&srvsvc_NetSrvInfo1512_Type, in->info1512, in->info1512);
12655 if (in->info1513 == NULL) {
12659 ret = pytalloc_reference_ex(&srvsvc_NetSrvInfo1513_Type, in->info1513, in->info1513);
12664 if (in->info1514 == NULL) {
12668 ret = pytalloc_reference_ex(&srvsvc_NetSrvInfo1514_Type, in->info1514, in->info1514);
12673 if (in->info1515 == NULL) {
12677 ret = pytalloc_reference_ex(&srvsvc_NetSrvInfo1515_Type, in->info1515, in->info1515);
12682 if (in->info1516 == NULL) {
12686 ret = pytalloc_reference_ex(&srvsvc_NetSrvInfo1516_Type, in->info1516, in->info1516);
12691 if (in->info1518 == NULL) {
12695 ret = pytalloc_reference_ex(&srvsvc_NetSrvInfo1518_Type, in->info1518, in->info1518);
12700 if (in->info1520 == NULL) {
12704 ret = pytalloc_reference_ex(&srvsvc_NetSrvInfo1520_Type, in->info1520, in->info1520);
12709 if (in->info1521 == NULL) {
12713 ret = pytalloc_reference_ex(&srvsvc_NetSrvInfo1521_Type, in->info1521, in->info1521);
12718 if (in->info1522 == NULL) {
12722 ret = pytalloc_reference_ex(&srvsvc_NetSrvInfo1522_Type, in->info1522, in->info1522);
12727 if (in->info1523 == NULL) {
12731 ret = pytalloc_reference_ex(&srvsvc_NetSrvInfo1523_Type, in->info1523, in->info1523);
12736 if (in->info1524 == NULL) {
12740 ret = pytalloc_reference_ex(&srvsvc_NetSrvInfo1524_Type, in->info1524, in->info1524);
12745 if (in->info1525 == NULL) {
12749 ret = pytalloc_reference_ex(&srvsvc_NetSrvInfo1525_Type, in->info1525, in->info1525);
12754 if (in->info1528 == NULL) {
12758 ret = pytalloc_reference_ex(&srvsvc_NetSrvInfo1528_Type, in->info1528, in->info1528);
12763 if (in->info1529 == NULL) {
12767 ret = pytalloc_reference_ex(&srvsvc_NetSrvInfo1529_Type, in->info1529, in->info1529);
12772 if (in->info1530 == NULL) {
12776 ret = pytalloc_reference_ex(&srvsvc_NetSrvInfo1530_Type, in->info1530, in->info1530);
12781 if (in->info1533 == NULL) {
12785 ret = pytalloc_reference_ex(&srvsvc_NetSrvInfo1533_Type, in->info1533, in->info1533);
12790 if (in->info1534 == NULL) {
12794 ret = pytalloc_reference_ex(&srvsvc_NetSrvInfo1534_Type, in->info1534, in->info1534);
12799 if (in->info1535 == NULL) {
12803 ret = pytalloc_reference_ex(&srvsvc_NetSrvInfo1535_Type, in->info1535, in->info1535);
12808 if (in->info1536 == NULL) {
12812 ret = pytalloc_reference_ex(&srvsvc_NetSrvInfo1536_Type, in->info1536, in->info1536);
12817 if (in->info1537 == NULL) {
12821 ret = pytalloc_reference_ex(&srvsvc_NetSrvInfo1537_Type, in->info1537, in->info1537);
12826 if (in->info1538 == NULL) {
12830 ret = pytalloc_reference_ex(&srvsvc_NetSrvInfo1538_Type, in->info1538, in->info1538);
12835 if (in->info1539 == NULL) {
12839 ret = pytalloc_reference_ex(&srvsvc_NetSrvInfo1539_Type, in->info1539, in->info1539);
12844 if (in->info1540 == NULL) {
12848 ret = pytalloc_reference_ex(&srvsvc_NetSrvInfo1540_Type, in->info1540, in->info1540);
12853 if (in->info1541 == NULL) {
12857 ret = pytalloc_reference_ex(&srvsvc_NetSrvInfo1541_Type, in->info1541, in->info1541);
12862 if (in->info1542 == NULL) {
12866 ret = pytalloc_reference_ex(&srvsvc_NetSrvInfo1542_Type, in->info1542, in->info1542);
12871 if (in->info1543 == NULL) {
12875 ret = pytalloc_reference_ex(&srvsvc_NetSrvInfo1543_Type, in->info1543, in->info1543);
12880 if (in->info1544 == NULL) {
12884 ret = pytalloc_reference_ex(&srvsvc_NetSrvInfo1544_Type, in->info1544, in->info1544);
12889 if (in->info1545 == NULL) {
12893 ret = pytalloc_reference_ex(&srvsvc_NetSrvInfo1545_Type, in->info1545, in->info1545);
12898 if (in->info1546 == NULL) {
12902 ret = pytalloc_reference_ex(&srvsvc_NetSrvInfo1546_Type, in->info1546, in->info1546);
12907 if (in->info1547 == NULL) {
12911 ret = pytalloc_reference_ex(&srvsvc_NetSrvInfo1547_Type, in->info1547, in->info1547);
12916 if (in->info1548 == NULL) {
12920 ret = pytalloc_reference_ex(&srvsvc_NetSrvInfo1548_Type, in->info1548, in->info1548);
12925 if (in->info1549 == NULL) {
12929 ret = pytalloc_reference_ex(&srvsvc_NetSrvInfo1549_Type, in->info1549, in->info1549);
12934 if (in->info1550 == NULL) {
12938 ret = pytalloc_reference_ex(&srvsvc_NetSrvInfo1550_Type, in->info1550, in->info1550);
12943 if (in->info1552 == NULL) {
12947 ret = pytalloc_reference_ex(&srvsvc_NetSrvInfo1552_Type, in->info1552, in->info1552);
12952 if (in->info1553 == NULL) {
12956 ret = pytalloc_reference_ex(&srvsvc_NetSrvInfo1553_Type, in->info1553, in->info1553);
12961 if (in->info1554 == NULL) {
12965 ret = pytalloc_reference_ex(&srvsvc_NetSrvInfo1554_Type, in->info1554, in->info1554);
12970 if (in->info1555 == NULL) {
12974 ret = pytalloc_reference_ex(&srvsvc_NetSrvInfo1555_Type, in->info1555, in->info1555);
12979 if (in->info1556 == NULL) {
12983 ret = pytalloc_reference_ex(&srvsvc_NetSrvInfo1556_Type, in->info1556, in->info1556);
12993 PyErr_SetString(PyExc_TypeError, "unknown union level");
12997 union srvsvc_NetSrvInfo *py_export_srvsvc_NetSrvInfo(TALLOC_CTX *mem_ctx, int level, PyObject *in)
12999 union srvsvc_NetSrvInfo *ret = talloc_zero(mem_ctx, union srvsvc_NetSrvInfo);
13002 if (in == Py_None) {
13003 ret->info100 = NULL;
13005 ret->info100 = NULL;
13006 PY_CHECK_TYPE(&srvsvc_NetSrvInfo100_Type, in, talloc_free(ret); return NULL;);
13007 if (talloc_reference(mem_ctx, pytalloc_get_mem_ctx(in)) == NULL) {
13009 talloc_free(ret); return NULL;
13011 ret->info100 = (struct srvsvc_NetSrvInfo100 *)pytalloc_get_ptr(in);
13016 if (in == Py_None) {
13017 ret->info101 = NULL;
13019 ret->info101 = NULL;
13020 PY_CHECK_TYPE(&srvsvc_NetSrvInfo101_Type, in, talloc_free(ret); return NULL;);
13021 if (talloc_reference(mem_ctx, pytalloc_get_mem_ctx(in)) == NULL) {
13023 talloc_free(ret); return NULL;
13025 ret->info101 = (struct srvsvc_NetSrvInfo101 *)pytalloc_get_ptr(in);
13030 if (in == Py_None) {
13031 ret->info102 = NULL;
13033 ret->info102 = NULL;
13034 PY_CHECK_TYPE(&srvsvc_NetSrvInfo102_Type, in, talloc_free(ret); return NULL;);
13035 if (talloc_reference(mem_ctx, pytalloc_get_mem_ctx(in)) == NULL) {
13037 talloc_free(ret); return NULL;
13039 ret->info102 = (struct srvsvc_NetSrvInfo102 *)pytalloc_get_ptr(in);
13044 if (in == Py_None) {
13045 ret->info402 = NULL;
13047 ret->info402 = NULL;
13048 PY_CHECK_TYPE(&srvsvc_NetSrvInfo402_Type, in, talloc_free(ret); return NULL;);
13049 if (talloc_reference(mem_ctx, pytalloc_get_mem_ctx(in)) == NULL) {
13051 talloc_free(ret); return NULL;
13053 ret->info402 = (struct srvsvc_NetSrvInfo402 *)pytalloc_get_ptr(in);
13058 if (in == Py_None) {
13059 ret->info403 = NULL;
13061 ret->info403 = NULL;
13062 PY_CHECK_TYPE(&srvsvc_NetSrvInfo403_Type, in, talloc_free(ret); return NULL;);
13063 if (talloc_reference(mem_ctx, pytalloc_get_mem_ctx(in)) == NULL) {
13065 talloc_free(ret); return NULL;
13067 ret->info403 = (struct srvsvc_NetSrvInfo403 *)pytalloc_get_ptr(in);
13072 if (in == Py_None) {
13073 ret->info502 = NULL;
13075 ret->info502 = NULL;
13076 PY_CHECK_TYPE(&srvsvc_NetSrvInfo502_Type, in, talloc_free(ret); return NULL;);
13077 if (talloc_reference(mem_ctx, pytalloc_get_mem_ctx(in)) == NULL) {
13079 talloc_free(ret); return NULL;
13081 ret->info502 = (struct srvsvc_NetSrvInfo502 *)pytalloc_get_ptr(in);
13086 if (in == Py_None) {
13087 ret->info503 = NULL;
13089 ret->info503 = NULL;
13090 PY_CHECK_TYPE(&srvsvc_NetSrvInfo503_Type, in, talloc_free(ret); return NULL;);
13091 if (talloc_reference(mem_ctx, pytalloc_get_mem_ctx(in)) == NULL) {
13093 talloc_free(ret); return NULL;
13095 ret->info503 = (struct srvsvc_NetSrvInfo503 *)pytalloc_get_ptr(in);
13100 if (in == Py_None) {
13101 ret->info599 = NULL;
13103 ret->info599 = NULL;
13104 PY_CHECK_TYPE(&srvsvc_NetSrvInfo599_Type, in, talloc_free(ret); return NULL;);
13105 if (talloc_reference(mem_ctx, pytalloc_get_mem_ctx(in)) == NULL) {
13107 talloc_free(ret); return NULL;
13109 ret->info599 = (struct srvsvc_NetSrvInfo599 *)pytalloc_get_ptr(in);
13114 if (in == Py_None) {
13115 ret->info1005 = NULL;
13117 ret->info1005 = NULL;
13118 PY_CHECK_TYPE(&srvsvc_NetSrvInfo1005_Type, in, talloc_free(ret); return NULL;);
13119 if (talloc_reference(mem_ctx, pytalloc_get_mem_ctx(in)) == NULL) {
13121 talloc_free(ret); return NULL;
13123 ret->info1005 = (struct srvsvc_NetSrvInfo1005 *)pytalloc_get_ptr(in);
13128 if (in == Py_None) {
13129 ret->info1010 = NULL;
13131 ret->info1010 = NULL;
13132 PY_CHECK_TYPE(&srvsvc_NetSrvInfo1010_Type, in, talloc_free(ret); return NULL;);
13133 if (talloc_reference(mem_ctx, pytalloc_get_mem_ctx(in)) == NULL) {
13135 talloc_free(ret); return NULL;
13137 ret->info1010 = (struct srvsvc_NetSrvInfo1010 *)pytalloc_get_ptr(in);
13142 if (in == Py_None) {
13143 ret->info1016 = NULL;
13145 ret->info1016 = NULL;
13146 PY_CHECK_TYPE(&srvsvc_NetSrvInfo1016_Type, in, talloc_free(ret); return NULL;);
13147 if (talloc_reference(mem_ctx, pytalloc_get_mem_ctx(in)) == NULL) {
13149 talloc_free(ret); return NULL;
13151 ret->info1016 = (struct srvsvc_NetSrvInfo1016 *)pytalloc_get_ptr(in);
13156 if (in == Py_None) {
13157 ret->info1017 = NULL;
13159 ret->info1017 = NULL;
13160 PY_CHECK_TYPE(&srvsvc_NetSrvInfo1017_Type, in, talloc_free(ret); return NULL;);
13161 if (talloc_reference(mem_ctx, pytalloc_get_mem_ctx(in)) == NULL) {
13163 talloc_free(ret); return NULL;
13165 ret->info1017 = (struct srvsvc_NetSrvInfo1017 *)pytalloc_get_ptr(in);
13170 if (in == Py_None) {
13171 ret->info1018 = NULL;
13173 ret->info1018 = NULL;
13174 PY_CHECK_TYPE(&srvsvc_NetSrvInfo1018_Type, in, talloc_free(ret); return NULL;);
13175 if (talloc_reference(mem_ctx, pytalloc_get_mem_ctx(in)) == NULL) {
13177 talloc_free(ret); return NULL;
13179 ret->info1018 = (struct srvsvc_NetSrvInfo1018 *)pytalloc_get_ptr(in);
13184 if (in == Py_None) {
13185 ret->info1107 = NULL;
13187 ret->info1107 = NULL;
13188 PY_CHECK_TYPE(&srvsvc_NetSrvInfo1107_Type, in, talloc_free(ret); return NULL;);
13189 if (talloc_reference(mem_ctx, pytalloc_get_mem_ctx(in)) == NULL) {
13191 talloc_free(ret); return NULL;
13193 ret->info1107 = (struct srvsvc_NetSrvInfo1107 *)pytalloc_get_ptr(in);
13198 if (in == Py_None) {
13199 ret->info1501 = NULL;
13201 ret->info1501 = NULL;
13202 PY_CHECK_TYPE(&srvsvc_NetSrvInfo1501_Type, in, talloc_free(ret); return NULL;);
13203 if (talloc_reference(mem_ctx, pytalloc_get_mem_ctx(in)) == NULL) {
13205 talloc_free(ret); return NULL;
13207 ret->info1501 = (struct srvsvc_NetSrvInfo1501 *)pytalloc_get_ptr(in);
13212 if (in == Py_None) {
13213 ret->info1502 = NULL;
13215 ret->info1502 = NULL;
13216 PY_CHECK_TYPE(&srvsvc_NetSrvInfo1502_Type, in, talloc_free(ret); return NULL;);
13217 if (talloc_reference(mem_ctx, pytalloc_get_mem_ctx(in)) == NULL) {
13219 talloc_free(ret); return NULL;
13221 ret->info1502 = (struct srvsvc_NetSrvInfo1502 *)pytalloc_get_ptr(in);
13226 if (in == Py_None) {
13227 ret->info1503 = NULL;
13229 ret->info1503 = NULL;
13230 PY_CHECK_TYPE(&srvsvc_NetSrvInfo1503_Type, in, talloc_free(ret); return NULL;);
13231 if (talloc_reference(mem_ctx, pytalloc_get_mem_ctx(in)) == NULL) {
13233 talloc_free(ret); return NULL;
13235 ret->info1503 = (struct srvsvc_NetSrvInfo1503 *)pytalloc_get_ptr(in);
13240 if (in == Py_None) {
13241 ret->info1506 = NULL;
13243 ret->info1506 = NULL;
13244 PY_CHECK_TYPE(&srvsvc_NetSrvInfo1506_Type, in, talloc_free(ret); return NULL;);
13245 if (talloc_reference(mem_ctx, pytalloc_get_mem_ctx(in)) == NULL) {
13247 talloc_free(ret); return NULL;
13249 ret->info1506 = (struct srvsvc_NetSrvInfo1506 *)pytalloc_get_ptr(in);
13254 if (in == Py_None) {
13255 ret->info1509 = NULL;
13257 ret->info1509 = NULL;
13258 PY_CHECK_TYPE(&srvsvc_NetSrvInfo1509_Type, in, talloc_free(ret); return NULL;);
13259 if (talloc_reference(mem_ctx, pytalloc_get_mem_ctx(in)) == NULL) {
13261 talloc_free(ret); return NULL;
13263 ret->info1509 = (struct srvsvc_NetSrvInfo1509 *)pytalloc_get_ptr(in);
13268 if (in == Py_None) {
13269 ret->info1510 = NULL;
13271 ret->info1510 = NULL;
13272 PY_CHECK_TYPE(&srvsvc_NetSrvInfo1510_Type, in, talloc_free(ret); return NULL;);
13273 if (talloc_reference(mem_ctx, pytalloc_get_mem_ctx(in)) == NULL) {
13275 talloc_free(ret); return NULL;
13277 ret->info1510 = (struct srvsvc_NetSrvInfo1510 *)pytalloc_get_ptr(in);
13282 if (in == Py_None) {
13283 ret->info1511 = NULL;
13285 ret->info1511 = NULL;
13286 PY_CHECK_TYPE(&srvsvc_NetSrvInfo1511_Type, in, talloc_free(ret); return NULL;);
13287 if (talloc_reference(mem_ctx, pytalloc_get_mem_ctx(in)) == NULL) {
13289 talloc_free(ret); return NULL;
13291 ret->info1511 = (struct srvsvc_NetSrvInfo1511 *)pytalloc_get_ptr(in);
13296 if (in == Py_None) {
13297 ret->info1512 = NULL;
13299 ret->info1512 = NULL;
13300 PY_CHECK_TYPE(&srvsvc_NetSrvInfo1512_Type, in, talloc_free(ret); return NULL;);
13301 if (talloc_reference(mem_ctx, pytalloc_get_mem_ctx(in)) == NULL) {
13303 talloc_free(ret); return NULL;
13305 ret->info1512 = (struct srvsvc_NetSrvInfo1512 *)pytalloc_get_ptr(in);
13310 if (in == Py_None) {
13311 ret->info1513 = NULL;
13313 ret->info1513 = NULL;
13314 PY_CHECK_TYPE(&srvsvc_NetSrvInfo1513_Type, in, talloc_free(ret); return NULL;);
13315 if (talloc_reference(mem_ctx, pytalloc_get_mem_ctx(in)) == NULL) {
13317 talloc_free(ret); return NULL;
13319 ret->info1513 = (struct srvsvc_NetSrvInfo1513 *)pytalloc_get_ptr(in);
13324 if (in == Py_None) {
13325 ret->info1514 = NULL;
13327 ret->info1514 = NULL;
13328 PY_CHECK_TYPE(&srvsvc_NetSrvInfo1514_Type, in, talloc_free(ret); return NULL;);
13329 if (talloc_reference(mem_ctx, pytalloc_get_mem_ctx(in)) == NULL) {
13331 talloc_free(ret); return NULL;
13333 ret->info1514 = (struct srvsvc_NetSrvInfo1514 *)pytalloc_get_ptr(in);
13338 if (in == Py_None) {
13339 ret->info1515 = NULL;
13341 ret->info1515 = NULL;
13342 PY_CHECK_TYPE(&srvsvc_NetSrvInfo1515_Type, in, talloc_free(ret); return NULL;);
13343 if (talloc_reference(mem_ctx, pytalloc_get_mem_ctx(in)) == NULL) {
13345 talloc_free(ret); return NULL;
13347 ret->info1515 = (struct srvsvc_NetSrvInfo1515 *)pytalloc_get_ptr(in);
13352 if (in == Py_None) {
13353 ret->info1516 = NULL;
13355 ret->info1516 = NULL;
13356 PY_CHECK_TYPE(&srvsvc_NetSrvInfo1516_Type, in, talloc_free(ret); return NULL;);
13357 if (talloc_reference(mem_ctx, pytalloc_get_mem_ctx(in)) == NULL) {
13359 talloc_free(ret); return NULL;
13361 ret->info1516 = (struct srvsvc_NetSrvInfo1516 *)pytalloc_get_ptr(in);
13366 if (in == Py_None) {
13367 ret->info1518 = NULL;
13369 ret->info1518 = NULL;
13370 PY_CHECK_TYPE(&srvsvc_NetSrvInfo1518_Type, in, talloc_free(ret); return NULL;);
13371 if (talloc_reference(mem_ctx, pytalloc_get_mem_ctx(in)) == NULL) {
13373 talloc_free(ret); return NULL;
13375 ret->info1518 = (struct srvsvc_NetSrvInfo1518 *)pytalloc_get_ptr(in);
13380 if (in == Py_None) {
13381 ret->info1520 = NULL;
13383 ret->info1520 = NULL;
13384 PY_CHECK_TYPE(&srvsvc_NetSrvInfo1520_Type, in, talloc_free(ret); return NULL;);
13385 if (talloc_reference(mem_ctx, pytalloc_get_mem_ctx(in)) == NULL) {
13387 talloc_free(ret); return NULL;
13389 ret->info1520 = (struct srvsvc_NetSrvInfo1520 *)pytalloc_get_ptr(in);
13394 if (in == Py_None) {
13395 ret->info1521 = NULL;
13397 ret->info1521 = NULL;
13398 PY_CHECK_TYPE(&srvsvc_NetSrvInfo1521_Type, in, talloc_free(ret); return NULL;);
13399 if (talloc_reference(mem_ctx, pytalloc_get_mem_ctx(in)) == NULL) {
13401 talloc_free(ret); return NULL;
13403 ret->info1521 = (struct srvsvc_NetSrvInfo1521 *)pytalloc_get_ptr(in);
13408 if (in == Py_None) {
13409 ret->info1522 = NULL;
13411 ret->info1522 = NULL;
13412 PY_CHECK_TYPE(&srvsvc_NetSrvInfo1522_Type, in, talloc_free(ret); return NULL;);
13413 if (talloc_reference(mem_ctx, pytalloc_get_mem_ctx(in)) == NULL) {
13415 talloc_free(ret); return NULL;
13417 ret->info1522 = (struct srvsvc_NetSrvInfo1522 *)pytalloc_get_ptr(in);
13422 if (in == Py_None) {
13423 ret->info1523 = NULL;
13425 ret->info1523 = NULL;
13426 PY_CHECK_TYPE(&srvsvc_NetSrvInfo1523_Type, in, talloc_free(ret); return NULL;);
13427 if (talloc_reference(mem_ctx, pytalloc_get_mem_ctx(in)) == NULL) {
13429 talloc_free(ret); return NULL;
13431 ret->info1523 = (struct srvsvc_NetSrvInfo1523 *)pytalloc_get_ptr(in);
13436 if (in == Py_None) {
13437 ret->info1524 = NULL;
13439 ret->info1524 = NULL;
13440 PY_CHECK_TYPE(&srvsvc_NetSrvInfo1524_Type, in, talloc_free(ret); return NULL;);
13441 if (talloc_reference(mem_ctx, pytalloc_get_mem_ctx(in)) == NULL) {
13443 talloc_free(ret); return NULL;
13445 ret->info1524 = (struct srvsvc_NetSrvInfo1524 *)pytalloc_get_ptr(in);
13450 if (in == Py_None) {
13451 ret->info1525 = NULL;
13453 ret->info1525 = NULL;
13454 PY_CHECK_TYPE(&srvsvc_NetSrvInfo1525_Type, in, talloc_free(ret); return NULL;);
13455 if (talloc_reference(mem_ctx, pytalloc_get_mem_ctx(in)) == NULL) {
13457 talloc_free(ret); return NULL;
13459 ret->info1525 = (struct srvsvc_NetSrvInfo1525 *)pytalloc_get_ptr(in);
13464 if (in == Py_None) {
13465 ret->info1528 = NULL;
13467 ret->info1528 = NULL;
13468 PY_CHECK_TYPE(&srvsvc_NetSrvInfo1528_Type, in, talloc_free(ret); return NULL;);
13469 if (talloc_reference(mem_ctx, pytalloc_get_mem_ctx(in)) == NULL) {
13471 talloc_free(ret); return NULL;
13473 ret->info1528 = (struct srvsvc_NetSrvInfo1528 *)pytalloc_get_ptr(in);
13478 if (in == Py_None) {
13479 ret->info1529 = NULL;
13481 ret->info1529 = NULL;
13482 PY_CHECK_TYPE(&srvsvc_NetSrvInfo1529_Type, in, talloc_free(ret); return NULL;);
13483 if (talloc_reference(mem_ctx, pytalloc_get_mem_ctx(in)) == NULL) {
13485 talloc_free(ret); return NULL;
13487 ret->info1529 = (struct srvsvc_NetSrvInfo1529 *)pytalloc_get_ptr(in);
13492 if (in == Py_None) {
13493 ret->info1530 = NULL;
13495 ret->info1530 = NULL;
13496 PY_CHECK_TYPE(&srvsvc_NetSrvInfo1530_Type, in, talloc_free(ret); return NULL;);
13497 if (talloc_reference(mem_ctx, pytalloc_get_mem_ctx(in)) == NULL) {
13499 talloc_free(ret); return NULL;
13501 ret->info1530 = (struct srvsvc_NetSrvInfo1530 *)pytalloc_get_ptr(in);
13506 if (in == Py_None) {
13507 ret->info1533 = NULL;
13509 ret->info1533 = NULL;
13510 PY_CHECK_TYPE(&srvsvc_NetSrvInfo1533_Type, in, talloc_free(ret); return NULL;);
13511 if (talloc_reference(mem_ctx, pytalloc_get_mem_ctx(in)) == NULL) {
13513 talloc_free(ret); return NULL;
13515 ret->info1533 = (struct srvsvc_NetSrvInfo1533 *)pytalloc_get_ptr(in);
13520 if (in == Py_None) {
13521 ret->info1534 = NULL;
13523 ret->info1534 = NULL;
13524 PY_CHECK_TYPE(&srvsvc_NetSrvInfo1534_Type, in, talloc_free(ret); return NULL;);
13525 if (talloc_reference(mem_ctx, pytalloc_get_mem_ctx(in)) == NULL) {
13527 talloc_free(ret); return NULL;
13529 ret->info1534 = (struct srvsvc_NetSrvInfo1534 *)pytalloc_get_ptr(in);
13534 if (in == Py_None) {
13535 ret->info1535 = NULL;
13537 ret->info1535 = NULL;
13538 PY_CHECK_TYPE(&srvsvc_NetSrvInfo1535_Type, in, talloc_free(ret); return NULL;);
13539 if (talloc_reference(mem_ctx, pytalloc_get_mem_ctx(in)) == NULL) {
13541 talloc_free(ret); return NULL;
13543 ret->info1535 = (struct srvsvc_NetSrvInfo1535 *)pytalloc_get_ptr(in);
13548 if (in == Py_None) {
13549 ret->info1536 = NULL;
13551 ret->info1536 = NULL;
13552 PY_CHECK_TYPE(&srvsvc_NetSrvInfo1536_Type, in, talloc_free(ret); return NULL;);
13553 if (talloc_reference(mem_ctx, pytalloc_get_mem_ctx(in)) == NULL) {
13555 talloc_free(ret); return NULL;
13557 ret->info1536 = (struct srvsvc_NetSrvInfo1536 *)pytalloc_get_ptr(in);
13562 if (in == Py_None) {
13563 ret->info1537 = NULL;
13565 ret->info1537 = NULL;
13566 PY_CHECK_TYPE(&srvsvc_NetSrvInfo1537_Type, in, talloc_free(ret); return NULL;);
13567 if (talloc_reference(mem_ctx, pytalloc_get_mem_ctx(in)) == NULL) {
13569 talloc_free(ret); return NULL;
13571 ret->info1537 = (struct srvsvc_NetSrvInfo1537 *)pytalloc_get_ptr(in);
13576 if (in == Py_None) {
13577 ret->info1538 = NULL;
13579 ret->info1538 = NULL;
13580 PY_CHECK_TYPE(&srvsvc_NetSrvInfo1538_Type, in, talloc_free(ret); return NULL;);
13581 if (talloc_reference(mem_ctx, pytalloc_get_mem_ctx(in)) == NULL) {
13583 talloc_free(ret); return NULL;
13585 ret->info1538 = (struct srvsvc_NetSrvInfo1538 *)pytalloc_get_ptr(in);
13590 if (in == Py_None) {
13591 ret->info1539 = NULL;
13593 ret->info1539 = NULL;
13594 PY_CHECK_TYPE(&srvsvc_NetSrvInfo1539_Type, in, talloc_free(ret); return NULL;);
13595 if (talloc_reference(mem_ctx, pytalloc_get_mem_ctx(in)) == NULL) {
13597 talloc_free(ret); return NULL;
13599 ret->info1539 = (struct srvsvc_NetSrvInfo1539 *)pytalloc_get_ptr(in);
13604 if (in == Py_None) {
13605 ret->info1540 = NULL;
13607 ret->info1540 = NULL;
13608 PY_CHECK_TYPE(&srvsvc_NetSrvInfo1540_Type, in, talloc_free(ret); return NULL;);
13609 if (talloc_reference(mem_ctx, pytalloc_get_mem_ctx(in)) == NULL) {
13611 talloc_free(ret); return NULL;
13613 ret->info1540 = (struct srvsvc_NetSrvInfo1540 *)pytalloc_get_ptr(in);
13618 if (in == Py_None) {
13619 ret->info1541 = NULL;
13621 ret->info1541 = NULL;
13622 PY_CHECK_TYPE(&srvsvc_NetSrvInfo1541_Type, in, talloc_free(ret); return NULL;);
13623 if (talloc_reference(mem_ctx, pytalloc_get_mem_ctx(in)) == NULL) {
13625 talloc_free(ret); return NULL;
13627 ret->info1541 = (struct srvsvc_NetSrvInfo1541 *)pytalloc_get_ptr(in);
13632 if (in == Py_None) {
13633 ret->info1542 = NULL;
13635 ret->info1542 = NULL;
13636 PY_CHECK_TYPE(&srvsvc_NetSrvInfo1542_Type, in, talloc_free(ret); return NULL;);
13637 if (talloc_reference(mem_ctx, pytalloc_get_mem_ctx(in)) == NULL) {
13639 talloc_free(ret); return NULL;
13641 ret->info1542 = (struct srvsvc_NetSrvInfo1542 *)pytalloc_get_ptr(in);
13646 if (in == Py_None) {
13647 ret->info1543 = NULL;
13649 ret->info1543 = NULL;
13650 PY_CHECK_TYPE(&srvsvc_NetSrvInfo1543_Type, in, talloc_free(ret); return NULL;);
13651 if (talloc_reference(mem_ctx, pytalloc_get_mem_ctx(in)) == NULL) {
13653 talloc_free(ret); return NULL;
13655 ret->info1543 = (struct srvsvc_NetSrvInfo1543 *)pytalloc_get_ptr(in);
13660 if (in == Py_None) {
13661 ret->info1544 = NULL;
13663 ret->info1544 = NULL;
13664 PY_CHECK_TYPE(&srvsvc_NetSrvInfo1544_Type, in, talloc_free(ret); return NULL;);
13665 if (talloc_reference(mem_ctx, pytalloc_get_mem_ctx(in)) == NULL) {
13667 talloc_free(ret); return NULL;
13669 ret->info1544 = (struct srvsvc_NetSrvInfo1544 *)pytalloc_get_ptr(in);
13674 if (in == Py_None) {
13675 ret->info1545 = NULL;
13677 ret->info1545 = NULL;
13678 PY_CHECK_TYPE(&srvsvc_NetSrvInfo1545_Type, in, talloc_free(ret); return NULL;);
13679 if (talloc_reference(mem_ctx, pytalloc_get_mem_ctx(in)) == NULL) {
13681 talloc_free(ret); return NULL;
13683 ret->info1545 = (struct srvsvc_NetSrvInfo1545 *)pytalloc_get_ptr(in);
13688 if (in == Py_None) {
13689 ret->info1546 = NULL;
13691 ret->info1546 = NULL;
13692 PY_CHECK_TYPE(&srvsvc_NetSrvInfo1546_Type, in, talloc_free(ret); return NULL;);
13693 if (talloc_reference(mem_ctx, pytalloc_get_mem_ctx(in)) == NULL) {
13695 talloc_free(ret); return NULL;
13697 ret->info1546 = (struct srvsvc_NetSrvInfo1546 *)pytalloc_get_ptr(in);
13702 if (in == Py_None) {
13703 ret->info1547 = NULL;
13705 ret->info1547 = NULL;
13706 PY_CHECK_TYPE(&srvsvc_NetSrvInfo1547_Type, in, talloc_free(ret); return NULL;);
13707 if (talloc_reference(mem_ctx, pytalloc_get_mem_ctx(in)) == NULL) {
13709 talloc_free(ret); return NULL;
13711 ret->info1547 = (struct srvsvc_NetSrvInfo1547 *)pytalloc_get_ptr(in);
13716 if (in == Py_None) {
13717 ret->info1548 = NULL;
13719 ret->info1548 = NULL;
13720 PY_CHECK_TYPE(&srvsvc_NetSrvInfo1548_Type, in, talloc_free(ret); return NULL;);
13721 if (talloc_reference(mem_ctx, pytalloc_get_mem_ctx(in)) == NULL) {
13723 talloc_free(ret); return NULL;
13725 ret->info1548 = (struct srvsvc_NetSrvInfo1548 *)pytalloc_get_ptr(in);
13730 if (in == Py_None) {
13731 ret->info1549 = NULL;
13733 ret->info1549 = NULL;
13734 PY_CHECK_TYPE(&srvsvc_NetSrvInfo1549_Type, in, talloc_free(ret); return NULL;);
13735 if (talloc_reference(mem_ctx, pytalloc_get_mem_ctx(in)) == NULL) {
13737 talloc_free(ret); return NULL;
13739 ret->info1549 = (struct srvsvc_NetSrvInfo1549 *)pytalloc_get_ptr(in);
13744 if (in == Py_None) {
13745 ret->info1550 = NULL;
13747 ret->info1550 = NULL;
13748 PY_CHECK_TYPE(&srvsvc_NetSrvInfo1550_Type, in, talloc_free(ret); return NULL;);
13749 if (talloc_reference(mem_ctx, pytalloc_get_mem_ctx(in)) == NULL) {
13751 talloc_free(ret); return NULL;
13753 ret->info1550 = (struct srvsvc_NetSrvInfo1550 *)pytalloc_get_ptr(in);
13758 if (in == Py_None) {
13759 ret->info1552 = NULL;
13761 ret->info1552 = NULL;
13762 PY_CHECK_TYPE(&srvsvc_NetSrvInfo1552_Type, in, talloc_free(ret); return NULL;);
13763 if (talloc_reference(mem_ctx, pytalloc_get_mem_ctx(in)) == NULL) {
13765 talloc_free(ret); return NULL;
13767 ret->info1552 = (struct srvsvc_NetSrvInfo1552 *)pytalloc_get_ptr(in);
13772 if (in == Py_None) {
13773 ret->info1553 = NULL;
13775 ret->info1553 = NULL;
13776 PY_CHECK_TYPE(&srvsvc_NetSrvInfo1553_Type, in, talloc_free(ret); return NULL;);
13777 if (talloc_reference(mem_ctx, pytalloc_get_mem_ctx(in)) == NULL) {
13779 talloc_free(ret); return NULL;
13781 ret->info1553 = (struct srvsvc_NetSrvInfo1553 *)pytalloc_get_ptr(in);
13786 if (in == Py_None) {
13787 ret->info1554 = NULL;
13789 ret->info1554 = NULL;
13790 PY_CHECK_TYPE(&srvsvc_NetSrvInfo1554_Type, in, talloc_free(ret); return NULL;);
13791 if (talloc_reference(mem_ctx, pytalloc_get_mem_ctx(in)) == NULL) {
13793 talloc_free(ret); return NULL;
13795 ret->info1554 = (struct srvsvc_NetSrvInfo1554 *)pytalloc_get_ptr(in);
13800 if (in == Py_None) {
13801 ret->info1555 = NULL;
13803 ret->info1555 = NULL;
13804 PY_CHECK_TYPE(&srvsvc_NetSrvInfo1555_Type, in, talloc_free(ret); return NULL;);
13805 if (talloc_reference(mem_ctx, pytalloc_get_mem_ctx(in)) == NULL) {
13807 talloc_free(ret); return NULL;
13809 ret->info1555 = (struct srvsvc_NetSrvInfo1555 *)pytalloc_get_ptr(in);
13814 if (in == Py_None) {
13815 ret->info1556 = NULL;
13817 ret->info1556 = NULL;
13818 PY_CHECK_TYPE(&srvsvc_NetSrvInfo1556_Type, in, talloc_free(ret); return NULL;);
13819 if (talloc_reference(mem_ctx, pytalloc_get_mem_ctx(in)) == NULL) {
13821 talloc_free(ret); return NULL;
13823 ret->info1556 = (struct srvsvc_NetSrvInfo1556 *)pytalloc_get_ptr(in);
13836 static PyObject *py_srvsvc_NetDiskInfo0_get___disk_offset(PyObject *obj, void *closure)
13838 struct srvsvc_NetDiskInfo0 *object = (struct srvsvc_NetDiskInfo0 *)pytalloc_get_ptr(obj);
13839 PyObject *py___disk_offset;
13840 py___disk_offset = PyInt_FromLong(object->__disk_offset);
13841 return py___disk_offset;
13844 static int py_srvsvc_NetDiskInfo0_set___disk_offset(PyObject *py_obj, PyObject *value, void *closure)
13846 struct srvsvc_NetDiskInfo0 *object = (struct srvsvc_NetDiskInfo0 *)pytalloc_get_ptr(py_obj);
13847 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
13848 object->__disk_offset = PyInt_AsLong(value);
13852 static PyObject *py_srvsvc_NetDiskInfo0_get___disk_length(PyObject *obj, void *closure)
13854 struct srvsvc_NetDiskInfo0 *object = (struct srvsvc_NetDiskInfo0 *)pytalloc_get_ptr(obj);
13855 PyObject *py___disk_length;
13856 py___disk_length = PyInt_FromLong(object->__disk_length);
13857 return py___disk_length;
13860 static int py_srvsvc_NetDiskInfo0_set___disk_length(PyObject *py_obj, PyObject *value, void *closure)
13862 struct srvsvc_NetDiskInfo0 *object = (struct srvsvc_NetDiskInfo0 *)pytalloc_get_ptr(py_obj);
13863 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
13864 object->__disk_length = PyInt_AsLong(value);
13868 static PyObject *py_srvsvc_NetDiskInfo0_get_disk(PyObject *obj, void *closure)
13870 struct srvsvc_NetDiskInfo0 *object = (struct srvsvc_NetDiskInfo0 *)pytalloc_get_ptr(obj);
13872 if (object->disk == NULL) {
13874 Py_INCREF(py_disk);
13876 py_disk = PyUnicode_Decode(object->disk, strlen(object->disk), "utf-8", "ignore");
13881 static int py_srvsvc_NetDiskInfo0_set_disk(PyObject *py_obj, PyObject *value, void *closure)
13883 struct srvsvc_NetDiskInfo0 *object = (struct srvsvc_NetDiskInfo0 *)pytalloc_get_ptr(py_obj);
13884 if (PyUnicode_Check(value)) {
13885 object->disk = PyString_AS_STRING(PyUnicode_AsEncodedString(value, "utf-8", "ignore"));
13886 } else if (PyString_Check(value)) {
13887 object->disk = PyString_AS_STRING(value);
13889 PyErr_Format(PyExc_TypeError, "Expected string or unicode object, got %s", Py_TYPE(value)->tp_name);
13895 static PyGetSetDef py_srvsvc_NetDiskInfo0_getsetters[] = {
13896 { discard_const_p(char, "__disk_offset"), py_srvsvc_NetDiskInfo0_get___disk_offset, py_srvsvc_NetDiskInfo0_set___disk_offset },
13897 { discard_const_p(char, "__disk_length"), py_srvsvc_NetDiskInfo0_get___disk_length, py_srvsvc_NetDiskInfo0_set___disk_length },
13898 { discard_const_p(char, "disk"), py_srvsvc_NetDiskInfo0_get_disk, py_srvsvc_NetDiskInfo0_set_disk },
13902 static PyObject *py_srvsvc_NetDiskInfo0_new(PyTypeObject *type, PyObject *args, PyObject *kwargs)
13904 return pytalloc_new(struct srvsvc_NetDiskInfo0, type);
13908 static PyTypeObject srvsvc_NetDiskInfo0_Type = {
13909 PyObject_HEAD_INIT(NULL) 0,
13910 .tp_name = "srvsvc.NetDiskInfo0",
13911 .tp_getset = py_srvsvc_NetDiskInfo0_getsetters,
13912 .tp_methods = NULL,
13913 .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
13914 .tp_basicsize = sizeof(pytalloc_Object),
13915 .tp_new = py_srvsvc_NetDiskInfo0_new,
13919 static PyObject *py_srvsvc_NetDiskInfo_get_count(PyObject *obj, void *closure)
13921 struct srvsvc_NetDiskInfo *object = (struct srvsvc_NetDiskInfo *)pytalloc_get_ptr(obj);
13922 PyObject *py_count;
13923 py_count = PyInt_FromLong(object->count);
13927 static int py_srvsvc_NetDiskInfo_set_count(PyObject *py_obj, PyObject *value, void *closure)
13929 struct srvsvc_NetDiskInfo *object = (struct srvsvc_NetDiskInfo *)pytalloc_get_ptr(py_obj);
13930 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
13931 object->count = PyInt_AsLong(value);
13935 static PyObject *py_srvsvc_NetDiskInfo_get_disks(PyObject *obj, void *closure)
13937 struct srvsvc_NetDiskInfo *object = (struct srvsvc_NetDiskInfo *)pytalloc_get_ptr(obj);
13938 PyObject *py_disks;
13939 if (object->disks == NULL) {
13940 py_disks = Py_None;
13941 Py_INCREF(py_disks);
13943 py_disks = PyList_New(object->count);
13944 if (py_disks == NULL) {
13949 for (disks_cntr_1 = 0; disks_cntr_1 < object->count; disks_cntr_1++) {
13950 PyObject *py_disks_1;
13951 py_disks_1 = pytalloc_reference_ex(&srvsvc_NetDiskInfo0_Type, object->disks, &object->disks[disks_cntr_1]);
13952 PyList_SetItem(py_disks, disks_cntr_1, py_disks_1);
13959 static int py_srvsvc_NetDiskInfo_set_disks(PyObject *py_obj, PyObject *value, void *closure)
13961 struct srvsvc_NetDiskInfo *object = (struct srvsvc_NetDiskInfo *)pytalloc_get_ptr(py_obj);
13962 talloc_unlink(pytalloc_get_mem_ctx(py_obj), object->disks);
13963 if (value == Py_None) {
13964 object->disks = NULL;
13966 object->disks = NULL;
13967 PY_CHECK_TYPE(&PyList_Type, value, return -1;);
13970 object->disks = talloc_array_ptrtype(pytalloc_get_mem_ctx(py_obj), object->disks, PyList_GET_SIZE(value));
13971 if (!object->disks) { return -1;; }
13972 talloc_set_name_const(object->disks, "ARRAY: object->disks");
13973 for (disks_cntr_1 = 0; disks_cntr_1 < PyList_GET_SIZE(value); disks_cntr_1++) {
13974 PY_CHECK_TYPE(&srvsvc_NetDiskInfo0_Type, PyList_GET_ITEM(value, disks_cntr_1), return -1;);
13975 if (talloc_reference(object->disks, pytalloc_get_mem_ctx(PyList_GET_ITEM(value, disks_cntr_1))) == NULL) {
13979 object->disks[disks_cntr_1] = *(struct srvsvc_NetDiskInfo0 *)pytalloc_get_ptr(PyList_GET_ITEM(value, disks_cntr_1));
13986 static PyGetSetDef py_srvsvc_NetDiskInfo_getsetters[] = {
13987 { discard_const_p(char, "count"), py_srvsvc_NetDiskInfo_get_count, py_srvsvc_NetDiskInfo_set_count },
13988 { discard_const_p(char, "disks"), py_srvsvc_NetDiskInfo_get_disks, py_srvsvc_NetDiskInfo_set_disks },
13992 static PyObject *py_srvsvc_NetDiskInfo_new(PyTypeObject *type, PyObject *args, PyObject *kwargs)
13994 return pytalloc_new(struct srvsvc_NetDiskInfo, type);
13998 static PyTypeObject srvsvc_NetDiskInfo_Type = {
13999 PyObject_HEAD_INIT(NULL) 0,
14000 .tp_name = "srvsvc.NetDiskInfo",
14001 .tp_getset = py_srvsvc_NetDiskInfo_getsetters,
14002 .tp_methods = NULL,
14003 .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
14004 .tp_basicsize = sizeof(pytalloc_Object),
14005 .tp_new = py_srvsvc_NetDiskInfo_new,
14009 static PyObject *py_srvsvc_Statistics_get_start(PyObject *obj, void *closure)
14011 struct srvsvc_Statistics *object = (struct srvsvc_Statistics *)pytalloc_get_ptr(obj);
14012 PyObject *py_start;
14013 py_start = PyInt_FromLong(object->start);
14017 static int py_srvsvc_Statistics_set_start(PyObject *py_obj, PyObject *value, void *closure)
14019 struct srvsvc_Statistics *object = (struct srvsvc_Statistics *)pytalloc_get_ptr(py_obj);
14020 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
14021 object->start = PyInt_AsLong(value);
14025 static PyObject *py_srvsvc_Statistics_get_fopens(PyObject *obj, void *closure)
14027 struct srvsvc_Statistics *object = (struct srvsvc_Statistics *)pytalloc_get_ptr(obj);
14028 PyObject *py_fopens;
14029 py_fopens = PyInt_FromLong(object->fopens);
14033 static int py_srvsvc_Statistics_set_fopens(PyObject *py_obj, PyObject *value, void *closure)
14035 struct srvsvc_Statistics *object = (struct srvsvc_Statistics *)pytalloc_get_ptr(py_obj);
14036 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
14037 object->fopens = PyInt_AsLong(value);
14041 static PyObject *py_srvsvc_Statistics_get_devopens(PyObject *obj, void *closure)
14043 struct srvsvc_Statistics *object = (struct srvsvc_Statistics *)pytalloc_get_ptr(obj);
14044 PyObject *py_devopens;
14045 py_devopens = PyInt_FromLong(object->devopens);
14046 return py_devopens;
14049 static int py_srvsvc_Statistics_set_devopens(PyObject *py_obj, PyObject *value, void *closure)
14051 struct srvsvc_Statistics *object = (struct srvsvc_Statistics *)pytalloc_get_ptr(py_obj);
14052 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
14053 object->devopens = PyInt_AsLong(value);
14057 static PyObject *py_srvsvc_Statistics_get_jobsqueued(PyObject *obj, void *closure)
14059 struct srvsvc_Statistics *object = (struct srvsvc_Statistics *)pytalloc_get_ptr(obj);
14060 PyObject *py_jobsqueued;
14061 py_jobsqueued = PyInt_FromLong(object->jobsqueued);
14062 return py_jobsqueued;
14065 static int py_srvsvc_Statistics_set_jobsqueued(PyObject *py_obj, PyObject *value, void *closure)
14067 struct srvsvc_Statistics *object = (struct srvsvc_Statistics *)pytalloc_get_ptr(py_obj);
14068 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
14069 object->jobsqueued = PyInt_AsLong(value);
14073 static PyObject *py_srvsvc_Statistics_get_sopens(PyObject *obj, void *closure)
14075 struct srvsvc_Statistics *object = (struct srvsvc_Statistics *)pytalloc_get_ptr(obj);
14076 PyObject *py_sopens;
14077 py_sopens = PyInt_FromLong(object->sopens);
14081 static int py_srvsvc_Statistics_set_sopens(PyObject *py_obj, PyObject *value, void *closure)
14083 struct srvsvc_Statistics *object = (struct srvsvc_Statistics *)pytalloc_get_ptr(py_obj);
14084 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
14085 object->sopens = PyInt_AsLong(value);
14089 static PyObject *py_srvsvc_Statistics_get_stimeouts(PyObject *obj, void *closure)
14091 struct srvsvc_Statistics *object = (struct srvsvc_Statistics *)pytalloc_get_ptr(obj);
14092 PyObject *py_stimeouts;
14093 py_stimeouts = PyInt_FromLong(object->stimeouts);
14094 return py_stimeouts;
14097 static int py_srvsvc_Statistics_set_stimeouts(PyObject *py_obj, PyObject *value, void *closure)
14099 struct srvsvc_Statistics *object = (struct srvsvc_Statistics *)pytalloc_get_ptr(py_obj);
14100 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
14101 object->stimeouts = PyInt_AsLong(value);
14105 static PyObject *py_srvsvc_Statistics_get_serrorout(PyObject *obj, void *closure)
14107 struct srvsvc_Statistics *object = (struct srvsvc_Statistics *)pytalloc_get_ptr(obj);
14108 PyObject *py_serrorout;
14109 py_serrorout = PyInt_FromLong(object->serrorout);
14110 return py_serrorout;
14113 static int py_srvsvc_Statistics_set_serrorout(PyObject *py_obj, PyObject *value, void *closure)
14115 struct srvsvc_Statistics *object = (struct srvsvc_Statistics *)pytalloc_get_ptr(py_obj);
14116 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
14117 object->serrorout = PyInt_AsLong(value);
14121 static PyObject *py_srvsvc_Statistics_get_pwerrors(PyObject *obj, void *closure)
14123 struct srvsvc_Statistics *object = (struct srvsvc_Statistics *)pytalloc_get_ptr(obj);
14124 PyObject *py_pwerrors;
14125 py_pwerrors = PyInt_FromLong(object->pwerrors);
14126 return py_pwerrors;
14129 static int py_srvsvc_Statistics_set_pwerrors(PyObject *py_obj, PyObject *value, void *closure)
14131 struct srvsvc_Statistics *object = (struct srvsvc_Statistics *)pytalloc_get_ptr(py_obj);
14132 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
14133 object->pwerrors = PyInt_AsLong(value);
14137 static PyObject *py_srvsvc_Statistics_get_permerrors(PyObject *obj, void *closure)
14139 struct srvsvc_Statistics *object = (struct srvsvc_Statistics *)pytalloc_get_ptr(obj);
14140 PyObject *py_permerrors;
14141 py_permerrors = PyInt_FromLong(object->permerrors);
14142 return py_permerrors;
14145 static int py_srvsvc_Statistics_set_permerrors(PyObject *py_obj, PyObject *value, void *closure)
14147 struct srvsvc_Statistics *object = (struct srvsvc_Statistics *)pytalloc_get_ptr(py_obj);
14148 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
14149 object->permerrors = PyInt_AsLong(value);
14153 static PyObject *py_srvsvc_Statistics_get_syserrors(PyObject *obj, void *closure)
14155 struct srvsvc_Statistics *object = (struct srvsvc_Statistics *)pytalloc_get_ptr(obj);
14156 PyObject *py_syserrors;
14157 py_syserrors = PyInt_FromLong(object->syserrors);
14158 return py_syserrors;
14161 static int py_srvsvc_Statistics_set_syserrors(PyObject *py_obj, PyObject *value, void *closure)
14163 struct srvsvc_Statistics *object = (struct srvsvc_Statistics *)pytalloc_get_ptr(py_obj);
14164 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
14165 object->syserrors = PyInt_AsLong(value);
14169 static PyObject *py_srvsvc_Statistics_get_bytessent_low(PyObject *obj, void *closure)
14171 struct srvsvc_Statistics *object = (struct srvsvc_Statistics *)pytalloc_get_ptr(obj);
14172 PyObject *py_bytessent_low;
14173 py_bytessent_low = PyInt_FromLong(object->bytessent_low);
14174 return py_bytessent_low;
14177 static int py_srvsvc_Statistics_set_bytessent_low(PyObject *py_obj, PyObject *value, void *closure)
14179 struct srvsvc_Statistics *object = (struct srvsvc_Statistics *)pytalloc_get_ptr(py_obj);
14180 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
14181 object->bytessent_low = PyInt_AsLong(value);
14185 static PyObject *py_srvsvc_Statistics_get_bytessent_high(PyObject *obj, void *closure)
14187 struct srvsvc_Statistics *object = (struct srvsvc_Statistics *)pytalloc_get_ptr(obj);
14188 PyObject *py_bytessent_high;
14189 py_bytessent_high = PyInt_FromLong(object->bytessent_high);
14190 return py_bytessent_high;
14193 static int py_srvsvc_Statistics_set_bytessent_high(PyObject *py_obj, PyObject *value, void *closure)
14195 struct srvsvc_Statistics *object = (struct srvsvc_Statistics *)pytalloc_get_ptr(py_obj);
14196 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
14197 object->bytessent_high = PyInt_AsLong(value);
14201 static PyObject *py_srvsvc_Statistics_get_bytesrcvd_low(PyObject *obj, void *closure)
14203 struct srvsvc_Statistics *object = (struct srvsvc_Statistics *)pytalloc_get_ptr(obj);
14204 PyObject *py_bytesrcvd_low;
14205 py_bytesrcvd_low = PyInt_FromLong(object->bytesrcvd_low);
14206 return py_bytesrcvd_low;
14209 static int py_srvsvc_Statistics_set_bytesrcvd_low(PyObject *py_obj, PyObject *value, void *closure)
14211 struct srvsvc_Statistics *object = (struct srvsvc_Statistics *)pytalloc_get_ptr(py_obj);
14212 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
14213 object->bytesrcvd_low = PyInt_AsLong(value);
14217 static PyObject *py_srvsvc_Statistics_get_bytesrcvd_high(PyObject *obj, void *closure)
14219 struct srvsvc_Statistics *object = (struct srvsvc_Statistics *)pytalloc_get_ptr(obj);
14220 PyObject *py_bytesrcvd_high;
14221 py_bytesrcvd_high = PyInt_FromLong(object->bytesrcvd_high);
14222 return py_bytesrcvd_high;
14225 static int py_srvsvc_Statistics_set_bytesrcvd_high(PyObject *py_obj, PyObject *value, void *closure)
14227 struct srvsvc_Statistics *object = (struct srvsvc_Statistics *)pytalloc_get_ptr(py_obj);
14228 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
14229 object->bytesrcvd_high = PyInt_AsLong(value);
14233 static PyObject *py_srvsvc_Statistics_get_avresponse(PyObject *obj, void *closure)
14235 struct srvsvc_Statistics *object = (struct srvsvc_Statistics *)pytalloc_get_ptr(obj);
14236 PyObject *py_avresponse;
14237 py_avresponse = PyInt_FromLong(object->avresponse);
14238 return py_avresponse;
14241 static int py_srvsvc_Statistics_set_avresponse(PyObject *py_obj, PyObject *value, void *closure)
14243 struct srvsvc_Statistics *object = (struct srvsvc_Statistics *)pytalloc_get_ptr(py_obj);
14244 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
14245 object->avresponse = PyInt_AsLong(value);
14249 static PyObject *py_srvsvc_Statistics_get_reqbufneed(PyObject *obj, void *closure)
14251 struct srvsvc_Statistics *object = (struct srvsvc_Statistics *)pytalloc_get_ptr(obj);
14252 PyObject *py_reqbufneed;
14253 py_reqbufneed = PyInt_FromLong(object->reqbufneed);
14254 return py_reqbufneed;
14257 static int py_srvsvc_Statistics_set_reqbufneed(PyObject *py_obj, PyObject *value, void *closure)
14259 struct srvsvc_Statistics *object = (struct srvsvc_Statistics *)pytalloc_get_ptr(py_obj);
14260 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
14261 object->reqbufneed = PyInt_AsLong(value);
14265 static PyObject *py_srvsvc_Statistics_get_bigbufneed(PyObject *obj, void *closure)
14267 struct srvsvc_Statistics *object = (struct srvsvc_Statistics *)pytalloc_get_ptr(obj);
14268 PyObject *py_bigbufneed;
14269 py_bigbufneed = PyInt_FromLong(object->bigbufneed);
14270 return py_bigbufneed;
14273 static int py_srvsvc_Statistics_set_bigbufneed(PyObject *py_obj, PyObject *value, void *closure)
14275 struct srvsvc_Statistics *object = (struct srvsvc_Statistics *)pytalloc_get_ptr(py_obj);
14276 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
14277 object->bigbufneed = PyInt_AsLong(value);
14281 static PyGetSetDef py_srvsvc_Statistics_getsetters[] = {
14282 { discard_const_p(char, "start"), py_srvsvc_Statistics_get_start, py_srvsvc_Statistics_set_start },
14283 { discard_const_p(char, "fopens"), py_srvsvc_Statistics_get_fopens, py_srvsvc_Statistics_set_fopens },
14284 { discard_const_p(char, "devopens"), py_srvsvc_Statistics_get_devopens, py_srvsvc_Statistics_set_devopens },
14285 { discard_const_p(char, "jobsqueued"), py_srvsvc_Statistics_get_jobsqueued, py_srvsvc_Statistics_set_jobsqueued },
14286 { discard_const_p(char, "sopens"), py_srvsvc_Statistics_get_sopens, py_srvsvc_Statistics_set_sopens },
14287 { discard_const_p(char, "stimeouts"), py_srvsvc_Statistics_get_stimeouts, py_srvsvc_Statistics_set_stimeouts },
14288 { discard_const_p(char, "serrorout"), py_srvsvc_Statistics_get_serrorout, py_srvsvc_Statistics_set_serrorout },
14289 { discard_const_p(char, "pwerrors"), py_srvsvc_Statistics_get_pwerrors, py_srvsvc_Statistics_set_pwerrors },
14290 { discard_const_p(char, "permerrors"), py_srvsvc_Statistics_get_permerrors, py_srvsvc_Statistics_set_permerrors },
14291 { discard_const_p(char, "syserrors"), py_srvsvc_Statistics_get_syserrors, py_srvsvc_Statistics_set_syserrors },
14292 { discard_const_p(char, "bytessent_low"), py_srvsvc_Statistics_get_bytessent_low, py_srvsvc_Statistics_set_bytessent_low },
14293 { discard_const_p(char, "bytessent_high"), py_srvsvc_Statistics_get_bytessent_high, py_srvsvc_Statistics_set_bytessent_high },
14294 { discard_const_p(char, "bytesrcvd_low"), py_srvsvc_Statistics_get_bytesrcvd_low, py_srvsvc_Statistics_set_bytesrcvd_low },
14295 { discard_const_p(char, "bytesrcvd_high"), py_srvsvc_Statistics_get_bytesrcvd_high, py_srvsvc_Statistics_set_bytesrcvd_high },
14296 { discard_const_p(char, "avresponse"), py_srvsvc_Statistics_get_avresponse, py_srvsvc_Statistics_set_avresponse },
14297 { discard_const_p(char, "reqbufneed"), py_srvsvc_Statistics_get_reqbufneed, py_srvsvc_Statistics_set_reqbufneed },
14298 { discard_const_p(char, "bigbufneed"), py_srvsvc_Statistics_get_bigbufneed, py_srvsvc_Statistics_set_bigbufneed },
14302 static PyObject *py_srvsvc_Statistics_new(PyTypeObject *type, PyObject *args, PyObject *kwargs)
14304 return pytalloc_new(struct srvsvc_Statistics, type);
14308 static PyTypeObject srvsvc_Statistics_Type = {
14309 PyObject_HEAD_INIT(NULL) 0,
14310 .tp_name = "srvsvc.Statistics",
14311 .tp_getset = py_srvsvc_Statistics_getsetters,
14312 .tp_methods = NULL,
14313 .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
14314 .tp_basicsize = sizeof(pytalloc_Object),
14315 .tp_new = py_srvsvc_Statistics_new,
14319 static PyObject *py_srvsvc_NetTransportInfo0_get_vcs(PyObject *obj, void *closure)
14321 struct srvsvc_NetTransportInfo0 *object = (struct srvsvc_NetTransportInfo0 *)pytalloc_get_ptr(obj);
14323 py_vcs = PyInt_FromLong(object->vcs);
14327 static int py_srvsvc_NetTransportInfo0_set_vcs(PyObject *py_obj, PyObject *value, void *closure)
14329 struct srvsvc_NetTransportInfo0 *object = (struct srvsvc_NetTransportInfo0 *)pytalloc_get_ptr(py_obj);
14330 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
14331 object->vcs = PyInt_AsLong(value);
14335 static PyObject *py_srvsvc_NetTransportInfo0_get_name(PyObject *obj, void *closure)
14337 struct srvsvc_NetTransportInfo0 *object = (struct srvsvc_NetTransportInfo0 *)pytalloc_get_ptr(obj);
14339 if (object->name == NULL) {
14341 Py_INCREF(py_name);
14343 if (object->name == NULL) {
14345 Py_INCREF(py_name);
14347 py_name = PyUnicode_Decode(object->name, strlen(object->name), "utf-8", "ignore");
14353 static int py_srvsvc_NetTransportInfo0_set_name(PyObject *py_obj, PyObject *value, void *closure)
14355 struct srvsvc_NetTransportInfo0 *object = (struct srvsvc_NetTransportInfo0 *)pytalloc_get_ptr(py_obj);
14356 if (value == Py_None) {
14357 object->name = NULL;
14359 object->name = NULL;
14360 if (PyUnicode_Check(value)) {
14361 object->name = PyString_AS_STRING(PyUnicode_AsEncodedString(value, "utf-8", "ignore"));
14362 } else if (PyString_Check(value)) {
14363 object->name = PyString_AS_STRING(value);
14365 PyErr_Format(PyExc_TypeError, "Expected string or unicode object, got %s", Py_TYPE(value)->tp_name);
14372 static PyObject *py_srvsvc_NetTransportInfo0_get_addr(PyObject *obj, void *closure)
14374 struct srvsvc_NetTransportInfo0 *object = (struct srvsvc_NetTransportInfo0 *)pytalloc_get_ptr(obj);
14376 if (object->addr == NULL) {
14378 Py_INCREF(py_addr);
14380 py_addr = PyList_New(object->addr_len);
14381 if (py_addr == NULL) {
14386 for (addr_cntr_1 = 0; addr_cntr_1 < object->addr_len; addr_cntr_1++) {
14387 PyObject *py_addr_1;
14388 py_addr_1 = PyInt_FromLong(object->addr[addr_cntr_1]);
14389 PyList_SetItem(py_addr, addr_cntr_1, py_addr_1);
14396 static int py_srvsvc_NetTransportInfo0_set_addr(PyObject *py_obj, PyObject *value, void *closure)
14398 struct srvsvc_NetTransportInfo0 *object = (struct srvsvc_NetTransportInfo0 *)pytalloc_get_ptr(py_obj);
14399 talloc_unlink(pytalloc_get_mem_ctx(py_obj), object->addr);
14400 if (value == Py_None) {
14401 object->addr = NULL;
14403 object->addr = NULL;
14404 PY_CHECK_TYPE(&PyList_Type, value, return -1;);
14407 object->addr = talloc_array_ptrtype(pytalloc_get_mem_ctx(py_obj), object->addr, PyList_GET_SIZE(value));
14408 if (!object->addr) { return -1;; }
14409 talloc_set_name_const(object->addr, "ARRAY: object->addr");
14410 for (addr_cntr_1 = 0; addr_cntr_1 < PyList_GET_SIZE(value); addr_cntr_1++) {
14411 PY_CHECK_TYPE(&PyInt_Type, PyList_GET_ITEM(value, addr_cntr_1), return -1;);
14412 object->addr[addr_cntr_1] = PyInt_AsLong(PyList_GET_ITEM(value, addr_cntr_1));
14419 static PyObject *py_srvsvc_NetTransportInfo0_get_addr_len(PyObject *obj, void *closure)
14421 struct srvsvc_NetTransportInfo0 *object = (struct srvsvc_NetTransportInfo0 *)pytalloc_get_ptr(obj);
14422 PyObject *py_addr_len;
14423 py_addr_len = PyInt_FromLong(object->addr_len);
14424 return py_addr_len;
14427 static int py_srvsvc_NetTransportInfo0_set_addr_len(PyObject *py_obj, PyObject *value, void *closure)
14429 struct srvsvc_NetTransportInfo0 *object = (struct srvsvc_NetTransportInfo0 *)pytalloc_get_ptr(py_obj);
14430 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
14431 object->addr_len = PyInt_AsLong(value);
14435 static PyObject *py_srvsvc_NetTransportInfo0_get_net_addr(PyObject *obj, void *closure)
14437 struct srvsvc_NetTransportInfo0 *object = (struct srvsvc_NetTransportInfo0 *)pytalloc_get_ptr(obj);
14438 PyObject *py_net_addr;
14439 if (object->net_addr == NULL) {
14440 py_net_addr = Py_None;
14441 Py_INCREF(py_net_addr);
14443 if (object->net_addr == NULL) {
14444 py_net_addr = Py_None;
14445 Py_INCREF(py_net_addr);
14447 py_net_addr = PyUnicode_Decode(object->net_addr, strlen(object->net_addr), "utf-8", "ignore");
14450 return py_net_addr;
14453 static int py_srvsvc_NetTransportInfo0_set_net_addr(PyObject *py_obj, PyObject *value, void *closure)
14455 struct srvsvc_NetTransportInfo0 *object = (struct srvsvc_NetTransportInfo0 *)pytalloc_get_ptr(py_obj);
14456 if (value == Py_None) {
14457 object->net_addr = NULL;
14459 object->net_addr = NULL;
14460 if (PyUnicode_Check(value)) {
14461 object->net_addr = PyString_AS_STRING(PyUnicode_AsEncodedString(value, "utf-8", "ignore"));
14462 } else if (PyString_Check(value)) {
14463 object->net_addr = PyString_AS_STRING(value);
14465 PyErr_Format(PyExc_TypeError, "Expected string or unicode object, got %s", Py_TYPE(value)->tp_name);
14472 static PyGetSetDef py_srvsvc_NetTransportInfo0_getsetters[] = {
14473 { discard_const_p(char, "vcs"), py_srvsvc_NetTransportInfo0_get_vcs, py_srvsvc_NetTransportInfo0_set_vcs },
14474 { discard_const_p(char, "name"), py_srvsvc_NetTransportInfo0_get_name, py_srvsvc_NetTransportInfo0_set_name },
14475 { discard_const_p(char, "addr"), py_srvsvc_NetTransportInfo0_get_addr, py_srvsvc_NetTransportInfo0_set_addr },
14476 { discard_const_p(char, "addr_len"), py_srvsvc_NetTransportInfo0_get_addr_len, py_srvsvc_NetTransportInfo0_set_addr_len },
14477 { discard_const_p(char, "net_addr"), py_srvsvc_NetTransportInfo0_get_net_addr, py_srvsvc_NetTransportInfo0_set_net_addr },
14481 static PyObject *py_srvsvc_NetTransportInfo0_new(PyTypeObject *type, PyObject *args, PyObject *kwargs)
14483 return pytalloc_new(struct srvsvc_NetTransportInfo0, type);
14487 static PyTypeObject srvsvc_NetTransportInfo0_Type = {
14488 PyObject_HEAD_INIT(NULL) 0,
14489 .tp_name = "srvsvc.NetTransportInfo0",
14490 .tp_getset = py_srvsvc_NetTransportInfo0_getsetters,
14491 .tp_methods = NULL,
14492 .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
14493 .tp_basicsize = sizeof(pytalloc_Object),
14494 .tp_new = py_srvsvc_NetTransportInfo0_new,
14498 static PyObject *py_srvsvc_NetTransportCtr0_get_count(PyObject *obj, void *closure)
14500 struct srvsvc_NetTransportCtr0 *object = (struct srvsvc_NetTransportCtr0 *)pytalloc_get_ptr(obj);
14501 PyObject *py_count;
14502 py_count = PyInt_FromLong(object->count);
14506 static int py_srvsvc_NetTransportCtr0_set_count(PyObject *py_obj, PyObject *value, void *closure)
14508 struct srvsvc_NetTransportCtr0 *object = (struct srvsvc_NetTransportCtr0 *)pytalloc_get_ptr(py_obj);
14509 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
14510 object->count = PyInt_AsLong(value);
14514 static PyObject *py_srvsvc_NetTransportCtr0_get_array(PyObject *obj, void *closure)
14516 struct srvsvc_NetTransportCtr0 *object = (struct srvsvc_NetTransportCtr0 *)pytalloc_get_ptr(obj);
14517 PyObject *py_array;
14518 if (object->array == NULL) {
14519 py_array = Py_None;
14520 Py_INCREF(py_array);
14522 py_array = PyList_New(object->count);
14523 if (py_array == NULL) {
14528 for (array_cntr_1 = 0; array_cntr_1 < object->count; array_cntr_1++) {
14529 PyObject *py_array_1;
14530 py_array_1 = pytalloc_reference_ex(&srvsvc_NetTransportInfo0_Type, object->array, &object->array[array_cntr_1]);
14531 PyList_SetItem(py_array, array_cntr_1, py_array_1);
14538 static int py_srvsvc_NetTransportCtr0_set_array(PyObject *py_obj, PyObject *value, void *closure)
14540 struct srvsvc_NetTransportCtr0 *object = (struct srvsvc_NetTransportCtr0 *)pytalloc_get_ptr(py_obj);
14541 talloc_unlink(pytalloc_get_mem_ctx(py_obj), object->array);
14542 if (value == Py_None) {
14543 object->array = NULL;
14545 object->array = NULL;
14546 PY_CHECK_TYPE(&PyList_Type, value, return -1;);
14549 object->array = talloc_array_ptrtype(pytalloc_get_mem_ctx(py_obj), object->array, PyList_GET_SIZE(value));
14550 if (!object->array) { return -1;; }
14551 talloc_set_name_const(object->array, "ARRAY: object->array");
14552 for (array_cntr_1 = 0; array_cntr_1 < PyList_GET_SIZE(value); array_cntr_1++) {
14553 PY_CHECK_TYPE(&srvsvc_NetTransportInfo0_Type, PyList_GET_ITEM(value, array_cntr_1), return -1;);
14554 if (talloc_reference(object->array, pytalloc_get_mem_ctx(PyList_GET_ITEM(value, array_cntr_1))) == NULL) {
14558 object->array[array_cntr_1] = *(struct srvsvc_NetTransportInfo0 *)pytalloc_get_ptr(PyList_GET_ITEM(value, array_cntr_1));
14565 static PyGetSetDef py_srvsvc_NetTransportCtr0_getsetters[] = {
14566 { discard_const_p(char, "count"), py_srvsvc_NetTransportCtr0_get_count, py_srvsvc_NetTransportCtr0_set_count },
14567 { discard_const_p(char, "array"), py_srvsvc_NetTransportCtr0_get_array, py_srvsvc_NetTransportCtr0_set_array },
14571 static PyObject *py_srvsvc_NetTransportCtr0_new(PyTypeObject *type, PyObject *args, PyObject *kwargs)
14573 return pytalloc_new(struct srvsvc_NetTransportCtr0, type);
14577 static PyTypeObject srvsvc_NetTransportCtr0_Type = {
14578 PyObject_HEAD_INIT(NULL) 0,
14579 .tp_name = "srvsvc.NetTransportCtr0",
14580 .tp_getset = py_srvsvc_NetTransportCtr0_getsetters,
14581 .tp_methods = NULL,
14582 .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
14583 .tp_basicsize = sizeof(pytalloc_Object),
14584 .tp_new = py_srvsvc_NetTransportCtr0_new,
14588 static PyObject *py_srvsvc_NetTransportInfo1_get_vcs(PyObject *obj, void *closure)
14590 struct srvsvc_NetTransportInfo1 *object = (struct srvsvc_NetTransportInfo1 *)pytalloc_get_ptr(obj);
14592 py_vcs = PyInt_FromLong(object->vcs);
14596 static int py_srvsvc_NetTransportInfo1_set_vcs(PyObject *py_obj, PyObject *value, void *closure)
14598 struct srvsvc_NetTransportInfo1 *object = (struct srvsvc_NetTransportInfo1 *)pytalloc_get_ptr(py_obj);
14599 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
14600 object->vcs = PyInt_AsLong(value);
14604 static PyObject *py_srvsvc_NetTransportInfo1_get_name(PyObject *obj, void *closure)
14606 struct srvsvc_NetTransportInfo1 *object = (struct srvsvc_NetTransportInfo1 *)pytalloc_get_ptr(obj);
14608 if (object->name == NULL) {
14610 Py_INCREF(py_name);
14612 if (object->name == NULL) {
14614 Py_INCREF(py_name);
14616 py_name = PyUnicode_Decode(object->name, strlen(object->name), "utf-8", "ignore");
14622 static int py_srvsvc_NetTransportInfo1_set_name(PyObject *py_obj, PyObject *value, void *closure)
14624 struct srvsvc_NetTransportInfo1 *object = (struct srvsvc_NetTransportInfo1 *)pytalloc_get_ptr(py_obj);
14625 if (value == Py_None) {
14626 object->name = NULL;
14628 object->name = NULL;
14629 if (PyUnicode_Check(value)) {
14630 object->name = PyString_AS_STRING(PyUnicode_AsEncodedString(value, "utf-8", "ignore"));
14631 } else if (PyString_Check(value)) {
14632 object->name = PyString_AS_STRING(value);
14634 PyErr_Format(PyExc_TypeError, "Expected string or unicode object, got %s", Py_TYPE(value)->tp_name);
14641 static PyObject *py_srvsvc_NetTransportInfo1_get_addr(PyObject *obj, void *closure)
14643 struct srvsvc_NetTransportInfo1 *object = (struct srvsvc_NetTransportInfo1 *)pytalloc_get_ptr(obj);
14645 if (object->addr == NULL) {
14647 Py_INCREF(py_addr);
14649 py_addr = PyList_New(object->addr_len);
14650 if (py_addr == NULL) {
14655 for (addr_cntr_1 = 0; addr_cntr_1 < object->addr_len; addr_cntr_1++) {
14656 PyObject *py_addr_1;
14657 py_addr_1 = PyInt_FromLong(object->addr[addr_cntr_1]);
14658 PyList_SetItem(py_addr, addr_cntr_1, py_addr_1);
14665 static int py_srvsvc_NetTransportInfo1_set_addr(PyObject *py_obj, PyObject *value, void *closure)
14667 struct srvsvc_NetTransportInfo1 *object = (struct srvsvc_NetTransportInfo1 *)pytalloc_get_ptr(py_obj);
14668 talloc_unlink(pytalloc_get_mem_ctx(py_obj), object->addr);
14669 if (value == Py_None) {
14670 object->addr = NULL;
14672 object->addr = NULL;
14673 PY_CHECK_TYPE(&PyList_Type, value, return -1;);
14676 object->addr = talloc_array_ptrtype(pytalloc_get_mem_ctx(py_obj), object->addr, PyList_GET_SIZE(value));
14677 if (!object->addr) { return -1;; }
14678 talloc_set_name_const(object->addr, "ARRAY: object->addr");
14679 for (addr_cntr_1 = 0; addr_cntr_1 < PyList_GET_SIZE(value); addr_cntr_1++) {
14680 PY_CHECK_TYPE(&PyInt_Type, PyList_GET_ITEM(value, addr_cntr_1), return -1;);
14681 object->addr[addr_cntr_1] = PyInt_AsLong(PyList_GET_ITEM(value, addr_cntr_1));
14688 static PyObject *py_srvsvc_NetTransportInfo1_get_addr_len(PyObject *obj, void *closure)
14690 struct srvsvc_NetTransportInfo1 *object = (struct srvsvc_NetTransportInfo1 *)pytalloc_get_ptr(obj);
14691 PyObject *py_addr_len;
14692 py_addr_len = PyInt_FromLong(object->addr_len);
14693 return py_addr_len;
14696 static int py_srvsvc_NetTransportInfo1_set_addr_len(PyObject *py_obj, PyObject *value, void *closure)
14698 struct srvsvc_NetTransportInfo1 *object = (struct srvsvc_NetTransportInfo1 *)pytalloc_get_ptr(py_obj);
14699 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
14700 object->addr_len = PyInt_AsLong(value);
14704 static PyObject *py_srvsvc_NetTransportInfo1_get_net_addr(PyObject *obj, void *closure)
14706 struct srvsvc_NetTransportInfo1 *object = (struct srvsvc_NetTransportInfo1 *)pytalloc_get_ptr(obj);
14707 PyObject *py_net_addr;
14708 if (object->net_addr == NULL) {
14709 py_net_addr = Py_None;
14710 Py_INCREF(py_net_addr);
14712 if (object->net_addr == NULL) {
14713 py_net_addr = Py_None;
14714 Py_INCREF(py_net_addr);
14716 py_net_addr = PyUnicode_Decode(object->net_addr, strlen(object->net_addr), "utf-8", "ignore");
14719 return py_net_addr;
14722 static int py_srvsvc_NetTransportInfo1_set_net_addr(PyObject *py_obj, PyObject *value, void *closure)
14724 struct srvsvc_NetTransportInfo1 *object = (struct srvsvc_NetTransportInfo1 *)pytalloc_get_ptr(py_obj);
14725 if (value == Py_None) {
14726 object->net_addr = NULL;
14728 object->net_addr = NULL;
14729 if (PyUnicode_Check(value)) {
14730 object->net_addr = PyString_AS_STRING(PyUnicode_AsEncodedString(value, "utf-8", "ignore"));
14731 } else if (PyString_Check(value)) {
14732 object->net_addr = PyString_AS_STRING(value);
14734 PyErr_Format(PyExc_TypeError, "Expected string or unicode object, got %s", Py_TYPE(value)->tp_name);
14741 static PyObject *py_srvsvc_NetTransportInfo1_get_domain(PyObject *obj, void *closure)
14743 struct srvsvc_NetTransportInfo1 *object = (struct srvsvc_NetTransportInfo1 *)pytalloc_get_ptr(obj);
14744 PyObject *py_domain;
14745 if (object->domain == NULL) {
14746 py_domain = Py_None;
14747 Py_INCREF(py_domain);
14749 if (object->domain == NULL) {
14750 py_domain = Py_None;
14751 Py_INCREF(py_domain);
14753 py_domain = PyUnicode_Decode(object->domain, strlen(object->domain), "utf-8", "ignore");
14759 static int py_srvsvc_NetTransportInfo1_set_domain(PyObject *py_obj, PyObject *value, void *closure)
14761 struct srvsvc_NetTransportInfo1 *object = (struct srvsvc_NetTransportInfo1 *)pytalloc_get_ptr(py_obj);
14762 if (value == Py_None) {
14763 object->domain = NULL;
14765 object->domain = NULL;
14766 if (PyUnicode_Check(value)) {
14767 object->domain = PyString_AS_STRING(PyUnicode_AsEncodedString(value, "utf-8", "ignore"));
14768 } else if (PyString_Check(value)) {
14769 object->domain = PyString_AS_STRING(value);
14771 PyErr_Format(PyExc_TypeError, "Expected string or unicode object, got %s", Py_TYPE(value)->tp_name);
14778 static PyGetSetDef py_srvsvc_NetTransportInfo1_getsetters[] = {
14779 { discard_const_p(char, "vcs"), py_srvsvc_NetTransportInfo1_get_vcs, py_srvsvc_NetTransportInfo1_set_vcs },
14780 { discard_const_p(char, "name"), py_srvsvc_NetTransportInfo1_get_name, py_srvsvc_NetTransportInfo1_set_name },
14781 { discard_const_p(char, "addr"), py_srvsvc_NetTransportInfo1_get_addr, py_srvsvc_NetTransportInfo1_set_addr },
14782 { discard_const_p(char, "addr_len"), py_srvsvc_NetTransportInfo1_get_addr_len, py_srvsvc_NetTransportInfo1_set_addr_len },
14783 { discard_const_p(char, "net_addr"), py_srvsvc_NetTransportInfo1_get_net_addr, py_srvsvc_NetTransportInfo1_set_net_addr },
14784 { discard_const_p(char, "domain"), py_srvsvc_NetTransportInfo1_get_domain, py_srvsvc_NetTransportInfo1_set_domain },
14788 static PyObject *py_srvsvc_NetTransportInfo1_new(PyTypeObject *type, PyObject *args, PyObject *kwargs)
14790 return pytalloc_new(struct srvsvc_NetTransportInfo1, type);
14794 static PyTypeObject srvsvc_NetTransportInfo1_Type = {
14795 PyObject_HEAD_INIT(NULL) 0,
14796 .tp_name = "srvsvc.NetTransportInfo1",
14797 .tp_getset = py_srvsvc_NetTransportInfo1_getsetters,
14798 .tp_methods = NULL,
14799 .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
14800 .tp_basicsize = sizeof(pytalloc_Object),
14801 .tp_new = py_srvsvc_NetTransportInfo1_new,
14805 static PyObject *py_srvsvc_NetTransportCtr1_get_count(PyObject *obj, void *closure)
14807 struct srvsvc_NetTransportCtr1 *object = (struct srvsvc_NetTransportCtr1 *)pytalloc_get_ptr(obj);
14808 PyObject *py_count;
14809 py_count = PyInt_FromLong(object->count);
14813 static int py_srvsvc_NetTransportCtr1_set_count(PyObject *py_obj, PyObject *value, void *closure)
14815 struct srvsvc_NetTransportCtr1 *object = (struct srvsvc_NetTransportCtr1 *)pytalloc_get_ptr(py_obj);
14816 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
14817 object->count = PyInt_AsLong(value);
14821 static PyObject *py_srvsvc_NetTransportCtr1_get_array(PyObject *obj, void *closure)
14823 struct srvsvc_NetTransportCtr1 *object = (struct srvsvc_NetTransportCtr1 *)pytalloc_get_ptr(obj);
14824 PyObject *py_array;
14825 if (object->array == NULL) {
14826 py_array = Py_None;
14827 Py_INCREF(py_array);
14829 py_array = PyList_New(object->count);
14830 if (py_array == NULL) {
14835 for (array_cntr_1 = 0; array_cntr_1 < object->count; array_cntr_1++) {
14836 PyObject *py_array_1;
14837 py_array_1 = pytalloc_reference_ex(&srvsvc_NetTransportInfo1_Type, object->array, &object->array[array_cntr_1]);
14838 PyList_SetItem(py_array, array_cntr_1, py_array_1);
14845 static int py_srvsvc_NetTransportCtr1_set_array(PyObject *py_obj, PyObject *value, void *closure)
14847 struct srvsvc_NetTransportCtr1 *object = (struct srvsvc_NetTransportCtr1 *)pytalloc_get_ptr(py_obj);
14848 talloc_unlink(pytalloc_get_mem_ctx(py_obj), object->array);
14849 if (value == Py_None) {
14850 object->array = NULL;
14852 object->array = NULL;
14853 PY_CHECK_TYPE(&PyList_Type, value, return -1;);
14856 object->array = talloc_array_ptrtype(pytalloc_get_mem_ctx(py_obj), object->array, PyList_GET_SIZE(value));
14857 if (!object->array) { return -1;; }
14858 talloc_set_name_const(object->array, "ARRAY: object->array");
14859 for (array_cntr_1 = 0; array_cntr_1 < PyList_GET_SIZE(value); array_cntr_1++) {
14860 PY_CHECK_TYPE(&srvsvc_NetTransportInfo1_Type, PyList_GET_ITEM(value, array_cntr_1), return -1;);
14861 if (talloc_reference(object->array, pytalloc_get_mem_ctx(PyList_GET_ITEM(value, array_cntr_1))) == NULL) {
14865 object->array[array_cntr_1] = *(struct srvsvc_NetTransportInfo1 *)pytalloc_get_ptr(PyList_GET_ITEM(value, array_cntr_1));
14872 static PyGetSetDef py_srvsvc_NetTransportCtr1_getsetters[] = {
14873 { discard_const_p(char, "count"), py_srvsvc_NetTransportCtr1_get_count, py_srvsvc_NetTransportCtr1_set_count },
14874 { discard_const_p(char, "array"), py_srvsvc_NetTransportCtr1_get_array, py_srvsvc_NetTransportCtr1_set_array },
14878 static PyObject *py_srvsvc_NetTransportCtr1_new(PyTypeObject *type, PyObject *args, PyObject *kwargs)
14880 return pytalloc_new(struct srvsvc_NetTransportCtr1, type);
14884 static PyTypeObject srvsvc_NetTransportCtr1_Type = {
14885 PyObject_HEAD_INIT(NULL) 0,
14886 .tp_name = "srvsvc.NetTransportCtr1",
14887 .tp_getset = py_srvsvc_NetTransportCtr1_getsetters,
14888 .tp_methods = NULL,
14889 .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
14890 .tp_basicsize = sizeof(pytalloc_Object),
14891 .tp_new = py_srvsvc_NetTransportCtr1_new,
14895 static PyObject *py_srvsvc_NetTransportInfo2_get_vcs(PyObject *obj, void *closure)
14897 struct srvsvc_NetTransportInfo2 *object = (struct srvsvc_NetTransportInfo2 *)pytalloc_get_ptr(obj);
14899 py_vcs = PyInt_FromLong(object->vcs);
14903 static int py_srvsvc_NetTransportInfo2_set_vcs(PyObject *py_obj, PyObject *value, void *closure)
14905 struct srvsvc_NetTransportInfo2 *object = (struct srvsvc_NetTransportInfo2 *)pytalloc_get_ptr(py_obj);
14906 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
14907 object->vcs = PyInt_AsLong(value);
14911 static PyObject *py_srvsvc_NetTransportInfo2_get_name(PyObject *obj, void *closure)
14913 struct srvsvc_NetTransportInfo2 *object = (struct srvsvc_NetTransportInfo2 *)pytalloc_get_ptr(obj);
14915 if (object->name == NULL) {
14917 Py_INCREF(py_name);
14919 if (object->name == NULL) {
14921 Py_INCREF(py_name);
14923 py_name = PyUnicode_Decode(object->name, strlen(object->name), "utf-8", "ignore");
14929 static int py_srvsvc_NetTransportInfo2_set_name(PyObject *py_obj, PyObject *value, void *closure)
14931 struct srvsvc_NetTransportInfo2 *object = (struct srvsvc_NetTransportInfo2 *)pytalloc_get_ptr(py_obj);
14932 if (value == Py_None) {
14933 object->name = NULL;
14935 object->name = NULL;
14936 if (PyUnicode_Check(value)) {
14937 object->name = PyString_AS_STRING(PyUnicode_AsEncodedString(value, "utf-8", "ignore"));
14938 } else if (PyString_Check(value)) {
14939 object->name = PyString_AS_STRING(value);
14941 PyErr_Format(PyExc_TypeError, "Expected string or unicode object, got %s", Py_TYPE(value)->tp_name);
14948 static PyObject *py_srvsvc_NetTransportInfo2_get_addr(PyObject *obj, void *closure)
14950 struct srvsvc_NetTransportInfo2 *object = (struct srvsvc_NetTransportInfo2 *)pytalloc_get_ptr(obj);
14952 if (object->addr == NULL) {
14954 Py_INCREF(py_addr);
14956 py_addr = PyList_New(object->addr_len);
14957 if (py_addr == NULL) {
14962 for (addr_cntr_1 = 0; addr_cntr_1 < object->addr_len; addr_cntr_1++) {
14963 PyObject *py_addr_1;
14964 py_addr_1 = PyInt_FromLong(object->addr[addr_cntr_1]);
14965 PyList_SetItem(py_addr, addr_cntr_1, py_addr_1);
14972 static int py_srvsvc_NetTransportInfo2_set_addr(PyObject *py_obj, PyObject *value, void *closure)
14974 struct srvsvc_NetTransportInfo2 *object = (struct srvsvc_NetTransportInfo2 *)pytalloc_get_ptr(py_obj);
14975 talloc_unlink(pytalloc_get_mem_ctx(py_obj), object->addr);
14976 if (value == Py_None) {
14977 object->addr = NULL;
14979 object->addr = NULL;
14980 PY_CHECK_TYPE(&PyList_Type, value, return -1;);
14983 object->addr = talloc_array_ptrtype(pytalloc_get_mem_ctx(py_obj), object->addr, PyList_GET_SIZE(value));
14984 if (!object->addr) { return -1;; }
14985 talloc_set_name_const(object->addr, "ARRAY: object->addr");
14986 for (addr_cntr_1 = 0; addr_cntr_1 < PyList_GET_SIZE(value); addr_cntr_1++) {
14987 PY_CHECK_TYPE(&PyInt_Type, PyList_GET_ITEM(value, addr_cntr_1), return -1;);
14988 object->addr[addr_cntr_1] = PyInt_AsLong(PyList_GET_ITEM(value, addr_cntr_1));
14995 static PyObject *py_srvsvc_NetTransportInfo2_get_addr_len(PyObject *obj, void *closure)
14997 struct srvsvc_NetTransportInfo2 *object = (struct srvsvc_NetTransportInfo2 *)pytalloc_get_ptr(obj);
14998 PyObject *py_addr_len;
14999 py_addr_len = PyInt_FromLong(object->addr_len);
15000 return py_addr_len;
15003 static int py_srvsvc_NetTransportInfo2_set_addr_len(PyObject *py_obj, PyObject *value, void *closure)
15005 struct srvsvc_NetTransportInfo2 *object = (struct srvsvc_NetTransportInfo2 *)pytalloc_get_ptr(py_obj);
15006 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
15007 object->addr_len = PyInt_AsLong(value);
15011 static PyObject *py_srvsvc_NetTransportInfo2_get_net_addr(PyObject *obj, void *closure)
15013 struct srvsvc_NetTransportInfo2 *object = (struct srvsvc_NetTransportInfo2 *)pytalloc_get_ptr(obj);
15014 PyObject *py_net_addr;
15015 if (object->net_addr == NULL) {
15016 py_net_addr = Py_None;
15017 Py_INCREF(py_net_addr);
15019 if (object->net_addr == NULL) {
15020 py_net_addr = Py_None;
15021 Py_INCREF(py_net_addr);
15023 py_net_addr = PyUnicode_Decode(object->net_addr, strlen(object->net_addr), "utf-8", "ignore");
15026 return py_net_addr;
15029 static int py_srvsvc_NetTransportInfo2_set_net_addr(PyObject *py_obj, PyObject *value, void *closure)
15031 struct srvsvc_NetTransportInfo2 *object = (struct srvsvc_NetTransportInfo2 *)pytalloc_get_ptr(py_obj);
15032 if (value == Py_None) {
15033 object->net_addr = NULL;
15035 object->net_addr = NULL;
15036 if (PyUnicode_Check(value)) {
15037 object->net_addr = PyString_AS_STRING(PyUnicode_AsEncodedString(value, "utf-8", "ignore"));
15038 } else if (PyString_Check(value)) {
15039 object->net_addr = PyString_AS_STRING(value);
15041 PyErr_Format(PyExc_TypeError, "Expected string or unicode object, got %s", Py_TYPE(value)->tp_name);
15048 static PyObject *py_srvsvc_NetTransportInfo2_get_domain(PyObject *obj, void *closure)
15050 struct srvsvc_NetTransportInfo2 *object = (struct srvsvc_NetTransportInfo2 *)pytalloc_get_ptr(obj);
15051 PyObject *py_domain;
15052 if (object->domain == NULL) {
15053 py_domain = Py_None;
15054 Py_INCREF(py_domain);
15056 if (object->domain == NULL) {
15057 py_domain = Py_None;
15058 Py_INCREF(py_domain);
15060 py_domain = PyUnicode_Decode(object->domain, strlen(object->domain), "utf-8", "ignore");
15066 static int py_srvsvc_NetTransportInfo2_set_domain(PyObject *py_obj, PyObject *value, void *closure)
15068 struct srvsvc_NetTransportInfo2 *object = (struct srvsvc_NetTransportInfo2 *)pytalloc_get_ptr(py_obj);
15069 if (value == Py_None) {
15070 object->domain = NULL;
15072 object->domain = NULL;
15073 if (PyUnicode_Check(value)) {
15074 object->domain = PyString_AS_STRING(PyUnicode_AsEncodedString(value, "utf-8", "ignore"));
15075 } else if (PyString_Check(value)) {
15076 object->domain = PyString_AS_STRING(value);
15078 PyErr_Format(PyExc_TypeError, "Expected string or unicode object, got %s", Py_TYPE(value)->tp_name);
15085 static PyObject *py_srvsvc_NetTransportInfo2_get_unknown(PyObject *obj, void *closure)
15087 struct srvsvc_NetTransportInfo2 *object = (struct srvsvc_NetTransportInfo2 *)pytalloc_get_ptr(obj);
15088 PyObject *py_unknown;
15089 py_unknown = PyInt_FromLong(object->unknown);
15093 static int py_srvsvc_NetTransportInfo2_set_unknown(PyObject *py_obj, PyObject *value, void *closure)
15095 struct srvsvc_NetTransportInfo2 *object = (struct srvsvc_NetTransportInfo2 *)pytalloc_get_ptr(py_obj);
15096 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
15097 object->unknown = PyInt_AsLong(value);
15101 static PyGetSetDef py_srvsvc_NetTransportInfo2_getsetters[] = {
15102 { discard_const_p(char, "vcs"), py_srvsvc_NetTransportInfo2_get_vcs, py_srvsvc_NetTransportInfo2_set_vcs },
15103 { discard_const_p(char, "name"), py_srvsvc_NetTransportInfo2_get_name, py_srvsvc_NetTransportInfo2_set_name },
15104 { discard_const_p(char, "addr"), py_srvsvc_NetTransportInfo2_get_addr, py_srvsvc_NetTransportInfo2_set_addr },
15105 { discard_const_p(char, "addr_len"), py_srvsvc_NetTransportInfo2_get_addr_len, py_srvsvc_NetTransportInfo2_set_addr_len },
15106 { discard_const_p(char, "net_addr"), py_srvsvc_NetTransportInfo2_get_net_addr, py_srvsvc_NetTransportInfo2_set_net_addr },
15107 { discard_const_p(char, "domain"), py_srvsvc_NetTransportInfo2_get_domain, py_srvsvc_NetTransportInfo2_set_domain },
15108 { discard_const_p(char, "unknown"), py_srvsvc_NetTransportInfo2_get_unknown, py_srvsvc_NetTransportInfo2_set_unknown },
15112 static PyObject *py_srvsvc_NetTransportInfo2_new(PyTypeObject *type, PyObject *args, PyObject *kwargs)
15114 return pytalloc_new(struct srvsvc_NetTransportInfo2, type);
15118 static PyTypeObject srvsvc_NetTransportInfo2_Type = {
15119 PyObject_HEAD_INIT(NULL) 0,
15120 .tp_name = "srvsvc.NetTransportInfo2",
15121 .tp_getset = py_srvsvc_NetTransportInfo2_getsetters,
15122 .tp_methods = NULL,
15123 .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
15124 .tp_basicsize = sizeof(pytalloc_Object),
15125 .tp_new = py_srvsvc_NetTransportInfo2_new,
15129 static PyObject *py_srvsvc_NetTransportCtr2_get_count(PyObject *obj, void *closure)
15131 struct srvsvc_NetTransportCtr2 *object = (struct srvsvc_NetTransportCtr2 *)pytalloc_get_ptr(obj);
15132 PyObject *py_count;
15133 py_count = PyInt_FromLong(object->count);
15137 static int py_srvsvc_NetTransportCtr2_set_count(PyObject *py_obj, PyObject *value, void *closure)
15139 struct srvsvc_NetTransportCtr2 *object = (struct srvsvc_NetTransportCtr2 *)pytalloc_get_ptr(py_obj);
15140 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
15141 object->count = PyInt_AsLong(value);
15145 static PyObject *py_srvsvc_NetTransportCtr2_get_array(PyObject *obj, void *closure)
15147 struct srvsvc_NetTransportCtr2 *object = (struct srvsvc_NetTransportCtr2 *)pytalloc_get_ptr(obj);
15148 PyObject *py_array;
15149 if (object->array == NULL) {
15150 py_array = Py_None;
15151 Py_INCREF(py_array);
15153 py_array = PyList_New(object->count);
15154 if (py_array == NULL) {
15159 for (array_cntr_1 = 0; array_cntr_1 < object->count; array_cntr_1++) {
15160 PyObject *py_array_1;
15161 py_array_1 = pytalloc_reference_ex(&srvsvc_NetTransportInfo2_Type, object->array, &object->array[array_cntr_1]);
15162 PyList_SetItem(py_array, array_cntr_1, py_array_1);
15169 static int py_srvsvc_NetTransportCtr2_set_array(PyObject *py_obj, PyObject *value, void *closure)
15171 struct srvsvc_NetTransportCtr2 *object = (struct srvsvc_NetTransportCtr2 *)pytalloc_get_ptr(py_obj);
15172 talloc_unlink(pytalloc_get_mem_ctx(py_obj), object->array);
15173 if (value == Py_None) {
15174 object->array = NULL;
15176 object->array = NULL;
15177 PY_CHECK_TYPE(&PyList_Type, value, return -1;);
15180 object->array = talloc_array_ptrtype(pytalloc_get_mem_ctx(py_obj), object->array, PyList_GET_SIZE(value));
15181 if (!object->array) { return -1;; }
15182 talloc_set_name_const(object->array, "ARRAY: object->array");
15183 for (array_cntr_1 = 0; array_cntr_1 < PyList_GET_SIZE(value); array_cntr_1++) {
15184 PY_CHECK_TYPE(&srvsvc_NetTransportInfo2_Type, PyList_GET_ITEM(value, array_cntr_1), return -1;);
15185 if (talloc_reference(object->array, pytalloc_get_mem_ctx(PyList_GET_ITEM(value, array_cntr_1))) == NULL) {
15189 object->array[array_cntr_1] = *(struct srvsvc_NetTransportInfo2 *)pytalloc_get_ptr(PyList_GET_ITEM(value, array_cntr_1));
15196 static PyGetSetDef py_srvsvc_NetTransportCtr2_getsetters[] = {
15197 { discard_const_p(char, "count"), py_srvsvc_NetTransportCtr2_get_count, py_srvsvc_NetTransportCtr2_set_count },
15198 { discard_const_p(char, "array"), py_srvsvc_NetTransportCtr2_get_array, py_srvsvc_NetTransportCtr2_set_array },
15202 static PyObject *py_srvsvc_NetTransportCtr2_new(PyTypeObject *type, PyObject *args, PyObject *kwargs)
15204 return pytalloc_new(struct srvsvc_NetTransportCtr2, type);
15208 static PyTypeObject srvsvc_NetTransportCtr2_Type = {
15209 PyObject_HEAD_INIT(NULL) 0,
15210 .tp_name = "srvsvc.NetTransportCtr2",
15211 .tp_getset = py_srvsvc_NetTransportCtr2_getsetters,
15212 .tp_methods = NULL,
15213 .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
15214 .tp_basicsize = sizeof(pytalloc_Object),
15215 .tp_new = py_srvsvc_NetTransportCtr2_new,
15219 static PyObject *py_srvsvc_NetTransportInfo3_get_vcs(PyObject *obj, void *closure)
15221 struct srvsvc_NetTransportInfo3 *object = (struct srvsvc_NetTransportInfo3 *)pytalloc_get_ptr(obj);
15223 py_vcs = PyInt_FromLong(object->vcs);
15227 static int py_srvsvc_NetTransportInfo3_set_vcs(PyObject *py_obj, PyObject *value, void *closure)
15229 struct srvsvc_NetTransportInfo3 *object = (struct srvsvc_NetTransportInfo3 *)pytalloc_get_ptr(py_obj);
15230 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
15231 object->vcs = PyInt_AsLong(value);
15235 static PyObject *py_srvsvc_NetTransportInfo3_get_name(PyObject *obj, void *closure)
15237 struct srvsvc_NetTransportInfo3 *object = (struct srvsvc_NetTransportInfo3 *)pytalloc_get_ptr(obj);
15239 if (object->name == NULL) {
15241 Py_INCREF(py_name);
15243 if (object->name == NULL) {
15245 Py_INCREF(py_name);
15247 py_name = PyUnicode_Decode(object->name, strlen(object->name), "utf-8", "ignore");
15253 static int py_srvsvc_NetTransportInfo3_set_name(PyObject *py_obj, PyObject *value, void *closure)
15255 struct srvsvc_NetTransportInfo3 *object = (struct srvsvc_NetTransportInfo3 *)pytalloc_get_ptr(py_obj);
15256 if (value == Py_None) {
15257 object->name = NULL;
15259 object->name = NULL;
15260 if (PyUnicode_Check(value)) {
15261 object->name = PyString_AS_STRING(PyUnicode_AsEncodedString(value, "utf-8", "ignore"));
15262 } else if (PyString_Check(value)) {
15263 object->name = PyString_AS_STRING(value);
15265 PyErr_Format(PyExc_TypeError, "Expected string or unicode object, got %s", Py_TYPE(value)->tp_name);
15272 static PyObject *py_srvsvc_NetTransportInfo3_get_addr(PyObject *obj, void *closure)
15274 struct srvsvc_NetTransportInfo3 *object = (struct srvsvc_NetTransportInfo3 *)pytalloc_get_ptr(obj);
15276 if (object->addr == NULL) {
15278 Py_INCREF(py_addr);
15280 py_addr = PyList_New(object->addr_len);
15281 if (py_addr == NULL) {
15286 for (addr_cntr_1 = 0; addr_cntr_1 < object->addr_len; addr_cntr_1++) {
15287 PyObject *py_addr_1;
15288 py_addr_1 = PyInt_FromLong(object->addr[addr_cntr_1]);
15289 PyList_SetItem(py_addr, addr_cntr_1, py_addr_1);
15296 static int py_srvsvc_NetTransportInfo3_set_addr(PyObject *py_obj, PyObject *value, void *closure)
15298 struct srvsvc_NetTransportInfo3 *object = (struct srvsvc_NetTransportInfo3 *)pytalloc_get_ptr(py_obj);
15299 talloc_unlink(pytalloc_get_mem_ctx(py_obj), object->addr);
15300 if (value == Py_None) {
15301 object->addr = NULL;
15303 object->addr = NULL;
15304 PY_CHECK_TYPE(&PyList_Type, value, return -1;);
15307 object->addr = talloc_array_ptrtype(pytalloc_get_mem_ctx(py_obj), object->addr, PyList_GET_SIZE(value));
15308 if (!object->addr) { return -1;; }
15309 talloc_set_name_const(object->addr, "ARRAY: object->addr");
15310 for (addr_cntr_1 = 0; addr_cntr_1 < PyList_GET_SIZE(value); addr_cntr_1++) {
15311 PY_CHECK_TYPE(&PyInt_Type, PyList_GET_ITEM(value, addr_cntr_1), return -1;);
15312 object->addr[addr_cntr_1] = PyInt_AsLong(PyList_GET_ITEM(value, addr_cntr_1));
15319 static PyObject *py_srvsvc_NetTransportInfo3_get_addr_len(PyObject *obj, void *closure)
15321 struct srvsvc_NetTransportInfo3 *object = (struct srvsvc_NetTransportInfo3 *)pytalloc_get_ptr(obj);
15322 PyObject *py_addr_len;
15323 py_addr_len = PyInt_FromLong(object->addr_len);
15324 return py_addr_len;
15327 static int py_srvsvc_NetTransportInfo3_set_addr_len(PyObject *py_obj, PyObject *value, void *closure)
15329 struct srvsvc_NetTransportInfo3 *object = (struct srvsvc_NetTransportInfo3 *)pytalloc_get_ptr(py_obj);
15330 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
15331 object->addr_len = PyInt_AsLong(value);
15335 static PyObject *py_srvsvc_NetTransportInfo3_get_net_addr(PyObject *obj, void *closure)
15337 struct srvsvc_NetTransportInfo3 *object = (struct srvsvc_NetTransportInfo3 *)pytalloc_get_ptr(obj);
15338 PyObject *py_net_addr;
15339 if (object->net_addr == NULL) {
15340 py_net_addr = Py_None;
15341 Py_INCREF(py_net_addr);
15343 if (object->net_addr == NULL) {
15344 py_net_addr = Py_None;
15345 Py_INCREF(py_net_addr);
15347 py_net_addr = PyUnicode_Decode(object->net_addr, strlen(object->net_addr), "utf-8", "ignore");
15350 return py_net_addr;
15353 static int py_srvsvc_NetTransportInfo3_set_net_addr(PyObject *py_obj, PyObject *value, void *closure)
15355 struct srvsvc_NetTransportInfo3 *object = (struct srvsvc_NetTransportInfo3 *)pytalloc_get_ptr(py_obj);
15356 if (value == Py_None) {
15357 object->net_addr = NULL;
15359 object->net_addr = NULL;
15360 if (PyUnicode_Check(value)) {
15361 object->net_addr = PyString_AS_STRING(PyUnicode_AsEncodedString(value, "utf-8", "ignore"));
15362 } else if (PyString_Check(value)) {
15363 object->net_addr = PyString_AS_STRING(value);
15365 PyErr_Format(PyExc_TypeError, "Expected string or unicode object, got %s", Py_TYPE(value)->tp_name);
15372 static PyObject *py_srvsvc_NetTransportInfo3_get_domain(PyObject *obj, void *closure)
15374 struct srvsvc_NetTransportInfo3 *object = (struct srvsvc_NetTransportInfo3 *)pytalloc_get_ptr(obj);
15375 PyObject *py_domain;
15376 if (object->domain == NULL) {
15377 py_domain = Py_None;
15378 Py_INCREF(py_domain);
15380 if (object->domain == NULL) {
15381 py_domain = Py_None;
15382 Py_INCREF(py_domain);
15384 py_domain = PyUnicode_Decode(object->domain, strlen(object->domain), "utf-8", "ignore");
15390 static int py_srvsvc_NetTransportInfo3_set_domain(PyObject *py_obj, PyObject *value, void *closure)
15392 struct srvsvc_NetTransportInfo3 *object = (struct srvsvc_NetTransportInfo3 *)pytalloc_get_ptr(py_obj);
15393 if (value == Py_None) {
15394 object->domain = NULL;
15396 object->domain = NULL;
15397 if (PyUnicode_Check(value)) {
15398 object->domain = PyString_AS_STRING(PyUnicode_AsEncodedString(value, "utf-8", "ignore"));
15399 } else if (PyString_Check(value)) {
15400 object->domain = PyString_AS_STRING(value);
15402 PyErr_Format(PyExc_TypeError, "Expected string or unicode object, got %s", Py_TYPE(value)->tp_name);
15409 static PyObject *py_srvsvc_NetTransportInfo3_get_unknown1(PyObject *obj, void *closure)
15411 struct srvsvc_NetTransportInfo3 *object = (struct srvsvc_NetTransportInfo3 *)pytalloc_get_ptr(obj);
15412 PyObject *py_unknown1;
15413 py_unknown1 = PyInt_FromLong(object->unknown1);
15414 return py_unknown1;
15417 static int py_srvsvc_NetTransportInfo3_set_unknown1(PyObject *py_obj, PyObject *value, void *closure)
15419 struct srvsvc_NetTransportInfo3 *object = (struct srvsvc_NetTransportInfo3 *)pytalloc_get_ptr(py_obj);
15420 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
15421 object->unknown1 = PyInt_AsLong(value);
15425 static PyObject *py_srvsvc_NetTransportInfo3_get_unknown2(PyObject *obj, void *closure)
15427 struct srvsvc_NetTransportInfo3 *object = (struct srvsvc_NetTransportInfo3 *)pytalloc_get_ptr(obj);
15428 PyObject *py_unknown2;
15429 py_unknown2 = PyInt_FromLong(object->unknown2);
15430 return py_unknown2;
15433 static int py_srvsvc_NetTransportInfo3_set_unknown2(PyObject *py_obj, PyObject *value, void *closure)
15435 struct srvsvc_NetTransportInfo3 *object = (struct srvsvc_NetTransportInfo3 *)pytalloc_get_ptr(py_obj);
15436 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
15437 object->unknown2 = PyInt_AsLong(value);
15441 static PyObject *py_srvsvc_NetTransportInfo3_get_unknown3(PyObject *obj, void *closure)
15443 struct srvsvc_NetTransportInfo3 *object = (struct srvsvc_NetTransportInfo3 *)pytalloc_get_ptr(obj);
15444 PyObject *py_unknown3;
15445 py_unknown3 = PyList_New(256);
15446 if (py_unknown3 == NULL) {
15450 int unknown3_cntr_0;
15451 for (unknown3_cntr_0 = 0; unknown3_cntr_0 < 256; unknown3_cntr_0++) {
15452 PyObject *py_unknown3_0;
15453 py_unknown3_0 = PyInt_FromLong(object->unknown3[unknown3_cntr_0]);
15454 PyList_SetItem(py_unknown3, unknown3_cntr_0, py_unknown3_0);
15457 return py_unknown3;
15460 static int py_srvsvc_NetTransportInfo3_set_unknown3(PyObject *py_obj, PyObject *value, void *closure)
15462 struct srvsvc_NetTransportInfo3 *object = (struct srvsvc_NetTransportInfo3 *)pytalloc_get_ptr(py_obj);
15463 PY_CHECK_TYPE(&PyList_Type, value, return -1;);
15465 int unknown3_cntr_0;
15466 for (unknown3_cntr_0 = 0; unknown3_cntr_0 < PyList_GET_SIZE(value); unknown3_cntr_0++) {
15467 PY_CHECK_TYPE(&PyInt_Type, PyList_GET_ITEM(value, unknown3_cntr_0), return -1;);
15468 object->unknown3[unknown3_cntr_0] = PyInt_AsLong(PyList_GET_ITEM(value, unknown3_cntr_0));
15474 static PyGetSetDef py_srvsvc_NetTransportInfo3_getsetters[] = {
15475 { discard_const_p(char, "vcs"), py_srvsvc_NetTransportInfo3_get_vcs, py_srvsvc_NetTransportInfo3_set_vcs },
15476 { discard_const_p(char, "name"), py_srvsvc_NetTransportInfo3_get_name, py_srvsvc_NetTransportInfo3_set_name },
15477 { discard_const_p(char, "addr"), py_srvsvc_NetTransportInfo3_get_addr, py_srvsvc_NetTransportInfo3_set_addr },
15478 { discard_const_p(char, "addr_len"), py_srvsvc_NetTransportInfo3_get_addr_len, py_srvsvc_NetTransportInfo3_set_addr_len },
15479 { discard_const_p(char, "net_addr"), py_srvsvc_NetTransportInfo3_get_net_addr, py_srvsvc_NetTransportInfo3_set_net_addr },
15480 { discard_const_p(char, "domain"), py_srvsvc_NetTransportInfo3_get_domain, py_srvsvc_NetTransportInfo3_set_domain },
15481 { discard_const_p(char, "unknown1"), py_srvsvc_NetTransportInfo3_get_unknown1, py_srvsvc_NetTransportInfo3_set_unknown1 },
15482 { discard_const_p(char, "unknown2"), py_srvsvc_NetTransportInfo3_get_unknown2, py_srvsvc_NetTransportInfo3_set_unknown2 },
15483 { discard_const_p(char, "unknown3"), py_srvsvc_NetTransportInfo3_get_unknown3, py_srvsvc_NetTransportInfo3_set_unknown3 },
15487 static PyObject *py_srvsvc_NetTransportInfo3_new(PyTypeObject *type, PyObject *args, PyObject *kwargs)
15489 return pytalloc_new(struct srvsvc_NetTransportInfo3, type);
15493 static PyTypeObject srvsvc_NetTransportInfo3_Type = {
15494 PyObject_HEAD_INIT(NULL) 0,
15495 .tp_name = "srvsvc.NetTransportInfo3",
15496 .tp_getset = py_srvsvc_NetTransportInfo3_getsetters,
15497 .tp_methods = NULL,
15498 .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
15499 .tp_basicsize = sizeof(pytalloc_Object),
15500 .tp_new = py_srvsvc_NetTransportInfo3_new,
15504 static PyObject *py_srvsvc_NetTransportCtr3_get_count(PyObject *obj, void *closure)
15506 struct srvsvc_NetTransportCtr3 *object = (struct srvsvc_NetTransportCtr3 *)pytalloc_get_ptr(obj);
15507 PyObject *py_count;
15508 py_count = PyInt_FromLong(object->count);
15512 static int py_srvsvc_NetTransportCtr3_set_count(PyObject *py_obj, PyObject *value, void *closure)
15514 struct srvsvc_NetTransportCtr3 *object = (struct srvsvc_NetTransportCtr3 *)pytalloc_get_ptr(py_obj);
15515 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
15516 object->count = PyInt_AsLong(value);
15520 static PyObject *py_srvsvc_NetTransportCtr3_get_array(PyObject *obj, void *closure)
15522 struct srvsvc_NetTransportCtr3 *object = (struct srvsvc_NetTransportCtr3 *)pytalloc_get_ptr(obj);
15523 PyObject *py_array;
15524 if (object->array == NULL) {
15525 py_array = Py_None;
15526 Py_INCREF(py_array);
15528 py_array = PyList_New(object->count);
15529 if (py_array == NULL) {
15534 for (array_cntr_1 = 0; array_cntr_1 < object->count; array_cntr_1++) {
15535 PyObject *py_array_1;
15536 py_array_1 = pytalloc_reference_ex(&srvsvc_NetTransportInfo3_Type, object->array, &object->array[array_cntr_1]);
15537 PyList_SetItem(py_array, array_cntr_1, py_array_1);
15544 static int py_srvsvc_NetTransportCtr3_set_array(PyObject *py_obj, PyObject *value, void *closure)
15546 struct srvsvc_NetTransportCtr3 *object = (struct srvsvc_NetTransportCtr3 *)pytalloc_get_ptr(py_obj);
15547 talloc_unlink(pytalloc_get_mem_ctx(py_obj), object->array);
15548 if (value == Py_None) {
15549 object->array = NULL;
15551 object->array = NULL;
15552 PY_CHECK_TYPE(&PyList_Type, value, return -1;);
15555 object->array = talloc_array_ptrtype(pytalloc_get_mem_ctx(py_obj), object->array, PyList_GET_SIZE(value));
15556 if (!object->array) { return -1;; }
15557 talloc_set_name_const(object->array, "ARRAY: object->array");
15558 for (array_cntr_1 = 0; array_cntr_1 < PyList_GET_SIZE(value); array_cntr_1++) {
15559 PY_CHECK_TYPE(&srvsvc_NetTransportInfo3_Type, PyList_GET_ITEM(value, array_cntr_1), return -1;);
15560 if (talloc_reference(object->array, pytalloc_get_mem_ctx(PyList_GET_ITEM(value, array_cntr_1))) == NULL) {
15564 object->array[array_cntr_1] = *(struct srvsvc_NetTransportInfo3 *)pytalloc_get_ptr(PyList_GET_ITEM(value, array_cntr_1));
15571 static PyGetSetDef py_srvsvc_NetTransportCtr3_getsetters[] = {
15572 { discard_const_p(char, "count"), py_srvsvc_NetTransportCtr3_get_count, py_srvsvc_NetTransportCtr3_set_count },
15573 { discard_const_p(char, "array"), py_srvsvc_NetTransportCtr3_get_array, py_srvsvc_NetTransportCtr3_set_array },
15577 static PyObject *py_srvsvc_NetTransportCtr3_new(PyTypeObject *type, PyObject *args, PyObject *kwargs)
15579 return pytalloc_new(struct srvsvc_NetTransportCtr3, type);
15583 static PyTypeObject srvsvc_NetTransportCtr3_Type = {
15584 PyObject_HEAD_INIT(NULL) 0,
15585 .tp_name = "srvsvc.NetTransportCtr3",
15586 .tp_getset = py_srvsvc_NetTransportCtr3_getsetters,
15587 .tp_methods = NULL,
15588 .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
15589 .tp_basicsize = sizeof(pytalloc_Object),
15590 .tp_new = py_srvsvc_NetTransportCtr3_new,
15593 PyObject *py_import_srvsvc_NetTransportCtr(TALLOC_CTX *mem_ctx, int level, union srvsvc_NetTransportCtr *in)
15599 if (in->ctr0 == NULL) {
15603 ret = pytalloc_reference_ex(&srvsvc_NetTransportCtr0_Type, in->ctr0, in->ctr0);
15608 if (in->ctr1 == NULL) {
15612 ret = pytalloc_reference_ex(&srvsvc_NetTransportCtr1_Type, in->ctr1, in->ctr1);
15617 if (in->ctr2 == NULL) {
15621 ret = pytalloc_reference_ex(&srvsvc_NetTransportCtr2_Type, in->ctr2, in->ctr2);
15626 if (in->ctr3 == NULL) {
15630 ret = pytalloc_reference_ex(&srvsvc_NetTransportCtr3_Type, in->ctr3, in->ctr3);
15640 PyErr_SetString(PyExc_TypeError, "unknown union level");
15644 union srvsvc_NetTransportCtr *py_export_srvsvc_NetTransportCtr(TALLOC_CTX *mem_ctx, int level, PyObject *in)
15646 union srvsvc_NetTransportCtr *ret = talloc_zero(mem_ctx, union srvsvc_NetTransportCtr);
15649 if (in == Py_None) {
15653 PY_CHECK_TYPE(&srvsvc_NetTransportCtr0_Type, in, talloc_free(ret); return NULL;);
15654 if (talloc_reference(mem_ctx, pytalloc_get_mem_ctx(in)) == NULL) {
15656 talloc_free(ret); return NULL;
15658 ret->ctr0 = (struct srvsvc_NetTransportCtr0 *)pytalloc_get_ptr(in);
15663 if (in == Py_None) {
15667 PY_CHECK_TYPE(&srvsvc_NetTransportCtr1_Type, in, talloc_free(ret); return NULL;);
15668 if (talloc_reference(mem_ctx, pytalloc_get_mem_ctx(in)) == NULL) {
15670 talloc_free(ret); return NULL;
15672 ret->ctr1 = (struct srvsvc_NetTransportCtr1 *)pytalloc_get_ptr(in);
15677 if (in == Py_None) {
15681 PY_CHECK_TYPE(&srvsvc_NetTransportCtr2_Type, in, talloc_free(ret); return NULL;);
15682 if (talloc_reference(mem_ctx, pytalloc_get_mem_ctx(in)) == NULL) {
15684 talloc_free(ret); return NULL;
15686 ret->ctr2 = (struct srvsvc_NetTransportCtr2 *)pytalloc_get_ptr(in);
15691 if (in == Py_None) {
15695 PY_CHECK_TYPE(&srvsvc_NetTransportCtr3_Type, in, talloc_free(ret); return NULL;);
15696 if (talloc_reference(mem_ctx, pytalloc_get_mem_ctx(in)) == NULL) {
15698 talloc_free(ret); return NULL;
15700 ret->ctr3 = (struct srvsvc_NetTransportCtr3 *)pytalloc_get_ptr(in);
15713 static PyObject *py_srvsvc_NetTransportInfoCtr_get_level(PyObject *obj, void *closure)
15715 struct srvsvc_NetTransportInfoCtr *object = (struct srvsvc_NetTransportInfoCtr *)pytalloc_get_ptr(obj);
15716 PyObject *py_level;
15717 py_level = PyInt_FromLong(object->level);
15721 static int py_srvsvc_NetTransportInfoCtr_set_level(PyObject *py_obj, PyObject *value, void *closure)
15723 struct srvsvc_NetTransportInfoCtr *object = (struct srvsvc_NetTransportInfoCtr *)pytalloc_get_ptr(py_obj);
15724 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
15725 object->level = PyInt_AsLong(value);
15729 static PyObject *py_srvsvc_NetTransportInfoCtr_get_ctr(PyObject *obj, void *closure)
15731 struct srvsvc_NetTransportInfoCtr *object = (struct srvsvc_NetTransportInfoCtr *)pytalloc_get_ptr(obj);
15733 py_ctr = py_import_srvsvc_NetTransportCtr(pytalloc_get_mem_ctx(obj), object->level, &object->ctr);
15734 if (py_ctr == NULL) {
15740 static int py_srvsvc_NetTransportInfoCtr_set_ctr(PyObject *py_obj, PyObject *value, void *closure)
15742 struct srvsvc_NetTransportInfoCtr *object = (struct srvsvc_NetTransportInfoCtr *)pytalloc_get_ptr(py_obj);
15744 union srvsvc_NetTransportCtr *ctr_switch_0;
15745 ctr_switch_0 = py_export_srvsvc_NetTransportCtr(pytalloc_get_mem_ctx(py_obj), object->level, value);
15746 if (ctr_switch_0 == NULL) {
15749 object->ctr = *ctr_switch_0;
15754 static PyGetSetDef py_srvsvc_NetTransportInfoCtr_getsetters[] = {
15755 { discard_const_p(char, "level"), py_srvsvc_NetTransportInfoCtr_get_level, py_srvsvc_NetTransportInfoCtr_set_level },
15756 { discard_const_p(char, "ctr"), py_srvsvc_NetTransportInfoCtr_get_ctr, py_srvsvc_NetTransportInfoCtr_set_ctr },
15760 static PyObject *py_srvsvc_NetTransportInfoCtr_new(PyTypeObject *type, PyObject *args, PyObject *kwargs)
15762 return pytalloc_new(struct srvsvc_NetTransportInfoCtr, type);
15766 static PyTypeObject srvsvc_NetTransportInfoCtr_Type = {
15767 PyObject_HEAD_INIT(NULL) 0,
15768 .tp_name = "srvsvc.NetTransportInfoCtr",
15769 .tp_getset = py_srvsvc_NetTransportInfoCtr_getsetters,
15770 .tp_methods = NULL,
15771 .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
15772 .tp_basicsize = sizeof(pytalloc_Object),
15773 .tp_new = py_srvsvc_NetTransportInfoCtr_new,
15777 static PyObject *py_srvsvc_NetRemoteTODInfo_get_elapsed(PyObject *obj, void *closure)
15779 struct srvsvc_NetRemoteTODInfo *object = (struct srvsvc_NetRemoteTODInfo *)pytalloc_get_ptr(obj);
15780 PyObject *py_elapsed;
15781 py_elapsed = PyInt_FromLong(object->elapsed);
15785 static int py_srvsvc_NetRemoteTODInfo_set_elapsed(PyObject *py_obj, PyObject *value, void *closure)
15787 struct srvsvc_NetRemoteTODInfo *object = (struct srvsvc_NetRemoteTODInfo *)pytalloc_get_ptr(py_obj);
15788 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
15789 object->elapsed = PyInt_AsLong(value);
15793 static PyObject *py_srvsvc_NetRemoteTODInfo_get_msecs(PyObject *obj, void *closure)
15795 struct srvsvc_NetRemoteTODInfo *object = (struct srvsvc_NetRemoteTODInfo *)pytalloc_get_ptr(obj);
15796 PyObject *py_msecs;
15797 py_msecs = PyInt_FromLong(object->msecs);
15801 static int py_srvsvc_NetRemoteTODInfo_set_msecs(PyObject *py_obj, PyObject *value, void *closure)
15803 struct srvsvc_NetRemoteTODInfo *object = (struct srvsvc_NetRemoteTODInfo *)pytalloc_get_ptr(py_obj);
15804 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
15805 object->msecs = PyInt_AsLong(value);
15809 static PyObject *py_srvsvc_NetRemoteTODInfo_get_hours(PyObject *obj, void *closure)
15811 struct srvsvc_NetRemoteTODInfo *object = (struct srvsvc_NetRemoteTODInfo *)pytalloc_get_ptr(obj);
15812 PyObject *py_hours;
15813 py_hours = PyInt_FromLong(object->hours);
15817 static int py_srvsvc_NetRemoteTODInfo_set_hours(PyObject *py_obj, PyObject *value, void *closure)
15819 struct srvsvc_NetRemoteTODInfo *object = (struct srvsvc_NetRemoteTODInfo *)pytalloc_get_ptr(py_obj);
15820 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
15821 object->hours = PyInt_AsLong(value);
15825 static PyObject *py_srvsvc_NetRemoteTODInfo_get_mins(PyObject *obj, void *closure)
15827 struct srvsvc_NetRemoteTODInfo *object = (struct srvsvc_NetRemoteTODInfo *)pytalloc_get_ptr(obj);
15829 py_mins = PyInt_FromLong(object->mins);
15833 static int py_srvsvc_NetRemoteTODInfo_set_mins(PyObject *py_obj, PyObject *value, void *closure)
15835 struct srvsvc_NetRemoteTODInfo *object = (struct srvsvc_NetRemoteTODInfo *)pytalloc_get_ptr(py_obj);
15836 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
15837 object->mins = PyInt_AsLong(value);
15841 static PyObject *py_srvsvc_NetRemoteTODInfo_get_secs(PyObject *obj, void *closure)
15843 struct srvsvc_NetRemoteTODInfo *object = (struct srvsvc_NetRemoteTODInfo *)pytalloc_get_ptr(obj);
15845 py_secs = PyInt_FromLong(object->secs);
15849 static int py_srvsvc_NetRemoteTODInfo_set_secs(PyObject *py_obj, PyObject *value, void *closure)
15851 struct srvsvc_NetRemoteTODInfo *object = (struct srvsvc_NetRemoteTODInfo *)pytalloc_get_ptr(py_obj);
15852 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
15853 object->secs = PyInt_AsLong(value);
15857 static PyObject *py_srvsvc_NetRemoteTODInfo_get_hunds(PyObject *obj, void *closure)
15859 struct srvsvc_NetRemoteTODInfo *object = (struct srvsvc_NetRemoteTODInfo *)pytalloc_get_ptr(obj);
15860 PyObject *py_hunds;
15861 py_hunds = PyInt_FromLong(object->hunds);
15865 static int py_srvsvc_NetRemoteTODInfo_set_hunds(PyObject *py_obj, PyObject *value, void *closure)
15867 struct srvsvc_NetRemoteTODInfo *object = (struct srvsvc_NetRemoteTODInfo *)pytalloc_get_ptr(py_obj);
15868 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
15869 object->hunds = PyInt_AsLong(value);
15873 static PyObject *py_srvsvc_NetRemoteTODInfo_get_timezone(PyObject *obj, void *closure)
15875 struct srvsvc_NetRemoteTODInfo *object = (struct srvsvc_NetRemoteTODInfo *)pytalloc_get_ptr(obj);
15876 PyObject *py_timezone;
15877 py_timezone = PyInt_FromLong(object->timezone);
15878 return py_timezone;
15881 static int py_srvsvc_NetRemoteTODInfo_set_timezone(PyObject *py_obj, PyObject *value, void *closure)
15883 struct srvsvc_NetRemoteTODInfo *object = (struct srvsvc_NetRemoteTODInfo *)pytalloc_get_ptr(py_obj);
15884 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
15885 object->timezone = PyInt_AsLong(value);
15889 static PyObject *py_srvsvc_NetRemoteTODInfo_get_tinterval(PyObject *obj, void *closure)
15891 struct srvsvc_NetRemoteTODInfo *object = (struct srvsvc_NetRemoteTODInfo *)pytalloc_get_ptr(obj);
15892 PyObject *py_tinterval;
15893 py_tinterval = PyInt_FromLong(object->tinterval);
15894 return py_tinterval;
15897 static int py_srvsvc_NetRemoteTODInfo_set_tinterval(PyObject *py_obj, PyObject *value, void *closure)
15899 struct srvsvc_NetRemoteTODInfo *object = (struct srvsvc_NetRemoteTODInfo *)pytalloc_get_ptr(py_obj);
15900 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
15901 object->tinterval = PyInt_AsLong(value);
15905 static PyObject *py_srvsvc_NetRemoteTODInfo_get_day(PyObject *obj, void *closure)
15907 struct srvsvc_NetRemoteTODInfo *object = (struct srvsvc_NetRemoteTODInfo *)pytalloc_get_ptr(obj);
15909 py_day = PyInt_FromLong(object->day);
15913 static int py_srvsvc_NetRemoteTODInfo_set_day(PyObject *py_obj, PyObject *value, void *closure)
15915 struct srvsvc_NetRemoteTODInfo *object = (struct srvsvc_NetRemoteTODInfo *)pytalloc_get_ptr(py_obj);
15916 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
15917 object->day = PyInt_AsLong(value);
15921 static PyObject *py_srvsvc_NetRemoteTODInfo_get_month(PyObject *obj, void *closure)
15923 struct srvsvc_NetRemoteTODInfo *object = (struct srvsvc_NetRemoteTODInfo *)pytalloc_get_ptr(obj);
15924 PyObject *py_month;
15925 py_month = PyInt_FromLong(object->month);
15929 static int py_srvsvc_NetRemoteTODInfo_set_month(PyObject *py_obj, PyObject *value, void *closure)
15931 struct srvsvc_NetRemoteTODInfo *object = (struct srvsvc_NetRemoteTODInfo *)pytalloc_get_ptr(py_obj);
15932 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
15933 object->month = PyInt_AsLong(value);
15937 static PyObject *py_srvsvc_NetRemoteTODInfo_get_year(PyObject *obj, void *closure)
15939 struct srvsvc_NetRemoteTODInfo *object = (struct srvsvc_NetRemoteTODInfo *)pytalloc_get_ptr(obj);
15941 py_year = PyInt_FromLong(object->year);
15945 static int py_srvsvc_NetRemoteTODInfo_set_year(PyObject *py_obj, PyObject *value, void *closure)
15947 struct srvsvc_NetRemoteTODInfo *object = (struct srvsvc_NetRemoteTODInfo *)pytalloc_get_ptr(py_obj);
15948 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
15949 object->year = PyInt_AsLong(value);
15953 static PyObject *py_srvsvc_NetRemoteTODInfo_get_weekday(PyObject *obj, void *closure)
15955 struct srvsvc_NetRemoteTODInfo *object = (struct srvsvc_NetRemoteTODInfo *)pytalloc_get_ptr(obj);
15956 PyObject *py_weekday;
15957 py_weekday = PyInt_FromLong(object->weekday);
15961 static int py_srvsvc_NetRemoteTODInfo_set_weekday(PyObject *py_obj, PyObject *value, void *closure)
15963 struct srvsvc_NetRemoteTODInfo *object = (struct srvsvc_NetRemoteTODInfo *)pytalloc_get_ptr(py_obj);
15964 PY_CHECK_TYPE(&PyInt_Type, value, return -1;);
15965 object->weekday = PyInt_AsLong(value);
15969 static PyGetSetDef py_srvsvc_NetRemoteTODInfo_getsetters[] = {
15970 { discard_const_p(char, "elapsed"), py_srvsvc_NetRemoteTODInfo_get_elapsed, py_srvsvc_NetRemoteTODInfo_set_elapsed },
15971 { discard_const_p(char, "msecs"), py_srvsvc_NetRemoteTODInfo_get_msecs, py_srvsvc_NetRemoteTODInfo_set_msecs },
15972 { discard_const_p(char, "hours"), py_srvsvc_NetRemoteTODInfo_get_hours, py_srvsvc_NetRemoteTODInfo_set_hours },
15973 { discard_const_p(char, "mins"), py_srvsvc_NetRemoteTODInfo_get_mins, py_srvsvc_NetRemoteTODInfo_set_mins },
15974 { discard_const_p(char, "secs"), py_srvsvc_NetRemoteTODInfo_get_secs, py_srvsvc_NetRemoteTODInfo_set_secs },
15975 { discard_const_p(char, "hunds"), py_srvsvc_NetRemoteTODInfo_get_hunds, py_srvsvc_NetRemoteTODInfo_set_hunds },
15976 { discard_const_p(char, "timezone"), py_srvsvc_NetRemoteTODInfo_get_timezone, py_srvsvc_NetRemoteTODInfo_set_timezone },
15977 { discard_const_p(char, "tinterval"), py_srvsvc_NetRemoteTODInfo_get_tinterval, py_srvsvc_NetRemoteTODInfo_set_tinterval },
15978 { discard_const_p(char, "day"), py_srvsvc_NetRemoteTODInfo_get_day, py_srvsvc_NetRemoteTODInfo_set_day },
15979 { discard_const_p(char, "month"), py_srvsvc_NetRemoteTODInfo_get_month, py_srvsvc_NetRemoteTODInfo_set_month },
15980 { discard_const_p(char, "year"), py_srvsvc_NetRemoteTODInfo_get_year, py_srvsvc_NetRemoteTODInfo_set_year },
15981 { discard_const_p(char, "weekday"), py_srvsvc_NetRemoteTODInfo_get_weekday, py_srvsvc_NetRemoteTODInfo_set_weekday },
15985 static PyObject *py_srvsvc_NetRemoteTODInfo_new(PyTypeObject *type, PyObject *args, PyObject *kwargs)
15987 return pytalloc_new(struct srvsvc_NetRemoteTODInfo, type);
15991 static PyTypeObject srvsvc_NetRemoteTODInfo_Type = {
15992 PyObject_HEAD_INIT(NULL) 0,
15993 .tp_name = "srvsvc.NetRemoteTODInfo",
15994 .tp_getset = py_srvsvc_NetRemoteTODInfo_getsetters,
15995 .tp_methods = NULL,
15996 .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
15997 .tp_basicsize = sizeof(pytalloc_Object),
15998 .tp_new = py_srvsvc_NetRemoteTODInfo_new,
16001 PyObject *py_import_srvsvc_NetTransportInfo(TALLOC_CTX *mem_ctx, int level, union srvsvc_NetTransportInfo *in)
16007 ret = pytalloc_reference_ex(&srvsvc_NetTransportInfo0_Type, mem_ctx, &in->info0);
16011 ret = pytalloc_reference_ex(&srvsvc_NetTransportInfo1_Type, mem_ctx, &in->info1);
16015 ret = pytalloc_reference_ex(&srvsvc_NetTransportInfo2_Type, mem_ctx, &in->info2);
16019 ret = pytalloc_reference_ex(&srvsvc_NetTransportInfo3_Type, mem_ctx, &in->info3);
16023 PyErr_SetString(PyExc_TypeError, "unknown union level");
16027 union srvsvc_NetTransportInfo *py_export_srvsvc_NetTransportInfo(TALLOC_CTX *mem_ctx, int level, PyObject *in)
16029 union srvsvc_NetTransportInfo *ret = talloc_zero(mem_ctx, union srvsvc_NetTransportInfo);
16032 PY_CHECK_TYPE(&srvsvc_NetTransportInfo0_Type, in, talloc_free(ret); return NULL;);
16033 if (talloc_reference(mem_ctx, pytalloc_get_mem_ctx(in)) == NULL) {
16035 talloc_free(ret); return NULL;
16037 ret->info0 = *(struct srvsvc_NetTransportInfo0 *)pytalloc_get_ptr(in);
16041 PY_CHECK_TYPE(&srvsvc_NetTransportInfo1_Type, in, talloc_free(ret); return NULL;);
16042 if (talloc_reference(mem_ctx, pytalloc_get_mem_ctx(in)) == NULL) {
16044 talloc_free(ret); return NULL;
16046 ret->info1 = *(struct srvsvc_NetTransportInfo1 *)pytalloc_get_ptr(in);
16050 PY_CHECK_TYPE(&srvsvc_NetTransportInfo2_Type, in, talloc_free(ret); return NULL;);
16051 if (talloc_reference(mem_ctx, pytalloc_get_mem_ctx(in)) == NULL) {
16053 talloc_free(ret); return NULL;
16055 ret->info2 = *(struct srvsvc_NetTransportInfo2 *)pytalloc_get_ptr(in);
16059 PY_CHECK_TYPE(&srvsvc_NetTransportInfo3_Type, in, talloc_free(ret); return NULL;);
16060 if (talloc_reference(mem_ctx, pytalloc_get_mem_ctx(in)) == NULL) {
16062 talloc_free(ret); return NULL;
16064 ret->info3 = *(struct srvsvc_NetTransportInfo3 *)pytalloc_get_ptr(in);
16068 PyErr_SetString(PyExc_TypeError, "invalid union level value");
16077 static bool pack_py_srvsvc_NetCharDevEnum_args_in(PyObject *args, PyObject *kwargs, struct srvsvc_NetCharDevEnum *r)
16079 PyObject *py_server_unc;
16080 PyObject *py_info_ctr;
16081 PyObject *py_max_buffer;
16082 PyObject *py_resume_handle;
16083 const char *kwnames[] = {
16084 "server_unc", "info_ctr", "max_buffer", "resume_handle", NULL
16087 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)) {
16091 if (py_server_unc == Py_None) {
16092 r->in.server_unc = NULL;
16094 r->in.server_unc = NULL;
16095 if (PyUnicode_Check(py_server_unc)) {
16096 r->in.server_unc = PyString_AS_STRING(PyUnicode_AsEncodedString(py_server_unc, "utf-8", "ignore"));
16097 } else if (PyString_Check(py_server_unc)) {
16098 r->in.server_unc = PyString_AS_STRING(py_server_unc);
16100 PyErr_Format(PyExc_TypeError, "Expected string or unicode object, got %s", Py_TYPE(py_server_unc)->tp_name);
16104 r->in.info_ctr = talloc_ptrtype(r, r->in.info_ctr);
16105 PY_CHECK_TYPE(&srvsvc_NetCharDevInfoCtr_Type, py_info_ctr, return false;);
16106 if (talloc_reference(r, pytalloc_get_mem_ctx(py_info_ctr)) == NULL) {
16110 r->in.info_ctr = (struct srvsvc_NetCharDevInfoCtr *)pytalloc_get_ptr(py_info_ctr);
16111 PY_CHECK_TYPE(&PyInt_Type, py_max_buffer, return false;);
16112 r->in.max_buffer = PyInt_AsLong(py_max_buffer);
16113 if (py_resume_handle == Py_None) {
16114 r->in.resume_handle = NULL;
16116 r->in.resume_handle = talloc_ptrtype(r, r->in.resume_handle);
16117 PY_CHECK_TYPE(&PyInt_Type, py_resume_handle, return false;);
16118 *r->in.resume_handle = PyInt_AsLong(py_resume_handle);
16123 static PyObject *unpack_py_srvsvc_NetCharDevEnum_args_out(struct srvsvc_NetCharDevEnum *r)
16126 PyObject *py_info_ctr;
16127 PyObject *py_totalentries;
16128 PyObject *py_resume_handle;
16129 result = PyTuple_New(3);
16130 py_info_ctr = pytalloc_reference_ex(&srvsvc_NetCharDevInfoCtr_Type, r->out.info_ctr, r->out.info_ctr);
16131 PyTuple_SetItem(result, 0, py_info_ctr);
16132 py_totalentries = PyInt_FromLong(*r->out.totalentries);
16133 PyTuple_SetItem(result, 1, py_totalentries);
16134 if (r->out.resume_handle == NULL) {
16135 py_resume_handle = Py_None;
16136 Py_INCREF(py_resume_handle);
16138 py_resume_handle = PyInt_FromLong(*r->out.resume_handle);
16140 PyTuple_SetItem(result, 2, py_resume_handle);
16141 if (!W_ERROR_IS_OK(r->out.result)) {
16142 PyErr_SetWERROR(r->out.result);
16149 static bool pack_py_srvsvc_NetCharDevGetInfo_args_in(PyObject *args, PyObject *kwargs, struct srvsvc_NetCharDevGetInfo *r)
16151 PyObject *py_server_unc;
16152 PyObject *py_device_name;
16153 PyObject *py_level;
16154 const char *kwnames[] = {
16155 "server_unc", "device_name", "level", NULL
16158 if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OOO:srvsvc_NetCharDevGetInfo", discard_const_p(char *, kwnames), &py_server_unc, &py_device_name, &py_level)) {
16162 if (py_server_unc == Py_None) {
16163 r->in.server_unc = NULL;
16165 r->in.server_unc = NULL;
16166 if (PyUnicode_Check(py_server_unc)) {
16167 r->in.server_unc = PyString_AS_STRING(PyUnicode_AsEncodedString(py_server_unc, "utf-8", "ignore"));
16168 } else if (PyString_Check(py_server_unc)) {
16169 r->in.server_unc = PyString_AS_STRING(py_server_unc);
16171 PyErr_Format(PyExc_TypeError, "Expected string or unicode object, got %s", Py_TYPE(py_server_unc)->tp_name);
16175 if (PyUnicode_Check(py_device_name)) {
16176 r->in.device_name = PyString_AS_STRING(PyUnicode_AsEncodedString(py_device_name, "utf-8", "ignore"));
16177 } else if (PyString_Check(py_device_name)) {
16178 r->in.device_name = PyString_AS_STRING(py_device_name);
16180 PyErr_Format(PyExc_TypeError, "Expected string or unicode object, got %s", Py_TYPE(py_device_name)->tp_name);
16183 PY_CHECK_TYPE(&PyInt_Type, py_level, return false;);
16184 r->in.level = PyInt_AsLong(py_level);
16188 static PyObject *unpack_py_srvsvc_NetCharDevGetInfo_args_out(struct srvsvc_NetCharDevGetInfo *r)
16192 py_info = py_import_srvsvc_NetCharDevInfo(r->out.info, r->in.level, r->out.info);
16193 if (py_info == NULL) {
16197 if (!W_ERROR_IS_OK(r->out.result)) {
16198 PyErr_SetWERROR(r->out.result);
16205 static bool pack_py_srvsvc_NetCharDevControl_args_in(PyObject *args, PyObject *kwargs, struct srvsvc_NetCharDevControl *r)
16207 PyObject *py_server_unc;
16208 PyObject *py_device_name;
16209 PyObject *py_opcode;
16210 const char *kwnames[] = {
16211 "server_unc", "device_name", "opcode", NULL
16214 if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OOO:srvsvc_NetCharDevControl", discard_const_p(char *, kwnames), &py_server_unc, &py_device_name, &py_opcode)) {
16218 if (py_server_unc == Py_None) {
16219 r->in.server_unc = NULL;
16221 r->in.server_unc = NULL;
16222 if (PyUnicode_Check(py_server_unc)) {
16223 r->in.server_unc = PyString_AS_STRING(PyUnicode_AsEncodedString(py_server_unc, "utf-8", "ignore"));
16224 } else if (PyString_Check(py_server_unc)) {
16225 r->in.server_unc = PyString_AS_STRING(py_server_unc);
16227 PyErr_Format(PyExc_TypeError, "Expected string or unicode object, got %s", Py_TYPE(py_server_unc)->tp_name);
16231 if (PyUnicode_Check(py_device_name)) {
16232 r->in.device_name = PyString_AS_STRING(PyUnicode_AsEncodedString(py_device_name, "utf-8", "ignore"));
16233 } else if (PyString_Check(py_device_name)) {
16234 r->in.device_name = PyString_AS_STRING(py_device_name);
16236 PyErr_Format(PyExc_TypeError, "Expected string or unicode object, got %s", Py_TYPE(py_device_name)->tp_name);
16239 PY_CHECK_TYPE(&PyInt_Type, py_opcode, return false;);
16240 r->in.opcode = PyInt_AsLong(py_opcode);
16244 static PyObject *unpack_py_srvsvc_NetCharDevControl_args_out(struct srvsvc_NetCharDevControl *r)
16249 if (!W_ERROR_IS_OK(r->out.result)) {
16250 PyErr_SetWERROR(r->out.result);
16257 static bool pack_py_srvsvc_NetCharDevQEnum_args_in(PyObject *args, PyObject *kwargs, struct srvsvc_NetCharDevQEnum *r)
16259 PyObject *py_server_unc;
16261 PyObject *py_info_ctr;
16262 PyObject *py_max_buffer;
16263 PyObject *py_resume_handle;
16264 const char *kwnames[] = {
16265 "server_unc", "user", "info_ctr", "max_buffer", "resume_handle", NULL
16268 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)) {
16272 if (py_server_unc == Py_None) {
16273 r->in.server_unc = NULL;
16275 r->in.server_unc = NULL;
16276 if (PyUnicode_Check(py_server_unc)) {
16277 r->in.server_unc = PyString_AS_STRING(PyUnicode_AsEncodedString(py_server_unc, "utf-8", "ignore"));
16278 } else if (PyString_Check(py_server_unc)) {
16279 r->in.server_unc = PyString_AS_STRING(py_server_unc);
16281 PyErr_Format(PyExc_TypeError, "Expected string or unicode object, got %s", Py_TYPE(py_server_unc)->tp_name);
16285 if (py_user == Py_None) {
16289 if (PyUnicode_Check(py_user)) {
16290 r->in.user = PyString_AS_STRING(PyUnicode_AsEncodedString(py_user, "utf-8", "ignore"));
16291 } else if (PyString_Check(py_user)) {
16292 r->in.user = PyString_AS_STRING(py_user);
16294 PyErr_Format(PyExc_TypeError, "Expected string or unicode object, got %s", Py_TYPE(py_user)->tp_name);
16298 r->in.info_ctr = talloc_ptrtype(r, r->in.info_ctr);
16299 PY_CHECK_TYPE(&srvsvc_NetCharDevQInfoCtr_Type, py_info_ctr, return false;);
16300 if (talloc_reference(r, pytalloc_get_mem_ctx(py_info_ctr)) == NULL) {
16304 r->in.info_ctr = (struct srvsvc_NetCharDevQInfoCtr *)pytalloc_get_ptr(py_info_ctr);
16305 PY_CHECK_TYPE(&PyInt_Type, py_max_buffer, return false;);
16306 r->in.max_buffer = PyInt_AsLong(py_max_buffer);
16307 if (py_resume_handle == Py_None) {
16308 r->in.resume_handle = NULL;
16310 r->in.resume_handle = talloc_ptrtype(r, r->in.resume_handle);
16311 PY_CHECK_TYPE(&PyInt_Type, py_resume_handle, return false;);
16312 *r->in.resume_handle = PyInt_AsLong(py_resume_handle);
16317 static PyObject *unpack_py_srvsvc_NetCharDevQEnum_args_out(struct srvsvc_NetCharDevQEnum *r)
16320 PyObject *py_info_ctr;
16321 PyObject *py_totalentries;
16322 PyObject *py_resume_handle;
16323 result = PyTuple_New(3);
16324 py_info_ctr = pytalloc_reference_ex(&srvsvc_NetCharDevQInfoCtr_Type, r->out.info_ctr, r->out.info_ctr);
16325 PyTuple_SetItem(result, 0, py_info_ctr);
16326 py_totalentries = PyInt_FromLong(*r->out.totalentries);
16327 PyTuple_SetItem(result, 1, py_totalentries);
16328 if (r->out.resume_handle == NULL) {
16329 py_resume_handle = Py_None;
16330 Py_INCREF(py_resume_handle);
16332 py_resume_handle = PyInt_FromLong(*r->out.resume_handle);
16334 PyTuple_SetItem(result, 2, py_resume_handle);
16335 if (!W_ERROR_IS_OK(r->out.result)) {
16336 PyErr_SetWERROR(r->out.result);
16343 static bool pack_py_srvsvc_NetCharDevQGetInfo_args_in(PyObject *args, PyObject *kwargs, struct srvsvc_NetCharDevQGetInfo *r)
16345 PyObject *py_server_unc;
16346 PyObject *py_queue_name;
16348 PyObject *py_level;
16349 const char *kwnames[] = {
16350 "server_unc", "queue_name", "user", "level", NULL
16353 if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OOOO:srvsvc_NetCharDevQGetInfo", discard_const_p(char *, kwnames), &py_server_unc, &py_queue_name, &py_user, &py_level)) {
16357 if (py_server_unc == Py_None) {
16358 r->in.server_unc = NULL;
16360 r->in.server_unc = NULL;
16361 if (PyUnicode_Check(py_server_unc)) {
16362 r->in.server_unc = PyString_AS_STRING(PyUnicode_AsEncodedString(py_server_unc, "utf-8", "ignore"));
16363 } else if (PyString_Check(py_server_unc)) {
16364 r->in.server_unc = PyString_AS_STRING(py_server_unc);
16366 PyErr_Format(PyExc_TypeError, "Expected string or unicode object, got %s", Py_TYPE(py_server_unc)->tp_name);
16370 if (PyUnicode_Check(py_queue_name)) {
16371 r->in.queue_name = PyString_AS_STRING(PyUnicode_AsEncodedString(py_queue_name, "utf-8", "ignore"));
16372 } else if (PyString_Check(py_queue_name)) {
16373 r->in.queue_name = PyString_AS_STRING(py_queue_name);
16375 PyErr_Format(PyExc_TypeError, "Expected string or unicode object, got %s", Py_TYPE(py_queue_name)->tp_name);
16378 if (PyUnicode_Check(py_user)) {
16379 r->in.user = PyString_AS_STRING(PyUnicode_AsEncodedString(py_user, "utf-8", "ignore"));
16380 } else if (PyString_Check(py_user)) {
16381 r->in.user = PyString_AS_STRING(py_user);
16383 PyErr_Format(PyExc_TypeError, "Expected string or unicode object, got %s", Py_TYPE(py_user)->tp_name);
16386 PY_CHECK_TYPE(&PyInt_Type, py_level, return false;);
16387 r->in.level = PyInt_AsLong(py_level);
16391 static PyObject *unpack_py_srvsvc_NetCharDevQGetInfo_args_out(struct srvsvc_NetCharDevQGetInfo *r)
16395 py_info = py_import_srvsvc_NetCharDevQInfo(r->out.info, r->in.level, r->out.info);
16396 if (py_info == NULL) {
16400 if (!W_ERROR_IS_OK(r->out.result)) {
16401 PyErr_SetWERROR(r->out.result);
16408 static bool pack_py_srvsvc_NetCharDevQSetInfo_args_in(PyObject *args, PyObject *kwargs, struct srvsvc_NetCharDevQSetInfo *r)
16410 PyObject *py_server_unc;
16411 PyObject *py_queue_name;
16412 PyObject *py_level;
16414 PyObject *py_parm_error;
16415 const char *kwnames[] = {
16416 "server_unc", "queue_name", "level", "info", "parm_error", NULL
16419 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)) {
16423 if (py_server_unc == Py_None) {
16424 r->in.server_unc = NULL;
16426 r->in.server_unc = NULL;
16427 if (PyUnicode_Check(py_server_unc)) {
16428 r->in.server_unc = PyString_AS_STRING(PyUnicode_AsEncodedString(py_server_unc, "utf-8", "ignore"));
16429 } else if (PyString_Check(py_server_unc)) {
16430 r->in.server_unc = PyString_AS_STRING(py_server_unc);
16432 PyErr_Format(PyExc_TypeError, "Expected string or unicode object, got %s", Py_TYPE(py_server_unc)->tp_name);
16436 if (PyUnicode_Check(py_queue_name)) {
16437 r->in.queue_name = PyString_AS_STRING(PyUnicode_AsEncodedString(py_queue_name, "utf-8", "ignore"));
16438 } else if (PyString_Check(py_queue_name)) {
16439 r->in.queue_name = PyString_AS_STRING(py_queue_name);
16441 PyErr_Format(PyExc_TypeError, "Expected string or unicode object, got %s", Py_TYPE(py_queue_name)->tp_name);
16444 PY_CHECK_TYPE(&PyInt_Type, py_level, return false;);
16445 r->in.level = PyInt_AsLong(py_level);
16447 union srvsvc_NetCharDevQInfo *info_switch_0;
16448 info_switch_0 = py_export_srvsvc_NetCharDevQInfo(r, r->in.level, py_info);
16449 if (info_switch_0 == NULL) {
16452 r->in.info = *info_switch_0;
16454 if (py_parm_error == Py_None) {
16455 r->in.parm_error = NULL;
16457 r->in.parm_error = talloc_ptrtype(r, r->in.parm_error);
16458 PY_CHECK_TYPE(&PyInt_Type, py_parm_error, return false;);
16459 *r->in.parm_error = PyInt_AsLong(py_parm_error);
16464 static PyObject *unpack_py_srvsvc_NetCharDevQSetInfo_args_out(struct srvsvc_NetCharDevQSetInfo *r)
16467 PyObject *py_parm_error;
16468 if (r->out.parm_error == NULL) {
16469 py_parm_error = Py_None;
16470 Py_INCREF(py_parm_error);
16472 py_parm_error = PyInt_FromLong(*r->out.parm_error);
16474 result = py_parm_error;
16475 if (!W_ERROR_IS_OK(r->out.result)) {
16476 PyErr_SetWERROR(r->out.result);
16483 static bool pack_py_srvsvc_NetCharDevQPurge_args_in(PyObject *args, PyObject *kwargs, struct srvsvc_NetCharDevQPurge *r)
16485 PyObject *py_server_unc;
16486 PyObject *py_queue_name;
16487 const char *kwnames[] = {
16488 "server_unc", "queue_name", NULL
16491 if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OO:srvsvc_NetCharDevQPurge", discard_const_p(char *, kwnames), &py_server_unc, &py_queue_name)) {
16495 if (py_server_unc == Py_None) {
16496 r->in.server_unc = NULL;
16498 r->in.server_unc = NULL;
16499 if (PyUnicode_Check(py_server_unc)) {
16500 r->in.server_unc = PyString_AS_STRING(PyUnicode_AsEncodedString(py_server_unc, "utf-8", "ignore"));
16501 } else if (PyString_Check(py_server_unc)) {
16502 r->in.server_unc = PyString_AS_STRING(py_server_unc);
16504 PyErr_Format(PyExc_TypeError, "Expected string or unicode object, got %s", Py_TYPE(py_server_unc)->tp_name);
16508 if (PyUnicode_Check(py_queue_name)) {
16509 r->in.queue_name = PyString_AS_STRING(PyUnicode_AsEncodedString(py_queue_name, "utf-8", "ignore"));
16510 } else if (PyString_Check(py_queue_name)) {
16511 r->in.queue_name = PyString_AS_STRING(py_queue_name);
16513 PyErr_Format(PyExc_TypeError, "Expected string or unicode object, got %s", Py_TYPE(py_queue_name)->tp_name);
16519 static PyObject *unpack_py_srvsvc_NetCharDevQPurge_args_out(struct srvsvc_NetCharDevQPurge *r)
16524 if (!W_ERROR_IS_OK(r->out.result)) {
16525 PyErr_SetWERROR(r->out.result);
16532 static bool pack_py_srvsvc_NetCharDevQPurgeSelf_args_in(PyObject *args, PyObject *kwargs, struct srvsvc_NetCharDevQPurgeSelf *r)
16534 PyObject *py_server_unc;
16535 PyObject *py_queue_name;
16536 PyObject *py_computer_name;
16537 const char *kwnames[] = {
16538 "server_unc", "queue_name", "computer_name", NULL
16541 if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OOO:srvsvc_NetCharDevQPurgeSelf", discard_const_p(char *, kwnames), &py_server_unc, &py_queue_name, &py_computer_name)) {
16545 if (py_server_unc == Py_None) {
16546 r->in.server_unc = NULL;
16548 r->in.server_unc = NULL;
16549 if (PyUnicode_Check(py_server_unc)) {
16550 r->in.server_unc = PyString_AS_STRING(PyUnicode_AsEncodedString(py_server_unc, "utf-8", "ignore"));
16551 } else if (PyString_Check(py_server_unc)) {
16552 r->in.server_unc = PyString_AS_STRING(py_server_unc);
16554 PyErr_Format(PyExc_TypeError, "Expected string or unicode object, got %s", Py_TYPE(py_server_unc)->tp_name);
16558 if (PyUnicode_Check(py_queue_name)) {
16559 r->in.queue_name = PyString_AS_STRING(PyUnicode_AsEncodedString(py_queue_name, "utf-8", "ignore"));
16560 } else if (PyString_Check(py_queue_name)) {
16561 r->in.queue_name = PyString_AS_STRING(py_queue_name);
16563 PyErr_Format(PyExc_TypeError, "Expected string or unicode object, got %s", Py_TYPE(py_queue_name)->tp_name);
16566 if (PyUnicode_Check(py_computer_name)) {
16567 r->in.computer_name = PyString_AS_STRING(PyUnicode_AsEncodedString(py_computer_name, "utf-8", "ignore"));
16568 } else if (PyString_Check(py_computer_name)) {
16569 r->in.computer_name = PyString_AS_STRING(py_computer_name);
16571 PyErr_Format(PyExc_TypeError, "Expected string or unicode object, got %s", Py_TYPE(py_computer_name)->tp_name);
16577 static PyObject *unpack_py_srvsvc_NetCharDevQPurgeSelf_args_out(struct srvsvc_NetCharDevQPurgeSelf *r)
16582 if (!W_ERROR_IS_OK(r->out.result)) {
16583 PyErr_SetWERROR(r->out.result);
16590 static bool pack_py_srvsvc_NetConnEnum_args_in(PyObject *args, PyObject *kwargs, struct srvsvc_NetConnEnum *r)
16592 PyObject *py_server_unc;
16594 PyObject *py_info_ctr;
16595 PyObject *py_max_buffer;
16596 PyObject *py_resume_handle;
16597 const char *kwnames[] = {
16598 "server_unc", "path", "info_ctr", "max_buffer", "resume_handle", NULL
16601 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)) {
16605 if (py_server_unc == Py_None) {
16606 r->in.server_unc = NULL;
16608 r->in.server_unc = NULL;
16609 if (PyUnicode_Check(py_server_unc)) {
16610 r->in.server_unc = PyString_AS_STRING(PyUnicode_AsEncodedString(py_server_unc, "utf-8", "ignore"));
16611 } else if (PyString_Check(py_server_unc)) {
16612 r->in.server_unc = PyString_AS_STRING(py_server_unc);
16614 PyErr_Format(PyExc_TypeError, "Expected string or unicode object, got %s", Py_TYPE(py_server_unc)->tp_name);
16618 if (py_path == Py_None) {
16622 if (PyUnicode_Check(py_path)) {
16623 r->in.path = PyString_AS_STRING(PyUnicode_AsEncodedString(py_path, "utf-8", "ignore"));
16624 } else if (PyString_Check(py_path)) {
16625 r->in.path = PyString_AS_STRING(py_path);
16627 PyErr_Format(PyExc_TypeError, "Expected string or unicode object, got %s", Py_TYPE(py_path)->tp_name);
16631 r->in.info_ctr = talloc_ptrtype(r, r->in.info_ctr);
16632 PY_CHECK_TYPE(&srvsvc_NetConnInfoCtr_Type, py_info_ctr, return false;);
16633 if (talloc_reference(r, pytalloc_get_mem_ctx(py_info_ctr)) == NULL) {
16637 r->in.info_ctr = (struct srvsvc_NetConnInfoCtr *)pytalloc_get_ptr(py_info_ctr);
16638 PY_CHECK_TYPE(&PyInt_Type, py_max_buffer, return false;);
16639 r->in.max_buffer = PyInt_AsLong(py_max_buffer);
16640 if (py_resume_handle == Py_None) {
16641 r->in.resume_handle = NULL;
16643 r->in.resume_handle = talloc_ptrtype(r, r->in.resume_handle);
16644 PY_CHECK_TYPE(&PyInt_Type, py_resume_handle, return false;);
16645 *r->in.resume_handle = PyInt_AsLong(py_resume_handle);
16650 static PyObject *unpack_py_srvsvc_NetConnEnum_args_out(struct srvsvc_NetConnEnum *r)
16653 PyObject *py_info_ctr;
16654 PyObject *py_totalentries;
16655 PyObject *py_resume_handle;
16656 result = PyTuple_New(3);
16657 py_info_ctr = pytalloc_reference_ex(&srvsvc_NetConnInfoCtr_Type, r->out.info_ctr, r->out.info_ctr);
16658 PyTuple_SetItem(result, 0, py_info_ctr);
16659 py_totalentries = PyInt_FromLong(*r->out.totalentries);
16660 PyTuple_SetItem(result, 1, py_totalentries);
16661 if (r->out.resume_handle == NULL) {
16662 py_resume_handle = Py_None;
16663 Py_INCREF(py_resume_handle);
16665 py_resume_handle = PyInt_FromLong(*r->out.resume_handle);
16667 PyTuple_SetItem(result, 2, py_resume_handle);
16668 if (!W_ERROR_IS_OK(r->out.result)) {
16669 PyErr_SetWERROR(r->out.result);
16676 static bool pack_py_srvsvc_NetFileEnum_args_in(PyObject *args, PyObject *kwargs, struct srvsvc_NetFileEnum *r)
16678 PyObject *py_server_unc;
16681 PyObject *py_info_ctr;
16682 PyObject *py_max_buffer;
16683 PyObject *py_resume_handle;
16684 const char *kwnames[] = {
16685 "server_unc", "path", "user", "info_ctr", "max_buffer", "resume_handle", NULL
16688 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)) {
16692 if (py_server_unc == Py_None) {
16693 r->in.server_unc = NULL;
16695 r->in.server_unc = NULL;
16696 if (PyUnicode_Check(py_server_unc)) {
16697 r->in.server_unc = PyString_AS_STRING(PyUnicode_AsEncodedString(py_server_unc, "utf-8", "ignore"));
16698 } else if (PyString_Check(py_server_unc)) {
16699 r->in.server_unc = PyString_AS_STRING(py_server_unc);
16701 PyErr_Format(PyExc_TypeError, "Expected string or unicode object, got %s", Py_TYPE(py_server_unc)->tp_name);
16705 if (py_path == Py_None) {
16709 if (PyUnicode_Check(py_path)) {
16710 r->in.path = PyString_AS_STRING(PyUnicode_AsEncodedString(py_path, "utf-8", "ignore"));
16711 } else if (PyString_Check(py_path)) {
16712 r->in.path = PyString_AS_STRING(py_path);
16714 PyErr_Format(PyExc_TypeError, "Expected string or unicode object, got %s", Py_TYPE(py_path)->tp_name);
16718 if (py_user == Py_None) {
16722 if (PyUnicode_Check(py_user)) {
16723 r->in.user = PyString_AS_STRING(PyUnicode_AsEncodedString(py_user, "utf-8", "ignore"));
16724 } else if (PyString_Check(py_user)) {
16725 r->in.user = PyString_AS_STRING(py_user);
16727 PyErr_Format(PyExc_TypeError, "Expected string or unicode object, got %s", Py_TYPE(py_user)->tp_name);
16731 r->in.info_ctr = talloc_ptrtype(r, r->in.info_ctr);
16732 PY_CHECK_TYPE(&srvsvc_NetFileInfoCtr_Type, py_info_ctr, return false;);
16733 if (talloc_reference(r, pytalloc_get_mem_ctx(py_info_ctr)) == NULL) {
16737 r->in.info_ctr = (struct srvsvc_NetFileInfoCtr *)pytalloc_get_ptr(py_info_ctr);
16738 PY_CHECK_TYPE(&PyInt_Type, py_max_buffer, return false;);
16739 r->in.max_buffer = PyInt_AsLong(py_max_buffer);
16740 if (py_resume_handle == Py_None) {
16741 r->in.resume_handle = NULL;
16743 r->in.resume_handle = talloc_ptrtype(r, r->in.resume_handle);
16744 PY_CHECK_TYPE(&PyInt_Type, py_resume_handle, return false;);
16745 *r->in.resume_handle = PyInt_AsLong(py_resume_handle);
16750 static PyObject *unpack_py_srvsvc_NetFileEnum_args_out(struct srvsvc_NetFileEnum *r)
16753 PyObject *py_info_ctr;
16754 PyObject *py_totalentries;
16755 PyObject *py_resume_handle;
16756 result = PyTuple_New(3);
16757 py_info_ctr = pytalloc_reference_ex(&srvsvc_NetFileInfoCtr_Type, r->out.info_ctr, r->out.info_ctr);
16758 PyTuple_SetItem(result, 0, py_info_ctr);
16759 py_totalentries = PyInt_FromLong(*r->out.totalentries);
16760 PyTuple_SetItem(result, 1, py_totalentries);
16761 if (r->out.resume_handle == NULL) {
16762 py_resume_handle = Py_None;
16763 Py_INCREF(py_resume_handle);
16765 py_resume_handle = PyInt_FromLong(*r->out.resume_handle);
16767 PyTuple_SetItem(result, 2, py_resume_handle);
16768 if (!W_ERROR_IS_OK(r->out.result)) {
16769 PyErr_SetWERROR(r->out.result);
16776 static bool pack_py_srvsvc_NetFileGetInfo_args_in(PyObject *args, PyObject *kwargs, struct srvsvc_NetFileGetInfo *r)
16778 PyObject *py_server_unc;
16780 PyObject *py_level;
16781 const char *kwnames[] = {
16782 "server_unc", "fid", "level", NULL
16785 if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OOO:srvsvc_NetFileGetInfo", discard_const_p(char *, kwnames), &py_server_unc, &py_fid, &py_level)) {
16789 if (py_server_unc == Py_None) {
16790 r->in.server_unc = NULL;
16792 r->in.server_unc = NULL;
16793 if (PyUnicode_Check(py_server_unc)) {
16794 r->in.server_unc = PyString_AS_STRING(PyUnicode_AsEncodedString(py_server_unc, "utf-8", "ignore"));
16795 } else if (PyString_Check(py_server_unc)) {
16796 r->in.server_unc = PyString_AS_STRING(py_server_unc);
16798 PyErr_Format(PyExc_TypeError, "Expected string or unicode object, got %s", Py_TYPE(py_server_unc)->tp_name);
16802 PY_CHECK_TYPE(&PyInt_Type, py_fid, return false;);
16803 r->in.fid = PyInt_AsLong(py_fid);
16804 PY_CHECK_TYPE(&PyInt_Type, py_level, return false;);
16805 r->in.level = PyInt_AsLong(py_level);
16809 static PyObject *unpack_py_srvsvc_NetFileGetInfo_args_out(struct srvsvc_NetFileGetInfo *r)
16813 py_info = py_import_srvsvc_NetFileInfo(r->out.info, r->in.level, r->out.info);
16814 if (py_info == NULL) {
16818 if (!W_ERROR_IS_OK(r->out.result)) {
16819 PyErr_SetWERROR(r->out.result);
16826 static bool pack_py_srvsvc_NetFileClose_args_in(PyObject *args, PyObject *kwargs, struct srvsvc_NetFileClose *r)
16828 PyObject *py_server_unc;
16830 const char *kwnames[] = {
16831 "server_unc", "fid", NULL
16834 if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OO:srvsvc_NetFileClose", discard_const_p(char *, kwnames), &py_server_unc, &py_fid)) {
16838 if (py_server_unc == Py_None) {
16839 r->in.server_unc = NULL;
16841 r->in.server_unc = NULL;
16842 if (PyUnicode_Check(py_server_unc)) {
16843 r->in.server_unc = PyString_AS_STRING(PyUnicode_AsEncodedString(py_server_unc, "utf-8", "ignore"));
16844 } else if (PyString_Check(py_server_unc)) {
16845 r->in.server_unc = PyString_AS_STRING(py_server_unc);
16847 PyErr_Format(PyExc_TypeError, "Expected string or unicode object, got %s", Py_TYPE(py_server_unc)->tp_name);
16851 PY_CHECK_TYPE(&PyInt_Type, py_fid, return false;);
16852 r->in.fid = PyInt_AsLong(py_fid);
16856 static PyObject *unpack_py_srvsvc_NetFileClose_args_out(struct srvsvc_NetFileClose *r)
16861 if (!W_ERROR_IS_OK(r->out.result)) {
16862 PyErr_SetWERROR(r->out.result);
16869 static bool pack_py_srvsvc_NetSessEnum_args_in(PyObject *args, PyObject *kwargs, struct srvsvc_NetSessEnum *r)
16871 PyObject *py_server_unc;
16872 PyObject *py_client;
16874 PyObject *py_info_ctr;
16875 PyObject *py_max_buffer;
16876 PyObject *py_resume_handle;
16877 const char *kwnames[] = {
16878 "server_unc", "client", "user", "info_ctr", "max_buffer", "resume_handle", NULL
16881 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)) {
16885 if (py_server_unc == Py_None) {
16886 r->in.server_unc = NULL;
16888 r->in.server_unc = NULL;
16889 if (PyUnicode_Check(py_server_unc)) {
16890 r->in.server_unc = PyString_AS_STRING(PyUnicode_AsEncodedString(py_server_unc, "utf-8", "ignore"));
16891 } else if (PyString_Check(py_server_unc)) {
16892 r->in.server_unc = PyString_AS_STRING(py_server_unc);
16894 PyErr_Format(PyExc_TypeError, "Expected string or unicode object, got %s", Py_TYPE(py_server_unc)->tp_name);
16898 if (py_client == Py_None) {
16899 r->in.client = NULL;
16901 r->in.client = NULL;
16902 if (PyUnicode_Check(py_client)) {
16903 r->in.client = PyString_AS_STRING(PyUnicode_AsEncodedString(py_client, "utf-8", "ignore"));
16904 } else if (PyString_Check(py_client)) {
16905 r->in.client = PyString_AS_STRING(py_client);
16907 PyErr_Format(PyExc_TypeError, "Expected string or unicode object, got %s", Py_TYPE(py_client)->tp_name);
16911 if (py_user == Py_None) {
16915 if (PyUnicode_Check(py_user)) {
16916 r->in.user = PyString_AS_STRING(PyUnicode_AsEncodedString(py_user, "utf-8", "ignore"));
16917 } else if (PyString_Check(py_user)) {
16918 r->in.user = PyString_AS_STRING(py_user);
16920 PyErr_Format(PyExc_TypeError, "Expected string or unicode object, got %s", Py_TYPE(py_user)->tp_name);
16924 r->in.info_ctr = talloc_ptrtype(r, r->in.info_ctr);
16925 PY_CHECK_TYPE(&srvsvc_NetSessInfoCtr_Type, py_info_ctr, return false;);
16926 if (talloc_reference(r, pytalloc_get_mem_ctx(py_info_ctr)) == NULL) {
16930 r->in.info_ctr = (struct srvsvc_NetSessInfoCtr *)pytalloc_get_ptr(py_info_ctr);
16931 PY_CHECK_TYPE(&PyInt_Type, py_max_buffer, return false;);
16932 r->in.max_buffer = PyInt_AsLong(py_max_buffer);
16933 if (py_resume_handle == Py_None) {
16934 r->in.resume_handle = NULL;
16936 r->in.resume_handle = talloc_ptrtype(r, r->in.resume_handle);
16937 PY_CHECK_TYPE(&PyInt_Type, py_resume_handle, return false;);
16938 *r->in.resume_handle = PyInt_AsLong(py_resume_handle);
16943 static PyObject *unpack_py_srvsvc_NetSessEnum_args_out(struct srvsvc_NetSessEnum *r)
16946 PyObject *py_info_ctr;
16947 PyObject *py_totalentries;
16948 PyObject *py_resume_handle;
16949 result = PyTuple_New(3);
16950 py_info_ctr = pytalloc_reference_ex(&srvsvc_NetSessInfoCtr_Type, r->out.info_ctr, r->out.info_ctr);
16951 PyTuple_SetItem(result, 0, py_info_ctr);
16952 py_totalentries = PyInt_FromLong(*r->out.totalentries);
16953 PyTuple_SetItem(result, 1, py_totalentries);
16954 if (r->out.resume_handle == NULL) {
16955 py_resume_handle = Py_None;
16956 Py_INCREF(py_resume_handle);
16958 py_resume_handle = PyInt_FromLong(*r->out.resume_handle);
16960 PyTuple_SetItem(result, 2, py_resume_handle);
16961 if (!W_ERROR_IS_OK(r->out.result)) {
16962 PyErr_SetWERROR(r->out.result);
16969 static bool pack_py_srvsvc_NetSessDel_args_in(PyObject *args, PyObject *kwargs, struct srvsvc_NetSessDel *r)
16971 PyObject *py_server_unc;
16972 PyObject *py_client;
16974 const char *kwnames[] = {
16975 "server_unc", "client", "user", NULL
16978 if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OOO:srvsvc_NetSessDel", discard_const_p(char *, kwnames), &py_server_unc, &py_client, &py_user)) {
16982 if (py_server_unc == Py_None) {
16983 r->in.server_unc = NULL;
16985 r->in.server_unc = NULL;
16986 if (PyUnicode_Check(py_server_unc)) {
16987 r->in.server_unc = PyString_AS_STRING(PyUnicode_AsEncodedString(py_server_unc, "utf-8", "ignore"));
16988 } else if (PyString_Check(py_server_unc)) {
16989 r->in.server_unc = PyString_AS_STRING(py_server_unc);
16991 PyErr_Format(PyExc_TypeError, "Expected string or unicode object, got %s", Py_TYPE(py_server_unc)->tp_name);
16995 if (py_client == Py_None) {
16996 r->in.client = NULL;
16998 r->in.client = NULL;
16999 if (PyUnicode_Check(py_client)) {
17000 r->in.client = PyString_AS_STRING(PyUnicode_AsEncodedString(py_client, "utf-8", "ignore"));
17001 } else if (PyString_Check(py_client)) {
17002 r->in.client = PyString_AS_STRING(py_client);
17004 PyErr_Format(PyExc_TypeError, "Expected string or unicode object, got %s", Py_TYPE(py_client)->tp_name);
17008 if (py_user == Py_None) {
17012 if (PyUnicode_Check(py_user)) {
17013 r->in.user = PyString_AS_STRING(PyUnicode_AsEncodedString(py_user, "utf-8", "ignore"));
17014 } else if (PyString_Check(py_user)) {
17015 r->in.user = PyString_AS_STRING(py_user);
17017 PyErr_Format(PyExc_TypeError, "Expected string or unicode object, got %s", Py_TYPE(py_user)->tp_name);
17024 static PyObject *unpack_py_srvsvc_NetSessDel_args_out(struct srvsvc_NetSessDel *r)
17029 if (!W_ERROR_IS_OK(r->out.result)) {
17030 PyErr_SetWERROR(r->out.result);
17037 static bool pack_py_srvsvc_NetShareAdd_args_in(PyObject *args, PyObject *kwargs, struct srvsvc_NetShareAdd *r)
17039 PyObject *py_server_unc;
17040 PyObject *py_level;
17042 PyObject *py_parm_error;
17043 const char *kwnames[] = {
17044 "server_unc", "level", "info", "parm_error", NULL
17047 if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OOOO:srvsvc_NetShareAdd", discard_const_p(char *, kwnames), &py_server_unc, &py_level, &py_info, &py_parm_error)) {
17051 if (py_server_unc == Py_None) {
17052 r->in.server_unc = NULL;
17054 r->in.server_unc = NULL;
17055 if (PyUnicode_Check(py_server_unc)) {
17056 r->in.server_unc = PyString_AS_STRING(PyUnicode_AsEncodedString(py_server_unc, "utf-8", "ignore"));
17057 } else if (PyString_Check(py_server_unc)) {
17058 r->in.server_unc = PyString_AS_STRING(py_server_unc);
17060 PyErr_Format(PyExc_TypeError, "Expected string or unicode object, got %s", Py_TYPE(py_server_unc)->tp_name);
17064 PY_CHECK_TYPE(&PyInt_Type, py_level, return false;);
17065 r->in.level = PyInt_AsLong(py_level);
17066 r->in.info = talloc_ptrtype(r, r->in.info);
17068 union srvsvc_NetShareInfo *info_switch_1;
17069 info_switch_1 = py_export_srvsvc_NetShareInfo(r, r->in.level, py_info);
17070 if (info_switch_1 == NULL) {
17073 r->in.info = info_switch_1;
17075 if (py_parm_error == Py_None) {
17076 r->in.parm_error = NULL;
17078 r->in.parm_error = talloc_ptrtype(r, r->in.parm_error);
17079 PY_CHECK_TYPE(&PyInt_Type, py_parm_error, return false;);
17080 *r->in.parm_error = PyInt_AsLong(py_parm_error);
17085 static PyObject *unpack_py_srvsvc_NetShareAdd_args_out(struct srvsvc_NetShareAdd *r)
17088 PyObject *py_parm_error;
17089 if (r->out.parm_error == NULL) {
17090 py_parm_error = Py_None;
17091 Py_INCREF(py_parm_error);
17093 py_parm_error = PyInt_FromLong(*r->out.parm_error);
17095 result = py_parm_error;
17096 if (!W_ERROR_IS_OK(r->out.result)) {
17097 PyErr_SetWERROR(r->out.result);
17104 static bool pack_py_srvsvc_NetShareEnumAll_args_in(PyObject *args, PyObject *kwargs, struct srvsvc_NetShareEnumAll *r)
17106 PyObject *py_server_unc;
17107 PyObject *py_info_ctr;
17108 PyObject *py_max_buffer;
17109 PyObject *py_resume_handle;
17110 const char *kwnames[] = {
17111 "server_unc", "info_ctr", "max_buffer", "resume_handle", NULL
17114 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)) {
17118 if (py_server_unc == Py_None) {
17119 r->in.server_unc = NULL;
17121 r->in.server_unc = NULL;
17122 if (PyUnicode_Check(py_server_unc)) {
17123 r->in.server_unc = PyString_AS_STRING(PyUnicode_AsEncodedString(py_server_unc, "utf-8", "ignore"));
17124 } else if (PyString_Check(py_server_unc)) {
17125 r->in.server_unc = PyString_AS_STRING(py_server_unc);
17127 PyErr_Format(PyExc_TypeError, "Expected string or unicode object, got %s", Py_TYPE(py_server_unc)->tp_name);
17131 r->in.info_ctr = talloc_ptrtype(r, r->in.info_ctr);
17132 PY_CHECK_TYPE(&srvsvc_NetShareInfoCtr_Type, py_info_ctr, return false;);
17133 if (talloc_reference(r, pytalloc_get_mem_ctx(py_info_ctr)) == NULL) {
17137 r->in.info_ctr = (struct srvsvc_NetShareInfoCtr *)pytalloc_get_ptr(py_info_ctr);
17138 PY_CHECK_TYPE(&PyInt_Type, py_max_buffer, return false;);
17139 r->in.max_buffer = PyInt_AsLong(py_max_buffer);
17140 if (py_resume_handle == Py_None) {
17141 r->in.resume_handle = NULL;
17143 r->in.resume_handle = talloc_ptrtype(r, r->in.resume_handle);
17144 PY_CHECK_TYPE(&PyInt_Type, py_resume_handle, return false;);
17145 *r->in.resume_handle = PyInt_AsLong(py_resume_handle);
17150 static PyObject *unpack_py_srvsvc_NetShareEnumAll_args_out(struct srvsvc_NetShareEnumAll *r)
17153 PyObject *py_info_ctr;
17154 PyObject *py_totalentries;
17155 PyObject *py_resume_handle;
17156 result = PyTuple_New(3);
17157 py_info_ctr = pytalloc_reference_ex(&srvsvc_NetShareInfoCtr_Type, r->out.info_ctr, r->out.info_ctr);
17158 PyTuple_SetItem(result, 0, py_info_ctr);
17159 py_totalentries = PyInt_FromLong(*r->out.totalentries);
17160 PyTuple_SetItem(result, 1, py_totalentries);
17161 if (r->out.resume_handle == NULL) {
17162 py_resume_handle = Py_None;
17163 Py_INCREF(py_resume_handle);
17165 py_resume_handle = PyInt_FromLong(*r->out.resume_handle);
17167 PyTuple_SetItem(result, 2, py_resume_handle);
17168 if (!W_ERROR_IS_OK(r->out.result)) {
17169 PyErr_SetWERROR(r->out.result);
17176 static bool pack_py_srvsvc_NetShareGetInfo_args_in(PyObject *args, PyObject *kwargs, struct srvsvc_NetShareGetInfo *r)
17178 PyObject *py_server_unc;
17179 PyObject *py_share_name;
17180 PyObject *py_level;
17181 const char *kwnames[] = {
17182 "server_unc", "share_name", "level", NULL
17185 if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OOO:srvsvc_NetShareGetInfo", discard_const_p(char *, kwnames), &py_server_unc, &py_share_name, &py_level)) {
17189 if (py_server_unc == Py_None) {
17190 r->in.server_unc = NULL;
17192 r->in.server_unc = NULL;
17193 if (PyUnicode_Check(py_server_unc)) {
17194 r->in.server_unc = PyString_AS_STRING(PyUnicode_AsEncodedString(py_server_unc, "utf-8", "ignore"));
17195 } else if (PyString_Check(py_server_unc)) {
17196 r->in.server_unc = PyString_AS_STRING(py_server_unc);
17198 PyErr_Format(PyExc_TypeError, "Expected string or unicode object, got %s", Py_TYPE(py_server_unc)->tp_name);
17202 if (PyUnicode_Check(py_share_name)) {
17203 r->in.share_name = PyString_AS_STRING(PyUnicode_AsEncodedString(py_share_name, "utf-8", "ignore"));
17204 } else if (PyString_Check(py_share_name)) {
17205 r->in.share_name = PyString_AS_STRING(py_share_name);
17207 PyErr_Format(PyExc_TypeError, "Expected string or unicode object, got %s", Py_TYPE(py_share_name)->tp_name);
17210 PY_CHECK_TYPE(&PyInt_Type, py_level, return false;);
17211 r->in.level = PyInt_AsLong(py_level);
17215 static PyObject *unpack_py_srvsvc_NetShareGetInfo_args_out(struct srvsvc_NetShareGetInfo *r)
17219 py_info = py_import_srvsvc_NetShareInfo(r->out.info, r->in.level, r->out.info);
17220 if (py_info == NULL) {
17224 if (!W_ERROR_IS_OK(r->out.result)) {
17225 PyErr_SetWERROR(r->out.result);
17232 static bool pack_py_srvsvc_NetShareSetInfo_args_in(PyObject *args, PyObject *kwargs, struct srvsvc_NetShareSetInfo *r)
17234 PyObject *py_server_unc;
17235 PyObject *py_share_name;
17236 PyObject *py_level;
17238 PyObject *py_parm_error;
17239 const char *kwnames[] = {
17240 "server_unc", "share_name", "level", "info", "parm_error", NULL
17243 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)) {
17247 if (py_server_unc == Py_None) {
17248 r->in.server_unc = NULL;
17250 r->in.server_unc = NULL;
17251 if (PyUnicode_Check(py_server_unc)) {
17252 r->in.server_unc = PyString_AS_STRING(PyUnicode_AsEncodedString(py_server_unc, "utf-8", "ignore"));
17253 } else if (PyString_Check(py_server_unc)) {
17254 r->in.server_unc = PyString_AS_STRING(py_server_unc);
17256 PyErr_Format(PyExc_TypeError, "Expected string or unicode object, got %s", Py_TYPE(py_server_unc)->tp_name);
17260 if (PyUnicode_Check(py_share_name)) {
17261 r->in.share_name = PyString_AS_STRING(PyUnicode_AsEncodedString(py_share_name, "utf-8", "ignore"));
17262 } else if (PyString_Check(py_share_name)) {
17263 r->in.share_name = PyString_AS_STRING(py_share_name);
17265 PyErr_Format(PyExc_TypeError, "Expected string or unicode object, got %s", Py_TYPE(py_share_name)->tp_name);
17268 PY_CHECK_TYPE(&PyInt_Type, py_level, return false;);
17269 r->in.level = PyInt_AsLong(py_level);
17270 r->in.info = talloc_ptrtype(r, r->in.info);
17272 union srvsvc_NetShareInfo *info_switch_1;
17273 info_switch_1 = py_export_srvsvc_NetShareInfo(r, r->in.level, py_info);
17274 if (info_switch_1 == NULL) {
17277 r->in.info = info_switch_1;
17279 if (py_parm_error == Py_None) {
17280 r->in.parm_error = NULL;
17282 r->in.parm_error = talloc_ptrtype(r, r->in.parm_error);
17283 PY_CHECK_TYPE(&PyInt_Type, py_parm_error, return false;);
17284 *r->in.parm_error = PyInt_AsLong(py_parm_error);
17289 static PyObject *unpack_py_srvsvc_NetShareSetInfo_args_out(struct srvsvc_NetShareSetInfo *r)
17292 PyObject *py_parm_error;
17293 if (r->out.parm_error == NULL) {
17294 py_parm_error = Py_None;
17295 Py_INCREF(py_parm_error);
17297 py_parm_error = PyInt_FromLong(*r->out.parm_error);
17299 result = py_parm_error;
17300 if (!W_ERROR_IS_OK(r->out.result)) {
17301 PyErr_SetWERROR(r->out.result);
17308 static bool pack_py_srvsvc_NetShareDel_args_in(PyObject *args, PyObject *kwargs, struct srvsvc_NetShareDel *r)
17310 PyObject *py_server_unc;
17311 PyObject *py_share_name;
17312 PyObject *py_reserved;
17313 const char *kwnames[] = {
17314 "server_unc", "share_name", "reserved", NULL
17317 if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OOO:srvsvc_NetShareDel", discard_const_p(char *, kwnames), &py_server_unc, &py_share_name, &py_reserved)) {
17321 if (py_server_unc == Py_None) {
17322 r->in.server_unc = NULL;
17324 r->in.server_unc = NULL;
17325 if (PyUnicode_Check(py_server_unc)) {
17326 r->in.server_unc = PyString_AS_STRING(PyUnicode_AsEncodedString(py_server_unc, "utf-8", "ignore"));
17327 } else if (PyString_Check(py_server_unc)) {
17328 r->in.server_unc = PyString_AS_STRING(py_server_unc);
17330 PyErr_Format(PyExc_TypeError, "Expected string or unicode object, got %s", Py_TYPE(py_server_unc)->tp_name);
17334 if (PyUnicode_Check(py_share_name)) {
17335 r->in.share_name = PyString_AS_STRING(PyUnicode_AsEncodedString(py_share_name, "utf-8", "ignore"));
17336 } else if (PyString_Check(py_share_name)) {
17337 r->in.share_name = PyString_AS_STRING(py_share_name);
17339 PyErr_Format(PyExc_TypeError, "Expected string or unicode object, got %s", Py_TYPE(py_share_name)->tp_name);
17342 PY_CHECK_TYPE(&PyInt_Type, py_reserved, return false;);
17343 r->in.reserved = PyInt_AsLong(py_reserved);
17347 static PyObject *unpack_py_srvsvc_NetShareDel_args_out(struct srvsvc_NetShareDel *r)
17352 if (!W_ERROR_IS_OK(r->out.result)) {
17353 PyErr_SetWERROR(r->out.result);
17360 static bool pack_py_srvsvc_NetShareDelSticky_args_in(PyObject *args, PyObject *kwargs, struct srvsvc_NetShareDelSticky *r)
17362 PyObject *py_server_unc;
17363 PyObject *py_share_name;
17364 PyObject *py_reserved;
17365 const char *kwnames[] = {
17366 "server_unc", "share_name", "reserved", NULL
17369 if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OOO:srvsvc_NetShareDelSticky", discard_const_p(char *, kwnames), &py_server_unc, &py_share_name, &py_reserved)) {
17373 if (py_server_unc == Py_None) {
17374 r->in.server_unc = NULL;
17376 r->in.server_unc = NULL;
17377 if (PyUnicode_Check(py_server_unc)) {
17378 r->in.server_unc = PyString_AS_STRING(PyUnicode_AsEncodedString(py_server_unc, "utf-8", "ignore"));
17379 } else if (PyString_Check(py_server_unc)) {
17380 r->in.server_unc = PyString_AS_STRING(py_server_unc);
17382 PyErr_Format(PyExc_TypeError, "Expected string or unicode object, got %s", Py_TYPE(py_server_unc)->tp_name);
17386 if (PyUnicode_Check(py_share_name)) {
17387 r->in.share_name = PyString_AS_STRING(PyUnicode_AsEncodedString(py_share_name, "utf-8", "ignore"));
17388 } else if (PyString_Check(py_share_name)) {
17389 r->in.share_name = PyString_AS_STRING(py_share_name);
17391 PyErr_Format(PyExc_TypeError, "Expected string or unicode object, got %s", Py_TYPE(py_share_name)->tp_name);
17394 PY_CHECK_TYPE(&PyInt_Type, py_reserved, return false;);
17395 r->in.reserved = PyInt_AsLong(py_reserved);
17399 static PyObject *unpack_py_srvsvc_NetShareDelSticky_args_out(struct srvsvc_NetShareDelSticky *r)
17404 if (!W_ERROR_IS_OK(r->out.result)) {
17405 PyErr_SetWERROR(r->out.result);
17412 static bool pack_py_srvsvc_NetShareCheck_args_in(PyObject *args, PyObject *kwargs, struct srvsvc_NetShareCheck *r)
17414 PyObject *py_server_unc;
17415 PyObject *py_device_name;
17416 const char *kwnames[] = {
17417 "server_unc", "device_name", NULL
17420 if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OO:srvsvc_NetShareCheck", discard_const_p(char *, kwnames), &py_server_unc, &py_device_name)) {
17424 if (py_server_unc == Py_None) {
17425 r->in.server_unc = NULL;
17427 r->in.server_unc = NULL;
17428 if (PyUnicode_Check(py_server_unc)) {
17429 r->in.server_unc = PyString_AS_STRING(PyUnicode_AsEncodedString(py_server_unc, "utf-8", "ignore"));
17430 } else if (PyString_Check(py_server_unc)) {
17431 r->in.server_unc = PyString_AS_STRING(py_server_unc);
17433 PyErr_Format(PyExc_TypeError, "Expected string or unicode object, got %s", Py_TYPE(py_server_unc)->tp_name);
17437 if (PyUnicode_Check(py_device_name)) {
17438 r->in.device_name = PyString_AS_STRING(PyUnicode_AsEncodedString(py_device_name, "utf-8", "ignore"));
17439 } else if (PyString_Check(py_device_name)) {
17440 r->in.device_name = PyString_AS_STRING(py_device_name);
17442 PyErr_Format(PyExc_TypeError, "Expected string or unicode object, got %s", Py_TYPE(py_device_name)->tp_name);
17448 static PyObject *unpack_py_srvsvc_NetShareCheck_args_out(struct srvsvc_NetShareCheck *r)
17452 py_type = PyInt_FromLong(*r->out.type);
17454 if (!W_ERROR_IS_OK(r->out.result)) {
17455 PyErr_SetWERROR(r->out.result);
17462 static bool pack_py_srvsvc_NetSrvGetInfo_args_in(PyObject *args, PyObject *kwargs, struct srvsvc_NetSrvGetInfo *r)
17464 PyObject *py_server_unc;
17465 PyObject *py_level;
17466 const char *kwnames[] = {
17467 "server_unc", "level", NULL
17470 if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OO:srvsvc_NetSrvGetInfo", discard_const_p(char *, kwnames), &py_server_unc, &py_level)) {
17474 if (py_server_unc == Py_None) {
17475 r->in.server_unc = NULL;
17477 r->in.server_unc = NULL;
17478 if (PyUnicode_Check(py_server_unc)) {
17479 r->in.server_unc = PyString_AS_STRING(PyUnicode_AsEncodedString(py_server_unc, "utf-8", "ignore"));
17480 } else if (PyString_Check(py_server_unc)) {
17481 r->in.server_unc = PyString_AS_STRING(py_server_unc);
17483 PyErr_Format(PyExc_TypeError, "Expected string or unicode object, got %s", Py_TYPE(py_server_unc)->tp_name);
17487 PY_CHECK_TYPE(&PyInt_Type, py_level, return false;);
17488 r->in.level = PyInt_AsLong(py_level);
17492 static PyObject *unpack_py_srvsvc_NetSrvGetInfo_args_out(struct srvsvc_NetSrvGetInfo *r)
17496 py_info = py_import_srvsvc_NetSrvInfo(r->out.info, r->in.level, r->out.info);
17497 if (py_info == NULL) {
17501 if (!W_ERROR_IS_OK(r->out.result)) {
17502 PyErr_SetWERROR(r->out.result);
17509 static bool pack_py_srvsvc_NetSrvSetInfo_args_in(PyObject *args, PyObject *kwargs, struct srvsvc_NetSrvSetInfo *r)
17511 PyObject *py_server_unc;
17512 PyObject *py_level;
17514 PyObject *py_parm_error;
17515 const char *kwnames[] = {
17516 "server_unc", "level", "info", "parm_error", NULL
17519 if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OOOO:srvsvc_NetSrvSetInfo", discard_const_p(char *, kwnames), &py_server_unc, &py_level, &py_info, &py_parm_error)) {
17523 if (py_server_unc == Py_None) {
17524 r->in.server_unc = NULL;
17526 r->in.server_unc = NULL;
17527 if (PyUnicode_Check(py_server_unc)) {
17528 r->in.server_unc = PyString_AS_STRING(PyUnicode_AsEncodedString(py_server_unc, "utf-8", "ignore"));
17529 } else if (PyString_Check(py_server_unc)) {
17530 r->in.server_unc = PyString_AS_STRING(py_server_unc);
17532 PyErr_Format(PyExc_TypeError, "Expected string or unicode object, got %s", Py_TYPE(py_server_unc)->tp_name);
17536 PY_CHECK_TYPE(&PyInt_Type, py_level, return false;);
17537 r->in.level = PyInt_AsLong(py_level);
17538 r->in.info = talloc_ptrtype(r, r->in.info);
17540 union srvsvc_NetSrvInfo *info_switch_1;
17541 info_switch_1 = py_export_srvsvc_NetSrvInfo(r, r->in.level, py_info);
17542 if (info_switch_1 == NULL) {
17545 r->in.info = info_switch_1;
17547 if (py_parm_error == Py_None) {
17548 r->in.parm_error = NULL;
17550 r->in.parm_error = talloc_ptrtype(r, r->in.parm_error);
17551 PY_CHECK_TYPE(&PyInt_Type, py_parm_error, return false;);
17552 *r->in.parm_error = PyInt_AsLong(py_parm_error);
17557 static PyObject *unpack_py_srvsvc_NetSrvSetInfo_args_out(struct srvsvc_NetSrvSetInfo *r)
17560 PyObject *py_parm_error;
17561 if (r->out.parm_error == NULL) {
17562 py_parm_error = Py_None;
17563 Py_INCREF(py_parm_error);
17565 py_parm_error = PyInt_FromLong(*r->out.parm_error);
17567 result = py_parm_error;
17568 if (!W_ERROR_IS_OK(r->out.result)) {
17569 PyErr_SetWERROR(r->out.result);
17576 static bool pack_py_srvsvc_NetDiskEnum_args_in(PyObject *args, PyObject *kwargs, struct srvsvc_NetDiskEnum *r)
17578 PyObject *py_server_unc;
17579 PyObject *py_level;
17581 PyObject *py_maxlen;
17582 PyObject *py_resume_handle;
17583 const char *kwnames[] = {
17584 "server_unc", "level", "info", "maxlen", "resume_handle", NULL
17587 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)) {
17591 if (py_server_unc == Py_None) {
17592 r->in.server_unc = NULL;
17594 r->in.server_unc = NULL;
17595 if (PyUnicode_Check(py_server_unc)) {
17596 r->in.server_unc = PyString_AS_STRING(PyUnicode_AsEncodedString(py_server_unc, "utf-8", "ignore"));
17597 } else if (PyString_Check(py_server_unc)) {
17598 r->in.server_unc = PyString_AS_STRING(py_server_unc);
17600 PyErr_Format(PyExc_TypeError, "Expected string or unicode object, got %s", Py_TYPE(py_server_unc)->tp_name);
17604 PY_CHECK_TYPE(&PyInt_Type, py_level, return false;);
17605 r->in.level = PyInt_AsLong(py_level);
17606 r->in.info = talloc_ptrtype(r, r->in.info);
17607 PY_CHECK_TYPE(&srvsvc_NetDiskInfo_Type, py_info, return false;);
17608 if (talloc_reference(r, pytalloc_get_mem_ctx(py_info)) == NULL) {
17612 r->in.info = (struct srvsvc_NetDiskInfo *)pytalloc_get_ptr(py_info);
17613 PY_CHECK_TYPE(&PyInt_Type, py_maxlen, return false;);
17614 r->in.maxlen = PyInt_AsLong(py_maxlen);
17615 if (py_resume_handle == Py_None) {
17616 r->in.resume_handle = NULL;
17618 r->in.resume_handle = talloc_ptrtype(r, r->in.resume_handle);
17619 PY_CHECK_TYPE(&PyInt_Type, py_resume_handle, return false;);
17620 *r->in.resume_handle = PyInt_AsLong(py_resume_handle);
17625 static PyObject *unpack_py_srvsvc_NetDiskEnum_args_out(struct srvsvc_NetDiskEnum *r)
17629 PyObject *py_totalentries;
17630 PyObject *py_resume_handle;
17631 result = PyTuple_New(3);
17632 py_info = pytalloc_reference_ex(&srvsvc_NetDiskInfo_Type, r->out.info, r->out.info);
17633 PyTuple_SetItem(result, 0, py_info);
17634 py_totalentries = PyInt_FromLong(*r->out.totalentries);
17635 PyTuple_SetItem(result, 1, py_totalentries);
17636 if (r->out.resume_handle == NULL) {
17637 py_resume_handle = Py_None;
17638 Py_INCREF(py_resume_handle);
17640 py_resume_handle = PyInt_FromLong(*r->out.resume_handle);
17642 PyTuple_SetItem(result, 2, py_resume_handle);
17643 if (!W_ERROR_IS_OK(r->out.result)) {
17644 PyErr_SetWERROR(r->out.result);
17651 static bool pack_py_srvsvc_NetServerStatisticsGet_args_in(PyObject *args, PyObject *kwargs, struct srvsvc_NetServerStatisticsGet *r)
17653 PyObject *py_server_unc;
17654 PyObject *py_service;
17655 PyObject *py_level;
17656 PyObject *py_options;
17657 const char *kwnames[] = {
17658 "server_unc", "service", "level", "options", NULL
17661 if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OOOO:srvsvc_NetServerStatisticsGet", discard_const_p(char *, kwnames), &py_server_unc, &py_service, &py_level, &py_options)) {
17665 if (py_server_unc == Py_None) {
17666 r->in.server_unc = NULL;
17668 r->in.server_unc = NULL;
17669 if (PyUnicode_Check(py_server_unc)) {
17670 r->in.server_unc = PyString_AS_STRING(PyUnicode_AsEncodedString(py_server_unc, "utf-8", "ignore"));
17671 } else if (PyString_Check(py_server_unc)) {
17672 r->in.server_unc = PyString_AS_STRING(py_server_unc);
17674 PyErr_Format(PyExc_TypeError, "Expected string or unicode object, got %s", Py_TYPE(py_server_unc)->tp_name);
17678 if (py_service == Py_None) {
17679 r->in.service = NULL;
17681 r->in.service = NULL;
17682 if (PyUnicode_Check(py_service)) {
17683 r->in.service = PyString_AS_STRING(PyUnicode_AsEncodedString(py_service, "utf-8", "ignore"));
17684 } else if (PyString_Check(py_service)) {
17685 r->in.service = PyString_AS_STRING(py_service);
17687 PyErr_Format(PyExc_TypeError, "Expected string or unicode object, got %s", Py_TYPE(py_service)->tp_name);
17691 PY_CHECK_TYPE(&PyInt_Type, py_level, return false;);
17692 r->in.level = PyInt_AsLong(py_level);
17693 PY_CHECK_TYPE(&PyInt_Type, py_options, return false;);
17694 r->in.options = PyInt_AsLong(py_options);
17698 static PyObject *unpack_py_srvsvc_NetServerStatisticsGet_args_out(struct srvsvc_NetServerStatisticsGet *r)
17701 PyObject *py_stats;
17702 if (*r->out.stats == NULL) {
17703 py_stats = Py_None;
17704 Py_INCREF(py_stats);
17706 py_stats = pytalloc_reference_ex(&srvsvc_Statistics_Type, *r->out.stats, *r->out.stats);
17709 if (!W_ERROR_IS_OK(r->out.result)) {
17710 PyErr_SetWERROR(r->out.result);
17717 static bool pack_py_srvsvc_NetTransportAdd_args_in(PyObject *args, PyObject *kwargs, struct srvsvc_NetTransportAdd *r)
17719 PyObject *py_server_unc;
17720 PyObject *py_level;
17722 const char *kwnames[] = {
17723 "server_unc", "level", "info", NULL
17726 if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OOO:srvsvc_NetTransportAdd", discard_const_p(char *, kwnames), &py_server_unc, &py_level, &py_info)) {
17730 if (py_server_unc == Py_None) {
17731 r->in.server_unc = NULL;
17733 r->in.server_unc = NULL;
17734 if (PyUnicode_Check(py_server_unc)) {
17735 r->in.server_unc = PyString_AS_STRING(PyUnicode_AsEncodedString(py_server_unc, "utf-8", "ignore"));
17736 } else if (PyString_Check(py_server_unc)) {
17737 r->in.server_unc = PyString_AS_STRING(py_server_unc);
17739 PyErr_Format(PyExc_TypeError, "Expected string or unicode object, got %s", Py_TYPE(py_server_unc)->tp_name);
17743 PY_CHECK_TYPE(&PyInt_Type, py_level, return false;);
17744 r->in.level = PyInt_AsLong(py_level);
17746 union srvsvc_NetTransportInfo *info_switch_0;
17747 info_switch_0 = py_export_srvsvc_NetTransportInfo(r, r->in.level, py_info);
17748 if (info_switch_0 == NULL) {
17751 r->in.info = *info_switch_0;
17756 static PyObject *unpack_py_srvsvc_NetTransportAdd_args_out(struct srvsvc_NetTransportAdd *r)
17761 if (!W_ERROR_IS_OK(r->out.result)) {
17762 PyErr_SetWERROR(r->out.result);
17769 static bool pack_py_srvsvc_NetTransportEnum_args_in(PyObject *args, PyObject *kwargs, struct srvsvc_NetTransportEnum *r)
17771 PyObject *py_server_unc;
17772 PyObject *py_transports;
17773 PyObject *py_max_buffer;
17774 PyObject *py_resume_handle;
17775 const char *kwnames[] = {
17776 "server_unc", "transports", "max_buffer", "resume_handle", NULL
17779 if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OOOO:srvsvc_NetTransportEnum", discard_const_p(char *, kwnames), &py_server_unc, &py_transports, &py_max_buffer, &py_resume_handle)) {
17783 if (py_server_unc == Py_None) {
17784 r->in.server_unc = NULL;
17786 r->in.server_unc = NULL;
17787 if (PyUnicode_Check(py_server_unc)) {
17788 r->in.server_unc = PyString_AS_STRING(PyUnicode_AsEncodedString(py_server_unc, "utf-8", "ignore"));
17789 } else if (PyString_Check(py_server_unc)) {
17790 r->in.server_unc = PyString_AS_STRING(py_server_unc);
17792 PyErr_Format(PyExc_TypeError, "Expected string or unicode object, got %s", Py_TYPE(py_server_unc)->tp_name);
17796 r->in.transports = talloc_ptrtype(r, r->in.transports);
17797 PY_CHECK_TYPE(&srvsvc_NetTransportInfoCtr_Type, py_transports, return false;);
17798 if (talloc_reference(r, pytalloc_get_mem_ctx(py_transports)) == NULL) {
17802 r->in.transports = (struct srvsvc_NetTransportInfoCtr *)pytalloc_get_ptr(py_transports);
17803 PY_CHECK_TYPE(&PyInt_Type, py_max_buffer, return false;);
17804 r->in.max_buffer = PyInt_AsLong(py_max_buffer);
17805 if (py_resume_handle == Py_None) {
17806 r->in.resume_handle = NULL;
17808 r->in.resume_handle = talloc_ptrtype(r, r->in.resume_handle);
17809 PY_CHECK_TYPE(&PyInt_Type, py_resume_handle, return false;);
17810 *r->in.resume_handle = PyInt_AsLong(py_resume_handle);
17815 static PyObject *unpack_py_srvsvc_NetTransportEnum_args_out(struct srvsvc_NetTransportEnum *r)
17818 PyObject *py_transports;
17819 PyObject *py_totalentries;
17820 PyObject *py_resume_handle;
17821 result = PyTuple_New(3);
17822 py_transports = pytalloc_reference_ex(&srvsvc_NetTransportInfoCtr_Type, r->out.transports, r->out.transports);
17823 PyTuple_SetItem(result, 0, py_transports);
17824 py_totalentries = PyInt_FromLong(*r->out.totalentries);
17825 PyTuple_SetItem(result, 1, py_totalentries);
17826 if (r->out.resume_handle == NULL) {
17827 py_resume_handle = Py_None;
17828 Py_INCREF(py_resume_handle);
17830 py_resume_handle = PyInt_FromLong(*r->out.resume_handle);
17832 PyTuple_SetItem(result, 2, py_resume_handle);
17833 if (!W_ERROR_IS_OK(r->out.result)) {
17834 PyErr_SetWERROR(r->out.result);
17841 static bool pack_py_srvsvc_NetTransportDel_args_in(PyObject *args, PyObject *kwargs, struct srvsvc_NetTransportDel *r)
17843 PyObject *py_server_unc;
17844 PyObject *py_level;
17845 PyObject *py_info0;
17846 const char *kwnames[] = {
17847 "server_unc", "level", "info0", NULL
17850 if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OOO:srvsvc_NetTransportDel", discard_const_p(char *, kwnames), &py_server_unc, &py_level, &py_info0)) {
17854 if (py_server_unc == Py_None) {
17855 r->in.server_unc = NULL;
17857 r->in.server_unc = NULL;
17858 if (PyUnicode_Check(py_server_unc)) {
17859 r->in.server_unc = PyString_AS_STRING(PyUnicode_AsEncodedString(py_server_unc, "utf-8", "ignore"));
17860 } else if (PyString_Check(py_server_unc)) {
17861 r->in.server_unc = PyString_AS_STRING(py_server_unc);
17863 PyErr_Format(PyExc_TypeError, "Expected string or unicode object, got %s", Py_TYPE(py_server_unc)->tp_name);
17867 PY_CHECK_TYPE(&PyInt_Type, py_level, return false;);
17868 r->in.level = PyInt_AsLong(py_level);
17869 r->in.info0 = talloc_ptrtype(r, r->in.info0);
17870 PY_CHECK_TYPE(&srvsvc_NetTransportInfo0_Type, py_info0, return false;);
17871 if (talloc_reference(r, pytalloc_get_mem_ctx(py_info0)) == NULL) {
17875 r->in.info0 = (struct srvsvc_NetTransportInfo0 *)pytalloc_get_ptr(py_info0);
17879 static PyObject *unpack_py_srvsvc_NetTransportDel_args_out(struct srvsvc_NetTransportDel *r)
17884 if (!W_ERROR_IS_OK(r->out.result)) {
17885 PyErr_SetWERROR(r->out.result);
17892 static bool pack_py_srvsvc_NetRemoteTOD_args_in(PyObject *args, PyObject *kwargs, struct srvsvc_NetRemoteTOD *r)
17894 PyObject *py_server_unc;
17895 const char *kwnames[] = {
17899 if (!PyArg_ParseTupleAndKeywords(args, kwargs, "O:srvsvc_NetRemoteTOD", discard_const_p(char *, kwnames), &py_server_unc)) {
17903 if (py_server_unc == Py_None) {
17904 r->in.server_unc = NULL;
17906 r->in.server_unc = NULL;
17907 if (PyUnicode_Check(py_server_unc)) {
17908 r->in.server_unc = PyString_AS_STRING(PyUnicode_AsEncodedString(py_server_unc, "utf-8", "ignore"));
17909 } else if (PyString_Check(py_server_unc)) {
17910 r->in.server_unc = PyString_AS_STRING(py_server_unc);
17912 PyErr_Format(PyExc_TypeError, "Expected string or unicode object, got %s", Py_TYPE(py_server_unc)->tp_name);
17919 static PyObject *unpack_py_srvsvc_NetRemoteTOD_args_out(struct srvsvc_NetRemoteTOD *r)
17923 if (*r->out.info == NULL) {
17925 Py_INCREF(py_info);
17927 py_info = pytalloc_reference_ex(&srvsvc_NetRemoteTODInfo_Type, *r->out.info, *r->out.info);
17930 if (!W_ERROR_IS_OK(r->out.result)) {
17931 PyErr_SetWERROR(r->out.result);
17938 static bool pack_py_srvsvc_NetSetServiceBits_args_in(PyObject *args, PyObject *kwargs, struct srvsvc_NetSetServiceBits *r)
17940 PyObject *py_server_unc;
17941 PyObject *py_transport;
17942 PyObject *py_servicebits;
17943 PyObject *py_updateimmediately;
17944 const char *kwnames[] = {
17945 "server_unc", "transport", "servicebits", "updateimmediately", NULL
17948 if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OOOO:srvsvc_NetSetServiceBits", discard_const_p(char *, kwnames), &py_server_unc, &py_transport, &py_servicebits, &py_updateimmediately)) {
17952 if (py_server_unc == Py_None) {
17953 r->in.server_unc = NULL;
17955 r->in.server_unc = NULL;
17956 if (PyUnicode_Check(py_server_unc)) {
17957 r->in.server_unc = PyString_AS_STRING(PyUnicode_AsEncodedString(py_server_unc, "utf-8", "ignore"));
17958 } else if (PyString_Check(py_server_unc)) {
17959 r->in.server_unc = PyString_AS_STRING(py_server_unc);
17961 PyErr_Format(PyExc_TypeError, "Expected string or unicode object, got %s", Py_TYPE(py_server_unc)->tp_name);
17965 if (py_transport == Py_None) {
17966 r->in.transport = NULL;
17968 r->in.transport = NULL;
17969 if (PyUnicode_Check(py_transport)) {
17970 r->in.transport = PyString_AS_STRING(PyUnicode_AsEncodedString(py_transport, "utf-8", "ignore"));
17971 } else if (PyString_Check(py_transport)) {
17972 r->in.transport = PyString_AS_STRING(py_transport);
17974 PyErr_Format(PyExc_TypeError, "Expected string or unicode object, got %s", Py_TYPE(py_transport)->tp_name);
17978 PY_CHECK_TYPE(&PyInt_Type, py_servicebits, return false;);
17979 r->in.servicebits = PyInt_AsLong(py_servicebits);
17980 PY_CHECK_TYPE(&PyInt_Type, py_updateimmediately, return false;);
17981 r->in.updateimmediately = PyInt_AsLong(py_updateimmediately);
17985 static PyObject *unpack_py_srvsvc_NetSetServiceBits_args_out(struct srvsvc_NetSetServiceBits *r)
17990 if (!W_ERROR_IS_OK(r->out.result)) {
17991 PyErr_SetWERROR(r->out.result);
17998 static bool pack_py_srvsvc_NetPathType_args_in(PyObject *args, PyObject *kwargs, struct srvsvc_NetPathType *r)
18000 PyObject *py_server_unc;
18002 PyObject *py_pathflags;
18003 const char *kwnames[] = {
18004 "server_unc", "path", "pathflags", NULL
18007 if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OOO:srvsvc_NetPathType", discard_const_p(char *, kwnames), &py_server_unc, &py_path, &py_pathflags)) {
18011 if (py_server_unc == Py_None) {
18012 r->in.server_unc = NULL;
18014 r->in.server_unc = NULL;
18015 if (PyUnicode_Check(py_server_unc)) {
18016 r->in.server_unc = PyString_AS_STRING(PyUnicode_AsEncodedString(py_server_unc, "utf-8", "ignore"));
18017 } else if (PyString_Check(py_server_unc)) {
18018 r->in.server_unc = PyString_AS_STRING(py_server_unc);
18020 PyErr_Format(PyExc_TypeError, "Expected string or unicode object, got %s", Py_TYPE(py_server_unc)->tp_name);
18024 if (PyUnicode_Check(py_path)) {
18025 r->in.path = PyString_AS_STRING(PyUnicode_AsEncodedString(py_path, "utf-8", "ignore"));
18026 } else if (PyString_Check(py_path)) {
18027 r->in.path = PyString_AS_STRING(py_path);
18029 PyErr_Format(PyExc_TypeError, "Expected string or unicode object, got %s", Py_TYPE(py_path)->tp_name);
18032 PY_CHECK_TYPE(&PyInt_Type, py_pathflags, return false;);
18033 r->in.pathflags = PyInt_AsLong(py_pathflags);
18037 static PyObject *unpack_py_srvsvc_NetPathType_args_out(struct srvsvc_NetPathType *r)
18040 PyObject *py_pathtype;
18041 py_pathtype = PyInt_FromLong(*r->out.pathtype);
18042 result = py_pathtype;
18043 if (!W_ERROR_IS_OK(r->out.result)) {
18044 PyErr_SetWERROR(r->out.result);
18051 static bool pack_py_srvsvc_NetPathCanonicalize_args_in(PyObject *args, PyObject *kwargs, struct srvsvc_NetPathCanonicalize *r)
18053 PyObject *py_server_unc;
18055 PyObject *py_maxbuf;
18056 PyObject *py_prefix;
18057 PyObject *py_pathtype;
18058 PyObject *py_pathflags;
18059 const char *kwnames[] = {
18060 "server_unc", "path", "maxbuf", "prefix", "pathtype", "pathflags", NULL
18063 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)) {
18067 if (py_server_unc == Py_None) {
18068 r->in.server_unc = NULL;
18070 r->in.server_unc = NULL;
18071 if (PyUnicode_Check(py_server_unc)) {
18072 r->in.server_unc = PyString_AS_STRING(PyUnicode_AsEncodedString(py_server_unc, "utf-8", "ignore"));
18073 } else if (PyString_Check(py_server_unc)) {
18074 r->in.server_unc = PyString_AS_STRING(py_server_unc);
18076 PyErr_Format(PyExc_TypeError, "Expected string or unicode object, got %s", Py_TYPE(py_server_unc)->tp_name);
18080 if (PyUnicode_Check(py_path)) {
18081 r->in.path = PyString_AS_STRING(PyUnicode_AsEncodedString(py_path, "utf-8", "ignore"));
18082 } else if (PyString_Check(py_path)) {
18083 r->in.path = PyString_AS_STRING(py_path);
18085 PyErr_Format(PyExc_TypeError, "Expected string or unicode object, got %s", Py_TYPE(py_path)->tp_name);
18088 PY_CHECK_TYPE(&PyInt_Type, py_maxbuf, return false;);
18089 r->in.maxbuf = PyInt_AsLong(py_maxbuf);
18090 if (PyUnicode_Check(py_prefix)) {
18091 r->in.prefix = PyString_AS_STRING(PyUnicode_AsEncodedString(py_prefix, "utf-8", "ignore"));
18092 } else if (PyString_Check(py_prefix)) {
18093 r->in.prefix = PyString_AS_STRING(py_prefix);
18095 PyErr_Format(PyExc_TypeError, "Expected string or unicode object, got %s", Py_TYPE(py_prefix)->tp_name);
18098 r->in.pathtype = talloc_ptrtype(r, r->in.pathtype);
18099 PY_CHECK_TYPE(&PyInt_Type, py_pathtype, return false;);
18100 *r->in.pathtype = PyInt_AsLong(py_pathtype);
18101 PY_CHECK_TYPE(&PyInt_Type, py_pathflags, return false;);
18102 r->in.pathflags = PyInt_AsLong(py_pathflags);
18106 static PyObject *unpack_py_srvsvc_NetPathCanonicalize_args_out(struct srvsvc_NetPathCanonicalize *r)
18109 PyObject *py_can_path;
18110 PyObject *py_pathtype;
18111 result = PyTuple_New(2);
18112 py_can_path = PyList_New(r->in.maxbuf);
18113 if (py_can_path == NULL) {
18117 int can_path_cntr_0;
18118 for (can_path_cntr_0 = 0; can_path_cntr_0 < r->in.maxbuf; can_path_cntr_0++) {
18119 PyObject *py_can_path_0;
18120 py_can_path_0 = PyInt_FromLong(r->out.can_path[can_path_cntr_0]);
18121 PyList_SetItem(py_can_path, can_path_cntr_0, py_can_path_0);
18124 PyTuple_SetItem(result, 0, py_can_path);
18125 py_pathtype = PyInt_FromLong(*r->out.pathtype);
18126 PyTuple_SetItem(result, 1, py_pathtype);
18127 if (!W_ERROR_IS_OK(r->out.result)) {
18128 PyErr_SetWERROR(r->out.result);
18135 static bool pack_py_srvsvc_NetPathCompare_args_in(PyObject *args, PyObject *kwargs, struct srvsvc_NetPathCompare *r)
18137 PyObject *py_server_unc;
18138 PyObject *py_path1;
18139 PyObject *py_path2;
18140 PyObject *py_pathtype;
18141 PyObject *py_pathflags;
18142 const char *kwnames[] = {
18143 "server_unc", "path1", "path2", "pathtype", "pathflags", NULL
18146 if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OOOOO:srvsvc_NetPathCompare", discard_const_p(char *, kwnames), &py_server_unc, &py_path1, &py_path2, &py_pathtype, &py_pathflags)) {
18150 if (py_server_unc == Py_None) {
18151 r->in.server_unc = NULL;
18153 r->in.server_unc = NULL;
18154 if (PyUnicode_Check(py_server_unc)) {
18155 r->in.server_unc = PyString_AS_STRING(PyUnicode_AsEncodedString(py_server_unc, "utf-8", "ignore"));
18156 } else if (PyString_Check(py_server_unc)) {
18157 r->in.server_unc = PyString_AS_STRING(py_server_unc);
18159 PyErr_Format(PyExc_TypeError, "Expected string or unicode object, got %s", Py_TYPE(py_server_unc)->tp_name);
18163 if (PyUnicode_Check(py_path1)) {
18164 r->in.path1 = PyString_AS_STRING(PyUnicode_AsEncodedString(py_path1, "utf-8", "ignore"));
18165 } else if (PyString_Check(py_path1)) {
18166 r->in.path1 = PyString_AS_STRING(py_path1);
18168 PyErr_Format(PyExc_TypeError, "Expected string or unicode object, got %s", Py_TYPE(py_path1)->tp_name);
18171 if (PyUnicode_Check(py_path2)) {
18172 r->in.path2 = PyString_AS_STRING(PyUnicode_AsEncodedString(py_path2, "utf-8", "ignore"));
18173 } else if (PyString_Check(py_path2)) {
18174 r->in.path2 = PyString_AS_STRING(py_path2);
18176 PyErr_Format(PyExc_TypeError, "Expected string or unicode object, got %s", Py_TYPE(py_path2)->tp_name);
18179 PY_CHECK_TYPE(&PyInt_Type, py_pathtype, return false;);
18180 r->in.pathtype = PyInt_AsLong(py_pathtype);
18181 PY_CHECK_TYPE(&PyInt_Type, py_pathflags, return false;);
18182 r->in.pathflags = PyInt_AsLong(py_pathflags);
18186 static PyObject *unpack_py_srvsvc_NetPathCompare_args_out(struct srvsvc_NetPathCompare *r)
18191 if (!W_ERROR_IS_OK(r->out.result)) {
18192 PyErr_SetWERROR(r->out.result);
18199 static bool pack_py_srvsvc_NetNameValidate_args_in(PyObject *args, PyObject *kwargs, struct srvsvc_NetNameValidate *r)
18201 PyObject *py_server_unc;
18203 PyObject *py_name_type;
18204 PyObject *py_flags;
18205 const char *kwnames[] = {
18206 "server_unc", "name", "name_type", "flags", NULL
18209 if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OOOO:srvsvc_NetNameValidate", discard_const_p(char *, kwnames), &py_server_unc, &py_name, &py_name_type, &py_flags)) {
18213 if (py_server_unc == Py_None) {
18214 r->in.server_unc = NULL;
18216 r->in.server_unc = NULL;
18217 if (PyUnicode_Check(py_server_unc)) {
18218 r->in.server_unc = PyString_AS_STRING(PyUnicode_AsEncodedString(py_server_unc, "utf-8", "ignore"));
18219 } else if (PyString_Check(py_server_unc)) {
18220 r->in.server_unc = PyString_AS_STRING(py_server_unc);
18222 PyErr_Format(PyExc_TypeError, "Expected string or unicode object, got %s", Py_TYPE(py_server_unc)->tp_name);
18226 if (PyUnicode_Check(py_name)) {
18227 r->in.name = PyString_AS_STRING(PyUnicode_AsEncodedString(py_name, "utf-8", "ignore"));
18228 } else if (PyString_Check(py_name)) {
18229 r->in.name = PyString_AS_STRING(py_name);
18231 PyErr_Format(PyExc_TypeError, "Expected string or unicode object, got %s", Py_TYPE(py_name)->tp_name);
18234 PY_CHECK_TYPE(&PyInt_Type, py_name_type, return false;);
18235 r->in.name_type = PyInt_AsLong(py_name_type);
18236 PY_CHECK_TYPE(&PyInt_Type, py_flags, return false;);
18237 r->in.flags = PyInt_AsLong(py_flags);
18241 static PyObject *unpack_py_srvsvc_NetNameValidate_args_out(struct srvsvc_NetNameValidate *r)
18246 if (!W_ERROR_IS_OK(r->out.result)) {
18247 PyErr_SetWERROR(r->out.result);
18254 static bool pack_py_srvsvc_NetPRNameCompare_args_in(PyObject *args, PyObject *kwargs, struct srvsvc_NetPRNameCompare *r)
18256 PyObject *py_server_unc;
18257 PyObject *py_name1;
18258 PyObject *py_name2;
18259 PyObject *py_name_type;
18260 PyObject *py_flags;
18261 const char *kwnames[] = {
18262 "server_unc", "name1", "name2", "name_type", "flags", NULL
18265 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)) {
18269 if (py_server_unc == Py_None) {
18270 r->in.server_unc = NULL;
18272 r->in.server_unc = NULL;
18273 if (PyUnicode_Check(py_server_unc)) {
18274 r->in.server_unc = PyString_AS_STRING(PyUnicode_AsEncodedString(py_server_unc, "utf-8", "ignore"));
18275 } else if (PyString_Check(py_server_unc)) {
18276 r->in.server_unc = PyString_AS_STRING(py_server_unc);
18278 PyErr_Format(PyExc_TypeError, "Expected string or unicode object, got %s", Py_TYPE(py_server_unc)->tp_name);
18282 if (PyUnicode_Check(py_name1)) {
18283 r->in.name1 = PyString_AS_STRING(PyUnicode_AsEncodedString(py_name1, "utf-8", "ignore"));
18284 } else if (PyString_Check(py_name1)) {
18285 r->in.name1 = PyString_AS_STRING(py_name1);
18287 PyErr_Format(PyExc_TypeError, "Expected string or unicode object, got %s", Py_TYPE(py_name1)->tp_name);
18290 if (PyUnicode_Check(py_name2)) {
18291 r->in.name2 = PyString_AS_STRING(PyUnicode_AsEncodedString(py_name2, "utf-8", "ignore"));
18292 } else if (PyString_Check(py_name2)) {
18293 r->in.name2 = PyString_AS_STRING(py_name2);
18295 PyErr_Format(PyExc_TypeError, "Expected string or unicode object, got %s", Py_TYPE(py_name2)->tp_name);
18298 PY_CHECK_TYPE(&PyInt_Type, py_name_type, return false;);
18299 r->in.name_type = PyInt_AsLong(py_name_type);
18300 PY_CHECK_TYPE(&PyInt_Type, py_flags, return false;);
18301 r->in.flags = PyInt_AsLong(py_flags);
18305 static PyObject *unpack_py_srvsvc_NetPRNameCompare_args_out(struct srvsvc_NetPRNameCompare *r)
18310 if (!W_ERROR_IS_OK(r->out.result)) {
18311 PyErr_SetWERROR(r->out.result);
18318 static bool pack_py_srvsvc_NetShareEnum_args_in(PyObject *args, PyObject *kwargs, struct srvsvc_NetShareEnum *r)
18320 PyObject *py_server_unc;
18321 PyObject *py_info_ctr;
18322 PyObject *py_max_buffer;
18323 PyObject *py_resume_handle;
18324 const char *kwnames[] = {
18325 "server_unc", "info_ctr", "max_buffer", "resume_handle", NULL
18328 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)) {
18332 if (py_server_unc == Py_None) {
18333 r->in.server_unc = NULL;
18335 r->in.server_unc = NULL;
18336 if (PyUnicode_Check(py_server_unc)) {
18337 r->in.server_unc = PyString_AS_STRING(PyUnicode_AsEncodedString(py_server_unc, "utf-8", "ignore"));
18338 } else if (PyString_Check(py_server_unc)) {
18339 r->in.server_unc = PyString_AS_STRING(py_server_unc);
18341 PyErr_Format(PyExc_TypeError, "Expected string or unicode object, got %s", Py_TYPE(py_server_unc)->tp_name);
18345 r->in.info_ctr = talloc_ptrtype(r, r->in.info_ctr);
18346 PY_CHECK_TYPE(&srvsvc_NetShareInfoCtr_Type, py_info_ctr, return false;);
18347 if (talloc_reference(r, pytalloc_get_mem_ctx(py_info_ctr)) == NULL) {
18351 r->in.info_ctr = (struct srvsvc_NetShareInfoCtr *)pytalloc_get_ptr(py_info_ctr);
18352 PY_CHECK_TYPE(&PyInt_Type, py_max_buffer, return false;);
18353 r->in.max_buffer = PyInt_AsLong(py_max_buffer);
18354 if (py_resume_handle == Py_None) {
18355 r->in.resume_handle = NULL;
18357 r->in.resume_handle = talloc_ptrtype(r, r->in.resume_handle);
18358 PY_CHECK_TYPE(&PyInt_Type, py_resume_handle, return false;);
18359 *r->in.resume_handle = PyInt_AsLong(py_resume_handle);
18364 static PyObject *unpack_py_srvsvc_NetShareEnum_args_out(struct srvsvc_NetShareEnum *r)
18367 PyObject *py_info_ctr;
18368 PyObject *py_totalentries;
18369 PyObject *py_resume_handle;
18370 result = PyTuple_New(3);
18371 py_info_ctr = pytalloc_reference_ex(&srvsvc_NetShareInfoCtr_Type, r->out.info_ctr, r->out.info_ctr);
18372 PyTuple_SetItem(result, 0, py_info_ctr);
18373 py_totalentries = PyInt_FromLong(*r->out.totalentries);
18374 PyTuple_SetItem(result, 1, py_totalentries);
18375 if (r->out.resume_handle == NULL) {
18376 py_resume_handle = Py_None;
18377 Py_INCREF(py_resume_handle);
18379 py_resume_handle = PyInt_FromLong(*r->out.resume_handle);
18381 PyTuple_SetItem(result, 2, py_resume_handle);
18382 if (!W_ERROR_IS_OK(r->out.result)) {
18383 PyErr_SetWERROR(r->out.result);
18390 static bool pack_py_srvsvc_NetShareDelStart_args_in(PyObject *args, PyObject *kwargs, struct srvsvc_NetShareDelStart *r)
18392 PyObject *py_server_unc;
18393 PyObject *py_share;
18394 PyObject *py_reserved;
18395 const char *kwnames[] = {
18396 "server_unc", "share", "reserved", NULL
18399 if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OOO:srvsvc_NetShareDelStart", discard_const_p(char *, kwnames), &py_server_unc, &py_share, &py_reserved)) {
18403 if (py_server_unc == Py_None) {
18404 r->in.server_unc = NULL;
18406 r->in.server_unc = NULL;
18407 if (PyUnicode_Check(py_server_unc)) {
18408 r->in.server_unc = PyString_AS_STRING(PyUnicode_AsEncodedString(py_server_unc, "utf-8", "ignore"));
18409 } else if (PyString_Check(py_server_unc)) {
18410 r->in.server_unc = PyString_AS_STRING(py_server_unc);
18412 PyErr_Format(PyExc_TypeError, "Expected string or unicode object, got %s", Py_TYPE(py_server_unc)->tp_name);
18416 if (PyUnicode_Check(py_share)) {
18417 r->in.share = PyString_AS_STRING(PyUnicode_AsEncodedString(py_share, "utf-8", "ignore"));
18418 } else if (PyString_Check(py_share)) {
18419 r->in.share = PyString_AS_STRING(py_share);
18421 PyErr_Format(PyExc_TypeError, "Expected string or unicode object, got %s", Py_TYPE(py_share)->tp_name);
18424 PY_CHECK_TYPE(&PyInt_Type, py_reserved, return false;);
18425 r->in.reserved = PyInt_AsLong(py_reserved);
18429 static PyObject *unpack_py_srvsvc_NetShareDelStart_args_out(struct srvsvc_NetShareDelStart *r)
18433 if (r->out.hnd == NULL) {
18437 py_hnd = pytalloc_reference_ex(policy_handle_Type, r->out.hnd, r->out.hnd);
18440 if (!W_ERROR_IS_OK(r->out.result)) {
18441 PyErr_SetWERROR(r->out.result);
18448 static bool pack_py_srvsvc_NetShareDelCommit_args_in(PyObject *args, PyObject *kwargs, struct srvsvc_NetShareDelCommit *r)
18451 const char *kwnames[] = {
18455 if (!PyArg_ParseTupleAndKeywords(args, kwargs, "O:srvsvc_NetShareDelCommit", discard_const_p(char *, kwnames), &py_hnd)) {
18459 if (py_hnd == Py_None) {
18463 PY_CHECK_TYPE(policy_handle_Type, py_hnd, return false;);
18464 if (talloc_reference(r, pytalloc_get_mem_ctx(py_hnd)) == NULL) {
18468 r->in.hnd = (struct policy_handle *)pytalloc_get_ptr(py_hnd);
18473 static PyObject *unpack_py_srvsvc_NetShareDelCommit_args_out(struct srvsvc_NetShareDelCommit *r)
18477 if (r->out.hnd == NULL) {
18481 py_hnd = pytalloc_reference_ex(policy_handle_Type, r->out.hnd, r->out.hnd);
18484 if (!W_ERROR_IS_OK(r->out.result)) {
18485 PyErr_SetWERROR(r->out.result);
18492 static bool pack_py_srvsvc_NetGetFileSecurity_args_in(PyObject *args, PyObject *kwargs, struct srvsvc_NetGetFileSecurity *r)
18494 PyObject *py_server_unc;
18495 PyObject *py_share;
18497 PyObject *py_securityinformation;
18498 const char *kwnames[] = {
18499 "server_unc", "share", "file", "securityinformation", NULL
18502 if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OOOO:srvsvc_NetGetFileSecurity", discard_const_p(char *, kwnames), &py_server_unc, &py_share, &py_file, &py_securityinformation)) {
18506 if (py_server_unc == Py_None) {
18507 r->in.server_unc = NULL;
18509 r->in.server_unc = NULL;
18510 if (PyUnicode_Check(py_server_unc)) {
18511 r->in.server_unc = PyString_AS_STRING(PyUnicode_AsEncodedString(py_server_unc, "utf-8", "ignore"));
18512 } else if (PyString_Check(py_server_unc)) {
18513 r->in.server_unc = PyString_AS_STRING(py_server_unc);
18515 PyErr_Format(PyExc_TypeError, "Expected string or unicode object, got %s", Py_TYPE(py_server_unc)->tp_name);
18519 if (py_share == Py_None) {
18520 r->in.share = NULL;
18522 r->in.share = NULL;
18523 if (PyUnicode_Check(py_share)) {
18524 r->in.share = PyString_AS_STRING(PyUnicode_AsEncodedString(py_share, "utf-8", "ignore"));
18525 } else if (PyString_Check(py_share)) {
18526 r->in.share = PyString_AS_STRING(py_share);
18528 PyErr_Format(PyExc_TypeError, "Expected string or unicode object, got %s", Py_TYPE(py_share)->tp_name);
18532 if (PyUnicode_Check(py_file)) {
18533 r->in.file = PyString_AS_STRING(PyUnicode_AsEncodedString(py_file, "utf-8", "ignore"));
18534 } else if (PyString_Check(py_file)) {
18535 r->in.file = PyString_AS_STRING(py_file);
18537 PyErr_Format(PyExc_TypeError, "Expected string or unicode object, got %s", Py_TYPE(py_file)->tp_name);
18540 if (PyLong_Check(py_securityinformation)) {
18541 r->in.securityinformation = PyLong_AsLongLong(py_securityinformation);
18542 } else if (PyInt_Check(py_securityinformation)) {
18543 r->in.securityinformation = PyInt_AsLong(py_securityinformation);
18545 PyErr_Format(PyExc_TypeError, "Expected type %s or %s",\
18546 PyInt_Type.tp_name, PyLong_Type.tp_name);
18552 static PyObject *unpack_py_srvsvc_NetGetFileSecurity_args_out(struct srvsvc_NetGetFileSecurity *r)
18555 PyObject *py_sd_buf;
18556 if (*r->out.sd_buf == NULL) {
18557 py_sd_buf = Py_None;
18558 Py_INCREF(py_sd_buf);
18560 py_sd_buf = pytalloc_reference_ex(sec_desc_buf_Type, *r->out.sd_buf, *r->out.sd_buf);
18562 result = py_sd_buf;
18563 if (!W_ERROR_IS_OK(r->out.result)) {
18564 PyErr_SetWERROR(r->out.result);
18571 static bool pack_py_srvsvc_NetSetFileSecurity_args_in(PyObject *args, PyObject *kwargs, struct srvsvc_NetSetFileSecurity *r)
18573 PyObject *py_server_unc;
18574 PyObject *py_share;
18576 PyObject *py_securityinformation;
18577 PyObject *py_sd_buf;
18578 const char *kwnames[] = {
18579 "server_unc", "share", "file", "securityinformation", "sd_buf", NULL
18582 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)) {
18586 if (py_server_unc == Py_None) {
18587 r->in.server_unc = NULL;
18589 r->in.server_unc = NULL;
18590 if (PyUnicode_Check(py_server_unc)) {
18591 r->in.server_unc = PyString_AS_STRING(PyUnicode_AsEncodedString(py_server_unc, "utf-8", "ignore"));
18592 } else if (PyString_Check(py_server_unc)) {
18593 r->in.server_unc = PyString_AS_STRING(py_server_unc);
18595 PyErr_Format(PyExc_TypeError, "Expected string or unicode object, got %s", Py_TYPE(py_server_unc)->tp_name);
18599 if (py_share == Py_None) {
18600 r->in.share = NULL;
18602 r->in.share = NULL;
18603 if (PyUnicode_Check(py_share)) {
18604 r->in.share = PyString_AS_STRING(PyUnicode_AsEncodedString(py_share, "utf-8", "ignore"));
18605 } else if (PyString_Check(py_share)) {
18606 r->in.share = PyString_AS_STRING(py_share);
18608 PyErr_Format(PyExc_TypeError, "Expected string or unicode object, got %s", Py_TYPE(py_share)->tp_name);
18612 if (PyUnicode_Check(py_file)) {
18613 r->in.file = PyString_AS_STRING(PyUnicode_AsEncodedString(py_file, "utf-8", "ignore"));
18614 } else if (PyString_Check(py_file)) {
18615 r->in.file = PyString_AS_STRING(py_file);
18617 PyErr_Format(PyExc_TypeError, "Expected string or unicode object, got %s", Py_TYPE(py_file)->tp_name);
18620 if (PyLong_Check(py_securityinformation)) {
18621 r->in.securityinformation = PyLong_AsLongLong(py_securityinformation);
18622 } else if (PyInt_Check(py_securityinformation)) {
18623 r->in.securityinformation = PyInt_AsLong(py_securityinformation);
18625 PyErr_Format(PyExc_TypeError, "Expected type %s or %s",\
18626 PyInt_Type.tp_name, PyLong_Type.tp_name);
18629 r->in.sd_buf = talloc_ptrtype(r, r->in.sd_buf);
18630 PY_CHECK_TYPE(sec_desc_buf_Type, py_sd_buf, return false;);
18631 if (talloc_reference(r, pytalloc_get_mem_ctx(py_sd_buf)) == NULL) {
18635 r->in.sd_buf = (struct sec_desc_buf *)pytalloc_get_ptr(py_sd_buf);
18639 static PyObject *unpack_py_srvsvc_NetSetFileSecurity_args_out(struct srvsvc_NetSetFileSecurity *r)
18644 if (!W_ERROR_IS_OK(r->out.result)) {
18645 PyErr_SetWERROR(r->out.result);
18652 static bool pack_py_srvsvc_NetServerTransportAddEx_args_in(PyObject *args, PyObject *kwargs, struct srvsvc_NetServerTransportAddEx *r)
18654 PyObject *py_server_unc;
18655 PyObject *py_level;
18657 const char *kwnames[] = {
18658 "server_unc", "level", "info", NULL
18661 if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OOO:srvsvc_NetServerTransportAddEx", discard_const_p(char *, kwnames), &py_server_unc, &py_level, &py_info)) {
18665 if (py_server_unc == Py_None) {
18666 r->in.server_unc = NULL;
18668 r->in.server_unc = NULL;
18669 if (PyUnicode_Check(py_server_unc)) {
18670 r->in.server_unc = PyString_AS_STRING(PyUnicode_AsEncodedString(py_server_unc, "utf-8", "ignore"));
18671 } else if (PyString_Check(py_server_unc)) {
18672 r->in.server_unc = PyString_AS_STRING(py_server_unc);
18674 PyErr_Format(PyExc_TypeError, "Expected string or unicode object, got %s", Py_TYPE(py_server_unc)->tp_name);
18678 PY_CHECK_TYPE(&PyInt_Type, py_level, return false;);
18679 r->in.level = PyInt_AsLong(py_level);
18681 union srvsvc_NetTransportInfo *info_switch_0;
18682 info_switch_0 = py_export_srvsvc_NetTransportInfo(r, r->in.level, py_info);
18683 if (info_switch_0 == NULL) {
18686 r->in.info = *info_switch_0;
18691 static PyObject *unpack_py_srvsvc_NetServerTransportAddEx_args_out(struct srvsvc_NetServerTransportAddEx *r)
18696 if (!W_ERROR_IS_OK(r->out.result)) {
18697 PyErr_SetWERROR(r->out.result);
18704 static bool pack_py_srvsvc_NetServerSetServiceBitsEx_args_in(PyObject *args, PyObject *kwargs, struct srvsvc_NetServerSetServiceBitsEx *r)
18706 PyObject *py_server_unc;
18707 PyObject *py_emulated_server_unc;
18708 PyObject *py_transport;
18709 PyObject *py_servicebitsofinterest;
18710 PyObject *py_servicebits;
18711 PyObject *py_updateimmediately;
18712 const char *kwnames[] = {
18713 "server_unc", "emulated_server_unc", "transport", "servicebitsofinterest", "servicebits", "updateimmediately", NULL
18716 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)) {
18720 if (py_server_unc == Py_None) {
18721 r->in.server_unc = NULL;
18723 r->in.server_unc = NULL;
18724 if (PyUnicode_Check(py_server_unc)) {
18725 r->in.server_unc = PyString_AS_STRING(PyUnicode_AsEncodedString(py_server_unc, "utf-8", "ignore"));
18726 } else if (PyString_Check(py_server_unc)) {
18727 r->in.server_unc = PyString_AS_STRING(py_server_unc);
18729 PyErr_Format(PyExc_TypeError, "Expected string or unicode object, got %s", Py_TYPE(py_server_unc)->tp_name);
18733 if (py_emulated_server_unc == Py_None) {
18734 r->in.emulated_server_unc = NULL;
18736 r->in.emulated_server_unc = NULL;
18737 if (PyUnicode_Check(py_emulated_server_unc)) {
18738 r->in.emulated_server_unc = PyString_AS_STRING(PyUnicode_AsEncodedString(py_emulated_server_unc, "utf-8", "ignore"));
18739 } else if (PyString_Check(py_emulated_server_unc)) {
18740 r->in.emulated_server_unc = PyString_AS_STRING(py_emulated_server_unc);
18742 PyErr_Format(PyExc_TypeError, "Expected string or unicode object, got %s", Py_TYPE(py_emulated_server_unc)->tp_name);
18746 if (py_transport == Py_None) {
18747 r->in.transport = NULL;
18749 r->in.transport = NULL;
18750 if (PyUnicode_Check(py_transport)) {
18751 r->in.transport = PyString_AS_STRING(PyUnicode_AsEncodedString(py_transport, "utf-8", "ignore"));
18752 } else if (PyString_Check(py_transport)) {
18753 r->in.transport = PyString_AS_STRING(py_transport);
18755 PyErr_Format(PyExc_TypeError, "Expected string or unicode object, got %s", Py_TYPE(py_transport)->tp_name);
18759 PY_CHECK_TYPE(&PyInt_Type, py_servicebitsofinterest, return false;);
18760 r->in.servicebitsofinterest = PyInt_AsLong(py_servicebitsofinterest);
18761 PY_CHECK_TYPE(&PyInt_Type, py_servicebits, return false;);
18762 r->in.servicebits = PyInt_AsLong(py_servicebits);
18763 PY_CHECK_TYPE(&PyInt_Type, py_updateimmediately, return false;);
18764 r->in.updateimmediately = PyInt_AsLong(py_updateimmediately);
18768 static PyObject *unpack_py_srvsvc_NetServerSetServiceBitsEx_args_out(struct srvsvc_NetServerSetServiceBitsEx *r)
18773 if (!W_ERROR_IS_OK(r->out.result)) {
18774 PyErr_SetWERROR(r->out.result);
18781 const struct PyNdrRpcMethodDef py_ndr_srvsvc_methods[] = {
18782 { "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 },
18783 { "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 },
18784 { "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 },
18785 { "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 },
18786 { "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 },
18787 { "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 },
18788 { "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 },
18789 { "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 },
18790 { "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 },
18791 { "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 },
18792 { "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 },
18793 { "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 },
18794 { "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 },
18795 { "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 },
18796 { "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 },
18797 { "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 },
18798 { "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 },
18799 { "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 },
18800 { "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 },
18801 { "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 },
18802 { "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 },
18803 { "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 },
18804 { "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 },
18805 { "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 },
18806 { "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 },
18807 { "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 },
18808 { "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 },
18809 { "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 },
18810 { "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 },
18811 { "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 },
18812 { "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 },
18813 { "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 },
18814 { "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 },
18815 { "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 },
18816 { "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 },
18817 { "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 },
18818 { "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 },
18819 { "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 },
18820 { "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 },
18821 { "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 },
18822 { "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 },
18823 { "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 },
18827 static PyObject *interface_srvsvc_new(PyTypeObject *type, PyObject *args, PyObject *kwargs)
18829 return py_dcerpc_interface_init_helper(type, args, kwargs, &ndr_table_srvsvc);
18832 #define PY_DOC_SRVSVC "Server Service"
18833 static PyTypeObject srvsvc_InterfaceType = {
18834 PyObject_HEAD_INIT(NULL) 0,
18835 .tp_name = "srvsvc.srvsvc",
18836 .tp_basicsize = sizeof(dcerpc_InterfaceObject),
18837 .tp_doc = "srvsvc(binding, lp_ctx=None, credentials=None) -> connection\n"
18839 "binding should be a DCE/RPC binding string (for example: ncacn_ip_tcp:127.0.0.1)\n"
18840 "lp_ctx should be a path to a smb.conf file or a param.LoadParm object\n"
18841 "credentials should be a credentials.Credentials object.\n\n"PY_DOC_SRVSVC,
18842 .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
18843 .tp_new = interface_srvsvc_new,
18846 static PyMethodDef srvsvc_methods[] = {
18847 { NULL, NULL, 0, NULL }
18850 void initsrvsvc(void)
18853 PyObject *dep_samba_dcerpc_security;
18854 PyObject *dep_talloc;
18855 PyObject *dep_samba_dcerpc_misc;
18856 PyObject *dep_samba_dcerpc_base;
18857 PyObject *dep_samba_dcerpc_svcctl;
18859 dep_samba_dcerpc_security = PyImport_ImportModule("samba.dcerpc.security");
18860 if (dep_samba_dcerpc_security == NULL)
18863 dep_talloc = PyImport_ImportModule("talloc");
18864 if (dep_talloc == NULL)
18867 dep_samba_dcerpc_misc = PyImport_ImportModule("samba.dcerpc.misc");
18868 if (dep_samba_dcerpc_misc == NULL)
18871 dep_samba_dcerpc_base = PyImport_ImportModule("samba.dcerpc.base");
18872 if (dep_samba_dcerpc_base == NULL)
18875 dep_samba_dcerpc_svcctl = PyImport_ImportModule("samba.dcerpc.svcctl");
18876 if (dep_samba_dcerpc_svcctl == NULL)
18879 sec_desc_buf_Type = (PyTypeObject *)PyObject_GetAttrString(dep_samba_dcerpc_security, "sec_desc_buf");
18880 if (sec_desc_buf_Type == NULL)
18883 policy_handle_Type = (PyTypeObject *)PyObject_GetAttrString(dep_samba_dcerpc_misc, "policy_handle");
18884 if (policy_handle_Type == NULL)
18887 Object_Type = (PyTypeObject *)PyObject_GetAttrString(dep_talloc, "Object");
18888 if (Object_Type == NULL)
18891 ClientConnection_Type = (PyTypeObject *)PyObject_GetAttrString(dep_samba_dcerpc_base, "ClientConnection");
18892 if (ClientConnection_Type == NULL)
18895 srvsvc_NetCharDevInfo0_Type.tp_base = Object_Type;
18897 srvsvc_NetCharDevCtr0_Type.tp_base = Object_Type;
18899 srvsvc_NetCharDevInfo1_Type.tp_base = Object_Type;
18901 srvsvc_NetCharDevCtr1_Type.tp_base = Object_Type;
18903 srvsvc_NetCharDevInfoCtr_Type.tp_base = Object_Type;
18905 srvsvc_NetCharDevQInfo0_Type.tp_base = Object_Type;
18907 srvsvc_NetCharDevQCtr0_Type.tp_base = Object_Type;
18909 srvsvc_NetCharDevQInfo1_Type.tp_base = Object_Type;
18911 srvsvc_NetCharDevQCtr1_Type.tp_base = Object_Type;
18913 srvsvc_NetCharDevQInfoCtr_Type.tp_base = Object_Type;
18915 srvsvc_NetConnInfo0_Type.tp_base = Object_Type;
18917 srvsvc_NetConnCtr0_Type.tp_base = Object_Type;
18919 srvsvc_NetConnInfo1_Type.tp_base = Object_Type;
18921 srvsvc_NetConnCtr1_Type.tp_base = Object_Type;
18923 srvsvc_NetConnInfoCtr_Type.tp_base = Object_Type;
18925 srvsvc_NetFileInfo2_Type.tp_base = Object_Type;
18927 srvsvc_NetFileCtr2_Type.tp_base = Object_Type;
18929 srvsvc_NetFileInfo3_Type.tp_base = Object_Type;
18931 srvsvc_NetFileCtr3_Type.tp_base = Object_Type;
18933 srvsvc_NetFileInfoCtr_Type.tp_base = Object_Type;
18935 srvsvc_NetSessInfo0_Type.tp_base = Object_Type;
18937 srvsvc_NetSessCtr0_Type.tp_base = Object_Type;
18939 srvsvc_NetSessInfo1_Type.tp_base = Object_Type;
18941 srvsvc_NetSessCtr1_Type.tp_base = Object_Type;
18943 srvsvc_NetSessInfo2_Type.tp_base = Object_Type;
18945 srvsvc_NetSessCtr2_Type.tp_base = Object_Type;
18947 srvsvc_NetSessInfo10_Type.tp_base = Object_Type;
18949 srvsvc_NetSessCtr10_Type.tp_base = Object_Type;
18951 srvsvc_NetSessInfo502_Type.tp_base = Object_Type;
18953 srvsvc_NetSessCtr502_Type.tp_base = Object_Type;
18955 srvsvc_NetSessInfoCtr_Type.tp_base = Object_Type;
18957 srvsvc_NetShareInfo0_Type.tp_base = Object_Type;
18959 srvsvc_NetShareCtr0_Type.tp_base = Object_Type;
18961 srvsvc_NetShareInfo1_Type.tp_base = Object_Type;
18963 srvsvc_NetShareCtr1_Type.tp_base = Object_Type;
18965 srvsvc_NetShareInfo2_Type.tp_base = Object_Type;
18967 srvsvc_NetShareCtr2_Type.tp_base = Object_Type;
18969 srvsvc_NetShareInfo501_Type.tp_base = Object_Type;
18971 srvsvc_NetShareCtr501_Type.tp_base = Object_Type;
18973 srvsvc_NetShareInfo502_Type.tp_base = Object_Type;
18975 srvsvc_NetShareCtr502_Type.tp_base = Object_Type;
18977 srvsvc_NetShareInfo1004_Type.tp_base = Object_Type;
18979 srvsvc_NetShareCtr1004_Type.tp_base = Object_Type;
18981 srvsvc_NetShareInfo1005_Type.tp_base = Object_Type;
18983 srvsvc_NetShareCtr1005_Type.tp_base = Object_Type;
18985 srvsvc_NetShareInfo1006_Type.tp_base = Object_Type;
18987 srvsvc_NetShareCtr1006_Type.tp_base = Object_Type;
18989 srvsvc_NetShareInfo1007_Type.tp_base = Object_Type;
18991 srvsvc_NetShareCtr1007_Type.tp_base = Object_Type;
18993 srvsvc_NetShareCtr1501_Type.tp_base = Object_Type;
18995 srvsvc_NetShareInfoCtr_Type.tp_base = Object_Type;
18997 srvsvc_NetSrvInfo100_Type.tp_base = Object_Type;
18999 srvsvc_NetSrvInfo101_Type.tp_base = Object_Type;
19001 srvsvc_NetSrvInfo102_Type.tp_base = Object_Type;
19003 srvsvc_NetSrvInfo402_Type.tp_base = Object_Type;
19005 srvsvc_NetSrvInfo403_Type.tp_base = Object_Type;
19007 srvsvc_NetSrvInfo502_Type.tp_base = Object_Type;
19009 srvsvc_NetSrvInfo503_Type.tp_base = Object_Type;
19011 srvsvc_NetSrvInfo599_Type.tp_base = Object_Type;
19013 srvsvc_NetSrvInfo1005_Type.tp_base = Object_Type;
19015 srvsvc_NetSrvInfo1010_Type.tp_base = Object_Type;
19017 srvsvc_NetSrvInfo1016_Type.tp_base = Object_Type;
19019 srvsvc_NetSrvInfo1017_Type.tp_base = Object_Type;
19021 srvsvc_NetSrvInfo1018_Type.tp_base = Object_Type;
19023 srvsvc_NetSrvInfo1107_Type.tp_base = Object_Type;
19025 srvsvc_NetSrvInfo1501_Type.tp_base = Object_Type;
19027 srvsvc_NetSrvInfo1502_Type.tp_base = Object_Type;
19029 srvsvc_NetSrvInfo1503_Type.tp_base = Object_Type;
19031 srvsvc_NetSrvInfo1506_Type.tp_base = Object_Type;
19033 srvsvc_NetSrvInfo1509_Type.tp_base = Object_Type;
19035 srvsvc_NetSrvInfo1510_Type.tp_base = Object_Type;
19037 srvsvc_NetSrvInfo1511_Type.tp_base = Object_Type;
19039 srvsvc_NetSrvInfo1512_Type.tp_base = Object_Type;
19041 srvsvc_NetSrvInfo1513_Type.tp_base = Object_Type;
19043 srvsvc_NetSrvInfo1514_Type.tp_base = Object_Type;
19045 srvsvc_NetSrvInfo1515_Type.tp_base = Object_Type;
19047 srvsvc_NetSrvInfo1516_Type.tp_base = Object_Type;
19049 srvsvc_NetSrvInfo1518_Type.tp_base = Object_Type;
19051 srvsvc_NetSrvInfo1520_Type.tp_base = Object_Type;
19053 srvsvc_NetSrvInfo1521_Type.tp_base = Object_Type;
19055 srvsvc_NetSrvInfo1522_Type.tp_base = Object_Type;
19057 srvsvc_NetSrvInfo1523_Type.tp_base = Object_Type;
19059 srvsvc_NetSrvInfo1524_Type.tp_base = Object_Type;
19061 srvsvc_NetSrvInfo1525_Type.tp_base = Object_Type;
19063 srvsvc_NetSrvInfo1528_Type.tp_base = Object_Type;
19065 srvsvc_NetSrvInfo1529_Type.tp_base = Object_Type;
19067 srvsvc_NetSrvInfo1530_Type.tp_base = Object_Type;
19069 srvsvc_NetSrvInfo1533_Type.tp_base = Object_Type;
19071 srvsvc_NetSrvInfo1534_Type.tp_base = Object_Type;
19073 srvsvc_NetSrvInfo1535_Type.tp_base = Object_Type;
19075 srvsvc_NetSrvInfo1536_Type.tp_base = Object_Type;
19077 srvsvc_NetSrvInfo1537_Type.tp_base = Object_Type;
19079 srvsvc_NetSrvInfo1538_Type.tp_base = Object_Type;
19081 srvsvc_NetSrvInfo1539_Type.tp_base = Object_Type;
19083 srvsvc_NetSrvInfo1540_Type.tp_base = Object_Type;
19085 srvsvc_NetSrvInfo1541_Type.tp_base = Object_Type;
19087 srvsvc_NetSrvInfo1542_Type.tp_base = Object_Type;
19089 srvsvc_NetSrvInfo1543_Type.tp_base = Object_Type;
19091 srvsvc_NetSrvInfo1544_Type.tp_base = Object_Type;
19093 srvsvc_NetSrvInfo1545_Type.tp_base = Object_Type;
19095 srvsvc_NetSrvInfo1546_Type.tp_base = Object_Type;
19097 srvsvc_NetSrvInfo1547_Type.tp_base = Object_Type;
19099 srvsvc_NetSrvInfo1548_Type.tp_base = Object_Type;
19101 srvsvc_NetSrvInfo1549_Type.tp_base = Object_Type;
19103 srvsvc_NetSrvInfo1550_Type.tp_base = Object_Type;
19105 srvsvc_NetSrvInfo1552_Type.tp_base = Object_Type;
19107 srvsvc_NetSrvInfo1553_Type.tp_base = Object_Type;
19109 srvsvc_NetSrvInfo1554_Type.tp_base = Object_Type;
19111 srvsvc_NetSrvInfo1555_Type.tp_base = Object_Type;
19113 srvsvc_NetSrvInfo1556_Type.tp_base = Object_Type;
19115 srvsvc_NetDiskInfo0_Type.tp_base = Object_Type;
19117 srvsvc_NetDiskInfo_Type.tp_base = Object_Type;
19119 srvsvc_Statistics_Type.tp_base = Object_Type;
19121 srvsvc_NetTransportInfo0_Type.tp_base = Object_Type;
19123 srvsvc_NetTransportCtr0_Type.tp_base = Object_Type;
19125 srvsvc_NetTransportInfo1_Type.tp_base = Object_Type;
19127 srvsvc_NetTransportCtr1_Type.tp_base = Object_Type;
19129 srvsvc_NetTransportInfo2_Type.tp_base = Object_Type;
19131 srvsvc_NetTransportCtr2_Type.tp_base = Object_Type;
19133 srvsvc_NetTransportInfo3_Type.tp_base = Object_Type;
19135 srvsvc_NetTransportCtr3_Type.tp_base = Object_Type;
19137 srvsvc_NetTransportInfoCtr_Type.tp_base = Object_Type;
19139 srvsvc_NetRemoteTODInfo_Type.tp_base = Object_Type;
19141 srvsvc_InterfaceType.tp_base = ClientConnection_Type;
19143 if (PyType_Ready(&srvsvc_NetCharDevInfo0_Type) < 0)
19145 if (PyType_Ready(&srvsvc_NetCharDevCtr0_Type) < 0)
19147 if (PyType_Ready(&srvsvc_NetCharDevInfo1_Type) < 0)
19149 if (PyType_Ready(&srvsvc_NetCharDevCtr1_Type) < 0)
19151 if (PyType_Ready(&srvsvc_NetCharDevInfoCtr_Type) < 0)
19153 if (PyType_Ready(&srvsvc_NetCharDevQInfo0_Type) < 0)
19155 if (PyType_Ready(&srvsvc_NetCharDevQCtr0_Type) < 0)
19157 if (PyType_Ready(&srvsvc_NetCharDevQInfo1_Type) < 0)
19159 if (PyType_Ready(&srvsvc_NetCharDevQCtr1_Type) < 0)
19161 if (PyType_Ready(&srvsvc_NetCharDevQInfoCtr_Type) < 0)
19163 if (PyType_Ready(&srvsvc_NetConnInfo0_Type) < 0)
19165 if (PyType_Ready(&srvsvc_NetConnCtr0_Type) < 0)
19167 if (PyType_Ready(&srvsvc_NetConnInfo1_Type) < 0)
19169 if (PyType_Ready(&srvsvc_NetConnCtr1_Type) < 0)
19171 if (PyType_Ready(&srvsvc_NetConnInfoCtr_Type) < 0)
19173 if (PyType_Ready(&srvsvc_NetFileInfo2_Type) < 0)
19175 if (PyType_Ready(&srvsvc_NetFileCtr2_Type) < 0)
19177 if (PyType_Ready(&srvsvc_NetFileInfo3_Type) < 0)
19179 if (PyType_Ready(&srvsvc_NetFileCtr3_Type) < 0)
19181 if (PyType_Ready(&srvsvc_NetFileInfoCtr_Type) < 0)
19183 if (PyType_Ready(&srvsvc_NetSessInfo0_Type) < 0)
19185 if (PyType_Ready(&srvsvc_NetSessCtr0_Type) < 0)
19187 if (PyType_Ready(&srvsvc_NetSessInfo1_Type) < 0)
19189 if (PyType_Ready(&srvsvc_NetSessCtr1_Type) < 0)
19191 if (PyType_Ready(&srvsvc_NetSessInfo2_Type) < 0)
19193 if (PyType_Ready(&srvsvc_NetSessCtr2_Type) < 0)
19195 if (PyType_Ready(&srvsvc_NetSessInfo10_Type) < 0)
19197 if (PyType_Ready(&srvsvc_NetSessCtr10_Type) < 0)
19199 if (PyType_Ready(&srvsvc_NetSessInfo502_Type) < 0)
19201 if (PyType_Ready(&srvsvc_NetSessCtr502_Type) < 0)
19203 if (PyType_Ready(&srvsvc_NetSessInfoCtr_Type) < 0)
19205 if (PyType_Ready(&srvsvc_NetShareInfo0_Type) < 0)
19207 if (PyType_Ready(&srvsvc_NetShareCtr0_Type) < 0)
19209 if (PyType_Ready(&srvsvc_NetShareInfo1_Type) < 0)
19211 if (PyType_Ready(&srvsvc_NetShareCtr1_Type) < 0)
19213 if (PyType_Ready(&srvsvc_NetShareInfo2_Type) < 0)
19215 if (PyType_Ready(&srvsvc_NetShareCtr2_Type) < 0)
19217 if (PyType_Ready(&srvsvc_NetShareInfo501_Type) < 0)
19219 if (PyType_Ready(&srvsvc_NetShareCtr501_Type) < 0)
19221 if (PyType_Ready(&srvsvc_NetShareInfo502_Type) < 0)
19223 if (PyType_Ready(&srvsvc_NetShareCtr502_Type) < 0)
19225 if (PyType_Ready(&srvsvc_NetShareInfo1004_Type) < 0)
19227 if (PyType_Ready(&srvsvc_NetShareCtr1004_Type) < 0)
19229 if (PyType_Ready(&srvsvc_NetShareInfo1005_Type) < 0)
19231 if (PyType_Ready(&srvsvc_NetShareCtr1005_Type) < 0)
19233 if (PyType_Ready(&srvsvc_NetShareInfo1006_Type) < 0)
19235 if (PyType_Ready(&srvsvc_NetShareCtr1006_Type) < 0)
19237 if (PyType_Ready(&srvsvc_NetShareInfo1007_Type) < 0)
19239 if (PyType_Ready(&srvsvc_NetShareCtr1007_Type) < 0)
19241 if (PyType_Ready(&srvsvc_NetShareCtr1501_Type) < 0)
19243 if (PyType_Ready(&srvsvc_NetShareInfoCtr_Type) < 0)
19245 if (PyType_Ready(&srvsvc_NetSrvInfo100_Type) < 0)
19247 if (PyType_Ready(&srvsvc_NetSrvInfo101_Type) < 0)
19249 if (PyType_Ready(&srvsvc_NetSrvInfo102_Type) < 0)
19251 if (PyType_Ready(&srvsvc_NetSrvInfo402_Type) < 0)
19253 if (PyType_Ready(&srvsvc_NetSrvInfo403_Type) < 0)
19255 if (PyType_Ready(&srvsvc_NetSrvInfo502_Type) < 0)
19257 if (PyType_Ready(&srvsvc_NetSrvInfo503_Type) < 0)
19259 if (PyType_Ready(&srvsvc_NetSrvInfo599_Type) < 0)
19261 if (PyType_Ready(&srvsvc_NetSrvInfo1005_Type) < 0)
19263 if (PyType_Ready(&srvsvc_NetSrvInfo1010_Type) < 0)
19265 if (PyType_Ready(&srvsvc_NetSrvInfo1016_Type) < 0)
19267 if (PyType_Ready(&srvsvc_NetSrvInfo1017_Type) < 0)
19269 if (PyType_Ready(&srvsvc_NetSrvInfo1018_Type) < 0)
19271 if (PyType_Ready(&srvsvc_NetSrvInfo1107_Type) < 0)
19273 if (PyType_Ready(&srvsvc_NetSrvInfo1501_Type) < 0)
19275 if (PyType_Ready(&srvsvc_NetSrvInfo1502_Type) < 0)
19277 if (PyType_Ready(&srvsvc_NetSrvInfo1503_Type) < 0)
19279 if (PyType_Ready(&srvsvc_NetSrvInfo1506_Type) < 0)
19281 if (PyType_Ready(&srvsvc_NetSrvInfo1509_Type) < 0)
19283 if (PyType_Ready(&srvsvc_NetSrvInfo1510_Type) < 0)
19285 if (PyType_Ready(&srvsvc_NetSrvInfo1511_Type) < 0)
19287 if (PyType_Ready(&srvsvc_NetSrvInfo1512_Type) < 0)
19289 if (PyType_Ready(&srvsvc_NetSrvInfo1513_Type) < 0)
19291 if (PyType_Ready(&srvsvc_NetSrvInfo1514_Type) < 0)
19293 if (PyType_Ready(&srvsvc_NetSrvInfo1515_Type) < 0)
19295 if (PyType_Ready(&srvsvc_NetSrvInfo1516_Type) < 0)
19297 if (PyType_Ready(&srvsvc_NetSrvInfo1518_Type) < 0)
19299 if (PyType_Ready(&srvsvc_NetSrvInfo1520_Type) < 0)
19301 if (PyType_Ready(&srvsvc_NetSrvInfo1521_Type) < 0)
19303 if (PyType_Ready(&srvsvc_NetSrvInfo1522_Type) < 0)
19305 if (PyType_Ready(&srvsvc_NetSrvInfo1523_Type) < 0)
19307 if (PyType_Ready(&srvsvc_NetSrvInfo1524_Type) < 0)
19309 if (PyType_Ready(&srvsvc_NetSrvInfo1525_Type) < 0)
19311 if (PyType_Ready(&srvsvc_NetSrvInfo1528_Type) < 0)
19313 if (PyType_Ready(&srvsvc_NetSrvInfo1529_Type) < 0)
19315 if (PyType_Ready(&srvsvc_NetSrvInfo1530_Type) < 0)
19317 if (PyType_Ready(&srvsvc_NetSrvInfo1533_Type) < 0)
19319 if (PyType_Ready(&srvsvc_NetSrvInfo1534_Type) < 0)
19321 if (PyType_Ready(&srvsvc_NetSrvInfo1535_Type) < 0)
19323 if (PyType_Ready(&srvsvc_NetSrvInfo1536_Type) < 0)
19325 if (PyType_Ready(&srvsvc_NetSrvInfo1537_Type) < 0)
19327 if (PyType_Ready(&srvsvc_NetSrvInfo1538_Type) < 0)
19329 if (PyType_Ready(&srvsvc_NetSrvInfo1539_Type) < 0)
19331 if (PyType_Ready(&srvsvc_NetSrvInfo1540_Type) < 0)
19333 if (PyType_Ready(&srvsvc_NetSrvInfo1541_Type) < 0)
19335 if (PyType_Ready(&srvsvc_NetSrvInfo1542_Type) < 0)
19337 if (PyType_Ready(&srvsvc_NetSrvInfo1543_Type) < 0)
19339 if (PyType_Ready(&srvsvc_NetSrvInfo1544_Type) < 0)
19341 if (PyType_Ready(&srvsvc_NetSrvInfo1545_Type) < 0)
19343 if (PyType_Ready(&srvsvc_NetSrvInfo1546_Type) < 0)
19345 if (PyType_Ready(&srvsvc_NetSrvInfo1547_Type) < 0)
19347 if (PyType_Ready(&srvsvc_NetSrvInfo1548_Type) < 0)
19349 if (PyType_Ready(&srvsvc_NetSrvInfo1549_Type) < 0)
19351 if (PyType_Ready(&srvsvc_NetSrvInfo1550_Type) < 0)
19353 if (PyType_Ready(&srvsvc_NetSrvInfo1552_Type) < 0)
19355 if (PyType_Ready(&srvsvc_NetSrvInfo1553_Type) < 0)
19357 if (PyType_Ready(&srvsvc_NetSrvInfo1554_Type) < 0)
19359 if (PyType_Ready(&srvsvc_NetSrvInfo1555_Type) < 0)
19361 if (PyType_Ready(&srvsvc_NetSrvInfo1556_Type) < 0)
19363 if (PyType_Ready(&srvsvc_NetDiskInfo0_Type) < 0)
19365 if (PyType_Ready(&srvsvc_NetDiskInfo_Type) < 0)
19367 if (PyType_Ready(&srvsvc_Statistics_Type) < 0)
19369 if (PyType_Ready(&srvsvc_NetTransportInfo0_Type) < 0)
19371 if (PyType_Ready(&srvsvc_NetTransportCtr0_Type) < 0)
19373 if (PyType_Ready(&srvsvc_NetTransportInfo1_Type) < 0)
19375 if (PyType_Ready(&srvsvc_NetTransportCtr1_Type) < 0)
19377 if (PyType_Ready(&srvsvc_NetTransportInfo2_Type) < 0)
19379 if (PyType_Ready(&srvsvc_NetTransportCtr2_Type) < 0)
19381 if (PyType_Ready(&srvsvc_NetTransportInfo3_Type) < 0)
19383 if (PyType_Ready(&srvsvc_NetTransportCtr3_Type) < 0)
19385 if (PyType_Ready(&srvsvc_NetTransportInfoCtr_Type) < 0)
19387 if (PyType_Ready(&srvsvc_NetRemoteTODInfo_Type) < 0)
19389 if (PyType_Ready(&srvsvc_InterfaceType) < 0)
19391 if (!PyInterface_AddNdrRpcMethods(&srvsvc_InterfaceType, py_ndr_srvsvc_methods))
19394 #ifdef PY_NETCHARDEVINFO0_PATCH
19395 PY_NETCHARDEVINFO0_PATCH(&srvsvc_NetCharDevInfo0_Type);
19397 #ifdef PY_NETCHARDEVCTR0_PATCH
19398 PY_NETCHARDEVCTR0_PATCH(&srvsvc_NetCharDevCtr0_Type);
19400 #ifdef PY_NETCHARDEVINFO1_PATCH
19401 PY_NETCHARDEVINFO1_PATCH(&srvsvc_NetCharDevInfo1_Type);
19403 #ifdef PY_NETCHARDEVCTR1_PATCH
19404 PY_NETCHARDEVCTR1_PATCH(&srvsvc_NetCharDevCtr1_Type);
19406 #ifdef PY_NETCHARDEVINFOCTR_PATCH
19407 PY_NETCHARDEVINFOCTR_PATCH(&srvsvc_NetCharDevInfoCtr_Type);
19409 #ifdef PY_NETCHARDEVQINFO0_PATCH
19410 PY_NETCHARDEVQINFO0_PATCH(&srvsvc_NetCharDevQInfo0_Type);
19412 #ifdef PY_NETCHARDEVQCTR0_PATCH
19413 PY_NETCHARDEVQCTR0_PATCH(&srvsvc_NetCharDevQCtr0_Type);
19415 #ifdef PY_NETCHARDEVQINFO1_PATCH
19416 PY_NETCHARDEVQINFO1_PATCH(&srvsvc_NetCharDevQInfo1_Type);
19418 #ifdef PY_NETCHARDEVQCTR1_PATCH
19419 PY_NETCHARDEVQCTR1_PATCH(&srvsvc_NetCharDevQCtr1_Type);
19421 #ifdef PY_NETCHARDEVQINFOCTR_PATCH
19422 PY_NETCHARDEVQINFOCTR_PATCH(&srvsvc_NetCharDevQInfoCtr_Type);
19424 #ifdef PY_NETCONNINFO0_PATCH
19425 PY_NETCONNINFO0_PATCH(&srvsvc_NetConnInfo0_Type);
19427 #ifdef PY_NETCONNCTR0_PATCH
19428 PY_NETCONNCTR0_PATCH(&srvsvc_NetConnCtr0_Type);
19430 #ifdef PY_NETCONNINFO1_PATCH
19431 PY_NETCONNINFO1_PATCH(&srvsvc_NetConnInfo1_Type);
19433 #ifdef PY_NETCONNCTR1_PATCH
19434 PY_NETCONNCTR1_PATCH(&srvsvc_NetConnCtr1_Type);
19436 #ifdef PY_NETCONNINFOCTR_PATCH
19437 PY_NETCONNINFOCTR_PATCH(&srvsvc_NetConnInfoCtr_Type);
19439 #ifdef PY_NETFILEINFO2_PATCH
19440 PY_NETFILEINFO2_PATCH(&srvsvc_NetFileInfo2_Type);
19442 #ifdef PY_NETFILECTR2_PATCH
19443 PY_NETFILECTR2_PATCH(&srvsvc_NetFileCtr2_Type);
19445 #ifdef PY_NETFILEINFO3_PATCH
19446 PY_NETFILEINFO3_PATCH(&srvsvc_NetFileInfo3_Type);
19448 #ifdef PY_NETFILECTR3_PATCH
19449 PY_NETFILECTR3_PATCH(&srvsvc_NetFileCtr3_Type);
19451 #ifdef PY_NETFILEINFOCTR_PATCH
19452 PY_NETFILEINFOCTR_PATCH(&srvsvc_NetFileInfoCtr_Type);
19454 #ifdef PY_NETSESSINFO0_PATCH
19455 PY_NETSESSINFO0_PATCH(&srvsvc_NetSessInfo0_Type);
19457 #ifdef PY_NETSESSCTR0_PATCH
19458 PY_NETSESSCTR0_PATCH(&srvsvc_NetSessCtr0_Type);
19460 #ifdef PY_NETSESSINFO1_PATCH
19461 PY_NETSESSINFO1_PATCH(&srvsvc_NetSessInfo1_Type);
19463 #ifdef PY_NETSESSCTR1_PATCH
19464 PY_NETSESSCTR1_PATCH(&srvsvc_NetSessCtr1_Type);
19466 #ifdef PY_NETSESSINFO2_PATCH
19467 PY_NETSESSINFO2_PATCH(&srvsvc_NetSessInfo2_Type);
19469 #ifdef PY_NETSESSCTR2_PATCH
19470 PY_NETSESSCTR2_PATCH(&srvsvc_NetSessCtr2_Type);
19472 #ifdef PY_NETSESSINFO10_PATCH
19473 PY_NETSESSINFO10_PATCH(&srvsvc_NetSessInfo10_Type);
19475 #ifdef PY_NETSESSCTR10_PATCH
19476 PY_NETSESSCTR10_PATCH(&srvsvc_NetSessCtr10_Type);
19478 #ifdef PY_NETSESSINFO502_PATCH
19479 PY_NETSESSINFO502_PATCH(&srvsvc_NetSessInfo502_Type);
19481 #ifdef PY_NETSESSCTR502_PATCH
19482 PY_NETSESSCTR502_PATCH(&srvsvc_NetSessCtr502_Type);
19484 #ifdef PY_NETSESSINFOCTR_PATCH
19485 PY_NETSESSINFOCTR_PATCH(&srvsvc_NetSessInfoCtr_Type);
19487 #ifdef PY_NETSHAREINFO0_PATCH
19488 PY_NETSHAREINFO0_PATCH(&srvsvc_NetShareInfo0_Type);
19490 #ifdef PY_NETSHARECTR0_PATCH
19491 PY_NETSHARECTR0_PATCH(&srvsvc_NetShareCtr0_Type);
19493 #ifdef PY_NETSHAREINFO1_PATCH
19494 PY_NETSHAREINFO1_PATCH(&srvsvc_NetShareInfo1_Type);
19496 #ifdef PY_NETSHARECTR1_PATCH
19497 PY_NETSHARECTR1_PATCH(&srvsvc_NetShareCtr1_Type);
19499 #ifdef PY_NETSHAREINFO2_PATCH
19500 PY_NETSHAREINFO2_PATCH(&srvsvc_NetShareInfo2_Type);
19502 #ifdef PY_NETSHARECTR2_PATCH
19503 PY_NETSHARECTR2_PATCH(&srvsvc_NetShareCtr2_Type);
19505 #ifdef PY_NETSHAREINFO501_PATCH
19506 PY_NETSHAREINFO501_PATCH(&srvsvc_NetShareInfo501_Type);
19508 #ifdef PY_NETSHARECTR501_PATCH
19509 PY_NETSHARECTR501_PATCH(&srvsvc_NetShareCtr501_Type);
19511 #ifdef PY_NETSHAREINFO502_PATCH
19512 PY_NETSHAREINFO502_PATCH(&srvsvc_NetShareInfo502_Type);
19514 #ifdef PY_NETSHARECTR502_PATCH
19515 PY_NETSHARECTR502_PATCH(&srvsvc_NetShareCtr502_Type);
19517 #ifdef PY_NETSHAREINFO1004_PATCH
19518 PY_NETSHAREINFO1004_PATCH(&srvsvc_NetShareInfo1004_Type);
19520 #ifdef PY_NETSHARECTR1004_PATCH
19521 PY_NETSHARECTR1004_PATCH(&srvsvc_NetShareCtr1004_Type);
19523 #ifdef PY_NETSHAREINFO1005_PATCH
19524 PY_NETSHAREINFO1005_PATCH(&srvsvc_NetShareInfo1005_Type);
19526 #ifdef PY_NETSHARECTR1005_PATCH
19527 PY_NETSHARECTR1005_PATCH(&srvsvc_NetShareCtr1005_Type);
19529 #ifdef PY_NETSHAREINFO1006_PATCH
19530 PY_NETSHAREINFO1006_PATCH(&srvsvc_NetShareInfo1006_Type);
19532 #ifdef PY_NETSHARECTR1006_PATCH
19533 PY_NETSHARECTR1006_PATCH(&srvsvc_NetShareCtr1006_Type);
19535 #ifdef PY_NETSHAREINFO1007_PATCH
19536 PY_NETSHAREINFO1007_PATCH(&srvsvc_NetShareInfo1007_Type);
19538 #ifdef PY_NETSHARECTR1007_PATCH
19539 PY_NETSHARECTR1007_PATCH(&srvsvc_NetShareCtr1007_Type);
19541 #ifdef PY_NETSHARECTR1501_PATCH
19542 PY_NETSHARECTR1501_PATCH(&srvsvc_NetShareCtr1501_Type);
19544 #ifdef PY_NETSHAREINFOCTR_PATCH
19545 PY_NETSHAREINFOCTR_PATCH(&srvsvc_NetShareInfoCtr_Type);
19547 #ifdef PY_NETSRVINFO100_PATCH
19548 PY_NETSRVINFO100_PATCH(&srvsvc_NetSrvInfo100_Type);
19550 #ifdef PY_NETSRVINFO101_PATCH
19551 PY_NETSRVINFO101_PATCH(&srvsvc_NetSrvInfo101_Type);
19553 #ifdef PY_NETSRVINFO102_PATCH
19554 PY_NETSRVINFO102_PATCH(&srvsvc_NetSrvInfo102_Type);
19556 #ifdef PY_NETSRVINFO402_PATCH
19557 PY_NETSRVINFO402_PATCH(&srvsvc_NetSrvInfo402_Type);
19559 #ifdef PY_NETSRVINFO403_PATCH
19560 PY_NETSRVINFO403_PATCH(&srvsvc_NetSrvInfo403_Type);
19562 #ifdef PY_NETSRVINFO502_PATCH
19563 PY_NETSRVINFO502_PATCH(&srvsvc_NetSrvInfo502_Type);
19565 #ifdef PY_NETSRVINFO503_PATCH
19566 PY_NETSRVINFO503_PATCH(&srvsvc_NetSrvInfo503_Type);
19568 #ifdef PY_NETSRVINFO599_PATCH
19569 PY_NETSRVINFO599_PATCH(&srvsvc_NetSrvInfo599_Type);
19571 #ifdef PY_NETSRVINFO1005_PATCH
19572 PY_NETSRVINFO1005_PATCH(&srvsvc_NetSrvInfo1005_Type);
19574 #ifdef PY_NETSRVINFO1010_PATCH
19575 PY_NETSRVINFO1010_PATCH(&srvsvc_NetSrvInfo1010_Type);
19577 #ifdef PY_NETSRVINFO1016_PATCH
19578 PY_NETSRVINFO1016_PATCH(&srvsvc_NetSrvInfo1016_Type);
19580 #ifdef PY_NETSRVINFO1017_PATCH
19581 PY_NETSRVINFO1017_PATCH(&srvsvc_NetSrvInfo1017_Type);
19583 #ifdef PY_NETSRVINFO1018_PATCH
19584 PY_NETSRVINFO1018_PATCH(&srvsvc_NetSrvInfo1018_Type);
19586 #ifdef PY_NETSRVINFO1107_PATCH
19587 PY_NETSRVINFO1107_PATCH(&srvsvc_NetSrvInfo1107_Type);
19589 #ifdef PY_NETSRVINFO1501_PATCH
19590 PY_NETSRVINFO1501_PATCH(&srvsvc_NetSrvInfo1501_Type);
19592 #ifdef PY_NETSRVINFO1502_PATCH
19593 PY_NETSRVINFO1502_PATCH(&srvsvc_NetSrvInfo1502_Type);
19595 #ifdef PY_NETSRVINFO1503_PATCH
19596 PY_NETSRVINFO1503_PATCH(&srvsvc_NetSrvInfo1503_Type);
19598 #ifdef PY_NETSRVINFO1506_PATCH
19599 PY_NETSRVINFO1506_PATCH(&srvsvc_NetSrvInfo1506_Type);
19601 #ifdef PY_NETSRVINFO1509_PATCH
19602 PY_NETSRVINFO1509_PATCH(&srvsvc_NetSrvInfo1509_Type);
19604 #ifdef PY_NETSRVINFO1510_PATCH
19605 PY_NETSRVINFO1510_PATCH(&srvsvc_NetSrvInfo1510_Type);
19607 #ifdef PY_NETSRVINFO1511_PATCH
19608 PY_NETSRVINFO1511_PATCH(&srvsvc_NetSrvInfo1511_Type);
19610 #ifdef PY_NETSRVINFO1512_PATCH
19611 PY_NETSRVINFO1512_PATCH(&srvsvc_NetSrvInfo1512_Type);
19613 #ifdef PY_NETSRVINFO1513_PATCH
19614 PY_NETSRVINFO1513_PATCH(&srvsvc_NetSrvInfo1513_Type);
19616 #ifdef PY_NETSRVINFO1514_PATCH
19617 PY_NETSRVINFO1514_PATCH(&srvsvc_NetSrvInfo1514_Type);
19619 #ifdef PY_NETSRVINFO1515_PATCH
19620 PY_NETSRVINFO1515_PATCH(&srvsvc_NetSrvInfo1515_Type);
19622 #ifdef PY_NETSRVINFO1516_PATCH
19623 PY_NETSRVINFO1516_PATCH(&srvsvc_NetSrvInfo1516_Type);
19625 #ifdef PY_NETSRVINFO1518_PATCH
19626 PY_NETSRVINFO1518_PATCH(&srvsvc_NetSrvInfo1518_Type);
19628 #ifdef PY_NETSRVINFO1520_PATCH
19629 PY_NETSRVINFO1520_PATCH(&srvsvc_NetSrvInfo1520_Type);
19631 #ifdef PY_NETSRVINFO1521_PATCH
19632 PY_NETSRVINFO1521_PATCH(&srvsvc_NetSrvInfo1521_Type);
19634 #ifdef PY_NETSRVINFO1522_PATCH
19635 PY_NETSRVINFO1522_PATCH(&srvsvc_NetSrvInfo1522_Type);
19637 #ifdef PY_NETSRVINFO1523_PATCH
19638 PY_NETSRVINFO1523_PATCH(&srvsvc_NetSrvInfo1523_Type);
19640 #ifdef PY_NETSRVINFO1524_PATCH
19641 PY_NETSRVINFO1524_PATCH(&srvsvc_NetSrvInfo1524_Type);
19643 #ifdef PY_NETSRVINFO1525_PATCH
19644 PY_NETSRVINFO1525_PATCH(&srvsvc_NetSrvInfo1525_Type);
19646 #ifdef PY_NETSRVINFO1528_PATCH
19647 PY_NETSRVINFO1528_PATCH(&srvsvc_NetSrvInfo1528_Type);
19649 #ifdef PY_NETSRVINFO1529_PATCH
19650 PY_NETSRVINFO1529_PATCH(&srvsvc_NetSrvInfo1529_Type);
19652 #ifdef PY_NETSRVINFO1530_PATCH
19653 PY_NETSRVINFO1530_PATCH(&srvsvc_NetSrvInfo1530_Type);
19655 #ifdef PY_NETSRVINFO1533_PATCH
19656 PY_NETSRVINFO1533_PATCH(&srvsvc_NetSrvInfo1533_Type);
19658 #ifdef PY_NETSRVINFO1534_PATCH
19659 PY_NETSRVINFO1534_PATCH(&srvsvc_NetSrvInfo1534_Type);
19661 #ifdef PY_NETSRVINFO1535_PATCH
19662 PY_NETSRVINFO1535_PATCH(&srvsvc_NetSrvInfo1535_Type);
19664 #ifdef PY_NETSRVINFO1536_PATCH
19665 PY_NETSRVINFO1536_PATCH(&srvsvc_NetSrvInfo1536_Type);
19667 #ifdef PY_NETSRVINFO1537_PATCH
19668 PY_NETSRVINFO1537_PATCH(&srvsvc_NetSrvInfo1537_Type);
19670 #ifdef PY_NETSRVINFO1538_PATCH
19671 PY_NETSRVINFO1538_PATCH(&srvsvc_NetSrvInfo1538_Type);
19673 #ifdef PY_NETSRVINFO1539_PATCH
19674 PY_NETSRVINFO1539_PATCH(&srvsvc_NetSrvInfo1539_Type);
19676 #ifdef PY_NETSRVINFO1540_PATCH
19677 PY_NETSRVINFO1540_PATCH(&srvsvc_NetSrvInfo1540_Type);
19679 #ifdef PY_NETSRVINFO1541_PATCH
19680 PY_NETSRVINFO1541_PATCH(&srvsvc_NetSrvInfo1541_Type);
19682 #ifdef PY_NETSRVINFO1542_PATCH
19683 PY_NETSRVINFO1542_PATCH(&srvsvc_NetSrvInfo1542_Type);
19685 #ifdef PY_NETSRVINFO1543_PATCH
19686 PY_NETSRVINFO1543_PATCH(&srvsvc_NetSrvInfo1543_Type);
19688 #ifdef PY_NETSRVINFO1544_PATCH
19689 PY_NETSRVINFO1544_PATCH(&srvsvc_NetSrvInfo1544_Type);
19691 #ifdef PY_NETSRVINFO1545_PATCH
19692 PY_NETSRVINFO1545_PATCH(&srvsvc_NetSrvInfo1545_Type);
19694 #ifdef PY_NETSRVINFO1546_PATCH
19695 PY_NETSRVINFO1546_PATCH(&srvsvc_NetSrvInfo1546_Type);
19697 #ifdef PY_NETSRVINFO1547_PATCH
19698 PY_NETSRVINFO1547_PATCH(&srvsvc_NetSrvInfo1547_Type);
19700 #ifdef PY_NETSRVINFO1548_PATCH
19701 PY_NETSRVINFO1548_PATCH(&srvsvc_NetSrvInfo1548_Type);
19703 #ifdef PY_NETSRVINFO1549_PATCH
19704 PY_NETSRVINFO1549_PATCH(&srvsvc_NetSrvInfo1549_Type);
19706 #ifdef PY_NETSRVINFO1550_PATCH
19707 PY_NETSRVINFO1550_PATCH(&srvsvc_NetSrvInfo1550_Type);
19709 #ifdef PY_NETSRVINFO1552_PATCH
19710 PY_NETSRVINFO1552_PATCH(&srvsvc_NetSrvInfo1552_Type);
19712 #ifdef PY_NETSRVINFO1553_PATCH
19713 PY_NETSRVINFO1553_PATCH(&srvsvc_NetSrvInfo1553_Type);
19715 #ifdef PY_NETSRVINFO1554_PATCH
19716 PY_NETSRVINFO1554_PATCH(&srvsvc_NetSrvInfo1554_Type);
19718 #ifdef PY_NETSRVINFO1555_PATCH
19719 PY_NETSRVINFO1555_PATCH(&srvsvc_NetSrvInfo1555_Type);
19721 #ifdef PY_NETSRVINFO1556_PATCH
19722 PY_NETSRVINFO1556_PATCH(&srvsvc_NetSrvInfo1556_Type);
19724 #ifdef PY_NETDISKINFO0_PATCH
19725 PY_NETDISKINFO0_PATCH(&srvsvc_NetDiskInfo0_Type);
19727 #ifdef PY_NETDISKINFO_PATCH
19728 PY_NETDISKINFO_PATCH(&srvsvc_NetDiskInfo_Type);
19730 #ifdef PY_STATISTICS_PATCH
19731 PY_STATISTICS_PATCH(&srvsvc_Statistics_Type);
19733 #ifdef PY_NETTRANSPORTINFO0_PATCH
19734 PY_NETTRANSPORTINFO0_PATCH(&srvsvc_NetTransportInfo0_Type);
19736 #ifdef PY_NETTRANSPORTCTR0_PATCH
19737 PY_NETTRANSPORTCTR0_PATCH(&srvsvc_NetTransportCtr0_Type);
19739 #ifdef PY_NETTRANSPORTINFO1_PATCH
19740 PY_NETTRANSPORTINFO1_PATCH(&srvsvc_NetTransportInfo1_Type);
19742 #ifdef PY_NETTRANSPORTCTR1_PATCH
19743 PY_NETTRANSPORTCTR1_PATCH(&srvsvc_NetTransportCtr1_Type);
19745 #ifdef PY_NETTRANSPORTINFO2_PATCH
19746 PY_NETTRANSPORTINFO2_PATCH(&srvsvc_NetTransportInfo2_Type);
19748 #ifdef PY_NETTRANSPORTCTR2_PATCH
19749 PY_NETTRANSPORTCTR2_PATCH(&srvsvc_NetTransportCtr2_Type);
19751 #ifdef PY_NETTRANSPORTINFO3_PATCH
19752 PY_NETTRANSPORTINFO3_PATCH(&srvsvc_NetTransportInfo3_Type);
19754 #ifdef PY_NETTRANSPORTCTR3_PATCH
19755 PY_NETTRANSPORTCTR3_PATCH(&srvsvc_NetTransportCtr3_Type);
19757 #ifdef PY_NETTRANSPORTINFOCTR_PATCH
19758 PY_NETTRANSPORTINFOCTR_PATCH(&srvsvc_NetTransportInfoCtr_Type);
19760 #ifdef PY_NETREMOTETODINFO_PATCH
19761 PY_NETREMOTETODINFO_PATCH(&srvsvc_NetRemoteTODInfo_Type);
19763 #ifdef PY_SRVSVC_PATCH
19764 PY_SRVSVC_PATCH(&srvsvc_InterfaceType);
19767 m = Py_InitModule3("srvsvc", srvsvc_methods, "srvsvc DCE/RPC");
19771 PyModule_AddObject(m, "SHARE_1005_FORCE_SHARED_DELETE", PyInt_FromLong(SHARE_1005_FORCE_SHARED_DELETE));
19772 PyModule_AddObject(m, "SHARE_1005_ENABLE_HASH", PyInt_FromLong(SHARE_1005_ENABLE_HASH));
19773 PyModule_AddObject(m, "SHARE_1005_FORCE_LEVELII_OPLOCK", PyInt_FromLong(SHARE_1005_FORCE_LEVELII_OPLOCK));
19774 PyModule_AddObject(m, "STYPE_HIDDEN", PyInt_FromLong(0x80000000));
19775 PyModule_AddObject(m, "STYPE_PRINTQ", PyInt_FromLong(STYPE_PRINTQ));
19776 PyModule_AddObject(m, "STYPE_TEMPORARY", PyInt_FromLong(0x40000000));
19777 PyModule_AddObject(m, "PLATFORM_ID_OSF", PyInt_FromLong(PLATFORM_ID_OSF));
19778 PyModule_AddObject(m, "SHARE_1005_ENCRYPT_DATA", PyInt_FromLong(SHARE_1005_ENCRYPT_DATA));
19779 PyModule_AddObject(m, "SHARE_1005_CSC_CACHE_AUTO_REINT", PyInt_FromLong(SHARE_1005_CSC_CACHE_AUTO_REINT));
19780 PyModule_AddObject(m, "SHARE_1005_DFS_ROOT", PyInt_FromLong(SHARE_1005_DFS_ROOT));
19781 PyModule_AddObject(m, "STYPE_PRINTQ_HIDDEN", PyInt_FromLong(STYPE_PRINTQ_HIDDEN));
19782 PyModule_AddObject(m, "STYPE_DEVICE_TEMPORARY", PyInt_FromLong(STYPE_DEVICE_TEMPORARY));
19783 PyModule_AddObject(m, "STYPE_PRINTQ_TEMPORARY", PyInt_FromLong(STYPE_PRINTQ_TEMPORARY));
19784 PyModule_AddObject(m, "STYPE_DEVICE_HIDDEN", PyInt_FromLong(STYPE_DEVICE_HIDDEN));
19785 PyModule_AddObject(m, "SHARE_1005_CSC_POLICY_SHIFT", PyInt_FromLong(4));
19786 PyModule_AddObject(m, "PLATFORM_ID_DOS", PyInt_FromLong(PLATFORM_ID_DOS));
19787 PyModule_AddObject(m, "STYPE_DEVICE", PyInt_FromLong(STYPE_DEVICE));
19788 PyModule_AddObject(m, "SHARE_1005_IN_DFS", PyInt_FromLong(SHARE_1005_IN_DFS));
19789 PyModule_AddObject(m, "SHARE_1005_RESTRICT_EXCLUSIVE_OPENS", PyInt_FromLong(SHARE_1005_RESTRICT_EXCLUSIVE_OPENS));
19790 PyModule_AddObject(m, "PLATFORM_ID_NT", PyInt_FromLong(PLATFORM_ID_NT));
19791 PyModule_AddObject(m, "STYPE_IPC_TEMPORARY", PyInt_FromLong(STYPE_IPC_TEMPORARY));
19792 PyModule_AddObject(m, "SHARE_1005_ACCESS_BASED_DIRECTORY_ENUM", PyInt_FromLong(SHARE_1005_ACCESS_BASED_DIRECTORY_ENUM));
19793 PyModule_AddObject(m, "SHARE_1005_CSC_CACHE_MANUAL_REINT", PyInt_FromLong(0x00000000));
19794 PyModule_AddObject(m, "STYPE_DISKTREE_HIDDEN", PyInt_FromLong(STYPE_DISKTREE_HIDDEN));
19795 PyModule_AddObject(m, "STYPE_DISKTREE", PyInt_FromLong(STYPE_DISKTREE));
19796 PyModule_AddObject(m, "SHARE_1005_ALLOW_NAMESPACE_CACHING", PyInt_FromLong(SHARE_1005_ALLOW_NAMESPACE_CACHING));
19797 PyModule_AddObject(m, "SHARE_1005_ENABLE_CA", PyInt_FromLong(SHARE_1005_ENABLE_CA));
19798 PyModule_AddObject(m, "PLATFORM_ID_VMS", PyInt_FromLong(PLATFORM_ID_VMS));
19799 PyModule_AddObject(m, "SHARE_1005_CSC_CACHE_VDO", PyInt_FromLong(SHARE_1005_CSC_CACHE_VDO));
19800 PyModule_AddObject(m, "STYPE_IPC_HIDDEN", PyInt_FromLong(STYPE_IPC_HIDDEN));
19801 PyModule_AddObject(m, "STYPE_IPC", PyInt_FromLong(STYPE_IPC));
19802 PyModule_AddObject(m, "SHARE_1005_CSC_POLICY_MASK", PyInt_FromLong(0x00000030));
19803 PyModule_AddObject(m, "STYPE_DISKTREE_TEMPORARY", PyInt_FromLong(STYPE_DISKTREE_TEMPORARY));
19804 PyModule_AddObject(m, "SHARE_1005_CSC_CACHE_NONE", PyInt_FromLong(SHARE_1005_CSC_CACHE_NONE));
19805 PyModule_AddObject(m, "PLATFORM_ID_OS2", PyInt_FromLong(PLATFORM_ID_OS2));
19806 Py_INCREF((PyObject *)(void *)&srvsvc_NetCharDevInfo0_Type);
19807 PyModule_AddObject(m, "NetCharDevInfo0", (PyObject *)(void *)&srvsvc_NetCharDevInfo0_Type);
19808 Py_INCREF((PyObject *)(void *)&srvsvc_NetCharDevCtr0_Type);
19809 PyModule_AddObject(m, "NetCharDevCtr0", (PyObject *)(void *)&srvsvc_NetCharDevCtr0_Type);
19810 Py_INCREF((PyObject *)(void *)&srvsvc_NetCharDevInfo1_Type);
19811 PyModule_AddObject(m, "NetCharDevInfo1", (PyObject *)(void *)&srvsvc_NetCharDevInfo1_Type);
19812 Py_INCREF((PyObject *)(void *)&srvsvc_NetCharDevCtr1_Type);
19813 PyModule_AddObject(m, "NetCharDevCtr1", (PyObject *)(void *)&srvsvc_NetCharDevCtr1_Type);
19814 Py_INCREF((PyObject *)(void *)&srvsvc_NetCharDevInfoCtr_Type);
19815 PyModule_AddObject(m, "NetCharDevInfoCtr", (PyObject *)(void *)&srvsvc_NetCharDevInfoCtr_Type);
19816 Py_INCREF((PyObject *)(void *)&srvsvc_NetCharDevQInfo0_Type);
19817 PyModule_AddObject(m, "NetCharDevQInfo0", (PyObject *)(void *)&srvsvc_NetCharDevQInfo0_Type);
19818 Py_INCREF((PyObject *)(void *)&srvsvc_NetCharDevQCtr0_Type);
19819 PyModule_AddObject(m, "NetCharDevQCtr0", (PyObject *)(void *)&srvsvc_NetCharDevQCtr0_Type);
19820 Py_INCREF((PyObject *)(void *)&srvsvc_NetCharDevQInfo1_Type);
19821 PyModule_AddObject(m, "NetCharDevQInfo1", (PyObject *)(void *)&srvsvc_NetCharDevQInfo1_Type);
19822 Py_INCREF((PyObject *)(void *)&srvsvc_NetCharDevQCtr1_Type);
19823 PyModule_AddObject(m, "NetCharDevQCtr1", (PyObject *)(void *)&srvsvc_NetCharDevQCtr1_Type);
19824 Py_INCREF((PyObject *)(void *)&srvsvc_NetCharDevQInfoCtr_Type);
19825 PyModule_AddObject(m, "NetCharDevQInfoCtr", (PyObject *)(void *)&srvsvc_NetCharDevQInfoCtr_Type);
19826 Py_INCREF((PyObject *)(void *)&srvsvc_NetConnInfo0_Type);
19827 PyModule_AddObject(m, "NetConnInfo0", (PyObject *)(void *)&srvsvc_NetConnInfo0_Type);
19828 Py_INCREF((PyObject *)(void *)&srvsvc_NetConnCtr0_Type);
19829 PyModule_AddObject(m, "NetConnCtr0", (PyObject *)(void *)&srvsvc_NetConnCtr0_Type);
19830 Py_INCREF((PyObject *)(void *)&srvsvc_NetConnInfo1_Type);
19831 PyModule_AddObject(m, "NetConnInfo1", (PyObject *)(void *)&srvsvc_NetConnInfo1_Type);
19832 Py_INCREF((PyObject *)(void *)&srvsvc_NetConnCtr1_Type);
19833 PyModule_AddObject(m, "NetConnCtr1", (PyObject *)(void *)&srvsvc_NetConnCtr1_Type);
19834 Py_INCREF((PyObject *)(void *)&srvsvc_NetConnInfoCtr_Type);
19835 PyModule_AddObject(m, "NetConnInfoCtr", (PyObject *)(void *)&srvsvc_NetConnInfoCtr_Type);
19836 Py_INCREF((PyObject *)(void *)&srvsvc_NetFileInfo2_Type);
19837 PyModule_AddObject(m, "NetFileInfo2", (PyObject *)(void *)&srvsvc_NetFileInfo2_Type);
19838 Py_INCREF((PyObject *)(void *)&srvsvc_NetFileCtr2_Type);
19839 PyModule_AddObject(m, "NetFileCtr2", (PyObject *)(void *)&srvsvc_NetFileCtr2_Type);
19840 Py_INCREF((PyObject *)(void *)&srvsvc_NetFileInfo3_Type);
19841 PyModule_AddObject(m, "NetFileInfo3", (PyObject *)(void *)&srvsvc_NetFileInfo3_Type);
19842 Py_INCREF((PyObject *)(void *)&srvsvc_NetFileCtr3_Type);
19843 PyModule_AddObject(m, "NetFileCtr3", (PyObject *)(void *)&srvsvc_NetFileCtr3_Type);
19844 Py_INCREF((PyObject *)(void *)&srvsvc_NetFileInfoCtr_Type);
19845 PyModule_AddObject(m, "NetFileInfoCtr", (PyObject *)(void *)&srvsvc_NetFileInfoCtr_Type);
19846 Py_INCREF((PyObject *)(void *)&srvsvc_NetSessInfo0_Type);
19847 PyModule_AddObject(m, "NetSessInfo0", (PyObject *)(void *)&srvsvc_NetSessInfo0_Type);
19848 Py_INCREF((PyObject *)(void *)&srvsvc_NetSessCtr0_Type);
19849 PyModule_AddObject(m, "NetSessCtr0", (PyObject *)(void *)&srvsvc_NetSessCtr0_Type);
19850 Py_INCREF((PyObject *)(void *)&srvsvc_NetSessInfo1_Type);
19851 PyModule_AddObject(m, "NetSessInfo1", (PyObject *)(void *)&srvsvc_NetSessInfo1_Type);
19852 Py_INCREF((PyObject *)(void *)&srvsvc_NetSessCtr1_Type);
19853 PyModule_AddObject(m, "NetSessCtr1", (PyObject *)(void *)&srvsvc_NetSessCtr1_Type);
19854 Py_INCREF((PyObject *)(void *)&srvsvc_NetSessInfo2_Type);
19855 PyModule_AddObject(m, "NetSessInfo2", (PyObject *)(void *)&srvsvc_NetSessInfo2_Type);
19856 Py_INCREF((PyObject *)(void *)&srvsvc_NetSessCtr2_Type);
19857 PyModule_AddObject(m, "NetSessCtr2", (PyObject *)(void *)&srvsvc_NetSessCtr2_Type);
19858 Py_INCREF((PyObject *)(void *)&srvsvc_NetSessInfo10_Type);
19859 PyModule_AddObject(m, "NetSessInfo10", (PyObject *)(void *)&srvsvc_NetSessInfo10_Type);
19860 Py_INCREF((PyObject *)(void *)&srvsvc_NetSessCtr10_Type);
19861 PyModule_AddObject(m, "NetSessCtr10", (PyObject *)(void *)&srvsvc_NetSessCtr10_Type);
19862 Py_INCREF((PyObject *)(void *)&srvsvc_NetSessInfo502_Type);
19863 PyModule_AddObject(m, "NetSessInfo502", (PyObject *)(void *)&srvsvc_NetSessInfo502_Type);
19864 Py_INCREF((PyObject *)(void *)&srvsvc_NetSessCtr502_Type);
19865 PyModule_AddObject(m, "NetSessCtr502", (PyObject *)(void *)&srvsvc_NetSessCtr502_Type);
19866 Py_INCREF((PyObject *)(void *)&srvsvc_NetSessInfoCtr_Type);
19867 PyModule_AddObject(m, "NetSessInfoCtr", (PyObject *)(void *)&srvsvc_NetSessInfoCtr_Type);
19868 Py_INCREF((PyObject *)(void *)&srvsvc_NetShareInfo0_Type);
19869 PyModule_AddObject(m, "NetShareInfo0", (PyObject *)(void *)&srvsvc_NetShareInfo0_Type);
19870 Py_INCREF((PyObject *)(void *)&srvsvc_NetShareCtr0_Type);
19871 PyModule_AddObject(m, "NetShareCtr0", (PyObject *)(void *)&srvsvc_NetShareCtr0_Type);
19872 Py_INCREF((PyObject *)(void *)&srvsvc_NetShareInfo1_Type);
19873 PyModule_AddObject(m, "NetShareInfo1", (PyObject *)(void *)&srvsvc_NetShareInfo1_Type);
19874 Py_INCREF((PyObject *)(void *)&srvsvc_NetShareCtr1_Type);
19875 PyModule_AddObject(m, "NetShareCtr1", (PyObject *)(void *)&srvsvc_NetShareCtr1_Type);
19876 Py_INCREF((PyObject *)(void *)&srvsvc_NetShareInfo2_Type);
19877 PyModule_AddObject(m, "NetShareInfo2", (PyObject *)(void *)&srvsvc_NetShareInfo2_Type);
19878 Py_INCREF((PyObject *)(void *)&srvsvc_NetShareCtr2_Type);
19879 PyModule_AddObject(m, "NetShareCtr2", (PyObject *)(void *)&srvsvc_NetShareCtr2_Type);
19880 Py_INCREF((PyObject *)(void *)&srvsvc_NetShareInfo501_Type);
19881 PyModule_AddObject(m, "NetShareInfo501", (PyObject *)(void *)&srvsvc_NetShareInfo501_Type);
19882 Py_INCREF((PyObject *)(void *)&srvsvc_NetShareCtr501_Type);
19883 PyModule_AddObject(m, "NetShareCtr501", (PyObject *)(void *)&srvsvc_NetShareCtr501_Type);
19884 Py_INCREF((PyObject *)(void *)&srvsvc_NetShareInfo502_Type);
19885 PyModule_AddObject(m, "NetShareInfo502", (PyObject *)(void *)&srvsvc_NetShareInfo502_Type);
19886 Py_INCREF((PyObject *)(void *)&srvsvc_NetShareCtr502_Type);
19887 PyModule_AddObject(m, "NetShareCtr502", (PyObject *)(void *)&srvsvc_NetShareCtr502_Type);
19888 Py_INCREF((PyObject *)(void *)&srvsvc_NetShareInfo1004_Type);
19889 PyModule_AddObject(m, "NetShareInfo1004", (PyObject *)(void *)&srvsvc_NetShareInfo1004_Type);
19890 Py_INCREF((PyObject *)(void *)&srvsvc_NetShareCtr1004_Type);
19891 PyModule_AddObject(m, "NetShareCtr1004", (PyObject *)(void *)&srvsvc_NetShareCtr1004_Type);
19892 Py_INCREF((PyObject *)(void *)&srvsvc_NetShareInfo1005_Type);
19893 PyModule_AddObject(m, "NetShareInfo1005", (PyObject *)(void *)&srvsvc_NetShareInfo1005_Type);
19894 Py_INCREF((PyObject *)(void *)&srvsvc_NetShareCtr1005_Type);
19895 PyModule_AddObject(m, "NetShareCtr1005", (PyObject *)(void *)&srvsvc_NetShareCtr1005_Type);
19896 Py_INCREF((PyObject *)(void *)&srvsvc_NetShareInfo1006_Type);
19897 PyModule_AddObject(m, "NetShareInfo1006", (PyObject *)(void *)&srvsvc_NetShareInfo1006_Type);
19898 Py_INCREF((PyObject *)(void *)&srvsvc_NetShareCtr1006_Type);
19899 PyModule_AddObject(m, "NetShareCtr1006", (PyObject *)(void *)&srvsvc_NetShareCtr1006_Type);
19900 Py_INCREF((PyObject *)(void *)&srvsvc_NetShareInfo1007_Type);
19901 PyModule_AddObject(m, "NetShareInfo1007", (PyObject *)(void *)&srvsvc_NetShareInfo1007_Type);
19902 Py_INCREF((PyObject *)(void *)&srvsvc_NetShareCtr1007_Type);
19903 PyModule_AddObject(m, "NetShareCtr1007", (PyObject *)(void *)&srvsvc_NetShareCtr1007_Type);
19904 Py_INCREF((PyObject *)(void *)&srvsvc_NetShareCtr1501_Type);
19905 PyModule_AddObject(m, "NetShareCtr1501", (PyObject *)(void *)&srvsvc_NetShareCtr1501_Type);
19906 Py_INCREF((PyObject *)(void *)&srvsvc_NetShareInfoCtr_Type);
19907 PyModule_AddObject(m, "NetShareInfoCtr", (PyObject *)(void *)&srvsvc_NetShareInfoCtr_Type);
19908 Py_INCREF((PyObject *)(void *)&srvsvc_NetSrvInfo100_Type);
19909 PyModule_AddObject(m, "NetSrvInfo100", (PyObject *)(void *)&srvsvc_NetSrvInfo100_Type);
19910 Py_INCREF((PyObject *)(void *)&srvsvc_NetSrvInfo101_Type);
19911 PyModule_AddObject(m, "NetSrvInfo101", (PyObject *)(void *)&srvsvc_NetSrvInfo101_Type);
19912 Py_INCREF((PyObject *)(void *)&srvsvc_NetSrvInfo102_Type);
19913 PyModule_AddObject(m, "NetSrvInfo102", (PyObject *)(void *)&srvsvc_NetSrvInfo102_Type);
19914 Py_INCREF((PyObject *)(void *)&srvsvc_NetSrvInfo402_Type);
19915 PyModule_AddObject(m, "NetSrvInfo402", (PyObject *)(void *)&srvsvc_NetSrvInfo402_Type);
19916 Py_INCREF((PyObject *)(void *)&srvsvc_NetSrvInfo403_Type);
19917 PyModule_AddObject(m, "NetSrvInfo403", (PyObject *)(void *)&srvsvc_NetSrvInfo403_Type);
19918 Py_INCREF((PyObject *)(void *)&srvsvc_NetSrvInfo502_Type);
19919 PyModule_AddObject(m, "NetSrvInfo502", (PyObject *)(void *)&srvsvc_NetSrvInfo502_Type);
19920 Py_INCREF((PyObject *)(void *)&srvsvc_NetSrvInfo503_Type);
19921 PyModule_AddObject(m, "NetSrvInfo503", (PyObject *)(void *)&srvsvc_NetSrvInfo503_Type);
19922 Py_INCREF((PyObject *)(void *)&srvsvc_NetSrvInfo599_Type);
19923 PyModule_AddObject(m, "NetSrvInfo599", (PyObject *)(void *)&srvsvc_NetSrvInfo599_Type);
19924 Py_INCREF((PyObject *)(void *)&srvsvc_NetSrvInfo1005_Type);
19925 PyModule_AddObject(m, "NetSrvInfo1005", (PyObject *)(void *)&srvsvc_NetSrvInfo1005_Type);
19926 Py_INCREF((PyObject *)(void *)&srvsvc_NetSrvInfo1010_Type);
19927 PyModule_AddObject(m, "NetSrvInfo1010", (PyObject *)(void *)&srvsvc_NetSrvInfo1010_Type);
19928 Py_INCREF((PyObject *)(void *)&srvsvc_NetSrvInfo1016_Type);
19929 PyModule_AddObject(m, "NetSrvInfo1016", (PyObject *)(void *)&srvsvc_NetSrvInfo1016_Type);
19930 Py_INCREF((PyObject *)(void *)&srvsvc_NetSrvInfo1017_Type);
19931 PyModule_AddObject(m, "NetSrvInfo1017", (PyObject *)(void *)&srvsvc_NetSrvInfo1017_Type);
19932 Py_INCREF((PyObject *)(void *)&srvsvc_NetSrvInfo1018_Type);
19933 PyModule_AddObject(m, "NetSrvInfo1018", (PyObject *)(void *)&srvsvc_NetSrvInfo1018_Type);
19934 Py_INCREF((PyObject *)(void *)&srvsvc_NetSrvInfo1107_Type);
19935 PyModule_AddObject(m, "NetSrvInfo1107", (PyObject *)(void *)&srvsvc_NetSrvInfo1107_Type);
19936 Py_INCREF((PyObject *)(void *)&srvsvc_NetSrvInfo1501_Type);
19937 PyModule_AddObject(m, "NetSrvInfo1501", (PyObject *)(void *)&srvsvc_NetSrvInfo1501_Type);
19938 Py_INCREF((PyObject *)(void *)&srvsvc_NetSrvInfo1502_Type);
19939 PyModule_AddObject(m, "NetSrvInfo1502", (PyObject *)(void *)&srvsvc_NetSrvInfo1502_Type);
19940 Py_INCREF((PyObject *)(void *)&srvsvc_NetSrvInfo1503_Type);
19941 PyModule_AddObject(m, "NetSrvInfo1503", (PyObject *)(void *)&srvsvc_NetSrvInfo1503_Type);
19942 Py_INCREF((PyObject *)(void *)&srvsvc_NetSrvInfo1506_Type);
19943 PyModule_AddObject(m, "NetSrvInfo1506", (PyObject *)(void *)&srvsvc_NetSrvInfo1506_Type);
19944 Py_INCREF((PyObject *)(void *)&srvsvc_NetSrvInfo1509_Type);
19945 PyModule_AddObject(m, "NetSrvInfo1509", (PyObject *)(void *)&srvsvc_NetSrvInfo1509_Type);
19946 Py_INCREF((PyObject *)(void *)&srvsvc_NetSrvInfo1510_Type);
19947 PyModule_AddObject(m, "NetSrvInfo1510", (PyObject *)(void *)&srvsvc_NetSrvInfo1510_Type);
19948 Py_INCREF((PyObject *)(void *)&srvsvc_NetSrvInfo1511_Type);
19949 PyModule_AddObject(m, "NetSrvInfo1511", (PyObject *)(void *)&srvsvc_NetSrvInfo1511_Type);
19950 Py_INCREF((PyObject *)(void *)&srvsvc_NetSrvInfo1512_Type);
19951 PyModule_AddObject(m, "NetSrvInfo1512", (PyObject *)(void *)&srvsvc_NetSrvInfo1512_Type);
19952 Py_INCREF((PyObject *)(void *)&srvsvc_NetSrvInfo1513_Type);
19953 PyModule_AddObject(m, "NetSrvInfo1513", (PyObject *)(void *)&srvsvc_NetSrvInfo1513_Type);
19954 Py_INCREF((PyObject *)(void *)&srvsvc_NetSrvInfo1514_Type);
19955 PyModule_AddObject(m, "NetSrvInfo1514", (PyObject *)(void *)&srvsvc_NetSrvInfo1514_Type);
19956 Py_INCREF((PyObject *)(void *)&srvsvc_NetSrvInfo1515_Type);
19957 PyModule_AddObject(m, "NetSrvInfo1515", (PyObject *)(void *)&srvsvc_NetSrvInfo1515_Type);
19958 Py_INCREF((PyObject *)(void *)&srvsvc_NetSrvInfo1516_Type);
19959 PyModule_AddObject(m, "NetSrvInfo1516", (PyObject *)(void *)&srvsvc_NetSrvInfo1516_Type);
19960 Py_INCREF((PyObject *)(void *)&srvsvc_NetSrvInfo1518_Type);
19961 PyModule_AddObject(m, "NetSrvInfo1518", (PyObject *)(void *)&srvsvc_NetSrvInfo1518_Type);
19962 Py_INCREF((PyObject *)(void *)&srvsvc_NetSrvInfo1520_Type);
19963 PyModule_AddObject(m, "NetSrvInfo1520", (PyObject *)(void *)&srvsvc_NetSrvInfo1520_Type);
19964 Py_INCREF((PyObject *)(void *)&srvsvc_NetSrvInfo1521_Type);
19965 PyModule_AddObject(m, "NetSrvInfo1521", (PyObject *)(void *)&srvsvc_NetSrvInfo1521_Type);
19966 Py_INCREF((PyObject *)(void *)&srvsvc_NetSrvInfo1522_Type);
19967 PyModule_AddObject(m, "NetSrvInfo1522", (PyObject *)(void *)&srvsvc_NetSrvInfo1522_Type);
19968 Py_INCREF((PyObject *)(void *)&srvsvc_NetSrvInfo1523_Type);
19969 PyModule_AddObject(m, "NetSrvInfo1523", (PyObject *)(void *)&srvsvc_NetSrvInfo1523_Type);
19970 Py_INCREF((PyObject *)(void *)&srvsvc_NetSrvInfo1524_Type);
19971 PyModule_AddObject(m, "NetSrvInfo1524", (PyObject *)(void *)&srvsvc_NetSrvInfo1524_Type);
19972 Py_INCREF((PyObject *)(void *)&srvsvc_NetSrvInfo1525_Type);
19973 PyModule_AddObject(m, "NetSrvInfo1525", (PyObject *)(void *)&srvsvc_NetSrvInfo1525_Type);
19974 Py_INCREF((PyObject *)(void *)&srvsvc_NetSrvInfo1528_Type);
19975 PyModule_AddObject(m, "NetSrvInfo1528", (PyObject *)(void *)&srvsvc_NetSrvInfo1528_Type);
19976 Py_INCREF((PyObject *)(void *)&srvsvc_NetSrvInfo1529_Type);
19977 PyModule_AddObject(m, "NetSrvInfo1529", (PyObject *)(void *)&srvsvc_NetSrvInfo1529_Type);
19978 Py_INCREF((PyObject *)(void *)&srvsvc_NetSrvInfo1530_Type);
19979 PyModule_AddObject(m, "NetSrvInfo1530", (PyObject *)(void *)&srvsvc_NetSrvInfo1530_Type);
19980 Py_INCREF((PyObject *)(void *)&srvsvc_NetSrvInfo1533_Type);
19981 PyModule_AddObject(m, "NetSrvInfo1533", (PyObject *)(void *)&srvsvc_NetSrvInfo1533_Type);
19982 Py_INCREF((PyObject *)(void *)&srvsvc_NetSrvInfo1534_Type);
19983 PyModule_AddObject(m, "NetSrvInfo1534", (PyObject *)(void *)&srvsvc_NetSrvInfo1534_Type);
19984 Py_INCREF((PyObject *)(void *)&srvsvc_NetSrvInfo1535_Type);
19985 PyModule_AddObject(m, "NetSrvInfo1535", (PyObject *)(void *)&srvsvc_NetSrvInfo1535_Type);
19986 Py_INCREF((PyObject *)(void *)&srvsvc_NetSrvInfo1536_Type);
19987 PyModule_AddObject(m, "NetSrvInfo1536", (PyObject *)(void *)&srvsvc_NetSrvInfo1536_Type);
19988 Py_INCREF((PyObject *)(void *)&srvsvc_NetSrvInfo1537_Type);
19989 PyModule_AddObject(m, "NetSrvInfo1537", (PyObject *)(void *)&srvsvc_NetSrvInfo1537_Type);
19990 Py_INCREF((PyObject *)(void *)&srvsvc_NetSrvInfo1538_Type);
19991 PyModule_AddObject(m, "NetSrvInfo1538", (PyObject *)(void *)&srvsvc_NetSrvInfo1538_Type);
19992 Py_INCREF((PyObject *)(void *)&srvsvc_NetSrvInfo1539_Type);
19993 PyModule_AddObject(m, "NetSrvInfo1539", (PyObject *)(void *)&srvsvc_NetSrvInfo1539_Type);
19994 Py_INCREF((PyObject *)(void *)&srvsvc_NetSrvInfo1540_Type);
19995 PyModule_AddObject(m, "NetSrvInfo1540", (PyObject *)(void *)&srvsvc_NetSrvInfo1540_Type);
19996 Py_INCREF((PyObject *)(void *)&srvsvc_NetSrvInfo1541_Type);
19997 PyModule_AddObject(m, "NetSrvInfo1541", (PyObject *)(void *)&srvsvc_NetSrvInfo1541_Type);
19998 Py_INCREF((PyObject *)(void *)&srvsvc_NetSrvInfo1542_Type);
19999 PyModule_AddObject(m, "NetSrvInfo1542", (PyObject *)(void *)&srvsvc_NetSrvInfo1542_Type);
20000 Py_INCREF((PyObject *)(void *)&srvsvc_NetSrvInfo1543_Type);
20001 PyModule_AddObject(m, "NetSrvInfo1543", (PyObject *)(void *)&srvsvc_NetSrvInfo1543_Type);
20002 Py_INCREF((PyObject *)(void *)&srvsvc_NetSrvInfo1544_Type);
20003 PyModule_AddObject(m, "NetSrvInfo1544", (PyObject *)(void *)&srvsvc_NetSrvInfo1544_Type);
20004 Py_INCREF((PyObject *)(void *)&srvsvc_NetSrvInfo1545_Type);
20005 PyModule_AddObject(m, "NetSrvInfo1545", (PyObject *)(void *)&srvsvc_NetSrvInfo1545_Type);
20006 Py_INCREF((PyObject *)(void *)&srvsvc_NetSrvInfo1546_Type);
20007 PyModule_AddObject(m, "NetSrvInfo1546", (PyObject *)(void *)&srvsvc_NetSrvInfo1546_Type);
20008 Py_INCREF((PyObject *)(void *)&srvsvc_NetSrvInfo1547_Type);
20009 PyModule_AddObject(m, "NetSrvInfo1547", (PyObject *)(void *)&srvsvc_NetSrvInfo1547_Type);
20010 Py_INCREF((PyObject *)(void *)&srvsvc_NetSrvInfo1548_Type);
20011 PyModule_AddObject(m, "NetSrvInfo1548", (PyObject *)(void *)&srvsvc_NetSrvInfo1548_Type);
20012 Py_INCREF((PyObject *)(void *)&srvsvc_NetSrvInfo1549_Type);
20013 PyModule_AddObject(m, "NetSrvInfo1549", (PyObject *)(void *)&srvsvc_NetSrvInfo1549_Type);
20014 Py_INCREF((PyObject *)(void *)&srvsvc_NetSrvInfo1550_Type);
20015 PyModule_AddObject(m, "NetSrvInfo1550", (PyObject *)(void *)&srvsvc_NetSrvInfo1550_Type);
20016 Py_INCREF((PyObject *)(void *)&srvsvc_NetSrvInfo1552_Type);
20017 PyModule_AddObject(m, "NetSrvInfo1552", (PyObject *)(void *)&srvsvc_NetSrvInfo1552_Type);
20018 Py_INCREF((PyObject *)(void *)&srvsvc_NetSrvInfo1553_Type);
20019 PyModule_AddObject(m, "NetSrvInfo1553", (PyObject *)(void *)&srvsvc_NetSrvInfo1553_Type);
20020 Py_INCREF((PyObject *)(void *)&srvsvc_NetSrvInfo1554_Type);
20021 PyModule_AddObject(m, "NetSrvInfo1554", (PyObject *)(void *)&srvsvc_NetSrvInfo1554_Type);
20022 Py_INCREF((PyObject *)(void *)&srvsvc_NetSrvInfo1555_Type);
20023 PyModule_AddObject(m, "NetSrvInfo1555", (PyObject *)(void *)&srvsvc_NetSrvInfo1555_Type);
20024 Py_INCREF((PyObject *)(void *)&srvsvc_NetSrvInfo1556_Type);
20025 PyModule_AddObject(m, "NetSrvInfo1556", (PyObject *)(void *)&srvsvc_NetSrvInfo1556_Type);
20026 Py_INCREF((PyObject *)(void *)&srvsvc_NetDiskInfo0_Type);
20027 PyModule_AddObject(m, "NetDiskInfo0", (PyObject *)(void *)&srvsvc_NetDiskInfo0_Type);
20028 Py_INCREF((PyObject *)(void *)&srvsvc_NetDiskInfo_Type);
20029 PyModule_AddObject(m, "NetDiskInfo", (PyObject *)(void *)&srvsvc_NetDiskInfo_Type);
20030 Py_INCREF((PyObject *)(void *)&srvsvc_Statistics_Type);
20031 PyModule_AddObject(m, "Statistics", (PyObject *)(void *)&srvsvc_Statistics_Type);
20032 Py_INCREF((PyObject *)(void *)&srvsvc_NetTransportInfo0_Type);
20033 PyModule_AddObject(m, "NetTransportInfo0", (PyObject *)(void *)&srvsvc_NetTransportInfo0_Type);
20034 Py_INCREF((PyObject *)(void *)&srvsvc_NetTransportCtr0_Type);
20035 PyModule_AddObject(m, "NetTransportCtr0", (PyObject *)(void *)&srvsvc_NetTransportCtr0_Type);
20036 Py_INCREF((PyObject *)(void *)&srvsvc_NetTransportInfo1_Type);
20037 PyModule_AddObject(m, "NetTransportInfo1", (PyObject *)(void *)&srvsvc_NetTransportInfo1_Type);
20038 Py_INCREF((PyObject *)(void *)&srvsvc_NetTransportCtr1_Type);
20039 PyModule_AddObject(m, "NetTransportCtr1", (PyObject *)(void *)&srvsvc_NetTransportCtr1_Type);
20040 Py_INCREF((PyObject *)(void *)&srvsvc_NetTransportInfo2_Type);
20041 PyModule_AddObject(m, "NetTransportInfo2", (PyObject *)(void *)&srvsvc_NetTransportInfo2_Type);
20042 Py_INCREF((PyObject *)(void *)&srvsvc_NetTransportCtr2_Type);
20043 PyModule_AddObject(m, "NetTransportCtr2", (PyObject *)(void *)&srvsvc_NetTransportCtr2_Type);
20044 Py_INCREF((PyObject *)(void *)&srvsvc_NetTransportInfo3_Type);
20045 PyModule_AddObject(m, "NetTransportInfo3", (PyObject *)(void *)&srvsvc_NetTransportInfo3_Type);
20046 Py_INCREF((PyObject *)(void *)&srvsvc_NetTransportCtr3_Type);
20047 PyModule_AddObject(m, "NetTransportCtr3", (PyObject *)(void *)&srvsvc_NetTransportCtr3_Type);
20048 Py_INCREF((PyObject *)(void *)&srvsvc_NetTransportInfoCtr_Type);
20049 PyModule_AddObject(m, "NetTransportInfoCtr", (PyObject *)(void *)&srvsvc_NetTransportInfoCtr_Type);
20050 Py_INCREF((PyObject *)(void *)&srvsvc_NetRemoteTODInfo_Type);
20051 PyModule_AddObject(m, "NetRemoteTODInfo", (PyObject *)(void *)&srvsvc_NetRemoteTODInfo_Type);
20052 Py_INCREF((PyObject *)(void *)&srvsvc_InterfaceType);
20053 PyModule_AddObject(m, "srvsvc", (PyObject *)(void *)&srvsvc_InterfaceType);
20054 #ifdef PY_MOD_SRVSVC_PATCH
20055 PY_MOD_SRVSVC_PATCH(m);