/* Python wrapper functions auto-generated by pidl */ #include #include "includes.h" #include "lib/talloc/pytalloc.h" #include "librpc/rpc/pyrpc.h" #include "../librpc/gen_ndr/ndr_rap.h" #include "../librpc/gen_ndr/ndr_rap_c.h" staticforward PyTypeObject rap_group_info_1_Type; staticforward PyTypeObject rap_user_info_1_Type; staticforward PyTypeObject rap_service_info_2_Type; staticforward PyTypeObject rap_share_info_0_Type; staticforward PyTypeObject rap_share_info_1_Type; staticforward PyTypeObject rap_share_info_2_Type; staticforward PyTypeObject rap_server_info_0_Type; staticforward PyTypeObject rap_server_info_1_Type; staticforward PyTypeObject rap_PrintQueue0_Type; staticforward PyTypeObject rap_PrintQueue1_Type; staticforward PyTypeObject rap_PrintQueue2_Type; staticforward PyTypeObject rap_PrintQueue3_Type; staticforward PyTypeObject rap_PrintQueue4_Type; staticforward PyTypeObject rap_PrintQueue5_Type; staticforward PyTypeObject rap_PrintJobInfo0_Type; staticforward PyTypeObject rap_PrintJobInfo1_Type; staticforward PyTypeObject rap_PrintJobInfo2_Type; staticforward PyTypeObject rap_PrintJobInfo3_Type; static PyObject *py_rap_group_info_1_get_group_name(PyObject *obj, void *closure) { struct rap_group_info_1 *object = (struct rap_group_info_1 *)py_talloc_get_ptr(obj); PyObject *py_group_name; py_group_name = PyList_New(21); if (py_group_name == NULL) { return NULL; } { int group_name_cntr_0; for (group_name_cntr_0 = 0; group_name_cntr_0 < 21; group_name_cntr_0++) { PyObject *py_group_name_0; py_group_name_0 = PyInt_FromLong(object->group_name[group_name_cntr_0]); PyList_SetItem(py_group_name, group_name_cntr_0, py_group_name_0); } } return py_group_name; } static int py_rap_group_info_1_set_group_name(PyObject *py_obj, PyObject *value, void *closure) { struct rap_group_info_1 *object = (struct rap_group_info_1 *)py_talloc_get_ptr(py_obj); PY_CHECK_TYPE(&PyList_Type, value, return -1;); { int group_name_cntr_0; for (group_name_cntr_0 = 0; group_name_cntr_0 < PyList_Size(value); group_name_cntr_0++) { PY_CHECK_TYPE(&PyInt_Type, PyList_GetItem(value, group_name_cntr_0), return -1;); object->group_name[group_name_cntr_0] = PyInt_AsLong(PyList_GetItem(value, group_name_cntr_0)); } } return 0; } static PyObject *py_rap_group_info_1_get_reserved1(PyObject *obj, void *closure) { struct rap_group_info_1 *object = (struct rap_group_info_1 *)py_talloc_get_ptr(obj); PyObject *py_reserved1; py_reserved1 = PyInt_FromLong(object->reserved1); return py_reserved1; } static int py_rap_group_info_1_set_reserved1(PyObject *py_obj, PyObject *value, void *closure) { struct rap_group_info_1 *object = (struct rap_group_info_1 *)py_talloc_get_ptr(py_obj); PY_CHECK_TYPE(&PyInt_Type, value, return -1;); object->reserved1 = PyInt_AsLong(value); return 0; } static PyObject *py_rap_group_info_1_get_comment(PyObject *obj, void *closure) { struct rap_group_info_1 *object = (struct rap_group_info_1 *)py_talloc_get_ptr(obj); PyObject *py_comment; if (object->comment == NULL) { py_comment = Py_None; } else { py_comment = PyUnicode_Decode(object->comment, strlen(object->comment), "utf-8", "ignore"); } return py_comment; } static int py_rap_group_info_1_set_comment(PyObject *py_obj, PyObject *value, void *closure) { struct rap_group_info_1 *object = (struct rap_group_info_1 *)py_talloc_get_ptr(py_obj); if (value == Py_None) { object->comment = NULL; } else { object->comment = talloc_ptrtype(py_talloc_get_mem_ctx(py_obj), object->comment); PY_CHECK_TYPE(&PyUnicode_Type, value, return -1;); object->comment = PyString_AsString(PyUnicode_AsEncodedString(value, "utf-8", "ignore")); } return 0; } static PyGetSetDef py_rap_group_info_1_getsetters[] = { { discard_const_p(char, "group_name"), py_rap_group_info_1_get_group_name, py_rap_group_info_1_set_group_name }, { discard_const_p(char, "reserved1"), py_rap_group_info_1_get_reserved1, py_rap_group_info_1_set_reserved1 }, { discard_const_p(char, "comment"), py_rap_group_info_1_get_comment, py_rap_group_info_1_set_comment }, { NULL } }; static PyObject *py_rap_group_info_1_new(PyTypeObject *type, PyObject *args, PyObject *kwargs) { return py_talloc_new(struct rap_group_info_1, type); } static PyTypeObject rap_group_info_1_Type = { PyObject_HEAD_INIT(NULL) 0, .tp_name = "rap.group_info_1", .tp_basicsize = sizeof(py_talloc_Object), .tp_dealloc = py_talloc_dealloc, .tp_getset = py_rap_group_info_1_getsetters, .tp_repr = py_talloc_default_repr, .tp_methods = NULL, .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE, .tp_new = py_rap_group_info_1_new, }; static PyObject *py_rap_user_info_1_get_user_name(PyObject *obj, void *closure) { struct rap_user_info_1 *object = (struct rap_user_info_1 *)py_talloc_get_ptr(obj); PyObject *py_user_name; py_user_name = PyList_New(21); if (py_user_name == NULL) { return NULL; } { int user_name_cntr_0; for (user_name_cntr_0 = 0; user_name_cntr_0 < 21; user_name_cntr_0++) { PyObject *py_user_name_0; py_user_name_0 = PyInt_FromLong(object->user_name[user_name_cntr_0]); PyList_SetItem(py_user_name, user_name_cntr_0, py_user_name_0); } } return py_user_name; } static int py_rap_user_info_1_set_user_name(PyObject *py_obj, PyObject *value, void *closure) { struct rap_user_info_1 *object = (struct rap_user_info_1 *)py_talloc_get_ptr(py_obj); PY_CHECK_TYPE(&PyList_Type, value, return -1;); { int user_name_cntr_0; for (user_name_cntr_0 = 0; user_name_cntr_0 < PyList_Size(value); user_name_cntr_0++) { PY_CHECK_TYPE(&PyInt_Type, PyList_GetItem(value, user_name_cntr_0), return -1;); object->user_name[user_name_cntr_0] = PyInt_AsLong(PyList_GetItem(value, user_name_cntr_0)); } } return 0; } static PyObject *py_rap_user_info_1_get_reserved1(PyObject *obj, void *closure) { struct rap_user_info_1 *object = (struct rap_user_info_1 *)py_talloc_get_ptr(obj); PyObject *py_reserved1; py_reserved1 = PyInt_FromLong(object->reserved1); return py_reserved1; } static int py_rap_user_info_1_set_reserved1(PyObject *py_obj, PyObject *value, void *closure) { struct rap_user_info_1 *object = (struct rap_user_info_1 *)py_talloc_get_ptr(py_obj); PY_CHECK_TYPE(&PyInt_Type, value, return -1;); object->reserved1 = PyInt_AsLong(value); return 0; } static PyObject *py_rap_user_info_1_get_passwrd(PyObject *obj, void *closure) { struct rap_user_info_1 *object = (struct rap_user_info_1 *)py_talloc_get_ptr(obj); PyObject *py_passwrd; py_passwrd = PyList_New(16); if (py_passwrd == NULL) { return NULL; } { int passwrd_cntr_0; for (passwrd_cntr_0 = 0; passwrd_cntr_0 < 16; passwrd_cntr_0++) { PyObject *py_passwrd_0; py_passwrd_0 = PyInt_FromLong(object->passwrd[passwrd_cntr_0]); PyList_SetItem(py_passwrd, passwrd_cntr_0, py_passwrd_0); } } return py_passwrd; } static int py_rap_user_info_1_set_passwrd(PyObject *py_obj, PyObject *value, void *closure) { struct rap_user_info_1 *object = (struct rap_user_info_1 *)py_talloc_get_ptr(py_obj); PY_CHECK_TYPE(&PyList_Type, value, return -1;); { int passwrd_cntr_0; for (passwrd_cntr_0 = 0; passwrd_cntr_0 < PyList_Size(value); passwrd_cntr_0++) { PY_CHECK_TYPE(&PyInt_Type, PyList_GetItem(value, passwrd_cntr_0), return -1;); object->passwrd[passwrd_cntr_0] = PyInt_AsLong(PyList_GetItem(value, passwrd_cntr_0)); } } return 0; } static PyObject *py_rap_user_info_1_get_pwage(PyObject *obj, void *closure) { struct rap_user_info_1 *object = (struct rap_user_info_1 *)py_talloc_get_ptr(obj); PyObject *py_pwage; py_pwage = PyInt_FromLong(object->pwage); return py_pwage; } static int py_rap_user_info_1_set_pwage(PyObject *py_obj, PyObject *value, void *closure) { struct rap_user_info_1 *object = (struct rap_user_info_1 *)py_talloc_get_ptr(py_obj); PY_CHECK_TYPE(&PyInt_Type, value, return -1;); object->pwage = PyInt_AsLong(value); return 0; } static PyObject *py_rap_user_info_1_get_priv(PyObject *obj, void *closure) { struct rap_user_info_1 *object = (struct rap_user_info_1 *)py_talloc_get_ptr(obj); PyObject *py_priv; py_priv = PyInt_FromLong(object->priv); return py_priv; } static int py_rap_user_info_1_set_priv(PyObject *py_obj, PyObject *value, void *closure) { struct rap_user_info_1 *object = (struct rap_user_info_1 *)py_talloc_get_ptr(py_obj); PY_CHECK_TYPE(&PyInt_Type, value, return -1;); object->priv = PyInt_AsLong(value); return 0; } static PyObject *py_rap_user_info_1_get_home_dir(PyObject *obj, void *closure) { struct rap_user_info_1 *object = (struct rap_user_info_1 *)py_talloc_get_ptr(obj); PyObject *py_home_dir; if (object->home_dir == NULL) { py_home_dir = Py_None; } else { py_home_dir = PyUnicode_Decode(object->home_dir, strlen(object->home_dir), "utf-8", "ignore"); } return py_home_dir; } static int py_rap_user_info_1_set_home_dir(PyObject *py_obj, PyObject *value, void *closure) { struct rap_user_info_1 *object = (struct rap_user_info_1 *)py_talloc_get_ptr(py_obj); if (value == Py_None) { object->home_dir = NULL; } else { object->home_dir = talloc_ptrtype(py_talloc_get_mem_ctx(py_obj), object->home_dir); PY_CHECK_TYPE(&PyUnicode_Type, value, return -1;); object->home_dir = PyString_AsString(PyUnicode_AsEncodedString(value, "utf-8", "ignore")); } return 0; } static PyObject *py_rap_user_info_1_get_comment(PyObject *obj, void *closure) { struct rap_user_info_1 *object = (struct rap_user_info_1 *)py_talloc_get_ptr(obj); PyObject *py_comment; if (object->comment == NULL) { py_comment = Py_None; } else { py_comment = PyUnicode_Decode(object->comment, strlen(object->comment), "utf-8", "ignore"); } return py_comment; } static int py_rap_user_info_1_set_comment(PyObject *py_obj, PyObject *value, void *closure) { struct rap_user_info_1 *object = (struct rap_user_info_1 *)py_talloc_get_ptr(py_obj); if (value == Py_None) { object->comment = NULL; } else { object->comment = talloc_ptrtype(py_talloc_get_mem_ctx(py_obj), object->comment); PY_CHECK_TYPE(&PyUnicode_Type, value, return -1;); object->comment = PyString_AsString(PyUnicode_AsEncodedString(value, "utf-8", "ignore")); } return 0; } static PyObject *py_rap_user_info_1_get_userflags(PyObject *obj, void *closure) { struct rap_user_info_1 *object = (struct rap_user_info_1 *)py_talloc_get_ptr(obj); PyObject *py_userflags; py_userflags = PyInt_FromLong(object->userflags); return py_userflags; } static int py_rap_user_info_1_set_userflags(PyObject *py_obj, PyObject *value, void *closure) { struct rap_user_info_1 *object = (struct rap_user_info_1 *)py_talloc_get_ptr(py_obj); PY_CHECK_TYPE(&PyInt_Type, value, return -1;); object->userflags = PyInt_AsLong(value); return 0; } static PyObject *py_rap_user_info_1_get_logon_script(PyObject *obj, void *closure) { struct rap_user_info_1 *object = (struct rap_user_info_1 *)py_talloc_get_ptr(obj); PyObject *py_logon_script; if (object->logon_script == NULL) { py_logon_script = Py_None; } else { py_logon_script = PyUnicode_Decode(object->logon_script, strlen(object->logon_script), "utf-8", "ignore"); } return py_logon_script; } static int py_rap_user_info_1_set_logon_script(PyObject *py_obj, PyObject *value, void *closure) { struct rap_user_info_1 *object = (struct rap_user_info_1 *)py_talloc_get_ptr(py_obj); if (value == Py_None) { object->logon_script = NULL; } else { object->logon_script = talloc_ptrtype(py_talloc_get_mem_ctx(py_obj), object->logon_script); PY_CHECK_TYPE(&PyUnicode_Type, value, return -1;); object->logon_script = PyString_AsString(PyUnicode_AsEncodedString(value, "utf-8", "ignore")); } return 0; } static PyGetSetDef py_rap_user_info_1_getsetters[] = { { discard_const_p(char, "user_name"), py_rap_user_info_1_get_user_name, py_rap_user_info_1_set_user_name }, { discard_const_p(char, "reserved1"), py_rap_user_info_1_get_reserved1, py_rap_user_info_1_set_reserved1 }, { discard_const_p(char, "passwrd"), py_rap_user_info_1_get_passwrd, py_rap_user_info_1_set_passwrd }, { discard_const_p(char, "pwage"), py_rap_user_info_1_get_pwage, py_rap_user_info_1_set_pwage }, { discard_const_p(char, "priv"), py_rap_user_info_1_get_priv, py_rap_user_info_1_set_priv }, { discard_const_p(char, "home_dir"), py_rap_user_info_1_get_home_dir, py_rap_user_info_1_set_home_dir }, { discard_const_p(char, "comment"), py_rap_user_info_1_get_comment, py_rap_user_info_1_set_comment }, { discard_const_p(char, "userflags"), py_rap_user_info_1_get_userflags, py_rap_user_info_1_set_userflags }, { discard_const_p(char, "logon_script"), py_rap_user_info_1_get_logon_script, py_rap_user_info_1_set_logon_script }, { NULL } }; static PyObject *py_rap_user_info_1_new(PyTypeObject *type, PyObject *args, PyObject *kwargs) { return py_talloc_new(struct rap_user_info_1, type); } static PyTypeObject rap_user_info_1_Type = { PyObject_HEAD_INIT(NULL) 0, .tp_name = "rap.user_info_1", .tp_basicsize = sizeof(py_talloc_Object), .tp_dealloc = py_talloc_dealloc, .tp_getset = py_rap_user_info_1_getsetters, .tp_repr = py_talloc_default_repr, .tp_methods = NULL, .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE, .tp_new = py_rap_user_info_1_new, }; static PyObject *py_rap_service_info_2_get_service_name(PyObject *obj, void *closure) { struct rap_service_info_2 *object = (struct rap_service_info_2 *)py_talloc_get_ptr(obj); PyObject *py_service_name; py_service_name = PyList_New(16); if (py_service_name == NULL) { return NULL; } { int service_name_cntr_0; for (service_name_cntr_0 = 0; service_name_cntr_0 < 16; service_name_cntr_0++) { PyObject *py_service_name_0; py_service_name_0 = PyInt_FromLong(object->service_name[service_name_cntr_0]); PyList_SetItem(py_service_name, service_name_cntr_0, py_service_name_0); } } return py_service_name; } static int py_rap_service_info_2_set_service_name(PyObject *py_obj, PyObject *value, void *closure) { struct rap_service_info_2 *object = (struct rap_service_info_2 *)py_talloc_get_ptr(py_obj); PY_CHECK_TYPE(&PyList_Type, value, return -1;); { int service_name_cntr_0; for (service_name_cntr_0 = 0; service_name_cntr_0 < PyList_Size(value); service_name_cntr_0++) { PY_CHECK_TYPE(&PyInt_Type, PyList_GetItem(value, service_name_cntr_0), return -1;); object->service_name[service_name_cntr_0] = PyInt_AsLong(PyList_GetItem(value, service_name_cntr_0)); } } return 0; } static PyObject *py_rap_service_info_2_get_status(PyObject *obj, void *closure) { struct rap_service_info_2 *object = (struct rap_service_info_2 *)py_talloc_get_ptr(obj); PyObject *py_status; py_status = PyInt_FromLong(object->status); return py_status; } static int py_rap_service_info_2_set_status(PyObject *py_obj, PyObject *value, void *closure) { struct rap_service_info_2 *object = (struct rap_service_info_2 *)py_talloc_get_ptr(py_obj); PY_CHECK_TYPE(&PyInt_Type, value, return -1;); object->status = PyInt_AsLong(value); return 0; } static PyObject *py_rap_service_info_2_get_installcode(PyObject *obj, void *closure) { struct rap_service_info_2 *object = (struct rap_service_info_2 *)py_talloc_get_ptr(obj); PyObject *py_installcode; py_installcode = PyInt_FromLong(object->installcode); return py_installcode; } static int py_rap_service_info_2_set_installcode(PyObject *py_obj, PyObject *value, void *closure) { struct rap_service_info_2 *object = (struct rap_service_info_2 *)py_talloc_get_ptr(py_obj); PY_CHECK_TYPE(&PyInt_Type, value, return -1;); object->installcode = PyInt_AsLong(value); return 0; } static PyObject *py_rap_service_info_2_get_process_num(PyObject *obj, void *closure) { struct rap_service_info_2 *object = (struct rap_service_info_2 *)py_talloc_get_ptr(obj); PyObject *py_process_num; py_process_num = PyInt_FromLong(object->process_num); return py_process_num; } static int py_rap_service_info_2_set_process_num(PyObject *py_obj, PyObject *value, void *closure) { struct rap_service_info_2 *object = (struct rap_service_info_2 *)py_talloc_get_ptr(py_obj); PY_CHECK_TYPE(&PyInt_Type, value, return -1;); object->process_num = PyInt_AsLong(value); return 0; } static PyObject *py_rap_service_info_2_get_comment(PyObject *obj, void *closure) { struct rap_service_info_2 *object = (struct rap_service_info_2 *)py_talloc_get_ptr(obj); PyObject *py_comment; if (object->comment == NULL) { py_comment = Py_None; } else { py_comment = PyUnicode_Decode(object->comment, strlen(object->comment), "utf-8", "ignore"); } return py_comment; } static int py_rap_service_info_2_set_comment(PyObject *py_obj, PyObject *value, void *closure) { struct rap_service_info_2 *object = (struct rap_service_info_2 *)py_talloc_get_ptr(py_obj); if (value == Py_None) { object->comment = NULL; } else { object->comment = talloc_ptrtype(py_talloc_get_mem_ctx(py_obj), object->comment); PY_CHECK_TYPE(&PyUnicode_Type, value, return -1;); object->comment = PyString_AsString(PyUnicode_AsEncodedString(value, "utf-8", "ignore")); } return 0; } static PyGetSetDef py_rap_service_info_2_getsetters[] = { { discard_const_p(char, "service_name"), py_rap_service_info_2_get_service_name, py_rap_service_info_2_set_service_name }, { discard_const_p(char, "status"), py_rap_service_info_2_get_status, py_rap_service_info_2_set_status }, { discard_const_p(char, "installcode"), py_rap_service_info_2_get_installcode, py_rap_service_info_2_set_installcode }, { discard_const_p(char, "process_num"), py_rap_service_info_2_get_process_num, py_rap_service_info_2_set_process_num }, { discard_const_p(char, "comment"), py_rap_service_info_2_get_comment, py_rap_service_info_2_set_comment }, { NULL } }; static PyObject *py_rap_service_info_2_new(PyTypeObject *type, PyObject *args, PyObject *kwargs) { return py_talloc_new(struct rap_service_info_2, type); } static PyTypeObject rap_service_info_2_Type = { PyObject_HEAD_INIT(NULL) 0, .tp_name = "rap.service_info_2", .tp_basicsize = sizeof(py_talloc_Object), .tp_dealloc = py_talloc_dealloc, .tp_getset = py_rap_service_info_2_getsetters, .tp_repr = py_talloc_default_repr, .tp_methods = NULL, .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE, .tp_new = py_rap_service_info_2_new, }; static PyObject *py_rap_share_info_0_get_share_name(PyObject *obj, void *closure) { struct rap_share_info_0 *object = (struct rap_share_info_0 *)py_talloc_get_ptr(obj); PyObject *py_share_name; py_share_name = PyList_New(13); if (py_share_name == NULL) { return NULL; } { int share_name_cntr_0; for (share_name_cntr_0 = 0; share_name_cntr_0 < 13; share_name_cntr_0++) { PyObject *py_share_name_0; py_share_name_0 = PyInt_FromLong(object->share_name[share_name_cntr_0]); PyList_SetItem(py_share_name, share_name_cntr_0, py_share_name_0); } } return py_share_name; } static int py_rap_share_info_0_set_share_name(PyObject *py_obj, PyObject *value, void *closure) { struct rap_share_info_0 *object = (struct rap_share_info_0 *)py_talloc_get_ptr(py_obj); PY_CHECK_TYPE(&PyList_Type, value, return -1;); { int share_name_cntr_0; for (share_name_cntr_0 = 0; share_name_cntr_0 < PyList_Size(value); share_name_cntr_0++) { PY_CHECK_TYPE(&PyInt_Type, PyList_GetItem(value, share_name_cntr_0), return -1;); object->share_name[share_name_cntr_0] = PyInt_AsLong(PyList_GetItem(value, share_name_cntr_0)); } } return 0; } static PyGetSetDef py_rap_share_info_0_getsetters[] = { { discard_const_p(char, "share_name"), py_rap_share_info_0_get_share_name, py_rap_share_info_0_set_share_name }, { NULL } }; static PyObject *py_rap_share_info_0_new(PyTypeObject *type, PyObject *args, PyObject *kwargs) { return py_talloc_new(struct rap_share_info_0, type); } static PyTypeObject rap_share_info_0_Type = { PyObject_HEAD_INIT(NULL) 0, .tp_name = "rap.share_info_0", .tp_basicsize = sizeof(py_talloc_Object), .tp_dealloc = py_talloc_dealloc, .tp_getset = py_rap_share_info_0_getsetters, .tp_repr = py_talloc_default_repr, .tp_methods = NULL, .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE, .tp_new = py_rap_share_info_0_new, }; static PyObject *py_rap_share_info_1_get_share_name(PyObject *obj, void *closure) { struct rap_share_info_1 *object = (struct rap_share_info_1 *)py_talloc_get_ptr(obj); PyObject *py_share_name; py_share_name = PyList_New(13); if (py_share_name == NULL) { return NULL; } { int share_name_cntr_0; for (share_name_cntr_0 = 0; share_name_cntr_0 < 13; share_name_cntr_0++) { PyObject *py_share_name_0; py_share_name_0 = PyInt_FromLong(object->share_name[share_name_cntr_0]); PyList_SetItem(py_share_name, share_name_cntr_0, py_share_name_0); } } return py_share_name; } static int py_rap_share_info_1_set_share_name(PyObject *py_obj, PyObject *value, void *closure) { struct rap_share_info_1 *object = (struct rap_share_info_1 *)py_talloc_get_ptr(py_obj); PY_CHECK_TYPE(&PyList_Type, value, return -1;); { int share_name_cntr_0; for (share_name_cntr_0 = 0; share_name_cntr_0 < PyList_Size(value); share_name_cntr_0++) { PY_CHECK_TYPE(&PyInt_Type, PyList_GetItem(value, share_name_cntr_0), return -1;); object->share_name[share_name_cntr_0] = PyInt_AsLong(PyList_GetItem(value, share_name_cntr_0)); } } return 0; } static PyObject *py_rap_share_info_1_get_reserved1(PyObject *obj, void *closure) { struct rap_share_info_1 *object = (struct rap_share_info_1 *)py_talloc_get_ptr(obj); PyObject *py_reserved1; py_reserved1 = PyInt_FromLong(object->reserved1); return py_reserved1; } static int py_rap_share_info_1_set_reserved1(PyObject *py_obj, PyObject *value, void *closure) { struct rap_share_info_1 *object = (struct rap_share_info_1 *)py_talloc_get_ptr(py_obj); PY_CHECK_TYPE(&PyInt_Type, value, return -1;); object->reserved1 = PyInt_AsLong(value); return 0; } static PyObject *py_rap_share_info_1_get_share_type(PyObject *obj, void *closure) { struct rap_share_info_1 *object = (struct rap_share_info_1 *)py_talloc_get_ptr(obj); PyObject *py_share_type; py_share_type = PyInt_FromLong(object->share_type); return py_share_type; } static int py_rap_share_info_1_set_share_type(PyObject *py_obj, PyObject *value, void *closure) { struct rap_share_info_1 *object = (struct rap_share_info_1 *)py_talloc_get_ptr(py_obj); PY_CHECK_TYPE(&PyInt_Type, value, return -1;); object->share_type = PyInt_AsLong(value); return 0; } static PyObject *py_rap_share_info_1_get_comment(PyObject *obj, void *closure) { struct rap_share_info_1 *object = (struct rap_share_info_1 *)py_talloc_get_ptr(obj); PyObject *py_comment; if (object->comment == NULL) { py_comment = Py_None; } else { py_comment = PyUnicode_Decode(object->comment, strlen(object->comment), "utf-8", "ignore"); } return py_comment; } static int py_rap_share_info_1_set_comment(PyObject *py_obj, PyObject *value, void *closure) { struct rap_share_info_1 *object = (struct rap_share_info_1 *)py_talloc_get_ptr(py_obj); if (value == Py_None) { object->comment = NULL; } else { object->comment = talloc_ptrtype(py_talloc_get_mem_ctx(py_obj), object->comment); PY_CHECK_TYPE(&PyUnicode_Type, value, return -1;); object->comment = PyString_AsString(PyUnicode_AsEncodedString(value, "utf-8", "ignore")); } return 0; } static PyGetSetDef py_rap_share_info_1_getsetters[] = { { discard_const_p(char, "share_name"), py_rap_share_info_1_get_share_name, py_rap_share_info_1_set_share_name }, { discard_const_p(char, "reserved1"), py_rap_share_info_1_get_reserved1, py_rap_share_info_1_set_reserved1 }, { discard_const_p(char, "share_type"), py_rap_share_info_1_get_share_type, py_rap_share_info_1_set_share_type }, { discard_const_p(char, "comment"), py_rap_share_info_1_get_comment, py_rap_share_info_1_set_comment }, { NULL } }; static PyObject *py_rap_share_info_1_new(PyTypeObject *type, PyObject *args, PyObject *kwargs) { return py_talloc_new(struct rap_share_info_1, type); } static PyTypeObject rap_share_info_1_Type = { PyObject_HEAD_INIT(NULL) 0, .tp_name = "rap.share_info_1", .tp_basicsize = sizeof(py_talloc_Object), .tp_dealloc = py_talloc_dealloc, .tp_getset = py_rap_share_info_1_getsetters, .tp_repr = py_talloc_default_repr, .tp_methods = NULL, .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE, .tp_new = py_rap_share_info_1_new, }; static PyObject *py_rap_share_info_2_get_share_name(PyObject *obj, void *closure) { struct rap_share_info_2 *object = (struct rap_share_info_2 *)py_talloc_get_ptr(obj); PyObject *py_share_name; py_share_name = PyList_New(13); if (py_share_name == NULL) { return NULL; } { int share_name_cntr_0; for (share_name_cntr_0 = 0; share_name_cntr_0 < 13; share_name_cntr_0++) { PyObject *py_share_name_0; py_share_name_0 = PyInt_FromLong(object->share_name[share_name_cntr_0]); PyList_SetItem(py_share_name, share_name_cntr_0, py_share_name_0); } } return py_share_name; } static int py_rap_share_info_2_set_share_name(PyObject *py_obj, PyObject *value, void *closure) { struct rap_share_info_2 *object = (struct rap_share_info_2 *)py_talloc_get_ptr(py_obj); PY_CHECK_TYPE(&PyList_Type, value, return -1;); { int share_name_cntr_0; for (share_name_cntr_0 = 0; share_name_cntr_0 < PyList_Size(value); share_name_cntr_0++) { PY_CHECK_TYPE(&PyInt_Type, PyList_GetItem(value, share_name_cntr_0), return -1;); object->share_name[share_name_cntr_0] = PyInt_AsLong(PyList_GetItem(value, share_name_cntr_0)); } } return 0; } static PyObject *py_rap_share_info_2_get_reserved1(PyObject *obj, void *closure) { struct rap_share_info_2 *object = (struct rap_share_info_2 *)py_talloc_get_ptr(obj); PyObject *py_reserved1; py_reserved1 = PyInt_FromLong(object->reserved1); return py_reserved1; } static int py_rap_share_info_2_set_reserved1(PyObject *py_obj, PyObject *value, void *closure) { struct rap_share_info_2 *object = (struct rap_share_info_2 *)py_talloc_get_ptr(py_obj); PY_CHECK_TYPE(&PyInt_Type, value, return -1;); object->reserved1 = PyInt_AsLong(value); return 0; } static PyObject *py_rap_share_info_2_get_share_type(PyObject *obj, void *closure) { struct rap_share_info_2 *object = (struct rap_share_info_2 *)py_talloc_get_ptr(obj); PyObject *py_share_type; py_share_type = PyInt_FromLong(object->share_type); return py_share_type; } static int py_rap_share_info_2_set_share_type(PyObject *py_obj, PyObject *value, void *closure) { struct rap_share_info_2 *object = (struct rap_share_info_2 *)py_talloc_get_ptr(py_obj); PY_CHECK_TYPE(&PyInt_Type, value, return -1;); object->share_type = PyInt_AsLong(value); return 0; } static PyObject *py_rap_share_info_2_get_comment(PyObject *obj, void *closure) { struct rap_share_info_2 *object = (struct rap_share_info_2 *)py_talloc_get_ptr(obj); PyObject *py_comment; if (object->comment == NULL) { py_comment = Py_None; } else { py_comment = PyUnicode_Decode(object->comment, strlen(object->comment), "utf-8", "ignore"); } return py_comment; } static int py_rap_share_info_2_set_comment(PyObject *py_obj, PyObject *value, void *closure) { struct rap_share_info_2 *object = (struct rap_share_info_2 *)py_talloc_get_ptr(py_obj); if (value == Py_None) { object->comment = NULL; } else { object->comment = talloc_ptrtype(py_talloc_get_mem_ctx(py_obj), object->comment); PY_CHECK_TYPE(&PyUnicode_Type, value, return -1;); object->comment = PyString_AsString(PyUnicode_AsEncodedString(value, "utf-8", "ignore")); } return 0; } static PyObject *py_rap_share_info_2_get_perms(PyObject *obj, void *closure) { struct rap_share_info_2 *object = (struct rap_share_info_2 *)py_talloc_get_ptr(obj); PyObject *py_perms; py_perms = PyInt_FromLong(object->perms); return py_perms; } static int py_rap_share_info_2_set_perms(PyObject *py_obj, PyObject *value, void *closure) { struct rap_share_info_2 *object = (struct rap_share_info_2 *)py_talloc_get_ptr(py_obj); PY_CHECK_TYPE(&PyInt_Type, value, return -1;); object->perms = PyInt_AsLong(value); return 0; } static PyObject *py_rap_share_info_2_get_maximum_users(PyObject *obj, void *closure) { struct rap_share_info_2 *object = (struct rap_share_info_2 *)py_talloc_get_ptr(obj); PyObject *py_maximum_users; py_maximum_users = PyInt_FromLong(object->maximum_users); return py_maximum_users; } static int py_rap_share_info_2_set_maximum_users(PyObject *py_obj, PyObject *value, void *closure) { struct rap_share_info_2 *object = (struct rap_share_info_2 *)py_talloc_get_ptr(py_obj); PY_CHECK_TYPE(&PyInt_Type, value, return -1;); object->maximum_users = PyInt_AsLong(value); return 0; } static PyObject *py_rap_share_info_2_get_active_users(PyObject *obj, void *closure) { struct rap_share_info_2 *object = (struct rap_share_info_2 *)py_talloc_get_ptr(obj); PyObject *py_active_users; py_active_users = PyInt_FromLong(object->active_users); return py_active_users; } static int py_rap_share_info_2_set_active_users(PyObject *py_obj, PyObject *value, void *closure) { struct rap_share_info_2 *object = (struct rap_share_info_2 *)py_talloc_get_ptr(py_obj); PY_CHECK_TYPE(&PyInt_Type, value, return -1;); object->active_users = PyInt_AsLong(value); return 0; } static PyObject *py_rap_share_info_2_get_path(PyObject *obj, void *closure) { struct rap_share_info_2 *object = (struct rap_share_info_2 *)py_talloc_get_ptr(obj); PyObject *py_path; if (object->path == NULL) { py_path = Py_None; } else { py_path = PyUnicode_Decode(object->path, strlen(object->path), "utf-8", "ignore"); } return py_path; } static int py_rap_share_info_2_set_path(PyObject *py_obj, PyObject *value, void *closure) { struct rap_share_info_2 *object = (struct rap_share_info_2 *)py_talloc_get_ptr(py_obj); if (value == Py_None) { object->path = NULL; } else { object->path = talloc_ptrtype(py_talloc_get_mem_ctx(py_obj), object->path); PY_CHECK_TYPE(&PyUnicode_Type, value, return -1;); object->path = PyString_AsString(PyUnicode_AsEncodedString(value, "utf-8", "ignore")); } return 0; } static PyObject *py_rap_share_info_2_get_password(PyObject *obj, void *closure) { struct rap_share_info_2 *object = (struct rap_share_info_2 *)py_talloc_get_ptr(obj); PyObject *py_password; py_password = PyList_New(9); if (py_password == NULL) { return NULL; } { int password_cntr_0; for (password_cntr_0 = 0; password_cntr_0 < 9; password_cntr_0++) { PyObject *py_password_0; py_password_0 = PyInt_FromLong(object->password[password_cntr_0]); PyList_SetItem(py_password, password_cntr_0, py_password_0); } } return py_password; } static int py_rap_share_info_2_set_password(PyObject *py_obj, PyObject *value, void *closure) { struct rap_share_info_2 *object = (struct rap_share_info_2 *)py_talloc_get_ptr(py_obj); PY_CHECK_TYPE(&PyList_Type, value, return -1;); { int password_cntr_0; for (password_cntr_0 = 0; password_cntr_0 < PyList_Size(value); password_cntr_0++) { PY_CHECK_TYPE(&PyInt_Type, PyList_GetItem(value, password_cntr_0), return -1;); object->password[password_cntr_0] = PyInt_AsLong(PyList_GetItem(value, password_cntr_0)); } } return 0; } static PyObject *py_rap_share_info_2_get_reserved2(PyObject *obj, void *closure) { struct rap_share_info_2 *object = (struct rap_share_info_2 *)py_talloc_get_ptr(obj); PyObject *py_reserved2; py_reserved2 = PyInt_FromLong(object->reserved2); return py_reserved2; } static int py_rap_share_info_2_set_reserved2(PyObject *py_obj, PyObject *value, void *closure) { struct rap_share_info_2 *object = (struct rap_share_info_2 *)py_talloc_get_ptr(py_obj); PY_CHECK_TYPE(&PyInt_Type, value, return -1;); object->reserved2 = PyInt_AsLong(value); return 0; } static PyGetSetDef py_rap_share_info_2_getsetters[] = { { discard_const_p(char, "share_name"), py_rap_share_info_2_get_share_name, py_rap_share_info_2_set_share_name }, { discard_const_p(char, "reserved1"), py_rap_share_info_2_get_reserved1, py_rap_share_info_2_set_reserved1 }, { discard_const_p(char, "share_type"), py_rap_share_info_2_get_share_type, py_rap_share_info_2_set_share_type }, { discard_const_p(char, "comment"), py_rap_share_info_2_get_comment, py_rap_share_info_2_set_comment }, { discard_const_p(char, "perms"), py_rap_share_info_2_get_perms, py_rap_share_info_2_set_perms }, { discard_const_p(char, "maximum_users"), py_rap_share_info_2_get_maximum_users, py_rap_share_info_2_set_maximum_users }, { discard_const_p(char, "active_users"), py_rap_share_info_2_get_active_users, py_rap_share_info_2_set_active_users }, { discard_const_p(char, "path"), py_rap_share_info_2_get_path, py_rap_share_info_2_set_path }, { discard_const_p(char, "password"), py_rap_share_info_2_get_password, py_rap_share_info_2_set_password }, { discard_const_p(char, "reserved2"), py_rap_share_info_2_get_reserved2, py_rap_share_info_2_set_reserved2 }, { NULL } }; static PyObject *py_rap_share_info_2_new(PyTypeObject *type, PyObject *args, PyObject *kwargs) { return py_talloc_new(struct rap_share_info_2, type); } static PyTypeObject rap_share_info_2_Type = { PyObject_HEAD_INIT(NULL) 0, .tp_name = "rap.share_info_2", .tp_basicsize = sizeof(py_talloc_Object), .tp_dealloc = py_talloc_dealloc, .tp_getset = py_rap_share_info_2_getsetters, .tp_repr = py_talloc_default_repr, .tp_methods = NULL, .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE, .tp_new = py_rap_share_info_2_new, }; PyObject *py_import_rap_share_info(TALLOC_CTX *mem_ctx, int level, union rap_share_info *in) { PyObject *ret; switch (level) { case 0: ret = py_talloc_reference_ex(&rap_share_info_0_Type, mem_ctx, &in->info0); return ret; case 1: ret = py_talloc_reference_ex(&rap_share_info_1_Type, mem_ctx, &in->info1); return ret; case 2: ret = py_talloc_reference_ex(&rap_share_info_2_Type, mem_ctx, &in->info2); return ret; } PyErr_SetString(PyExc_TypeError, "unknown union level"); return NULL; } union rap_share_info *py_export_rap_share_info(TALLOC_CTX *mem_ctx, int level, PyObject *in) { union rap_share_info *ret = talloc_zero(mem_ctx, union rap_share_info); switch (level) { case 0: PY_CHECK_TYPE(&rap_share_info_0_Type, in, talloc_free(ret); return NULL;); memcpy(&ret->info0, (struct rap_share_info_0 *)py_talloc_get_ptr(in), sizeof(ret->info0)); break; case 1: PY_CHECK_TYPE(&rap_share_info_1_Type, in, talloc_free(ret); return NULL;); memcpy(&ret->info1, (struct rap_share_info_1 *)py_talloc_get_ptr(in), sizeof(ret->info1)); break; case 2: PY_CHECK_TYPE(&rap_share_info_2_Type, in, talloc_free(ret); return NULL;); memcpy(&ret->info2, (struct rap_share_info_2 *)py_talloc_get_ptr(in), sizeof(ret->info2)); break; default: PyErr_SetString(PyExc_TypeError, "invalid union level value"); talloc_free(ret); ret = NULL; } return ret; } static PyObject *py_rap_server_info_0_get_name(PyObject *obj, void *closure) { struct rap_server_info_0 *object = (struct rap_server_info_0 *)py_talloc_get_ptr(obj); PyObject *py_name; py_name = PyList_New(16); if (py_name == NULL) { return NULL; } { int name_cntr_0; for (name_cntr_0 = 0; name_cntr_0 < 16; name_cntr_0++) { PyObject *py_name_0; py_name_0 = PyInt_FromLong(object->name[name_cntr_0]); PyList_SetItem(py_name, name_cntr_0, py_name_0); } } return py_name; } static int py_rap_server_info_0_set_name(PyObject *py_obj, PyObject *value, void *closure) { struct rap_server_info_0 *object = (struct rap_server_info_0 *)py_talloc_get_ptr(py_obj); PY_CHECK_TYPE(&PyList_Type, value, return -1;); { int name_cntr_0; for (name_cntr_0 = 0; name_cntr_0 < PyList_Size(value); name_cntr_0++) { PY_CHECK_TYPE(&PyInt_Type, PyList_GetItem(value, name_cntr_0), return -1;); object->name[name_cntr_0] = PyInt_AsLong(PyList_GetItem(value, name_cntr_0)); } } return 0; } static PyGetSetDef py_rap_server_info_0_getsetters[] = { { discard_const_p(char, "name"), py_rap_server_info_0_get_name, py_rap_server_info_0_set_name }, { NULL } }; static PyObject *py_rap_server_info_0_new(PyTypeObject *type, PyObject *args, PyObject *kwargs) { return py_talloc_new(struct rap_server_info_0, type); } static PyTypeObject rap_server_info_0_Type = { PyObject_HEAD_INIT(NULL) 0, .tp_name = "rap.server_info_0", .tp_basicsize = sizeof(py_talloc_Object), .tp_dealloc = py_talloc_dealloc, .tp_getset = py_rap_server_info_0_getsetters, .tp_repr = py_talloc_default_repr, .tp_methods = NULL, .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE, .tp_new = py_rap_server_info_0_new, }; static PyObject *py_rap_server_info_1_get_name(PyObject *obj, void *closure) { struct rap_server_info_1 *object = (struct rap_server_info_1 *)py_talloc_get_ptr(obj); PyObject *py_name; py_name = PyList_New(16); if (py_name == NULL) { return NULL; } { int name_cntr_0; for (name_cntr_0 = 0; name_cntr_0 < 16; name_cntr_0++) { PyObject *py_name_0; py_name_0 = PyInt_FromLong(object->name[name_cntr_0]); PyList_SetItem(py_name, name_cntr_0, py_name_0); } } return py_name; } static int py_rap_server_info_1_set_name(PyObject *py_obj, PyObject *value, void *closure) { struct rap_server_info_1 *object = (struct rap_server_info_1 *)py_talloc_get_ptr(py_obj); PY_CHECK_TYPE(&PyList_Type, value, return -1;); { int name_cntr_0; for (name_cntr_0 = 0; name_cntr_0 < PyList_Size(value); name_cntr_0++) { PY_CHECK_TYPE(&PyInt_Type, PyList_GetItem(value, name_cntr_0), return -1;); object->name[name_cntr_0] = PyInt_AsLong(PyList_GetItem(value, name_cntr_0)); } } return 0; } static PyObject *py_rap_server_info_1_get_version_major(PyObject *obj, void *closure) { struct rap_server_info_1 *object = (struct rap_server_info_1 *)py_talloc_get_ptr(obj); PyObject *py_version_major; py_version_major = PyInt_FromLong(object->version_major); return py_version_major; } static int py_rap_server_info_1_set_version_major(PyObject *py_obj, PyObject *value, void *closure) { struct rap_server_info_1 *object = (struct rap_server_info_1 *)py_talloc_get_ptr(py_obj); PY_CHECK_TYPE(&PyInt_Type, value, return -1;); object->version_major = PyInt_AsLong(value); return 0; } static PyObject *py_rap_server_info_1_get_version_minor(PyObject *obj, void *closure) { struct rap_server_info_1 *object = (struct rap_server_info_1 *)py_talloc_get_ptr(obj); PyObject *py_version_minor; py_version_minor = PyInt_FromLong(object->version_minor); return py_version_minor; } static int py_rap_server_info_1_set_version_minor(PyObject *py_obj, PyObject *value, void *closure) { struct rap_server_info_1 *object = (struct rap_server_info_1 *)py_talloc_get_ptr(py_obj); PY_CHECK_TYPE(&PyInt_Type, value, return -1;); object->version_minor = PyInt_AsLong(value); return 0; } static PyObject *py_rap_server_info_1_get_servertype(PyObject *obj, void *closure) { struct rap_server_info_1 *object = (struct rap_server_info_1 *)py_talloc_get_ptr(obj); PyObject *py_servertype; py_servertype = PyInt_FromLong(object->servertype); return py_servertype; } static int py_rap_server_info_1_set_servertype(PyObject *py_obj, PyObject *value, void *closure) { struct rap_server_info_1 *object = (struct rap_server_info_1 *)py_talloc_get_ptr(py_obj); PY_CHECK_TYPE(&PyInt_Type, value, return -1;); object->servertype = PyInt_AsLong(value); return 0; } static PyObject *py_rap_server_info_1_get_comment(PyObject *obj, void *closure) { struct rap_server_info_1 *object = (struct rap_server_info_1 *)py_talloc_get_ptr(obj); PyObject *py_comment; if (object->comment == NULL) { py_comment = Py_None; } else { py_comment = PyUnicode_Decode(object->comment, strlen(object->comment), "utf-8", "ignore"); } return py_comment; } static int py_rap_server_info_1_set_comment(PyObject *py_obj, PyObject *value, void *closure) { struct rap_server_info_1 *object = (struct rap_server_info_1 *)py_talloc_get_ptr(py_obj); if (value == Py_None) { object->comment = NULL; } else { object->comment = talloc_ptrtype(py_talloc_get_mem_ctx(py_obj), object->comment); PY_CHECK_TYPE(&PyUnicode_Type, value, return -1;); object->comment = PyString_AsString(PyUnicode_AsEncodedString(value, "utf-8", "ignore")); } return 0; } static PyGetSetDef py_rap_server_info_1_getsetters[] = { { discard_const_p(char, "name"), py_rap_server_info_1_get_name, py_rap_server_info_1_set_name }, { discard_const_p(char, "version_major"), py_rap_server_info_1_get_version_major, py_rap_server_info_1_set_version_major }, { discard_const_p(char, "version_minor"), py_rap_server_info_1_get_version_minor, py_rap_server_info_1_set_version_minor }, { discard_const_p(char, "servertype"), py_rap_server_info_1_get_servertype, py_rap_server_info_1_set_servertype }, { discard_const_p(char, "comment"), py_rap_server_info_1_get_comment, py_rap_server_info_1_set_comment }, { NULL } }; static PyObject *py_rap_server_info_1_new(PyTypeObject *type, PyObject *args, PyObject *kwargs) { return py_talloc_new(struct rap_server_info_1, type); } static PyTypeObject rap_server_info_1_Type = { PyObject_HEAD_INIT(NULL) 0, .tp_name = "rap.server_info_1", .tp_basicsize = sizeof(py_talloc_Object), .tp_dealloc = py_talloc_dealloc, .tp_getset = py_rap_server_info_1_getsetters, .tp_repr = py_talloc_default_repr, .tp_methods = NULL, .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE, .tp_new = py_rap_server_info_1_new, }; PyObject *py_import_rap_server_info(TALLOC_CTX *mem_ctx, int level, union rap_server_info *in) { PyObject *ret; switch (level) { case 0: ret = py_talloc_reference_ex(&rap_server_info_0_Type, mem_ctx, &in->info0); return ret; case 1: ret = py_talloc_reference_ex(&rap_server_info_1_Type, mem_ctx, &in->info1); return ret; } PyErr_SetString(PyExc_TypeError, "unknown union level"); return NULL; } union rap_server_info *py_export_rap_server_info(TALLOC_CTX *mem_ctx, int level, PyObject *in) { union rap_server_info *ret = talloc_zero(mem_ctx, union rap_server_info); switch (level) { case 0: PY_CHECK_TYPE(&rap_server_info_0_Type, in, talloc_free(ret); return NULL;); memcpy(&ret->info0, (struct rap_server_info_0 *)py_talloc_get_ptr(in), sizeof(ret->info0)); break; case 1: PY_CHECK_TYPE(&rap_server_info_1_Type, in, talloc_free(ret); return NULL;); memcpy(&ret->info1, (struct rap_server_info_1 *)py_talloc_get_ptr(in), sizeof(ret->info1)); break; default: PyErr_SetString(PyExc_TypeError, "invalid union level value"); talloc_free(ret); ret = NULL; } return ret; } static PyObject *py_rap_PrintQueue0_get_PrintQName(PyObject *obj, void *closure) { struct rap_PrintQueue0 *object = (struct rap_PrintQueue0 *)py_talloc_get_ptr(obj); PyObject *py_PrintQName; py_PrintQName = PyList_New(13); if (py_PrintQName == NULL) { return NULL; } { int PrintQName_cntr_0; for (PrintQName_cntr_0 = 0; PrintQName_cntr_0 < 13; PrintQName_cntr_0++) { PyObject *py_PrintQName_0; py_PrintQName_0 = PyInt_FromLong(object->PrintQName[PrintQName_cntr_0]); PyList_SetItem(py_PrintQName, PrintQName_cntr_0, py_PrintQName_0); } } return py_PrintQName; } static int py_rap_PrintQueue0_set_PrintQName(PyObject *py_obj, PyObject *value, void *closure) { struct rap_PrintQueue0 *object = (struct rap_PrintQueue0 *)py_talloc_get_ptr(py_obj); PY_CHECK_TYPE(&PyList_Type, value, return -1;); { int PrintQName_cntr_0; for (PrintQName_cntr_0 = 0; PrintQName_cntr_0 < PyList_Size(value); PrintQName_cntr_0++) { PY_CHECK_TYPE(&PyInt_Type, PyList_GetItem(value, PrintQName_cntr_0), return -1;); object->PrintQName[PrintQName_cntr_0] = PyInt_AsLong(PyList_GetItem(value, PrintQName_cntr_0)); } } return 0; } static PyGetSetDef py_rap_PrintQueue0_getsetters[] = { { discard_const_p(char, "PrintQName"), py_rap_PrintQueue0_get_PrintQName, py_rap_PrintQueue0_set_PrintQName }, { NULL } }; static PyObject *py_rap_PrintQueue0_new(PyTypeObject *type, PyObject *args, PyObject *kwargs) { return py_talloc_new(struct rap_PrintQueue0, type); } static PyTypeObject rap_PrintQueue0_Type = { PyObject_HEAD_INIT(NULL) 0, .tp_name = "rap.PrintQueue0", .tp_basicsize = sizeof(py_talloc_Object), .tp_dealloc = py_talloc_dealloc, .tp_getset = py_rap_PrintQueue0_getsetters, .tp_repr = py_talloc_default_repr, .tp_methods = NULL, .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE, .tp_new = py_rap_PrintQueue0_new, }; static PyObject *py_rap_PrintQueue1_get_PrintQName(PyObject *obj, void *closure) { struct rap_PrintQueue1 *object = (struct rap_PrintQueue1 *)py_talloc_get_ptr(obj); PyObject *py_PrintQName; py_PrintQName = PyList_New(13); if (py_PrintQName == NULL) { return NULL; } { int PrintQName_cntr_0; for (PrintQName_cntr_0 = 0; PrintQName_cntr_0 < 13; PrintQName_cntr_0++) { PyObject *py_PrintQName_0; py_PrintQName_0 = PyInt_FromLong(object->PrintQName[PrintQName_cntr_0]); PyList_SetItem(py_PrintQName, PrintQName_cntr_0, py_PrintQName_0); } } return py_PrintQName; } static int py_rap_PrintQueue1_set_PrintQName(PyObject *py_obj, PyObject *value, void *closure) { struct rap_PrintQueue1 *object = (struct rap_PrintQueue1 *)py_talloc_get_ptr(py_obj); PY_CHECK_TYPE(&PyList_Type, value, return -1;); { int PrintQName_cntr_0; for (PrintQName_cntr_0 = 0; PrintQName_cntr_0 < PyList_Size(value); PrintQName_cntr_0++) { PY_CHECK_TYPE(&PyInt_Type, PyList_GetItem(value, PrintQName_cntr_0), return -1;); object->PrintQName[PrintQName_cntr_0] = PyInt_AsLong(PyList_GetItem(value, PrintQName_cntr_0)); } } return 0; } static PyObject *py_rap_PrintQueue1_get_Pad1(PyObject *obj, void *closure) { struct rap_PrintQueue1 *object = (struct rap_PrintQueue1 *)py_talloc_get_ptr(obj); PyObject *py_Pad1; py_Pad1 = PyInt_FromLong(object->Pad1); return py_Pad1; } static int py_rap_PrintQueue1_set_Pad1(PyObject *py_obj, PyObject *value, void *closure) { struct rap_PrintQueue1 *object = (struct rap_PrintQueue1 *)py_talloc_get_ptr(py_obj); PY_CHECK_TYPE(&PyInt_Type, value, return -1;); object->Pad1 = PyInt_AsLong(value); return 0; } static PyObject *py_rap_PrintQueue1_get_Priority(PyObject *obj, void *closure) { struct rap_PrintQueue1 *object = (struct rap_PrintQueue1 *)py_talloc_get_ptr(obj); PyObject *py_Priority; py_Priority = PyInt_FromLong(object->Priority); return py_Priority; } static int py_rap_PrintQueue1_set_Priority(PyObject *py_obj, PyObject *value, void *closure) { struct rap_PrintQueue1 *object = (struct rap_PrintQueue1 *)py_talloc_get_ptr(py_obj); PY_CHECK_TYPE(&PyInt_Type, value, return -1;); object->Priority = PyInt_AsLong(value); return 0; } static PyObject *py_rap_PrintQueue1_get_StartTime(PyObject *obj, void *closure) { struct rap_PrintQueue1 *object = (struct rap_PrintQueue1 *)py_talloc_get_ptr(obj); PyObject *py_StartTime; py_StartTime = PyInt_FromLong(object->StartTime); return py_StartTime; } static int py_rap_PrintQueue1_set_StartTime(PyObject *py_obj, PyObject *value, void *closure) { struct rap_PrintQueue1 *object = (struct rap_PrintQueue1 *)py_talloc_get_ptr(py_obj); PY_CHECK_TYPE(&PyInt_Type, value, return -1;); object->StartTime = PyInt_AsLong(value); return 0; } static PyObject *py_rap_PrintQueue1_get_UntilTime(PyObject *obj, void *closure) { struct rap_PrintQueue1 *object = (struct rap_PrintQueue1 *)py_talloc_get_ptr(obj); PyObject *py_UntilTime; py_UntilTime = PyInt_FromLong(object->UntilTime); return py_UntilTime; } static int py_rap_PrintQueue1_set_UntilTime(PyObject *py_obj, PyObject *value, void *closure) { struct rap_PrintQueue1 *object = (struct rap_PrintQueue1 *)py_talloc_get_ptr(py_obj); PY_CHECK_TYPE(&PyInt_Type, value, return -1;); object->UntilTime = PyInt_AsLong(value); return 0; } static PyObject *py_rap_PrintQueue1_get_SeparatorPageFilename(PyObject *obj, void *closure) { struct rap_PrintQueue1 *object = (struct rap_PrintQueue1 *)py_talloc_get_ptr(obj); PyObject *py_SeparatorPageFilename; if (object->SeparatorPageFilename == NULL) { py_SeparatorPageFilename = Py_None; } else { py_SeparatorPageFilename = PyUnicode_Decode(object->SeparatorPageFilename, strlen(object->SeparatorPageFilename), "utf-8", "ignore"); } return py_SeparatorPageFilename; } static int py_rap_PrintQueue1_set_SeparatorPageFilename(PyObject *py_obj, PyObject *value, void *closure) { struct rap_PrintQueue1 *object = (struct rap_PrintQueue1 *)py_talloc_get_ptr(py_obj); if (value == Py_None) { object->SeparatorPageFilename = NULL; } else { object->SeparatorPageFilename = talloc_ptrtype(py_talloc_get_mem_ctx(py_obj), object->SeparatorPageFilename); PY_CHECK_TYPE(&PyUnicode_Type, value, return -1;); object->SeparatorPageFilename = PyString_AsString(PyUnicode_AsEncodedString(value, "utf-8", "ignore")); } return 0; } static PyObject *py_rap_PrintQueue1_get_SeparatorPageFilenameHigh(PyObject *obj, void *closure) { struct rap_PrintQueue1 *object = (struct rap_PrintQueue1 *)py_talloc_get_ptr(obj); PyObject *py_SeparatorPageFilenameHigh; py_SeparatorPageFilenameHigh = PyInt_FromLong(object->SeparatorPageFilenameHigh); return py_SeparatorPageFilenameHigh; } static int py_rap_PrintQueue1_set_SeparatorPageFilenameHigh(PyObject *py_obj, PyObject *value, void *closure) { struct rap_PrintQueue1 *object = (struct rap_PrintQueue1 *)py_talloc_get_ptr(py_obj); PY_CHECK_TYPE(&PyInt_Type, value, return -1;); object->SeparatorPageFilenameHigh = PyInt_AsLong(value); return 0; } static PyObject *py_rap_PrintQueue1_get_PrintProcessorDllName(PyObject *obj, void *closure) { struct rap_PrintQueue1 *object = (struct rap_PrintQueue1 *)py_talloc_get_ptr(obj); PyObject *py_PrintProcessorDllName; if (object->PrintProcessorDllName == NULL) { py_PrintProcessorDllName = Py_None; } else { py_PrintProcessorDllName = PyUnicode_Decode(object->PrintProcessorDllName, strlen(object->PrintProcessorDllName), "utf-8", "ignore"); } return py_PrintProcessorDllName; } static int py_rap_PrintQueue1_set_PrintProcessorDllName(PyObject *py_obj, PyObject *value, void *closure) { struct rap_PrintQueue1 *object = (struct rap_PrintQueue1 *)py_talloc_get_ptr(py_obj); if (value == Py_None) { object->PrintProcessorDllName = NULL; } else { object->PrintProcessorDllName = talloc_ptrtype(py_talloc_get_mem_ctx(py_obj), object->PrintProcessorDllName); PY_CHECK_TYPE(&PyUnicode_Type, value, return -1;); object->PrintProcessorDllName = PyString_AsString(PyUnicode_AsEncodedString(value, "utf-8", "ignore")); } return 0; } static PyObject *py_rap_PrintQueue1_get_PrintProcessorDllNameHigh(PyObject *obj, void *closure) { struct rap_PrintQueue1 *object = (struct rap_PrintQueue1 *)py_talloc_get_ptr(obj); PyObject *py_PrintProcessorDllNameHigh; py_PrintProcessorDllNameHigh = PyInt_FromLong(object->PrintProcessorDllNameHigh); return py_PrintProcessorDllNameHigh; } static int py_rap_PrintQueue1_set_PrintProcessorDllNameHigh(PyObject *py_obj, PyObject *value, void *closure) { struct rap_PrintQueue1 *object = (struct rap_PrintQueue1 *)py_talloc_get_ptr(py_obj); PY_CHECK_TYPE(&PyInt_Type, value, return -1;); object->PrintProcessorDllNameHigh = PyInt_AsLong(value); return 0; } static PyObject *py_rap_PrintQueue1_get_PrintDestinationsName(PyObject *obj, void *closure) { struct rap_PrintQueue1 *object = (struct rap_PrintQueue1 *)py_talloc_get_ptr(obj); PyObject *py_PrintDestinationsName; if (object->PrintDestinationsName == NULL) { py_PrintDestinationsName = Py_None; } else { py_PrintDestinationsName = PyUnicode_Decode(object->PrintDestinationsName, strlen(object->PrintDestinationsName), "utf-8", "ignore"); } return py_PrintDestinationsName; } static int py_rap_PrintQueue1_set_PrintDestinationsName(PyObject *py_obj, PyObject *value, void *closure) { struct rap_PrintQueue1 *object = (struct rap_PrintQueue1 *)py_talloc_get_ptr(py_obj); if (value == Py_None) { object->PrintDestinationsName = NULL; } else { object->PrintDestinationsName = talloc_ptrtype(py_talloc_get_mem_ctx(py_obj), object->PrintDestinationsName); PY_CHECK_TYPE(&PyUnicode_Type, value, return -1;); object->PrintDestinationsName = PyString_AsString(PyUnicode_AsEncodedString(value, "utf-8", "ignore")); } return 0; } static PyObject *py_rap_PrintQueue1_get_PrintDestinationsNameHigh(PyObject *obj, void *closure) { struct rap_PrintQueue1 *object = (struct rap_PrintQueue1 *)py_talloc_get_ptr(obj); PyObject *py_PrintDestinationsNameHigh; py_PrintDestinationsNameHigh = PyInt_FromLong(object->PrintDestinationsNameHigh); return py_PrintDestinationsNameHigh; } static int py_rap_PrintQueue1_set_PrintDestinationsNameHigh(PyObject *py_obj, PyObject *value, void *closure) { struct rap_PrintQueue1 *object = (struct rap_PrintQueue1 *)py_talloc_get_ptr(py_obj); PY_CHECK_TYPE(&PyInt_Type, value, return -1;); object->PrintDestinationsNameHigh = PyInt_AsLong(value); return 0; } static PyObject *py_rap_PrintQueue1_get_PrintParameterString(PyObject *obj, void *closure) { struct rap_PrintQueue1 *object = (struct rap_PrintQueue1 *)py_talloc_get_ptr(obj); PyObject *py_PrintParameterString; if (object->PrintParameterString == NULL) { py_PrintParameterString = Py_None; } else { py_PrintParameterString = PyUnicode_Decode(object->PrintParameterString, strlen(object->PrintParameterString), "utf-8", "ignore"); } return py_PrintParameterString; } static int py_rap_PrintQueue1_set_PrintParameterString(PyObject *py_obj, PyObject *value, void *closure) { struct rap_PrintQueue1 *object = (struct rap_PrintQueue1 *)py_talloc_get_ptr(py_obj); if (value == Py_None) { object->PrintParameterString = NULL; } else { object->PrintParameterString = talloc_ptrtype(py_talloc_get_mem_ctx(py_obj), object->PrintParameterString); PY_CHECK_TYPE(&PyUnicode_Type, value, return -1;); object->PrintParameterString = PyString_AsString(PyUnicode_AsEncodedString(value, "utf-8", "ignore")); } return 0; } static PyObject *py_rap_PrintQueue1_get_PrintParameterStringHigh(PyObject *obj, void *closure) { struct rap_PrintQueue1 *object = (struct rap_PrintQueue1 *)py_talloc_get_ptr(obj); PyObject *py_PrintParameterStringHigh; py_PrintParameterStringHigh = PyInt_FromLong(object->PrintParameterStringHigh); return py_PrintParameterStringHigh; } static int py_rap_PrintQueue1_set_PrintParameterStringHigh(PyObject *py_obj, PyObject *value, void *closure) { struct rap_PrintQueue1 *object = (struct rap_PrintQueue1 *)py_talloc_get_ptr(py_obj); PY_CHECK_TYPE(&PyInt_Type, value, return -1;); object->PrintParameterStringHigh = PyInt_AsLong(value); return 0; } static PyObject *py_rap_PrintQueue1_get_CommentString(PyObject *obj, void *closure) { struct rap_PrintQueue1 *object = (struct rap_PrintQueue1 *)py_talloc_get_ptr(obj); PyObject *py_CommentString; if (object->CommentString == NULL) { py_CommentString = Py_None; } else { py_CommentString = PyUnicode_Decode(object->CommentString, strlen(object->CommentString), "utf-8", "ignore"); } return py_CommentString; } static int py_rap_PrintQueue1_set_CommentString(PyObject *py_obj, PyObject *value, void *closure) { struct rap_PrintQueue1 *object = (struct rap_PrintQueue1 *)py_talloc_get_ptr(py_obj); if (value == Py_None) { object->CommentString = NULL; } else { object->CommentString = talloc_ptrtype(py_talloc_get_mem_ctx(py_obj), object->CommentString); PY_CHECK_TYPE(&PyUnicode_Type, value, return -1;); object->CommentString = PyString_AsString(PyUnicode_AsEncodedString(value, "utf-8", "ignore")); } return 0; } static PyObject *py_rap_PrintQueue1_get_CommentStringHigh(PyObject *obj, void *closure) { struct rap_PrintQueue1 *object = (struct rap_PrintQueue1 *)py_talloc_get_ptr(obj); PyObject *py_CommentStringHigh; py_CommentStringHigh = PyInt_FromLong(object->CommentStringHigh); return py_CommentStringHigh; } static int py_rap_PrintQueue1_set_CommentStringHigh(PyObject *py_obj, PyObject *value, void *closure) { struct rap_PrintQueue1 *object = (struct rap_PrintQueue1 *)py_talloc_get_ptr(py_obj); PY_CHECK_TYPE(&PyInt_Type, value, return -1;); object->CommentStringHigh = PyInt_AsLong(value); return 0; } static PyObject *py_rap_PrintQueue1_get_PrintQStatus(PyObject *obj, void *closure) { struct rap_PrintQueue1 *object = (struct rap_PrintQueue1 *)py_talloc_get_ptr(obj); PyObject *py_PrintQStatus; py_PrintQStatus = PyInt_FromLong(object->PrintQStatus); return py_PrintQStatus; } static int py_rap_PrintQueue1_set_PrintQStatus(PyObject *py_obj, PyObject *value, void *closure) { struct rap_PrintQueue1 *object = (struct rap_PrintQueue1 *)py_talloc_get_ptr(py_obj); PY_CHECK_TYPE(&PyInt_Type, value, return -1;); object->PrintQStatus = PyInt_AsLong(value); return 0; } static PyObject *py_rap_PrintQueue1_get_PrintJobCount(PyObject *obj, void *closure) { struct rap_PrintQueue1 *object = (struct rap_PrintQueue1 *)py_talloc_get_ptr(obj); PyObject *py_PrintJobCount; py_PrintJobCount = PyInt_FromLong(object->PrintJobCount); return py_PrintJobCount; } static int py_rap_PrintQueue1_set_PrintJobCount(PyObject *py_obj, PyObject *value, void *closure) { struct rap_PrintQueue1 *object = (struct rap_PrintQueue1 *)py_talloc_get_ptr(py_obj); PY_CHECK_TYPE(&PyInt_Type, value, return -1;); object->PrintJobCount = PyInt_AsLong(value); return 0; } static PyGetSetDef py_rap_PrintQueue1_getsetters[] = { { discard_const_p(char, "PrintQName"), py_rap_PrintQueue1_get_PrintQName, py_rap_PrintQueue1_set_PrintQName }, { discard_const_p(char, "Pad1"), py_rap_PrintQueue1_get_Pad1, py_rap_PrintQueue1_set_Pad1 }, { discard_const_p(char, "Priority"), py_rap_PrintQueue1_get_Priority, py_rap_PrintQueue1_set_Priority }, { discard_const_p(char, "StartTime"), py_rap_PrintQueue1_get_StartTime, py_rap_PrintQueue1_set_StartTime }, { discard_const_p(char, "UntilTime"), py_rap_PrintQueue1_get_UntilTime, py_rap_PrintQueue1_set_UntilTime }, { discard_const_p(char, "SeparatorPageFilename"), py_rap_PrintQueue1_get_SeparatorPageFilename, py_rap_PrintQueue1_set_SeparatorPageFilename }, { discard_const_p(char, "SeparatorPageFilenameHigh"), py_rap_PrintQueue1_get_SeparatorPageFilenameHigh, py_rap_PrintQueue1_set_SeparatorPageFilenameHigh }, { discard_const_p(char, "PrintProcessorDllName"), py_rap_PrintQueue1_get_PrintProcessorDllName, py_rap_PrintQueue1_set_PrintProcessorDllName }, { discard_const_p(char, "PrintProcessorDllNameHigh"), py_rap_PrintQueue1_get_PrintProcessorDllNameHigh, py_rap_PrintQueue1_set_PrintProcessorDllNameHigh }, { discard_const_p(char, "PrintDestinationsName"), py_rap_PrintQueue1_get_PrintDestinationsName, py_rap_PrintQueue1_set_PrintDestinationsName }, { discard_const_p(char, "PrintDestinationsNameHigh"), py_rap_PrintQueue1_get_PrintDestinationsNameHigh, py_rap_PrintQueue1_set_PrintDestinationsNameHigh }, { discard_const_p(char, "PrintParameterString"), py_rap_PrintQueue1_get_PrintParameterString, py_rap_PrintQueue1_set_PrintParameterString }, { discard_const_p(char, "PrintParameterStringHigh"), py_rap_PrintQueue1_get_PrintParameterStringHigh, py_rap_PrintQueue1_set_PrintParameterStringHigh }, { discard_const_p(char, "CommentString"), py_rap_PrintQueue1_get_CommentString, py_rap_PrintQueue1_set_CommentString }, { discard_const_p(char, "CommentStringHigh"), py_rap_PrintQueue1_get_CommentStringHigh, py_rap_PrintQueue1_set_CommentStringHigh }, { discard_const_p(char, "PrintQStatus"), py_rap_PrintQueue1_get_PrintQStatus, py_rap_PrintQueue1_set_PrintQStatus }, { discard_const_p(char, "PrintJobCount"), py_rap_PrintQueue1_get_PrintJobCount, py_rap_PrintQueue1_set_PrintJobCount }, { NULL } }; static PyObject *py_rap_PrintQueue1_new(PyTypeObject *type, PyObject *args, PyObject *kwargs) { return py_talloc_new(struct rap_PrintQueue1, type); } static PyTypeObject rap_PrintQueue1_Type = { PyObject_HEAD_INIT(NULL) 0, .tp_name = "rap.PrintQueue1", .tp_basicsize = sizeof(py_talloc_Object), .tp_dealloc = py_talloc_dealloc, .tp_getset = py_rap_PrintQueue1_getsetters, .tp_repr = py_talloc_default_repr, .tp_methods = NULL, .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE, .tp_new = py_rap_PrintQueue1_new, }; static PyObject *py_rap_PrintQueue2_new(PyTypeObject *type, PyObject *args, PyObject *kwargs) { return py_talloc_new(struct rap_PrintQueue2, type); } static PyTypeObject rap_PrintQueue2_Type = { PyObject_HEAD_INIT(NULL) 0, .tp_name = "rap.PrintQueue2", .tp_basicsize = sizeof(py_talloc_Object), .tp_dealloc = py_talloc_dealloc, .tp_getset = NULL, .tp_repr = py_talloc_default_repr, .tp_methods = NULL, .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE, .tp_new = py_rap_PrintQueue2_new, }; static PyObject *py_rap_PrintQueue3_get_PrintQueueName(PyObject *obj, void *closure) { struct rap_PrintQueue3 *object = (struct rap_PrintQueue3 *)py_talloc_get_ptr(obj); PyObject *py_PrintQueueName; if (object->PrintQueueName == NULL) { py_PrintQueueName = Py_None; } else { py_PrintQueueName = PyUnicode_Decode(object->PrintQueueName, strlen(object->PrintQueueName), "utf-8", "ignore"); } return py_PrintQueueName; } static int py_rap_PrintQueue3_set_PrintQueueName(PyObject *py_obj, PyObject *value, void *closure) { struct rap_PrintQueue3 *object = (struct rap_PrintQueue3 *)py_talloc_get_ptr(py_obj); if (value == Py_None) { object->PrintQueueName = NULL; } else { object->PrintQueueName = talloc_ptrtype(py_talloc_get_mem_ctx(py_obj), object->PrintQueueName); PY_CHECK_TYPE(&PyUnicode_Type, value, return -1;); object->PrintQueueName = PyString_AsString(PyUnicode_AsEncodedString(value, "utf-8", "ignore")); } return 0; } static PyObject *py_rap_PrintQueue3_get_PrintQueueNameHigh(PyObject *obj, void *closure) { struct rap_PrintQueue3 *object = (struct rap_PrintQueue3 *)py_talloc_get_ptr(obj); PyObject *py_PrintQueueNameHigh; py_PrintQueueNameHigh = PyInt_FromLong(object->PrintQueueNameHigh); return py_PrintQueueNameHigh; } static int py_rap_PrintQueue3_set_PrintQueueNameHigh(PyObject *py_obj, PyObject *value, void *closure) { struct rap_PrintQueue3 *object = (struct rap_PrintQueue3 *)py_talloc_get_ptr(py_obj); PY_CHECK_TYPE(&PyInt_Type, value, return -1;); object->PrintQueueNameHigh = PyInt_AsLong(value); return 0; } static PyObject *py_rap_PrintQueue3_get_Priority(PyObject *obj, void *closure) { struct rap_PrintQueue3 *object = (struct rap_PrintQueue3 *)py_talloc_get_ptr(obj); PyObject *py_Priority; py_Priority = PyInt_FromLong(object->Priority); return py_Priority; } static int py_rap_PrintQueue3_set_Priority(PyObject *py_obj, PyObject *value, void *closure) { struct rap_PrintQueue3 *object = (struct rap_PrintQueue3 *)py_talloc_get_ptr(py_obj); PY_CHECK_TYPE(&PyInt_Type, value, return -1;); object->Priority = PyInt_AsLong(value); return 0; } static PyObject *py_rap_PrintQueue3_get_StartTime(PyObject *obj, void *closure) { struct rap_PrintQueue3 *object = (struct rap_PrintQueue3 *)py_talloc_get_ptr(obj); PyObject *py_StartTime; py_StartTime = PyInt_FromLong(object->StartTime); return py_StartTime; } static int py_rap_PrintQueue3_set_StartTime(PyObject *py_obj, PyObject *value, void *closure) { struct rap_PrintQueue3 *object = (struct rap_PrintQueue3 *)py_talloc_get_ptr(py_obj); PY_CHECK_TYPE(&PyInt_Type, value, return -1;); object->StartTime = PyInt_AsLong(value); return 0; } static PyObject *py_rap_PrintQueue3_get_UntilTime(PyObject *obj, void *closure) { struct rap_PrintQueue3 *object = (struct rap_PrintQueue3 *)py_talloc_get_ptr(obj); PyObject *py_UntilTime; py_UntilTime = PyInt_FromLong(object->UntilTime); return py_UntilTime; } static int py_rap_PrintQueue3_set_UntilTime(PyObject *py_obj, PyObject *value, void *closure) { struct rap_PrintQueue3 *object = (struct rap_PrintQueue3 *)py_talloc_get_ptr(py_obj); PY_CHECK_TYPE(&PyInt_Type, value, return -1;); object->UntilTime = PyInt_AsLong(value); return 0; } static PyObject *py_rap_PrintQueue3_get_Pad(PyObject *obj, void *closure) { struct rap_PrintQueue3 *object = (struct rap_PrintQueue3 *)py_talloc_get_ptr(obj); PyObject *py_Pad; py_Pad = PyInt_FromLong(object->Pad); return py_Pad; } static int py_rap_PrintQueue3_set_Pad(PyObject *py_obj, PyObject *value, void *closure) { struct rap_PrintQueue3 *object = (struct rap_PrintQueue3 *)py_talloc_get_ptr(py_obj); PY_CHECK_TYPE(&PyInt_Type, value, return -1;); object->Pad = PyInt_AsLong(value); return 0; } static PyObject *py_rap_PrintQueue3_get_SeparatorPageFilename(PyObject *obj, void *closure) { struct rap_PrintQueue3 *object = (struct rap_PrintQueue3 *)py_talloc_get_ptr(obj); PyObject *py_SeparatorPageFilename; if (object->SeparatorPageFilename == NULL) { py_SeparatorPageFilename = Py_None; } else { py_SeparatorPageFilename = PyUnicode_Decode(object->SeparatorPageFilename, strlen(object->SeparatorPageFilename), "utf-8", "ignore"); } return py_SeparatorPageFilename; } static int py_rap_PrintQueue3_set_SeparatorPageFilename(PyObject *py_obj, PyObject *value, void *closure) { struct rap_PrintQueue3 *object = (struct rap_PrintQueue3 *)py_talloc_get_ptr(py_obj); if (value == Py_None) { object->SeparatorPageFilename = NULL; } else { object->SeparatorPageFilename = talloc_ptrtype(py_talloc_get_mem_ctx(py_obj), object->SeparatorPageFilename); PY_CHECK_TYPE(&PyUnicode_Type, value, return -1;); object->SeparatorPageFilename = PyString_AsString(PyUnicode_AsEncodedString(value, "utf-8", "ignore")); } return 0; } static PyObject *py_rap_PrintQueue3_get_SeparatorPageFilenameHigh(PyObject *obj, void *closure) { struct rap_PrintQueue3 *object = (struct rap_PrintQueue3 *)py_talloc_get_ptr(obj); PyObject *py_SeparatorPageFilenameHigh; py_SeparatorPageFilenameHigh = PyInt_FromLong(object->SeparatorPageFilenameHigh); return py_SeparatorPageFilenameHigh; } static int py_rap_PrintQueue3_set_SeparatorPageFilenameHigh(PyObject *py_obj, PyObject *value, void *closure) { struct rap_PrintQueue3 *object = (struct rap_PrintQueue3 *)py_talloc_get_ptr(py_obj); PY_CHECK_TYPE(&PyInt_Type, value, return -1;); object->SeparatorPageFilenameHigh = PyInt_AsLong(value); return 0; } static PyObject *py_rap_PrintQueue3_get_PrintProcessorDllName(PyObject *obj, void *closure) { struct rap_PrintQueue3 *object = (struct rap_PrintQueue3 *)py_talloc_get_ptr(obj); PyObject *py_PrintProcessorDllName; if (object->PrintProcessorDllName == NULL) { py_PrintProcessorDllName = Py_None; } else { py_PrintProcessorDllName = PyUnicode_Decode(object->PrintProcessorDllName, strlen(object->PrintProcessorDllName), "utf-8", "ignore"); } return py_PrintProcessorDllName; } static int py_rap_PrintQueue3_set_PrintProcessorDllName(PyObject *py_obj, PyObject *value, void *closure) { struct rap_PrintQueue3 *object = (struct rap_PrintQueue3 *)py_talloc_get_ptr(py_obj); if (value == Py_None) { object->PrintProcessorDllName = NULL; } else { object->PrintProcessorDllName = talloc_ptrtype(py_talloc_get_mem_ctx(py_obj), object->PrintProcessorDllName); PY_CHECK_TYPE(&PyUnicode_Type, value, return -1;); object->PrintProcessorDllName = PyString_AsString(PyUnicode_AsEncodedString(value, "utf-8", "ignore")); } return 0; } static PyObject *py_rap_PrintQueue3_get_PrintProcessorDllNameHigh(PyObject *obj, void *closure) { struct rap_PrintQueue3 *object = (struct rap_PrintQueue3 *)py_talloc_get_ptr(obj); PyObject *py_PrintProcessorDllNameHigh; py_PrintProcessorDllNameHigh = PyInt_FromLong(object->PrintProcessorDllNameHigh); return py_PrintProcessorDllNameHigh; } static int py_rap_PrintQueue3_set_PrintProcessorDllNameHigh(PyObject *py_obj, PyObject *value, void *closure) { struct rap_PrintQueue3 *object = (struct rap_PrintQueue3 *)py_talloc_get_ptr(py_obj); PY_CHECK_TYPE(&PyInt_Type, value, return -1;); object->PrintProcessorDllNameHigh = PyInt_AsLong(value); return 0; } static PyObject *py_rap_PrintQueue3_get_PrintParameterString(PyObject *obj, void *closure) { struct rap_PrintQueue3 *object = (struct rap_PrintQueue3 *)py_talloc_get_ptr(obj); PyObject *py_PrintParameterString; if (object->PrintParameterString == NULL) { py_PrintParameterString = Py_None; } else { py_PrintParameterString = PyUnicode_Decode(object->PrintParameterString, strlen(object->PrintParameterString), "utf-8", "ignore"); } return py_PrintParameterString; } static int py_rap_PrintQueue3_set_PrintParameterString(PyObject *py_obj, PyObject *value, void *closure) { struct rap_PrintQueue3 *object = (struct rap_PrintQueue3 *)py_talloc_get_ptr(py_obj); if (value == Py_None) { object->PrintParameterString = NULL; } else { object->PrintParameterString = talloc_ptrtype(py_talloc_get_mem_ctx(py_obj), object->PrintParameterString); PY_CHECK_TYPE(&PyUnicode_Type, value, return -1;); object->PrintParameterString = PyString_AsString(PyUnicode_AsEncodedString(value, "utf-8", "ignore")); } return 0; } static PyObject *py_rap_PrintQueue3_get_PrintParameterStringHigh(PyObject *obj, void *closure) { struct rap_PrintQueue3 *object = (struct rap_PrintQueue3 *)py_talloc_get_ptr(obj); PyObject *py_PrintParameterStringHigh; py_PrintParameterStringHigh = PyInt_FromLong(object->PrintParameterStringHigh); return py_PrintParameterStringHigh; } static int py_rap_PrintQueue3_set_PrintParameterStringHigh(PyObject *py_obj, PyObject *value, void *closure) { struct rap_PrintQueue3 *object = (struct rap_PrintQueue3 *)py_talloc_get_ptr(py_obj); PY_CHECK_TYPE(&PyInt_Type, value, return -1;); object->PrintParameterStringHigh = PyInt_AsLong(value); return 0; } static PyObject *py_rap_PrintQueue3_get_CommentString(PyObject *obj, void *closure) { struct rap_PrintQueue3 *object = (struct rap_PrintQueue3 *)py_talloc_get_ptr(obj); PyObject *py_CommentString; if (object->CommentString == NULL) { py_CommentString = Py_None; } else { py_CommentString = PyUnicode_Decode(object->CommentString, strlen(object->CommentString), "utf-8", "ignore"); } return py_CommentString; } static int py_rap_PrintQueue3_set_CommentString(PyObject *py_obj, PyObject *value, void *closure) { struct rap_PrintQueue3 *object = (struct rap_PrintQueue3 *)py_talloc_get_ptr(py_obj); if (value == Py_None) { object->CommentString = NULL; } else { object->CommentString = talloc_ptrtype(py_talloc_get_mem_ctx(py_obj), object->CommentString); PY_CHECK_TYPE(&PyUnicode_Type, value, return -1;); object->CommentString = PyString_AsString(PyUnicode_AsEncodedString(value, "utf-8", "ignore")); } return 0; } static PyObject *py_rap_PrintQueue3_get_CommentStringHigh(PyObject *obj, void *closure) { struct rap_PrintQueue3 *object = (struct rap_PrintQueue3 *)py_talloc_get_ptr(obj); PyObject *py_CommentStringHigh; py_CommentStringHigh = PyInt_FromLong(object->CommentStringHigh); return py_CommentStringHigh; } static int py_rap_PrintQueue3_set_CommentStringHigh(PyObject *py_obj, PyObject *value, void *closure) { struct rap_PrintQueue3 *object = (struct rap_PrintQueue3 *)py_talloc_get_ptr(py_obj); PY_CHECK_TYPE(&PyInt_Type, value, return -1;); object->CommentStringHigh = PyInt_AsLong(value); return 0; } static PyObject *py_rap_PrintQueue3_get_PrintQStatus(PyObject *obj, void *closure) { struct rap_PrintQueue3 *object = (struct rap_PrintQueue3 *)py_talloc_get_ptr(obj); PyObject *py_PrintQStatus; py_PrintQStatus = PyInt_FromLong(object->PrintQStatus); return py_PrintQStatus; } static int py_rap_PrintQueue3_set_PrintQStatus(PyObject *py_obj, PyObject *value, void *closure) { struct rap_PrintQueue3 *object = (struct rap_PrintQueue3 *)py_talloc_get_ptr(py_obj); PY_CHECK_TYPE(&PyInt_Type, value, return -1;); object->PrintQStatus = PyInt_AsLong(value); return 0; } static PyObject *py_rap_PrintQueue3_get_PrintJobCount(PyObject *obj, void *closure) { struct rap_PrintQueue3 *object = (struct rap_PrintQueue3 *)py_talloc_get_ptr(obj); PyObject *py_PrintJobCount; py_PrintJobCount = PyInt_FromLong(object->PrintJobCount); return py_PrintJobCount; } static int py_rap_PrintQueue3_set_PrintJobCount(PyObject *py_obj, PyObject *value, void *closure) { struct rap_PrintQueue3 *object = (struct rap_PrintQueue3 *)py_talloc_get_ptr(py_obj); PY_CHECK_TYPE(&PyInt_Type, value, return -1;); object->PrintJobCount = PyInt_AsLong(value); return 0; } static PyObject *py_rap_PrintQueue3_get_Printers(PyObject *obj, void *closure) { struct rap_PrintQueue3 *object = (struct rap_PrintQueue3 *)py_talloc_get_ptr(obj); PyObject *py_Printers; if (object->Printers == NULL) { py_Printers = Py_None; } else { py_Printers = PyUnicode_Decode(object->Printers, strlen(object->Printers), "utf-8", "ignore"); } return py_Printers; } static int py_rap_PrintQueue3_set_Printers(PyObject *py_obj, PyObject *value, void *closure) { struct rap_PrintQueue3 *object = (struct rap_PrintQueue3 *)py_talloc_get_ptr(py_obj); if (value == Py_None) { object->Printers = NULL; } else { object->Printers = talloc_ptrtype(py_talloc_get_mem_ctx(py_obj), object->Printers); PY_CHECK_TYPE(&PyUnicode_Type, value, return -1;); object->Printers = PyString_AsString(PyUnicode_AsEncodedString(value, "utf-8", "ignore")); } return 0; } static PyObject *py_rap_PrintQueue3_get_PrintersHigh(PyObject *obj, void *closure) { struct rap_PrintQueue3 *object = (struct rap_PrintQueue3 *)py_talloc_get_ptr(obj); PyObject *py_PrintersHigh; py_PrintersHigh = PyInt_FromLong(object->PrintersHigh); return py_PrintersHigh; } static int py_rap_PrintQueue3_set_PrintersHigh(PyObject *py_obj, PyObject *value, void *closure) { struct rap_PrintQueue3 *object = (struct rap_PrintQueue3 *)py_talloc_get_ptr(py_obj); PY_CHECK_TYPE(&PyInt_Type, value, return -1;); object->PrintersHigh = PyInt_AsLong(value); return 0; } static PyObject *py_rap_PrintQueue3_get_DriverName(PyObject *obj, void *closure) { struct rap_PrintQueue3 *object = (struct rap_PrintQueue3 *)py_talloc_get_ptr(obj); PyObject *py_DriverName; if (object->DriverName == NULL) { py_DriverName = Py_None; } else { py_DriverName = PyUnicode_Decode(object->DriverName, strlen(object->DriverName), "utf-8", "ignore"); } return py_DriverName; } static int py_rap_PrintQueue3_set_DriverName(PyObject *py_obj, PyObject *value, void *closure) { struct rap_PrintQueue3 *object = (struct rap_PrintQueue3 *)py_talloc_get_ptr(py_obj); if (value == Py_None) { object->DriverName = NULL; } else { object->DriverName = talloc_ptrtype(py_talloc_get_mem_ctx(py_obj), object->DriverName); PY_CHECK_TYPE(&PyUnicode_Type, value, return -1;); object->DriverName = PyString_AsString(PyUnicode_AsEncodedString(value, "utf-8", "ignore")); } return 0; } static PyObject *py_rap_PrintQueue3_get_DriverNameHigh(PyObject *obj, void *closure) { struct rap_PrintQueue3 *object = (struct rap_PrintQueue3 *)py_talloc_get_ptr(obj); PyObject *py_DriverNameHigh; py_DriverNameHigh = PyInt_FromLong(object->DriverNameHigh); return py_DriverNameHigh; } static int py_rap_PrintQueue3_set_DriverNameHigh(PyObject *py_obj, PyObject *value, void *closure) { struct rap_PrintQueue3 *object = (struct rap_PrintQueue3 *)py_talloc_get_ptr(py_obj); PY_CHECK_TYPE(&PyInt_Type, value, return -1;); object->DriverNameHigh = PyInt_AsLong(value); return 0; } static PyObject *py_rap_PrintQueue3_get_PrintDriverData(PyObject *obj, void *closure) { struct rap_PrintQueue3 *object = (struct rap_PrintQueue3 *)py_talloc_get_ptr(obj); PyObject *py_PrintDriverData; if (object->PrintDriverData == NULL) { py_PrintDriverData = Py_None; } else { py_PrintDriverData = PyUnicode_Decode(object->PrintDriverData, strlen(object->PrintDriverData), "utf-8", "ignore"); } return py_PrintDriverData; } static int py_rap_PrintQueue3_set_PrintDriverData(PyObject *py_obj, PyObject *value, void *closure) { struct rap_PrintQueue3 *object = (struct rap_PrintQueue3 *)py_talloc_get_ptr(py_obj); if (value == Py_None) { object->PrintDriverData = NULL; } else { object->PrintDriverData = talloc_ptrtype(py_talloc_get_mem_ctx(py_obj), object->PrintDriverData); PY_CHECK_TYPE(&PyUnicode_Type, value, return -1;); object->PrintDriverData = PyString_AsString(PyUnicode_AsEncodedString(value, "utf-8", "ignore")); } return 0; } static PyObject *py_rap_PrintQueue3_get_PrintDriverDataHigh(PyObject *obj, void *closure) { struct rap_PrintQueue3 *object = (struct rap_PrintQueue3 *)py_talloc_get_ptr(obj); PyObject *py_PrintDriverDataHigh; py_PrintDriverDataHigh = PyInt_FromLong(object->PrintDriverDataHigh); return py_PrintDriverDataHigh; } static int py_rap_PrintQueue3_set_PrintDriverDataHigh(PyObject *py_obj, PyObject *value, void *closure) { struct rap_PrintQueue3 *object = (struct rap_PrintQueue3 *)py_talloc_get_ptr(py_obj); PY_CHECK_TYPE(&PyInt_Type, value, return -1;); object->PrintDriverDataHigh = PyInt_AsLong(value); return 0; } static PyGetSetDef py_rap_PrintQueue3_getsetters[] = { { discard_const_p(char, "PrintQueueName"), py_rap_PrintQueue3_get_PrintQueueName, py_rap_PrintQueue3_set_PrintQueueName }, { discard_const_p(char, "PrintQueueNameHigh"), py_rap_PrintQueue3_get_PrintQueueNameHigh, py_rap_PrintQueue3_set_PrintQueueNameHigh }, { discard_const_p(char, "Priority"), py_rap_PrintQueue3_get_Priority, py_rap_PrintQueue3_set_Priority }, { discard_const_p(char, "StartTime"), py_rap_PrintQueue3_get_StartTime, py_rap_PrintQueue3_set_StartTime }, { discard_const_p(char, "UntilTime"), py_rap_PrintQueue3_get_UntilTime, py_rap_PrintQueue3_set_UntilTime }, { discard_const_p(char, "Pad"), py_rap_PrintQueue3_get_Pad, py_rap_PrintQueue3_set_Pad }, { discard_const_p(char, "SeparatorPageFilename"), py_rap_PrintQueue3_get_SeparatorPageFilename, py_rap_PrintQueue3_set_SeparatorPageFilename }, { discard_const_p(char, "SeparatorPageFilenameHigh"), py_rap_PrintQueue3_get_SeparatorPageFilenameHigh, py_rap_PrintQueue3_set_SeparatorPageFilenameHigh }, { discard_const_p(char, "PrintProcessorDllName"), py_rap_PrintQueue3_get_PrintProcessorDllName, py_rap_PrintQueue3_set_PrintProcessorDllName }, { discard_const_p(char, "PrintProcessorDllNameHigh"), py_rap_PrintQueue3_get_PrintProcessorDllNameHigh, py_rap_PrintQueue3_set_PrintProcessorDllNameHigh }, { discard_const_p(char, "PrintParameterString"), py_rap_PrintQueue3_get_PrintParameterString, py_rap_PrintQueue3_set_PrintParameterString }, { discard_const_p(char, "PrintParameterStringHigh"), py_rap_PrintQueue3_get_PrintParameterStringHigh, py_rap_PrintQueue3_set_PrintParameterStringHigh }, { discard_const_p(char, "CommentString"), py_rap_PrintQueue3_get_CommentString, py_rap_PrintQueue3_set_CommentString }, { discard_const_p(char, "CommentStringHigh"), py_rap_PrintQueue3_get_CommentStringHigh, py_rap_PrintQueue3_set_CommentStringHigh }, { discard_const_p(char, "PrintQStatus"), py_rap_PrintQueue3_get_PrintQStatus, py_rap_PrintQueue3_set_PrintQStatus }, { discard_const_p(char, "PrintJobCount"), py_rap_PrintQueue3_get_PrintJobCount, py_rap_PrintQueue3_set_PrintJobCount }, { discard_const_p(char, "Printers"), py_rap_PrintQueue3_get_Printers, py_rap_PrintQueue3_set_Printers }, { discard_const_p(char, "PrintersHigh"), py_rap_PrintQueue3_get_PrintersHigh, py_rap_PrintQueue3_set_PrintersHigh }, { discard_const_p(char, "DriverName"), py_rap_PrintQueue3_get_DriverName, py_rap_PrintQueue3_set_DriverName }, { discard_const_p(char, "DriverNameHigh"), py_rap_PrintQueue3_get_DriverNameHigh, py_rap_PrintQueue3_set_DriverNameHigh }, { discard_const_p(char, "PrintDriverData"), py_rap_PrintQueue3_get_PrintDriverData, py_rap_PrintQueue3_set_PrintDriverData }, { discard_const_p(char, "PrintDriverDataHigh"), py_rap_PrintQueue3_get_PrintDriverDataHigh, py_rap_PrintQueue3_set_PrintDriverDataHigh }, { NULL } }; static PyObject *py_rap_PrintQueue3_new(PyTypeObject *type, PyObject *args, PyObject *kwargs) { return py_talloc_new(struct rap_PrintQueue3, type); } static PyTypeObject rap_PrintQueue3_Type = { PyObject_HEAD_INIT(NULL) 0, .tp_name = "rap.PrintQueue3", .tp_basicsize = sizeof(py_talloc_Object), .tp_dealloc = py_talloc_dealloc, .tp_getset = py_rap_PrintQueue3_getsetters, .tp_repr = py_talloc_default_repr, .tp_methods = NULL, .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE, .tp_new = py_rap_PrintQueue3_new, }; static PyObject *py_rap_PrintQueue4_new(PyTypeObject *type, PyObject *args, PyObject *kwargs) { return py_talloc_new(struct rap_PrintQueue4, type); } static PyTypeObject rap_PrintQueue4_Type = { PyObject_HEAD_INIT(NULL) 0, .tp_name = "rap.PrintQueue4", .tp_basicsize = sizeof(py_talloc_Object), .tp_dealloc = py_talloc_dealloc, .tp_getset = NULL, .tp_repr = py_talloc_default_repr, .tp_methods = NULL, .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE, .tp_new = py_rap_PrintQueue4_new, }; static PyObject *py_rap_PrintQueue5_get_PrintQueueName(PyObject *obj, void *closure) { struct rap_PrintQueue5 *object = (struct rap_PrintQueue5 *)py_talloc_get_ptr(obj); PyObject *py_PrintQueueName; if (object->PrintQueueName == NULL) { py_PrintQueueName = Py_None; } else { py_PrintQueueName = PyUnicode_Decode(object->PrintQueueName, strlen(object->PrintQueueName), "utf-8", "ignore"); } return py_PrintQueueName; } static int py_rap_PrintQueue5_set_PrintQueueName(PyObject *py_obj, PyObject *value, void *closure) { struct rap_PrintQueue5 *object = (struct rap_PrintQueue5 *)py_talloc_get_ptr(py_obj); if (value == Py_None) { object->PrintQueueName = NULL; } else { object->PrintQueueName = talloc_ptrtype(py_talloc_get_mem_ctx(py_obj), object->PrintQueueName); PY_CHECK_TYPE(&PyUnicode_Type, value, return -1;); object->PrintQueueName = PyString_AsString(PyUnicode_AsEncodedString(value, "utf-8", "ignore")); } return 0; } static PyObject *py_rap_PrintQueue5_get_PrintQueueNameHigh(PyObject *obj, void *closure) { struct rap_PrintQueue5 *object = (struct rap_PrintQueue5 *)py_talloc_get_ptr(obj); PyObject *py_PrintQueueNameHigh; py_PrintQueueNameHigh = PyInt_FromLong(object->PrintQueueNameHigh); return py_PrintQueueNameHigh; } static int py_rap_PrintQueue5_set_PrintQueueNameHigh(PyObject *py_obj, PyObject *value, void *closure) { struct rap_PrintQueue5 *object = (struct rap_PrintQueue5 *)py_talloc_get_ptr(py_obj); PY_CHECK_TYPE(&PyInt_Type, value, return -1;); object->PrintQueueNameHigh = PyInt_AsLong(value); return 0; } static PyGetSetDef py_rap_PrintQueue5_getsetters[] = { { discard_const_p(char, "PrintQueueName"), py_rap_PrintQueue5_get_PrintQueueName, py_rap_PrintQueue5_set_PrintQueueName }, { discard_const_p(char, "PrintQueueNameHigh"), py_rap_PrintQueue5_get_PrintQueueNameHigh, py_rap_PrintQueue5_set_PrintQueueNameHigh }, { NULL } }; static PyObject *py_rap_PrintQueue5_new(PyTypeObject *type, PyObject *args, PyObject *kwargs) { return py_talloc_new(struct rap_PrintQueue5, type); } static PyTypeObject rap_PrintQueue5_Type = { PyObject_HEAD_INIT(NULL) 0, .tp_name = "rap.PrintQueue5", .tp_basicsize = sizeof(py_talloc_Object), .tp_dealloc = py_talloc_dealloc, .tp_getset = py_rap_PrintQueue5_getsetters, .tp_repr = py_talloc_default_repr, .tp_methods = NULL, .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE, .tp_new = py_rap_PrintQueue5_new, }; PyObject *py_import_rap_printq_info(TALLOC_CTX *mem_ctx, int level, union rap_printq_info *in) { PyObject *ret; switch (level) { case 0: ret = py_talloc_reference_ex(&rap_PrintQueue0_Type, mem_ctx, &in->info0); return ret; case 1: ret = py_talloc_reference_ex(&rap_PrintQueue1_Type, mem_ctx, &in->info1); return ret; case 2: ret = py_talloc_reference_ex(&rap_PrintQueue2_Type, mem_ctx, &in->info2); return ret; case 3: ret = py_talloc_reference_ex(&rap_PrintQueue3_Type, mem_ctx, &in->info3); return ret; case 4: ret = py_talloc_reference_ex(&rap_PrintQueue4_Type, mem_ctx, &in->info4); return ret; case 5: ret = py_talloc_reference_ex(&rap_PrintQueue5_Type, mem_ctx, &in->info5); return ret; } PyErr_SetString(PyExc_TypeError, "unknown union level"); return NULL; } union rap_printq_info *py_export_rap_printq_info(TALLOC_CTX *mem_ctx, int level, PyObject *in) { union rap_printq_info *ret = talloc_zero(mem_ctx, union rap_printq_info); switch (level) { case 0: PY_CHECK_TYPE(&rap_PrintQueue0_Type, in, talloc_free(ret); return NULL;); memcpy(&ret->info0, (struct rap_PrintQueue0 *)py_talloc_get_ptr(in), sizeof(ret->info0)); break; case 1: PY_CHECK_TYPE(&rap_PrintQueue1_Type, in, talloc_free(ret); return NULL;); memcpy(&ret->info1, (struct rap_PrintQueue1 *)py_talloc_get_ptr(in), sizeof(ret->info1)); break; case 2: PY_CHECK_TYPE(&rap_PrintQueue2_Type, in, talloc_free(ret); return NULL;); memcpy(&ret->info2, (struct rap_PrintQueue2 *)py_talloc_get_ptr(in), sizeof(ret->info2)); break; case 3: PY_CHECK_TYPE(&rap_PrintQueue3_Type, in, talloc_free(ret); return NULL;); memcpy(&ret->info3, (struct rap_PrintQueue3 *)py_talloc_get_ptr(in), sizeof(ret->info3)); break; case 4: PY_CHECK_TYPE(&rap_PrintQueue4_Type, in, talloc_free(ret); return NULL;); memcpy(&ret->info4, (struct rap_PrintQueue4 *)py_talloc_get_ptr(in), sizeof(ret->info4)); break; case 5: PY_CHECK_TYPE(&rap_PrintQueue5_Type, in, talloc_free(ret); return NULL;); memcpy(&ret->info5, (struct rap_PrintQueue5 *)py_talloc_get_ptr(in), sizeof(ret->info5)); break; default: PyErr_SetString(PyExc_TypeError, "invalid union level value"); talloc_free(ret); ret = NULL; } return ret; } static PyObject *py_rap_PrintJobInfo0_get_JobID(PyObject *obj, void *closure) { struct rap_PrintJobInfo0 *object = (struct rap_PrintJobInfo0 *)py_talloc_get_ptr(obj); PyObject *py_JobID; py_JobID = PyInt_FromLong(object->JobID); return py_JobID; } static int py_rap_PrintJobInfo0_set_JobID(PyObject *py_obj, PyObject *value, void *closure) { struct rap_PrintJobInfo0 *object = (struct rap_PrintJobInfo0 *)py_talloc_get_ptr(py_obj); PY_CHECK_TYPE(&PyInt_Type, value, return -1;); object->JobID = PyInt_AsLong(value); return 0; } static PyGetSetDef py_rap_PrintJobInfo0_getsetters[] = { { discard_const_p(char, "JobID"), py_rap_PrintJobInfo0_get_JobID, py_rap_PrintJobInfo0_set_JobID }, { NULL } }; static PyObject *py_rap_PrintJobInfo0_new(PyTypeObject *type, PyObject *args, PyObject *kwargs) { return py_talloc_new(struct rap_PrintJobInfo0, type); } static PyTypeObject rap_PrintJobInfo0_Type = { PyObject_HEAD_INIT(NULL) 0, .tp_name = "rap.PrintJobInfo0", .tp_basicsize = sizeof(py_talloc_Object), .tp_dealloc = py_talloc_dealloc, .tp_getset = py_rap_PrintJobInfo0_getsetters, .tp_repr = py_talloc_default_repr, .tp_methods = NULL, .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE, .tp_new = py_rap_PrintJobInfo0_new, }; static PyObject *py_rap_PrintJobInfo1_get_JobID(PyObject *obj, void *closure) { struct rap_PrintJobInfo1 *object = (struct rap_PrintJobInfo1 *)py_talloc_get_ptr(obj); PyObject *py_JobID; py_JobID = PyInt_FromLong(object->JobID); return py_JobID; } static int py_rap_PrintJobInfo1_set_JobID(PyObject *py_obj, PyObject *value, void *closure) { struct rap_PrintJobInfo1 *object = (struct rap_PrintJobInfo1 *)py_talloc_get_ptr(py_obj); PY_CHECK_TYPE(&PyInt_Type, value, return -1;); object->JobID = PyInt_AsLong(value); return 0; } static PyObject *py_rap_PrintJobInfo1_get_UserName(PyObject *obj, void *closure) { struct rap_PrintJobInfo1 *object = (struct rap_PrintJobInfo1 *)py_talloc_get_ptr(obj); PyObject *py_UserName; py_UserName = PyList_New(21); if (py_UserName == NULL) { return NULL; } { int UserName_cntr_0; for (UserName_cntr_0 = 0; UserName_cntr_0 < 21; UserName_cntr_0++) { PyObject *py_UserName_0; py_UserName_0 = PyInt_FromLong(object->UserName[UserName_cntr_0]); PyList_SetItem(py_UserName, UserName_cntr_0, py_UserName_0); } } return py_UserName; } static int py_rap_PrintJobInfo1_set_UserName(PyObject *py_obj, PyObject *value, void *closure) { struct rap_PrintJobInfo1 *object = (struct rap_PrintJobInfo1 *)py_talloc_get_ptr(py_obj); PY_CHECK_TYPE(&PyList_Type, value, return -1;); { int UserName_cntr_0; for (UserName_cntr_0 = 0; UserName_cntr_0 < PyList_Size(value); UserName_cntr_0++) { PY_CHECK_TYPE(&PyInt_Type, PyList_GetItem(value, UserName_cntr_0), return -1;); object->UserName[UserName_cntr_0] = PyInt_AsLong(PyList_GetItem(value, UserName_cntr_0)); } } return 0; } static PyObject *py_rap_PrintJobInfo1_get_Pad(PyObject *obj, void *closure) { struct rap_PrintJobInfo1 *object = (struct rap_PrintJobInfo1 *)py_talloc_get_ptr(obj); PyObject *py_Pad; py_Pad = PyInt_FromLong(object->Pad); return py_Pad; } static int py_rap_PrintJobInfo1_set_Pad(PyObject *py_obj, PyObject *value, void *closure) { struct rap_PrintJobInfo1 *object = (struct rap_PrintJobInfo1 *)py_talloc_get_ptr(py_obj); PY_CHECK_TYPE(&PyInt_Type, value, return -1;); object->Pad = PyInt_AsLong(value); return 0; } static PyObject *py_rap_PrintJobInfo1_get_NotifyName(PyObject *obj, void *closure) { struct rap_PrintJobInfo1 *object = (struct rap_PrintJobInfo1 *)py_talloc_get_ptr(obj); PyObject *py_NotifyName; py_NotifyName = PyList_New(16); if (py_NotifyName == NULL) { return NULL; } { int NotifyName_cntr_0; for (NotifyName_cntr_0 = 0; NotifyName_cntr_0 < 16; NotifyName_cntr_0++) { PyObject *py_NotifyName_0; py_NotifyName_0 = PyInt_FromLong(object->NotifyName[NotifyName_cntr_0]); PyList_SetItem(py_NotifyName, NotifyName_cntr_0, py_NotifyName_0); } } return py_NotifyName; } static int py_rap_PrintJobInfo1_set_NotifyName(PyObject *py_obj, PyObject *value, void *closure) { struct rap_PrintJobInfo1 *object = (struct rap_PrintJobInfo1 *)py_talloc_get_ptr(py_obj); PY_CHECK_TYPE(&PyList_Type, value, return -1;); { int NotifyName_cntr_0; for (NotifyName_cntr_0 = 0; NotifyName_cntr_0 < PyList_Size(value); NotifyName_cntr_0++) { PY_CHECK_TYPE(&PyInt_Type, PyList_GetItem(value, NotifyName_cntr_0), return -1;); object->NotifyName[NotifyName_cntr_0] = PyInt_AsLong(PyList_GetItem(value, NotifyName_cntr_0)); } } return 0; } static PyObject *py_rap_PrintJobInfo1_get_DataType(PyObject *obj, void *closure) { struct rap_PrintJobInfo1 *object = (struct rap_PrintJobInfo1 *)py_talloc_get_ptr(obj); PyObject *py_DataType; py_DataType = PyList_New(10); if (py_DataType == NULL) { return NULL; } { int DataType_cntr_0; for (DataType_cntr_0 = 0; DataType_cntr_0 < 10; DataType_cntr_0++) { PyObject *py_DataType_0; py_DataType_0 = PyInt_FromLong(object->DataType[DataType_cntr_0]); PyList_SetItem(py_DataType, DataType_cntr_0, py_DataType_0); } } return py_DataType; } static int py_rap_PrintJobInfo1_set_DataType(PyObject *py_obj, PyObject *value, void *closure) { struct rap_PrintJobInfo1 *object = (struct rap_PrintJobInfo1 *)py_talloc_get_ptr(py_obj); PY_CHECK_TYPE(&PyList_Type, value, return -1;); { int DataType_cntr_0; for (DataType_cntr_0 = 0; DataType_cntr_0 < PyList_Size(value); DataType_cntr_0++) { PY_CHECK_TYPE(&PyInt_Type, PyList_GetItem(value, DataType_cntr_0), return -1;); object->DataType[DataType_cntr_0] = PyInt_AsLong(PyList_GetItem(value, DataType_cntr_0)); } } return 0; } static PyObject *py_rap_PrintJobInfo1_get_PrintParameterString(PyObject *obj, void *closure) { struct rap_PrintJobInfo1 *object = (struct rap_PrintJobInfo1 *)py_talloc_get_ptr(obj); PyObject *py_PrintParameterString; if (object->PrintParameterString == NULL) { py_PrintParameterString = Py_None; } else { py_PrintParameterString = PyUnicode_Decode(object->PrintParameterString, strlen(object->PrintParameterString), "utf-8", "ignore"); } return py_PrintParameterString; } static int py_rap_PrintJobInfo1_set_PrintParameterString(PyObject *py_obj, PyObject *value, void *closure) { struct rap_PrintJobInfo1 *object = (struct rap_PrintJobInfo1 *)py_talloc_get_ptr(py_obj); if (value == Py_None) { object->PrintParameterString = NULL; } else { object->PrintParameterString = talloc_ptrtype(py_talloc_get_mem_ctx(py_obj), object->PrintParameterString); PY_CHECK_TYPE(&PyUnicode_Type, value, return -1;); object->PrintParameterString = PyString_AsString(PyUnicode_AsEncodedString(value, "utf-8", "ignore")); } return 0; } static PyObject *py_rap_PrintJobInfo1_get_PrintParameterStringHigh(PyObject *obj, void *closure) { struct rap_PrintJobInfo1 *object = (struct rap_PrintJobInfo1 *)py_talloc_get_ptr(obj); PyObject *py_PrintParameterStringHigh; py_PrintParameterStringHigh = PyInt_FromLong(object->PrintParameterStringHigh); return py_PrintParameterStringHigh; } static int py_rap_PrintJobInfo1_set_PrintParameterStringHigh(PyObject *py_obj, PyObject *value, void *closure) { struct rap_PrintJobInfo1 *object = (struct rap_PrintJobInfo1 *)py_talloc_get_ptr(py_obj); PY_CHECK_TYPE(&PyInt_Type, value, return -1;); object->PrintParameterStringHigh = PyInt_AsLong(value); return 0; } static PyObject *py_rap_PrintJobInfo1_get_JobPosition(PyObject *obj, void *closure) { struct rap_PrintJobInfo1 *object = (struct rap_PrintJobInfo1 *)py_talloc_get_ptr(obj); PyObject *py_JobPosition; py_JobPosition = PyInt_FromLong(object->JobPosition); return py_JobPosition; } static int py_rap_PrintJobInfo1_set_JobPosition(PyObject *py_obj, PyObject *value, void *closure) { struct rap_PrintJobInfo1 *object = (struct rap_PrintJobInfo1 *)py_talloc_get_ptr(py_obj); PY_CHECK_TYPE(&PyInt_Type, value, return -1;); object->JobPosition = PyInt_AsLong(value); return 0; } static PyObject *py_rap_PrintJobInfo1_get_JobStatus(PyObject *obj, void *closure) { struct rap_PrintJobInfo1 *object = (struct rap_PrintJobInfo1 *)py_talloc_get_ptr(obj); PyObject *py_JobStatus; py_JobStatus = PyInt_FromLong(object->JobStatus); return py_JobStatus; } static int py_rap_PrintJobInfo1_set_JobStatus(PyObject *py_obj, PyObject *value, void *closure) { struct rap_PrintJobInfo1 *object = (struct rap_PrintJobInfo1 *)py_talloc_get_ptr(py_obj); PY_CHECK_TYPE(&PyInt_Type, value, return -1;); object->JobStatus = PyInt_AsLong(value); return 0; } static PyObject *py_rap_PrintJobInfo1_get_JobStatusString(PyObject *obj, void *closure) { struct rap_PrintJobInfo1 *object = (struct rap_PrintJobInfo1 *)py_talloc_get_ptr(obj); PyObject *py_JobStatusString; if (object->JobStatusString == NULL) { py_JobStatusString = Py_None; } else { py_JobStatusString = PyUnicode_Decode(object->JobStatusString, strlen(object->JobStatusString), "utf-8", "ignore"); } return py_JobStatusString; } static int py_rap_PrintJobInfo1_set_JobStatusString(PyObject *py_obj, PyObject *value, void *closure) { struct rap_PrintJobInfo1 *object = (struct rap_PrintJobInfo1 *)py_talloc_get_ptr(py_obj); if (value == Py_None) { object->JobStatusString = NULL; } else { object->JobStatusString = talloc_ptrtype(py_talloc_get_mem_ctx(py_obj), object->JobStatusString); PY_CHECK_TYPE(&PyUnicode_Type, value, return -1;); object->JobStatusString = PyString_AsString(PyUnicode_AsEncodedString(value, "utf-8", "ignore")); } return 0; } static PyObject *py_rap_PrintJobInfo1_get_JobStatusStringHigh(PyObject *obj, void *closure) { struct rap_PrintJobInfo1 *object = (struct rap_PrintJobInfo1 *)py_talloc_get_ptr(obj); PyObject *py_JobStatusStringHigh; py_JobStatusStringHigh = PyInt_FromLong(object->JobStatusStringHigh); return py_JobStatusStringHigh; } static int py_rap_PrintJobInfo1_set_JobStatusStringHigh(PyObject *py_obj, PyObject *value, void *closure) { struct rap_PrintJobInfo1 *object = (struct rap_PrintJobInfo1 *)py_talloc_get_ptr(py_obj); PY_CHECK_TYPE(&PyInt_Type, value, return -1;); object->JobStatusStringHigh = PyInt_AsLong(value); return 0; } static PyObject *py_rap_PrintJobInfo1_get_TimeSubmitted(PyObject *obj, void *closure) { struct rap_PrintJobInfo1 *object = (struct rap_PrintJobInfo1 *)py_talloc_get_ptr(obj); PyObject *py_TimeSubmitted; py_TimeSubmitted = PyInt_FromLong(object->TimeSubmitted); return py_TimeSubmitted; } static int py_rap_PrintJobInfo1_set_TimeSubmitted(PyObject *py_obj, PyObject *value, void *closure) { struct rap_PrintJobInfo1 *object = (struct rap_PrintJobInfo1 *)py_talloc_get_ptr(py_obj); PY_CHECK_TYPE(&PyInt_Type, value, return -1;); object->TimeSubmitted = PyInt_AsLong(value); return 0; } static PyObject *py_rap_PrintJobInfo1_get_JobSize(PyObject *obj, void *closure) { struct rap_PrintJobInfo1 *object = (struct rap_PrintJobInfo1 *)py_talloc_get_ptr(obj); PyObject *py_JobSize; py_JobSize = PyInt_FromLong(object->JobSize); return py_JobSize; } static int py_rap_PrintJobInfo1_set_JobSize(PyObject *py_obj, PyObject *value, void *closure) { struct rap_PrintJobInfo1 *object = (struct rap_PrintJobInfo1 *)py_talloc_get_ptr(py_obj); PY_CHECK_TYPE(&PyInt_Type, value, return -1;); object->JobSize = PyInt_AsLong(value); return 0; } static PyObject *py_rap_PrintJobInfo1_get_JobCommentString(PyObject *obj, void *closure) { struct rap_PrintJobInfo1 *object = (struct rap_PrintJobInfo1 *)py_talloc_get_ptr(obj); PyObject *py_JobCommentString; if (object->JobCommentString == NULL) { py_JobCommentString = Py_None; } else { py_JobCommentString = PyUnicode_Decode(object->JobCommentString, strlen(object->JobCommentString), "utf-8", "ignore"); } return py_JobCommentString; } static int py_rap_PrintJobInfo1_set_JobCommentString(PyObject *py_obj, PyObject *value, void *closure) { struct rap_PrintJobInfo1 *object = (struct rap_PrintJobInfo1 *)py_talloc_get_ptr(py_obj); if (value == Py_None) { object->JobCommentString = NULL; } else { object->JobCommentString = talloc_ptrtype(py_talloc_get_mem_ctx(py_obj), object->JobCommentString); PY_CHECK_TYPE(&PyUnicode_Type, value, return -1;); object->JobCommentString = PyString_AsString(PyUnicode_AsEncodedString(value, "utf-8", "ignore")); } return 0; } static PyObject *py_rap_PrintJobInfo1_get_JobCommentStringHigh(PyObject *obj, void *closure) { struct rap_PrintJobInfo1 *object = (struct rap_PrintJobInfo1 *)py_talloc_get_ptr(obj); PyObject *py_JobCommentStringHigh; py_JobCommentStringHigh = PyInt_FromLong(object->JobCommentStringHigh); return py_JobCommentStringHigh; } static int py_rap_PrintJobInfo1_set_JobCommentStringHigh(PyObject *py_obj, PyObject *value, void *closure) { struct rap_PrintJobInfo1 *object = (struct rap_PrintJobInfo1 *)py_talloc_get_ptr(py_obj); PY_CHECK_TYPE(&PyInt_Type, value, return -1;); object->JobCommentStringHigh = PyInt_AsLong(value); return 0; } static PyGetSetDef py_rap_PrintJobInfo1_getsetters[] = { { discard_const_p(char, "JobID"), py_rap_PrintJobInfo1_get_JobID, py_rap_PrintJobInfo1_set_JobID }, { discard_const_p(char, "UserName"), py_rap_PrintJobInfo1_get_UserName, py_rap_PrintJobInfo1_set_UserName }, { discard_const_p(char, "Pad"), py_rap_PrintJobInfo1_get_Pad, py_rap_PrintJobInfo1_set_Pad }, { discard_const_p(char, "NotifyName"), py_rap_PrintJobInfo1_get_NotifyName, py_rap_PrintJobInfo1_set_NotifyName }, { discard_const_p(char, "DataType"), py_rap_PrintJobInfo1_get_DataType, py_rap_PrintJobInfo1_set_DataType }, { discard_const_p(char, "PrintParameterString"), py_rap_PrintJobInfo1_get_PrintParameterString, py_rap_PrintJobInfo1_set_PrintParameterString }, { discard_const_p(char, "PrintParameterStringHigh"), py_rap_PrintJobInfo1_get_PrintParameterStringHigh, py_rap_PrintJobInfo1_set_PrintParameterStringHigh }, { discard_const_p(char, "JobPosition"), py_rap_PrintJobInfo1_get_JobPosition, py_rap_PrintJobInfo1_set_JobPosition }, { discard_const_p(char, "JobStatus"), py_rap_PrintJobInfo1_get_JobStatus, py_rap_PrintJobInfo1_set_JobStatus }, { discard_const_p(char, "JobStatusString"), py_rap_PrintJobInfo1_get_JobStatusString, py_rap_PrintJobInfo1_set_JobStatusString }, { discard_const_p(char, "JobStatusStringHigh"), py_rap_PrintJobInfo1_get_JobStatusStringHigh, py_rap_PrintJobInfo1_set_JobStatusStringHigh }, { discard_const_p(char, "TimeSubmitted"), py_rap_PrintJobInfo1_get_TimeSubmitted, py_rap_PrintJobInfo1_set_TimeSubmitted }, { discard_const_p(char, "JobSize"), py_rap_PrintJobInfo1_get_JobSize, py_rap_PrintJobInfo1_set_JobSize }, { discard_const_p(char, "JobCommentString"), py_rap_PrintJobInfo1_get_JobCommentString, py_rap_PrintJobInfo1_set_JobCommentString }, { discard_const_p(char, "JobCommentStringHigh"), py_rap_PrintJobInfo1_get_JobCommentStringHigh, py_rap_PrintJobInfo1_set_JobCommentStringHigh }, { NULL } }; static PyObject *py_rap_PrintJobInfo1_new(PyTypeObject *type, PyObject *args, PyObject *kwargs) { return py_talloc_new(struct rap_PrintJobInfo1, type); } static PyTypeObject rap_PrintJobInfo1_Type = { PyObject_HEAD_INIT(NULL) 0, .tp_name = "rap.PrintJobInfo1", .tp_basicsize = sizeof(py_talloc_Object), .tp_dealloc = py_talloc_dealloc, .tp_getset = py_rap_PrintJobInfo1_getsetters, .tp_repr = py_talloc_default_repr, .tp_methods = NULL, .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE, .tp_new = py_rap_PrintJobInfo1_new, }; static PyObject *py_rap_PrintJobInfo2_get_JobID(PyObject *obj, void *closure) { struct rap_PrintJobInfo2 *object = (struct rap_PrintJobInfo2 *)py_talloc_get_ptr(obj); PyObject *py_JobID; py_JobID = PyInt_FromLong(object->JobID); return py_JobID; } static int py_rap_PrintJobInfo2_set_JobID(PyObject *py_obj, PyObject *value, void *closure) { struct rap_PrintJobInfo2 *object = (struct rap_PrintJobInfo2 *)py_talloc_get_ptr(py_obj); PY_CHECK_TYPE(&PyInt_Type, value, return -1;); object->JobID = PyInt_AsLong(value); return 0; } static PyObject *py_rap_PrintJobInfo2_get_Priority(PyObject *obj, void *closure) { struct rap_PrintJobInfo2 *object = (struct rap_PrintJobInfo2 *)py_talloc_get_ptr(obj); PyObject *py_Priority; py_Priority = PyInt_FromLong(object->Priority); return py_Priority; } static int py_rap_PrintJobInfo2_set_Priority(PyObject *py_obj, PyObject *value, void *closure) { struct rap_PrintJobInfo2 *object = (struct rap_PrintJobInfo2 *)py_talloc_get_ptr(py_obj); PY_CHECK_TYPE(&PyInt_Type, value, return -1;); object->Priority = PyInt_AsLong(value); return 0; } static PyObject *py_rap_PrintJobInfo2_get_UserName(PyObject *obj, void *closure) { struct rap_PrintJobInfo2 *object = (struct rap_PrintJobInfo2 *)py_talloc_get_ptr(obj); PyObject *py_UserName; if (object->UserName == NULL) { py_UserName = Py_None; } else { py_UserName = PyUnicode_Decode(object->UserName, strlen(object->UserName), "utf-8", "ignore"); } return py_UserName; } static int py_rap_PrintJobInfo2_set_UserName(PyObject *py_obj, PyObject *value, void *closure) { struct rap_PrintJobInfo2 *object = (struct rap_PrintJobInfo2 *)py_talloc_get_ptr(py_obj); if (value == Py_None) { object->UserName = NULL; } else { object->UserName = talloc_ptrtype(py_talloc_get_mem_ctx(py_obj), object->UserName); PY_CHECK_TYPE(&PyUnicode_Type, value, return -1;); object->UserName = PyString_AsString(PyUnicode_AsEncodedString(value, "utf-8", "ignore")); } return 0; } static PyObject *py_rap_PrintJobInfo2_get_UserNameHigh(PyObject *obj, void *closure) { struct rap_PrintJobInfo2 *object = (struct rap_PrintJobInfo2 *)py_talloc_get_ptr(obj); PyObject *py_UserNameHigh; py_UserNameHigh = PyInt_FromLong(object->UserNameHigh); return py_UserNameHigh; } static int py_rap_PrintJobInfo2_set_UserNameHigh(PyObject *py_obj, PyObject *value, void *closure) { struct rap_PrintJobInfo2 *object = (struct rap_PrintJobInfo2 *)py_talloc_get_ptr(py_obj); PY_CHECK_TYPE(&PyInt_Type, value, return -1;); object->UserNameHigh = PyInt_AsLong(value); return 0; } static PyObject *py_rap_PrintJobInfo2_get_JobPosition(PyObject *obj, void *closure) { struct rap_PrintJobInfo2 *object = (struct rap_PrintJobInfo2 *)py_talloc_get_ptr(obj); PyObject *py_JobPosition; py_JobPosition = PyInt_FromLong(object->JobPosition); return py_JobPosition; } static int py_rap_PrintJobInfo2_set_JobPosition(PyObject *py_obj, PyObject *value, void *closure) { struct rap_PrintJobInfo2 *object = (struct rap_PrintJobInfo2 *)py_talloc_get_ptr(py_obj); PY_CHECK_TYPE(&PyInt_Type, value, return -1;); object->JobPosition = PyInt_AsLong(value); return 0; } static PyObject *py_rap_PrintJobInfo2_get_JobStatus(PyObject *obj, void *closure) { struct rap_PrintJobInfo2 *object = (struct rap_PrintJobInfo2 *)py_talloc_get_ptr(obj); PyObject *py_JobStatus; py_JobStatus = PyInt_FromLong(object->JobStatus); return py_JobStatus; } static int py_rap_PrintJobInfo2_set_JobStatus(PyObject *py_obj, PyObject *value, void *closure) { struct rap_PrintJobInfo2 *object = (struct rap_PrintJobInfo2 *)py_talloc_get_ptr(py_obj); PY_CHECK_TYPE(&PyInt_Type, value, return -1;); object->JobStatus = PyInt_AsLong(value); return 0; } static PyObject *py_rap_PrintJobInfo2_get_TimeSubmitted(PyObject *obj, void *closure) { struct rap_PrintJobInfo2 *object = (struct rap_PrintJobInfo2 *)py_talloc_get_ptr(obj); PyObject *py_TimeSubmitted; py_TimeSubmitted = PyInt_FromLong(object->TimeSubmitted); return py_TimeSubmitted; } static int py_rap_PrintJobInfo2_set_TimeSubmitted(PyObject *py_obj, PyObject *value, void *closure) { struct rap_PrintJobInfo2 *object = (struct rap_PrintJobInfo2 *)py_talloc_get_ptr(py_obj); PY_CHECK_TYPE(&PyInt_Type, value, return -1;); object->TimeSubmitted = PyInt_AsLong(value); return 0; } static PyObject *py_rap_PrintJobInfo2_get_JobSize(PyObject *obj, void *closure) { struct rap_PrintJobInfo2 *object = (struct rap_PrintJobInfo2 *)py_talloc_get_ptr(obj); PyObject *py_JobSize; py_JobSize = PyInt_FromLong(object->JobSize); return py_JobSize; } static int py_rap_PrintJobInfo2_set_JobSize(PyObject *py_obj, PyObject *value, void *closure) { struct rap_PrintJobInfo2 *object = (struct rap_PrintJobInfo2 *)py_talloc_get_ptr(py_obj); PY_CHECK_TYPE(&PyInt_Type, value, return -1;); object->JobSize = PyInt_AsLong(value); return 0; } static PyObject *py_rap_PrintJobInfo2_get_JobCommentString(PyObject *obj, void *closure) { struct rap_PrintJobInfo2 *object = (struct rap_PrintJobInfo2 *)py_talloc_get_ptr(obj); PyObject *py_JobCommentString; if (object->JobCommentString == NULL) { py_JobCommentString = Py_None; } else { py_JobCommentString = PyUnicode_Decode(object->JobCommentString, strlen(object->JobCommentString), "utf-8", "ignore"); } return py_JobCommentString; } static int py_rap_PrintJobInfo2_set_JobCommentString(PyObject *py_obj, PyObject *value, void *closure) { struct rap_PrintJobInfo2 *object = (struct rap_PrintJobInfo2 *)py_talloc_get_ptr(py_obj); if (value == Py_None) { object->JobCommentString = NULL; } else { object->JobCommentString = talloc_ptrtype(py_talloc_get_mem_ctx(py_obj), object->JobCommentString); PY_CHECK_TYPE(&PyUnicode_Type, value, return -1;); object->JobCommentString = PyString_AsString(PyUnicode_AsEncodedString(value, "utf-8", "ignore")); } return 0; } static PyObject *py_rap_PrintJobInfo2_get_JobCommentStringHigh(PyObject *obj, void *closure) { struct rap_PrintJobInfo2 *object = (struct rap_PrintJobInfo2 *)py_talloc_get_ptr(obj); PyObject *py_JobCommentStringHigh; py_JobCommentStringHigh = PyInt_FromLong(object->JobCommentStringHigh); return py_JobCommentStringHigh; } static int py_rap_PrintJobInfo2_set_JobCommentStringHigh(PyObject *py_obj, PyObject *value, void *closure) { struct rap_PrintJobInfo2 *object = (struct rap_PrintJobInfo2 *)py_talloc_get_ptr(py_obj); PY_CHECK_TYPE(&PyInt_Type, value, return -1;); object->JobCommentStringHigh = PyInt_AsLong(value); return 0; } static PyObject *py_rap_PrintJobInfo2_get_DocumentName(PyObject *obj, void *closure) { struct rap_PrintJobInfo2 *object = (struct rap_PrintJobInfo2 *)py_talloc_get_ptr(obj); PyObject *py_DocumentName; if (object->DocumentName == NULL) { py_DocumentName = Py_None; } else { py_DocumentName = PyUnicode_Decode(object->DocumentName, strlen(object->DocumentName), "utf-8", "ignore"); } return py_DocumentName; } static int py_rap_PrintJobInfo2_set_DocumentName(PyObject *py_obj, PyObject *value, void *closure) { struct rap_PrintJobInfo2 *object = (struct rap_PrintJobInfo2 *)py_talloc_get_ptr(py_obj); if (value == Py_None) { object->DocumentName = NULL; } else { object->DocumentName = talloc_ptrtype(py_talloc_get_mem_ctx(py_obj), object->DocumentName); PY_CHECK_TYPE(&PyUnicode_Type, value, return -1;); object->DocumentName = PyString_AsString(PyUnicode_AsEncodedString(value, "utf-8", "ignore")); } return 0; } static PyObject *py_rap_PrintJobInfo2_get_DocumentNameHigh(PyObject *obj, void *closure) { struct rap_PrintJobInfo2 *object = (struct rap_PrintJobInfo2 *)py_talloc_get_ptr(obj); PyObject *py_DocumentNameHigh; py_DocumentNameHigh = PyInt_FromLong(object->DocumentNameHigh); return py_DocumentNameHigh; } static int py_rap_PrintJobInfo2_set_DocumentNameHigh(PyObject *py_obj, PyObject *value, void *closure) { struct rap_PrintJobInfo2 *object = (struct rap_PrintJobInfo2 *)py_talloc_get_ptr(py_obj); PY_CHECK_TYPE(&PyInt_Type, value, return -1;); object->DocumentNameHigh = PyInt_AsLong(value); return 0; } static PyGetSetDef py_rap_PrintJobInfo2_getsetters[] = { { discard_const_p(char, "JobID"), py_rap_PrintJobInfo2_get_JobID, py_rap_PrintJobInfo2_set_JobID }, { discard_const_p(char, "Priority"), py_rap_PrintJobInfo2_get_Priority, py_rap_PrintJobInfo2_set_Priority }, { discard_const_p(char, "UserName"), py_rap_PrintJobInfo2_get_UserName, py_rap_PrintJobInfo2_set_UserName }, { discard_const_p(char, "UserNameHigh"), py_rap_PrintJobInfo2_get_UserNameHigh, py_rap_PrintJobInfo2_set_UserNameHigh }, { discard_const_p(char, "JobPosition"), py_rap_PrintJobInfo2_get_JobPosition, py_rap_PrintJobInfo2_set_JobPosition }, { discard_const_p(char, "JobStatus"), py_rap_PrintJobInfo2_get_JobStatus, py_rap_PrintJobInfo2_set_JobStatus }, { discard_const_p(char, "TimeSubmitted"), py_rap_PrintJobInfo2_get_TimeSubmitted, py_rap_PrintJobInfo2_set_TimeSubmitted }, { discard_const_p(char, "JobSize"), py_rap_PrintJobInfo2_get_JobSize, py_rap_PrintJobInfo2_set_JobSize }, { discard_const_p(char, "JobCommentString"), py_rap_PrintJobInfo2_get_JobCommentString, py_rap_PrintJobInfo2_set_JobCommentString }, { discard_const_p(char, "JobCommentStringHigh"), py_rap_PrintJobInfo2_get_JobCommentStringHigh, py_rap_PrintJobInfo2_set_JobCommentStringHigh }, { discard_const_p(char, "DocumentName"), py_rap_PrintJobInfo2_get_DocumentName, py_rap_PrintJobInfo2_set_DocumentName }, { discard_const_p(char, "DocumentNameHigh"), py_rap_PrintJobInfo2_get_DocumentNameHigh, py_rap_PrintJobInfo2_set_DocumentNameHigh }, { NULL } }; static PyObject *py_rap_PrintJobInfo2_new(PyTypeObject *type, PyObject *args, PyObject *kwargs) { return py_talloc_new(struct rap_PrintJobInfo2, type); } static PyTypeObject rap_PrintJobInfo2_Type = { PyObject_HEAD_INIT(NULL) 0, .tp_name = "rap.PrintJobInfo2", .tp_basicsize = sizeof(py_talloc_Object), .tp_dealloc = py_talloc_dealloc, .tp_getset = py_rap_PrintJobInfo2_getsetters, .tp_repr = py_talloc_default_repr, .tp_methods = NULL, .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE, .tp_new = py_rap_PrintJobInfo2_new, }; static PyObject *py_rap_PrintJobInfo3_get_JobID(PyObject *obj, void *closure) { struct rap_PrintJobInfo3 *object = (struct rap_PrintJobInfo3 *)py_talloc_get_ptr(obj); PyObject *py_JobID; py_JobID = PyInt_FromLong(object->JobID); return py_JobID; } static int py_rap_PrintJobInfo3_set_JobID(PyObject *py_obj, PyObject *value, void *closure) { struct rap_PrintJobInfo3 *object = (struct rap_PrintJobInfo3 *)py_talloc_get_ptr(py_obj); PY_CHECK_TYPE(&PyInt_Type, value, return -1;); object->JobID = PyInt_AsLong(value); return 0; } static PyObject *py_rap_PrintJobInfo3_get_Priority(PyObject *obj, void *closure) { struct rap_PrintJobInfo3 *object = (struct rap_PrintJobInfo3 *)py_talloc_get_ptr(obj); PyObject *py_Priority; py_Priority = PyInt_FromLong(object->Priority); return py_Priority; } static int py_rap_PrintJobInfo3_set_Priority(PyObject *py_obj, PyObject *value, void *closure) { struct rap_PrintJobInfo3 *object = (struct rap_PrintJobInfo3 *)py_talloc_get_ptr(py_obj); PY_CHECK_TYPE(&PyInt_Type, value, return -1;); object->Priority = PyInt_AsLong(value); return 0; } static PyObject *py_rap_PrintJobInfo3_get_UserName(PyObject *obj, void *closure) { struct rap_PrintJobInfo3 *object = (struct rap_PrintJobInfo3 *)py_talloc_get_ptr(obj); PyObject *py_UserName; if (object->UserName == NULL) { py_UserName = Py_None; } else { py_UserName = PyUnicode_Decode(object->UserName, strlen(object->UserName), "utf-8", "ignore"); } return py_UserName; } static int py_rap_PrintJobInfo3_set_UserName(PyObject *py_obj, PyObject *value, void *closure) { struct rap_PrintJobInfo3 *object = (struct rap_PrintJobInfo3 *)py_talloc_get_ptr(py_obj); if (value == Py_None) { object->UserName = NULL; } else { object->UserName = talloc_ptrtype(py_talloc_get_mem_ctx(py_obj), object->UserName); PY_CHECK_TYPE(&PyUnicode_Type, value, return -1;); object->UserName = PyString_AsString(PyUnicode_AsEncodedString(value, "utf-8", "ignore")); } return 0; } static PyObject *py_rap_PrintJobInfo3_get_UserNameHigh(PyObject *obj, void *closure) { struct rap_PrintJobInfo3 *object = (struct rap_PrintJobInfo3 *)py_talloc_get_ptr(obj); PyObject *py_UserNameHigh; py_UserNameHigh = PyInt_FromLong(object->UserNameHigh); return py_UserNameHigh; } static int py_rap_PrintJobInfo3_set_UserNameHigh(PyObject *py_obj, PyObject *value, void *closure) { struct rap_PrintJobInfo3 *object = (struct rap_PrintJobInfo3 *)py_talloc_get_ptr(py_obj); PY_CHECK_TYPE(&PyInt_Type, value, return -1;); object->UserNameHigh = PyInt_AsLong(value); return 0; } static PyObject *py_rap_PrintJobInfo3_get_JobPosition(PyObject *obj, void *closure) { struct rap_PrintJobInfo3 *object = (struct rap_PrintJobInfo3 *)py_talloc_get_ptr(obj); PyObject *py_JobPosition; py_JobPosition = PyInt_FromLong(object->JobPosition); return py_JobPosition; } static int py_rap_PrintJobInfo3_set_JobPosition(PyObject *py_obj, PyObject *value, void *closure) { struct rap_PrintJobInfo3 *object = (struct rap_PrintJobInfo3 *)py_talloc_get_ptr(py_obj); PY_CHECK_TYPE(&PyInt_Type, value, return -1;); object->JobPosition = PyInt_AsLong(value); return 0; } static PyObject *py_rap_PrintJobInfo3_get_JobStatus(PyObject *obj, void *closure) { struct rap_PrintJobInfo3 *object = (struct rap_PrintJobInfo3 *)py_talloc_get_ptr(obj); PyObject *py_JobStatus; py_JobStatus = PyInt_FromLong(object->JobStatus); return py_JobStatus; } static int py_rap_PrintJobInfo3_set_JobStatus(PyObject *py_obj, PyObject *value, void *closure) { struct rap_PrintJobInfo3 *object = (struct rap_PrintJobInfo3 *)py_talloc_get_ptr(py_obj); PY_CHECK_TYPE(&PyInt_Type, value, return -1;); object->JobStatus = PyInt_AsLong(value); return 0; } static PyObject *py_rap_PrintJobInfo3_get_TimeSubmitted(PyObject *obj, void *closure) { struct rap_PrintJobInfo3 *object = (struct rap_PrintJobInfo3 *)py_talloc_get_ptr(obj); PyObject *py_TimeSubmitted; py_TimeSubmitted = PyInt_FromLong(object->TimeSubmitted); return py_TimeSubmitted; } static int py_rap_PrintJobInfo3_set_TimeSubmitted(PyObject *py_obj, PyObject *value, void *closure) { struct rap_PrintJobInfo3 *object = (struct rap_PrintJobInfo3 *)py_talloc_get_ptr(py_obj); PY_CHECK_TYPE(&PyInt_Type, value, return -1;); object->TimeSubmitted = PyInt_AsLong(value); return 0; } static PyObject *py_rap_PrintJobInfo3_get_JobSize(PyObject *obj, void *closure) { struct rap_PrintJobInfo3 *object = (struct rap_PrintJobInfo3 *)py_talloc_get_ptr(obj); PyObject *py_JobSize; py_JobSize = PyInt_FromLong(object->JobSize); return py_JobSize; } static int py_rap_PrintJobInfo3_set_JobSize(PyObject *py_obj, PyObject *value, void *closure) { struct rap_PrintJobInfo3 *object = (struct rap_PrintJobInfo3 *)py_talloc_get_ptr(py_obj); PY_CHECK_TYPE(&PyInt_Type, value, return -1;); object->JobSize = PyInt_AsLong(value); return 0; } static PyObject *py_rap_PrintJobInfo3_get_JobCommentString(PyObject *obj, void *closure) { struct rap_PrintJobInfo3 *object = (struct rap_PrintJobInfo3 *)py_talloc_get_ptr(obj); PyObject *py_JobCommentString; if (object->JobCommentString == NULL) { py_JobCommentString = Py_None; } else { py_JobCommentString = PyUnicode_Decode(object->JobCommentString, strlen(object->JobCommentString), "utf-8", "ignore"); } return py_JobCommentString; } static int py_rap_PrintJobInfo3_set_JobCommentString(PyObject *py_obj, PyObject *value, void *closure) { struct rap_PrintJobInfo3 *object = (struct rap_PrintJobInfo3 *)py_talloc_get_ptr(py_obj); if (value == Py_None) { object->JobCommentString = NULL; } else { object->JobCommentString = talloc_ptrtype(py_talloc_get_mem_ctx(py_obj), object->JobCommentString); PY_CHECK_TYPE(&PyUnicode_Type, value, return -1;); object->JobCommentString = PyString_AsString(PyUnicode_AsEncodedString(value, "utf-8", "ignore")); } return 0; } static PyObject *py_rap_PrintJobInfo3_get_JobCommentStringHigh(PyObject *obj, void *closure) { struct rap_PrintJobInfo3 *object = (struct rap_PrintJobInfo3 *)py_talloc_get_ptr(obj); PyObject *py_JobCommentStringHigh; py_JobCommentStringHigh = PyInt_FromLong(object->JobCommentStringHigh); return py_JobCommentStringHigh; } static int py_rap_PrintJobInfo3_set_JobCommentStringHigh(PyObject *py_obj, PyObject *value, void *closure) { struct rap_PrintJobInfo3 *object = (struct rap_PrintJobInfo3 *)py_talloc_get_ptr(py_obj); PY_CHECK_TYPE(&PyInt_Type, value, return -1;); object->JobCommentStringHigh = PyInt_AsLong(value); return 0; } static PyObject *py_rap_PrintJobInfo3_get_DocumentName(PyObject *obj, void *closure) { struct rap_PrintJobInfo3 *object = (struct rap_PrintJobInfo3 *)py_talloc_get_ptr(obj); PyObject *py_DocumentName; if (object->DocumentName == NULL) { py_DocumentName = Py_None; } else { py_DocumentName = PyUnicode_Decode(object->DocumentName, strlen(object->DocumentName), "utf-8", "ignore"); } return py_DocumentName; } static int py_rap_PrintJobInfo3_set_DocumentName(PyObject *py_obj, PyObject *value, void *closure) { struct rap_PrintJobInfo3 *object = (struct rap_PrintJobInfo3 *)py_talloc_get_ptr(py_obj); if (value == Py_None) { object->DocumentName = NULL; } else { object->DocumentName = talloc_ptrtype(py_talloc_get_mem_ctx(py_obj), object->DocumentName); PY_CHECK_TYPE(&PyUnicode_Type, value, return -1;); object->DocumentName = PyString_AsString(PyUnicode_AsEncodedString(value, "utf-8", "ignore")); } return 0; } static PyObject *py_rap_PrintJobInfo3_get_DocumentNameHigh(PyObject *obj, void *closure) { struct rap_PrintJobInfo3 *object = (struct rap_PrintJobInfo3 *)py_talloc_get_ptr(obj); PyObject *py_DocumentNameHigh; py_DocumentNameHigh = PyInt_FromLong(object->DocumentNameHigh); return py_DocumentNameHigh; } static int py_rap_PrintJobInfo3_set_DocumentNameHigh(PyObject *py_obj, PyObject *value, void *closure) { struct rap_PrintJobInfo3 *object = (struct rap_PrintJobInfo3 *)py_talloc_get_ptr(py_obj); PY_CHECK_TYPE(&PyInt_Type, value, return -1;); object->DocumentNameHigh = PyInt_AsLong(value); return 0; } static PyObject *py_rap_PrintJobInfo3_get_NotifyName(PyObject *obj, void *closure) { struct rap_PrintJobInfo3 *object = (struct rap_PrintJobInfo3 *)py_talloc_get_ptr(obj); PyObject *py_NotifyName; if (object->NotifyName == NULL) { py_NotifyName = Py_None; } else { py_NotifyName = PyUnicode_Decode(object->NotifyName, strlen(object->NotifyName), "utf-8", "ignore"); } return py_NotifyName; } static int py_rap_PrintJobInfo3_set_NotifyName(PyObject *py_obj, PyObject *value, void *closure) { struct rap_PrintJobInfo3 *object = (struct rap_PrintJobInfo3 *)py_talloc_get_ptr(py_obj); if (value == Py_None) { object->NotifyName = NULL; } else { object->NotifyName = talloc_ptrtype(py_talloc_get_mem_ctx(py_obj), object->NotifyName); PY_CHECK_TYPE(&PyUnicode_Type, value, return -1;); object->NotifyName = PyString_AsString(PyUnicode_AsEncodedString(value, "utf-8", "ignore")); } return 0; } static PyObject *py_rap_PrintJobInfo3_get_NotifyNameHigh(PyObject *obj, void *closure) { struct rap_PrintJobInfo3 *object = (struct rap_PrintJobInfo3 *)py_talloc_get_ptr(obj); PyObject *py_NotifyNameHigh; py_NotifyNameHigh = PyInt_FromLong(object->NotifyNameHigh); return py_NotifyNameHigh; } static int py_rap_PrintJobInfo3_set_NotifyNameHigh(PyObject *py_obj, PyObject *value, void *closure) { struct rap_PrintJobInfo3 *object = (struct rap_PrintJobInfo3 *)py_talloc_get_ptr(py_obj); PY_CHECK_TYPE(&PyInt_Type, value, return -1;); object->NotifyNameHigh = PyInt_AsLong(value); return 0; } static PyObject *py_rap_PrintJobInfo3_get_DataType(PyObject *obj, void *closure) { struct rap_PrintJobInfo3 *object = (struct rap_PrintJobInfo3 *)py_talloc_get_ptr(obj); PyObject *py_DataType; if (object->DataType == NULL) { py_DataType = Py_None; } else { py_DataType = PyUnicode_Decode(object->DataType, strlen(object->DataType), "utf-8", "ignore"); } return py_DataType; } static int py_rap_PrintJobInfo3_set_DataType(PyObject *py_obj, PyObject *value, void *closure) { struct rap_PrintJobInfo3 *object = (struct rap_PrintJobInfo3 *)py_talloc_get_ptr(py_obj); if (value == Py_None) { object->DataType = NULL; } else { object->DataType = talloc_ptrtype(py_talloc_get_mem_ctx(py_obj), object->DataType); PY_CHECK_TYPE(&PyUnicode_Type, value, return -1;); object->DataType = PyString_AsString(PyUnicode_AsEncodedString(value, "utf-8", "ignore")); } return 0; } static PyObject *py_rap_PrintJobInfo3_get_DataTypeHigh(PyObject *obj, void *closure) { struct rap_PrintJobInfo3 *object = (struct rap_PrintJobInfo3 *)py_talloc_get_ptr(obj); PyObject *py_DataTypeHigh; py_DataTypeHigh = PyInt_FromLong(object->DataTypeHigh); return py_DataTypeHigh; } static int py_rap_PrintJobInfo3_set_DataTypeHigh(PyObject *py_obj, PyObject *value, void *closure) { struct rap_PrintJobInfo3 *object = (struct rap_PrintJobInfo3 *)py_talloc_get_ptr(py_obj); PY_CHECK_TYPE(&PyInt_Type, value, return -1;); object->DataTypeHigh = PyInt_AsLong(value); return 0; } static PyObject *py_rap_PrintJobInfo3_get_PrintParameterString(PyObject *obj, void *closure) { struct rap_PrintJobInfo3 *object = (struct rap_PrintJobInfo3 *)py_talloc_get_ptr(obj); PyObject *py_PrintParameterString; if (object->PrintParameterString == NULL) { py_PrintParameterString = Py_None; } else { py_PrintParameterString = PyUnicode_Decode(object->PrintParameterString, strlen(object->PrintParameterString), "utf-8", "ignore"); } return py_PrintParameterString; } static int py_rap_PrintJobInfo3_set_PrintParameterString(PyObject *py_obj, PyObject *value, void *closure) { struct rap_PrintJobInfo3 *object = (struct rap_PrintJobInfo3 *)py_talloc_get_ptr(py_obj); if (value == Py_None) { object->PrintParameterString = NULL; } else { object->PrintParameterString = talloc_ptrtype(py_talloc_get_mem_ctx(py_obj), object->PrintParameterString); PY_CHECK_TYPE(&PyUnicode_Type, value, return -1;); object->PrintParameterString = PyString_AsString(PyUnicode_AsEncodedString(value, "utf-8", "ignore")); } return 0; } static PyObject *py_rap_PrintJobInfo3_get_PrintParameterStringHigh(PyObject *obj, void *closure) { struct rap_PrintJobInfo3 *object = (struct rap_PrintJobInfo3 *)py_talloc_get_ptr(obj); PyObject *py_PrintParameterStringHigh; py_PrintParameterStringHigh = PyInt_FromLong(object->PrintParameterStringHigh); return py_PrintParameterStringHigh; } static int py_rap_PrintJobInfo3_set_PrintParameterStringHigh(PyObject *py_obj, PyObject *value, void *closure) { struct rap_PrintJobInfo3 *object = (struct rap_PrintJobInfo3 *)py_talloc_get_ptr(py_obj); PY_CHECK_TYPE(&PyInt_Type, value, return -1;); object->PrintParameterStringHigh = PyInt_AsLong(value); return 0; } static PyObject *py_rap_PrintJobInfo3_get_StatusString(PyObject *obj, void *closure) { struct rap_PrintJobInfo3 *object = (struct rap_PrintJobInfo3 *)py_talloc_get_ptr(obj); PyObject *py_StatusString; if (object->StatusString == NULL) { py_StatusString = Py_None; } else { py_StatusString = PyUnicode_Decode(object->StatusString, strlen(object->StatusString), "utf-8", "ignore"); } return py_StatusString; } static int py_rap_PrintJobInfo3_set_StatusString(PyObject *py_obj, PyObject *value, void *closure) { struct rap_PrintJobInfo3 *object = (struct rap_PrintJobInfo3 *)py_talloc_get_ptr(py_obj); if (value == Py_None) { object->StatusString = NULL; } else { object->StatusString = talloc_ptrtype(py_talloc_get_mem_ctx(py_obj), object->StatusString); PY_CHECK_TYPE(&PyUnicode_Type, value, return -1;); object->StatusString = PyString_AsString(PyUnicode_AsEncodedString(value, "utf-8", "ignore")); } return 0; } static PyObject *py_rap_PrintJobInfo3_get_StatusStringHigh(PyObject *obj, void *closure) { struct rap_PrintJobInfo3 *object = (struct rap_PrintJobInfo3 *)py_talloc_get_ptr(obj); PyObject *py_StatusStringHigh; py_StatusStringHigh = PyInt_FromLong(object->StatusStringHigh); return py_StatusStringHigh; } static int py_rap_PrintJobInfo3_set_StatusStringHigh(PyObject *py_obj, PyObject *value, void *closure) { struct rap_PrintJobInfo3 *object = (struct rap_PrintJobInfo3 *)py_talloc_get_ptr(py_obj); PY_CHECK_TYPE(&PyInt_Type, value, return -1;); object->StatusStringHigh = PyInt_AsLong(value); return 0; } static PyObject *py_rap_PrintJobInfo3_get_QueueName(PyObject *obj, void *closure) { struct rap_PrintJobInfo3 *object = (struct rap_PrintJobInfo3 *)py_talloc_get_ptr(obj); PyObject *py_QueueName; if (object->QueueName == NULL) { py_QueueName = Py_None; } else { py_QueueName = PyUnicode_Decode(object->QueueName, strlen(object->QueueName), "utf-8", "ignore"); } return py_QueueName; } static int py_rap_PrintJobInfo3_set_QueueName(PyObject *py_obj, PyObject *value, void *closure) { struct rap_PrintJobInfo3 *object = (struct rap_PrintJobInfo3 *)py_talloc_get_ptr(py_obj); if (value == Py_None) { object->QueueName = NULL; } else { object->QueueName = talloc_ptrtype(py_talloc_get_mem_ctx(py_obj), object->QueueName); PY_CHECK_TYPE(&PyUnicode_Type, value, return -1;); object->QueueName = PyString_AsString(PyUnicode_AsEncodedString(value, "utf-8", "ignore")); } return 0; } static PyObject *py_rap_PrintJobInfo3_get_QueueNameHigh(PyObject *obj, void *closure) { struct rap_PrintJobInfo3 *object = (struct rap_PrintJobInfo3 *)py_talloc_get_ptr(obj); PyObject *py_QueueNameHigh; py_QueueNameHigh = PyInt_FromLong(object->QueueNameHigh); return py_QueueNameHigh; } static int py_rap_PrintJobInfo3_set_QueueNameHigh(PyObject *py_obj, PyObject *value, void *closure) { struct rap_PrintJobInfo3 *object = (struct rap_PrintJobInfo3 *)py_talloc_get_ptr(py_obj); PY_CHECK_TYPE(&PyInt_Type, value, return -1;); object->QueueNameHigh = PyInt_AsLong(value); return 0; } static PyObject *py_rap_PrintJobInfo3_get_PrintProcessorName(PyObject *obj, void *closure) { struct rap_PrintJobInfo3 *object = (struct rap_PrintJobInfo3 *)py_talloc_get_ptr(obj); PyObject *py_PrintProcessorName; if (object->PrintProcessorName == NULL) { py_PrintProcessorName = Py_None; } else { py_PrintProcessorName = PyUnicode_Decode(object->PrintProcessorName, strlen(object->PrintProcessorName), "utf-8", "ignore"); } return py_PrintProcessorName; } static int py_rap_PrintJobInfo3_set_PrintProcessorName(PyObject *py_obj, PyObject *value, void *closure) { struct rap_PrintJobInfo3 *object = (struct rap_PrintJobInfo3 *)py_talloc_get_ptr(py_obj); if (value == Py_None) { object->PrintProcessorName = NULL; } else { object->PrintProcessorName = talloc_ptrtype(py_talloc_get_mem_ctx(py_obj), object->PrintProcessorName); PY_CHECK_TYPE(&PyUnicode_Type, value, return -1;); object->PrintProcessorName = PyString_AsString(PyUnicode_AsEncodedString(value, "utf-8", "ignore")); } return 0; } static PyObject *py_rap_PrintJobInfo3_get_PrintProcessorNameHigh(PyObject *obj, void *closure) { struct rap_PrintJobInfo3 *object = (struct rap_PrintJobInfo3 *)py_talloc_get_ptr(obj); PyObject *py_PrintProcessorNameHigh; py_PrintProcessorNameHigh = PyInt_FromLong(object->PrintProcessorNameHigh); return py_PrintProcessorNameHigh; } static int py_rap_PrintJobInfo3_set_PrintProcessorNameHigh(PyObject *py_obj, PyObject *value, void *closure) { struct rap_PrintJobInfo3 *object = (struct rap_PrintJobInfo3 *)py_talloc_get_ptr(py_obj); PY_CHECK_TYPE(&PyInt_Type, value, return -1;); object->PrintProcessorNameHigh = PyInt_AsLong(value); return 0; } static PyObject *py_rap_PrintJobInfo3_get_PrintProcessorParams(PyObject *obj, void *closure) { struct rap_PrintJobInfo3 *object = (struct rap_PrintJobInfo3 *)py_talloc_get_ptr(obj); PyObject *py_PrintProcessorParams; if (object->PrintProcessorParams == NULL) { py_PrintProcessorParams = Py_None; } else { py_PrintProcessorParams = PyUnicode_Decode(object->PrintProcessorParams, strlen(object->PrintProcessorParams), "utf-8", "ignore"); } return py_PrintProcessorParams; } static int py_rap_PrintJobInfo3_set_PrintProcessorParams(PyObject *py_obj, PyObject *value, void *closure) { struct rap_PrintJobInfo3 *object = (struct rap_PrintJobInfo3 *)py_talloc_get_ptr(py_obj); if (value == Py_None) { object->PrintProcessorParams = NULL; } else { object->PrintProcessorParams = talloc_ptrtype(py_talloc_get_mem_ctx(py_obj), object->PrintProcessorParams); PY_CHECK_TYPE(&PyUnicode_Type, value, return -1;); object->PrintProcessorParams = PyString_AsString(PyUnicode_AsEncodedString(value, "utf-8", "ignore")); } return 0; } static PyObject *py_rap_PrintJobInfo3_get_PrintProcessorParamsHigh(PyObject *obj, void *closure) { struct rap_PrintJobInfo3 *object = (struct rap_PrintJobInfo3 *)py_talloc_get_ptr(obj); PyObject *py_PrintProcessorParamsHigh; py_PrintProcessorParamsHigh = PyInt_FromLong(object->PrintProcessorParamsHigh); return py_PrintProcessorParamsHigh; } static int py_rap_PrintJobInfo3_set_PrintProcessorParamsHigh(PyObject *py_obj, PyObject *value, void *closure) { struct rap_PrintJobInfo3 *object = (struct rap_PrintJobInfo3 *)py_talloc_get_ptr(py_obj); PY_CHECK_TYPE(&PyInt_Type, value, return -1;); object->PrintProcessorParamsHigh = PyInt_AsLong(value); return 0; } static PyObject *py_rap_PrintJobInfo3_get_DriverName(PyObject *obj, void *closure) { struct rap_PrintJobInfo3 *object = (struct rap_PrintJobInfo3 *)py_talloc_get_ptr(obj); PyObject *py_DriverName; if (object->DriverName == NULL) { py_DriverName = Py_None; } else { py_DriverName = PyUnicode_Decode(object->DriverName, strlen(object->DriverName), "utf-8", "ignore"); } return py_DriverName; } static int py_rap_PrintJobInfo3_set_DriverName(PyObject *py_obj, PyObject *value, void *closure) { struct rap_PrintJobInfo3 *object = (struct rap_PrintJobInfo3 *)py_talloc_get_ptr(py_obj); if (value == Py_None) { object->DriverName = NULL; } else { object->DriverName = talloc_ptrtype(py_talloc_get_mem_ctx(py_obj), object->DriverName); PY_CHECK_TYPE(&PyUnicode_Type, value, return -1;); object->DriverName = PyString_AsString(PyUnicode_AsEncodedString(value, "utf-8", "ignore")); } return 0; } static PyObject *py_rap_PrintJobInfo3_get_DriverNameHigh(PyObject *obj, void *closure) { struct rap_PrintJobInfo3 *object = (struct rap_PrintJobInfo3 *)py_talloc_get_ptr(obj); PyObject *py_DriverNameHigh; py_DriverNameHigh = PyInt_FromLong(object->DriverNameHigh); return py_DriverNameHigh; } static int py_rap_PrintJobInfo3_set_DriverNameHigh(PyObject *py_obj, PyObject *value, void *closure) { struct rap_PrintJobInfo3 *object = (struct rap_PrintJobInfo3 *)py_talloc_get_ptr(py_obj); PY_CHECK_TYPE(&PyInt_Type, value, return -1;); object->DriverNameHigh = PyInt_AsLong(value); return 0; } static PyObject *py_rap_PrintJobInfo3_get_DriverDataOffset(PyObject *obj, void *closure) { struct rap_PrintJobInfo3 *object = (struct rap_PrintJobInfo3 *)py_talloc_get_ptr(obj); PyObject *py_DriverDataOffset; if (object->DriverDataOffset == NULL) { py_DriverDataOffset = Py_None; } else { py_DriverDataOffset = PyUnicode_Decode(object->DriverDataOffset, strlen(object->DriverDataOffset), "utf-8", "ignore"); } return py_DriverDataOffset; } static int py_rap_PrintJobInfo3_set_DriverDataOffset(PyObject *py_obj, PyObject *value, void *closure) { struct rap_PrintJobInfo3 *object = (struct rap_PrintJobInfo3 *)py_talloc_get_ptr(py_obj); if (value == Py_None) { object->DriverDataOffset = NULL; } else { object->DriverDataOffset = talloc_ptrtype(py_talloc_get_mem_ctx(py_obj), object->DriverDataOffset); PY_CHECK_TYPE(&PyUnicode_Type, value, return -1;); object->DriverDataOffset = PyString_AsString(PyUnicode_AsEncodedString(value, "utf-8", "ignore")); } return 0; } static PyObject *py_rap_PrintJobInfo3_get_DriverDataOffsetHigh(PyObject *obj, void *closure) { struct rap_PrintJobInfo3 *object = (struct rap_PrintJobInfo3 *)py_talloc_get_ptr(obj); PyObject *py_DriverDataOffsetHigh; py_DriverDataOffsetHigh = PyInt_FromLong(object->DriverDataOffsetHigh); return py_DriverDataOffsetHigh; } static int py_rap_PrintJobInfo3_set_DriverDataOffsetHigh(PyObject *py_obj, PyObject *value, void *closure) { struct rap_PrintJobInfo3 *object = (struct rap_PrintJobInfo3 *)py_talloc_get_ptr(py_obj); PY_CHECK_TYPE(&PyInt_Type, value, return -1;); object->DriverDataOffsetHigh = PyInt_AsLong(value); return 0; } static PyObject *py_rap_PrintJobInfo3_get_PrinterNameOffset(PyObject *obj, void *closure) { struct rap_PrintJobInfo3 *object = (struct rap_PrintJobInfo3 *)py_talloc_get_ptr(obj); PyObject *py_PrinterNameOffset; if (object->PrinterNameOffset == NULL) { py_PrinterNameOffset = Py_None; } else { py_PrinterNameOffset = PyUnicode_Decode(object->PrinterNameOffset, strlen(object->PrinterNameOffset), "utf-8", "ignore"); } return py_PrinterNameOffset; } static int py_rap_PrintJobInfo3_set_PrinterNameOffset(PyObject *py_obj, PyObject *value, void *closure) { struct rap_PrintJobInfo3 *object = (struct rap_PrintJobInfo3 *)py_talloc_get_ptr(py_obj); if (value == Py_None) { object->PrinterNameOffset = NULL; } else { object->PrinterNameOffset = talloc_ptrtype(py_talloc_get_mem_ctx(py_obj), object->PrinterNameOffset); PY_CHECK_TYPE(&PyUnicode_Type, value, return -1;); object->PrinterNameOffset = PyString_AsString(PyUnicode_AsEncodedString(value, "utf-8", "ignore")); } return 0; } static PyObject *py_rap_PrintJobInfo3_get_PrinterNameOffsetHigh(PyObject *obj, void *closure) { struct rap_PrintJobInfo3 *object = (struct rap_PrintJobInfo3 *)py_talloc_get_ptr(obj); PyObject *py_PrinterNameOffsetHigh; py_PrinterNameOffsetHigh = PyInt_FromLong(object->PrinterNameOffsetHigh); return py_PrinterNameOffsetHigh; } static int py_rap_PrintJobInfo3_set_PrinterNameOffsetHigh(PyObject *py_obj, PyObject *value, void *closure) { struct rap_PrintJobInfo3 *object = (struct rap_PrintJobInfo3 *)py_talloc_get_ptr(py_obj); PY_CHECK_TYPE(&PyInt_Type, value, return -1;); object->PrinterNameOffsetHigh = PyInt_AsLong(value); return 0; } static PyGetSetDef py_rap_PrintJobInfo3_getsetters[] = { { discard_const_p(char, "JobID"), py_rap_PrintJobInfo3_get_JobID, py_rap_PrintJobInfo3_set_JobID }, { discard_const_p(char, "Priority"), py_rap_PrintJobInfo3_get_Priority, py_rap_PrintJobInfo3_set_Priority }, { discard_const_p(char, "UserName"), py_rap_PrintJobInfo3_get_UserName, py_rap_PrintJobInfo3_set_UserName }, { discard_const_p(char, "UserNameHigh"), py_rap_PrintJobInfo3_get_UserNameHigh, py_rap_PrintJobInfo3_set_UserNameHigh }, { discard_const_p(char, "JobPosition"), py_rap_PrintJobInfo3_get_JobPosition, py_rap_PrintJobInfo3_set_JobPosition }, { discard_const_p(char, "JobStatus"), py_rap_PrintJobInfo3_get_JobStatus, py_rap_PrintJobInfo3_set_JobStatus }, { discard_const_p(char, "TimeSubmitted"), py_rap_PrintJobInfo3_get_TimeSubmitted, py_rap_PrintJobInfo3_set_TimeSubmitted }, { discard_const_p(char, "JobSize"), py_rap_PrintJobInfo3_get_JobSize, py_rap_PrintJobInfo3_set_JobSize }, { discard_const_p(char, "JobCommentString"), py_rap_PrintJobInfo3_get_JobCommentString, py_rap_PrintJobInfo3_set_JobCommentString }, { discard_const_p(char, "JobCommentStringHigh"), py_rap_PrintJobInfo3_get_JobCommentStringHigh, py_rap_PrintJobInfo3_set_JobCommentStringHigh }, { discard_const_p(char, "DocumentName"), py_rap_PrintJobInfo3_get_DocumentName, py_rap_PrintJobInfo3_set_DocumentName }, { discard_const_p(char, "DocumentNameHigh"), py_rap_PrintJobInfo3_get_DocumentNameHigh, py_rap_PrintJobInfo3_set_DocumentNameHigh }, { discard_const_p(char, "NotifyName"), py_rap_PrintJobInfo3_get_NotifyName, py_rap_PrintJobInfo3_set_NotifyName }, { discard_const_p(char, "NotifyNameHigh"), py_rap_PrintJobInfo3_get_NotifyNameHigh, py_rap_PrintJobInfo3_set_NotifyNameHigh }, { discard_const_p(char, "DataType"), py_rap_PrintJobInfo3_get_DataType, py_rap_PrintJobInfo3_set_DataType }, { discard_const_p(char, "DataTypeHigh"), py_rap_PrintJobInfo3_get_DataTypeHigh, py_rap_PrintJobInfo3_set_DataTypeHigh }, { discard_const_p(char, "PrintParameterString"), py_rap_PrintJobInfo3_get_PrintParameterString, py_rap_PrintJobInfo3_set_PrintParameterString }, { discard_const_p(char, "PrintParameterStringHigh"), py_rap_PrintJobInfo3_get_PrintParameterStringHigh, py_rap_PrintJobInfo3_set_PrintParameterStringHigh }, { discard_const_p(char, "StatusString"), py_rap_PrintJobInfo3_get_StatusString, py_rap_PrintJobInfo3_set_StatusString }, { discard_const_p(char, "StatusStringHigh"), py_rap_PrintJobInfo3_get_StatusStringHigh, py_rap_PrintJobInfo3_set_StatusStringHigh }, { discard_const_p(char, "QueueName"), py_rap_PrintJobInfo3_get_QueueName, py_rap_PrintJobInfo3_set_QueueName }, { discard_const_p(char, "QueueNameHigh"), py_rap_PrintJobInfo3_get_QueueNameHigh, py_rap_PrintJobInfo3_set_QueueNameHigh }, { discard_const_p(char, "PrintProcessorName"), py_rap_PrintJobInfo3_get_PrintProcessorName, py_rap_PrintJobInfo3_set_PrintProcessorName }, { discard_const_p(char, "PrintProcessorNameHigh"), py_rap_PrintJobInfo3_get_PrintProcessorNameHigh, py_rap_PrintJobInfo3_set_PrintProcessorNameHigh }, { discard_const_p(char, "PrintProcessorParams"), py_rap_PrintJobInfo3_get_PrintProcessorParams, py_rap_PrintJobInfo3_set_PrintProcessorParams }, { discard_const_p(char, "PrintProcessorParamsHigh"), py_rap_PrintJobInfo3_get_PrintProcessorParamsHigh, py_rap_PrintJobInfo3_set_PrintProcessorParamsHigh }, { discard_const_p(char, "DriverName"), py_rap_PrintJobInfo3_get_DriverName, py_rap_PrintJobInfo3_set_DriverName }, { discard_const_p(char, "DriverNameHigh"), py_rap_PrintJobInfo3_get_DriverNameHigh, py_rap_PrintJobInfo3_set_DriverNameHigh }, { discard_const_p(char, "DriverDataOffset"), py_rap_PrintJobInfo3_get_DriverDataOffset, py_rap_PrintJobInfo3_set_DriverDataOffset }, { discard_const_p(char, "DriverDataOffsetHigh"), py_rap_PrintJobInfo3_get_DriverDataOffsetHigh, py_rap_PrintJobInfo3_set_DriverDataOffsetHigh }, { discard_const_p(char, "PrinterNameOffset"), py_rap_PrintJobInfo3_get_PrinterNameOffset, py_rap_PrintJobInfo3_set_PrinterNameOffset }, { discard_const_p(char, "PrinterNameOffsetHigh"), py_rap_PrintJobInfo3_get_PrinterNameOffsetHigh, py_rap_PrintJobInfo3_set_PrinterNameOffsetHigh }, { NULL } }; static PyObject *py_rap_PrintJobInfo3_new(PyTypeObject *type, PyObject *args, PyObject *kwargs) { return py_talloc_new(struct rap_PrintJobInfo3, type); } static PyTypeObject rap_PrintJobInfo3_Type = { PyObject_HEAD_INIT(NULL) 0, .tp_name = "rap.PrintJobInfo3", .tp_basicsize = sizeof(py_talloc_Object), .tp_dealloc = py_talloc_dealloc, .tp_getset = py_rap_PrintJobInfo3_getsetters, .tp_repr = py_talloc_default_repr, .tp_methods = NULL, .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE, .tp_new = py_rap_PrintJobInfo3_new, }; static PyMethodDef rap_methods[] = { { NULL, NULL, 0, NULL } }; void initrap(void) { PyObject *m; if (PyType_Ready(&rap_group_info_1_Type) < 0) return; if (PyType_Ready(&rap_user_info_1_Type) < 0) return; if (PyType_Ready(&rap_service_info_2_Type) < 0) return; if (PyType_Ready(&rap_share_info_0_Type) < 0) return; if (PyType_Ready(&rap_share_info_1_Type) < 0) return; if (PyType_Ready(&rap_share_info_2_Type) < 0) return; if (PyType_Ready(&rap_server_info_0_Type) < 0) return; if (PyType_Ready(&rap_server_info_1_Type) < 0) return; if (PyType_Ready(&rap_PrintQueue0_Type) < 0) return; if (PyType_Ready(&rap_PrintQueue1_Type) < 0) return; if (PyType_Ready(&rap_PrintQueue2_Type) < 0) return; if (PyType_Ready(&rap_PrintQueue3_Type) < 0) return; if (PyType_Ready(&rap_PrintQueue4_Type) < 0) return; if (PyType_Ready(&rap_PrintQueue5_Type) < 0) return; if (PyType_Ready(&rap_PrintJobInfo0_Type) < 0) return; if (PyType_Ready(&rap_PrintJobInfo1_Type) < 0) return; if (PyType_Ready(&rap_PrintJobInfo2_Type) < 0) return; if (PyType_Ready(&rap_PrintJobInfo3_Type) < 0) return; #ifdef PY_GROUP_INFO_1_PATCH PY_GROUP_INFO_1_PATCH(&rap_group_info_1_Type); #endif #ifdef PY_USER_INFO_1_PATCH PY_USER_INFO_1_PATCH(&rap_user_info_1_Type); #endif #ifdef PY_SERVICE_INFO_2_PATCH PY_SERVICE_INFO_2_PATCH(&rap_service_info_2_Type); #endif #ifdef PY_SHARE_INFO_0_PATCH PY_SHARE_INFO_0_PATCH(&rap_share_info_0_Type); #endif #ifdef PY_SHARE_INFO_1_PATCH PY_SHARE_INFO_1_PATCH(&rap_share_info_1_Type); #endif #ifdef PY_SHARE_INFO_2_PATCH PY_SHARE_INFO_2_PATCH(&rap_share_info_2_Type); #endif #ifdef PY_SERVER_INFO_0_PATCH PY_SERVER_INFO_0_PATCH(&rap_server_info_0_Type); #endif #ifdef PY_SERVER_INFO_1_PATCH PY_SERVER_INFO_1_PATCH(&rap_server_info_1_Type); #endif #ifdef PY_PRINTQUEUE0_PATCH PY_PRINTQUEUE0_PATCH(&rap_PrintQueue0_Type); #endif #ifdef PY_PRINTQUEUE1_PATCH PY_PRINTQUEUE1_PATCH(&rap_PrintQueue1_Type); #endif #ifdef PY_PRINTQUEUE2_PATCH PY_PRINTQUEUE2_PATCH(&rap_PrintQueue2_Type); #endif #ifdef PY_PRINTQUEUE3_PATCH PY_PRINTQUEUE3_PATCH(&rap_PrintQueue3_Type); #endif #ifdef PY_PRINTQUEUE4_PATCH PY_PRINTQUEUE4_PATCH(&rap_PrintQueue4_Type); #endif #ifdef PY_PRINTQUEUE5_PATCH PY_PRINTQUEUE5_PATCH(&rap_PrintQueue5_Type); #endif #ifdef PY_PRINTJOBINFO0_PATCH PY_PRINTJOBINFO0_PATCH(&rap_PrintJobInfo0_Type); #endif #ifdef PY_PRINTJOBINFO1_PATCH PY_PRINTJOBINFO1_PATCH(&rap_PrintJobInfo1_Type); #endif #ifdef PY_PRINTJOBINFO2_PATCH PY_PRINTJOBINFO2_PATCH(&rap_PrintJobInfo2_Type); #endif #ifdef PY_PRINTJOBINFO3_PATCH PY_PRINTJOBINFO3_PATCH(&rap_PrintJobInfo3_Type); #endif m = Py_InitModule3("rap", rap_methods, "rap DCE/RPC"); if (m == NULL) return; PyModule_AddObject(m, "RAP_WLogonEnum", PyInt_FromLong(134)); PyModule_AddObject(m, "RAP_WUserAdd2", PyInt_FromLong(113)); PyModule_AddObject(m, "RAP_WPrintJobEnum", PyInt_FromLong(76)); PyModule_AddObject(m, "RAP_WDASDEnumTerminate", PyInt_FromLong(317)); PyModule_AddObject(m, "RAP_NetPrintQGetInfo_REQ", PyString_FromString("zWrLh")); PyModule_AddObject(m, "RAP_WGroupAdd", PyInt_FromLong(48)); PyModule_AddObject(m, "RAP_WaliasAdd", PyInt_FromLong(252)); PyModule_AddObject(m, "RAP_NetSessionGetInfo_REQ", PyString_FromString("zWrLh")); PyModule_AddObject(m, "RAP_NetConnectionEntryMake", PyInt_FromLong(176)); PyModule_AddObject(m, "RAP_WUserValidate2", PyInt_FromLong(146)); PyModule_AddObject(m, "RAP_TI_FTLockDisk", PyInt_FromLong(154)); PyModule_AddObject(m, "RAP_WprintDriverGetInfo", PyInt_FromLong(250)); PyModule_AddObject(m, "RAP_WConfigGet2", PyInt_FromLong(117)); PyModule_AddObject(m, "RAP_WaliasSetInfo", PyInt_FromLong(255)); PyModule_AddObject(m, "RAP_WappAdd", PyInt_FromLong(261)); PyModule_AddObject(m, "RAP_NetGroupAddUser_REQ", PyString_FromString("zz")); PyModule_AddObject(m, "RAP_WPrintQSetInfo", PyInt_FromLong(71)); PyModule_AddObject(m, "RAP_W16RIPLMachineCreate", PyInt_FromLong(300)); PyModule_AddObject(m, "RAP_WsessionGetInfo", PyInt_FromLong(7)); PyModule_AddObject(m, "RAP_TI_FTGetInfo", PyInt_FromLong(152)); PyModule_AddObject(m, "RAP_WNetServerReqChallenge", PyInt_FromLong(126)); PyModule_AddObject(m, "RAP_WBuildGetInfo", PyInt_FromLong(123)); PyModule_AddObject(m, "RAP_SERVICE_INFO_L2", PyString_FromString("B16WDWB64")); PyModule_AddObject(m, "RAP_WGetRIPLMachineInfo", PyInt_FromLong(278)); PyModule_AddObject(m, "RAP_W16AppParmAdd", PyInt_FromLong(296)); PyModule_AddObject(m, "RAP_W16WSLevelGetInfo", PyInt_FromLong(312)); PyModule_AddObject(m, "RAP_WPrintQContinue", PyInt_FromLong(75)); PyModule_AddObject(m, "PRQ_PENDING", PyInt_FromLong(PRQ_PENDING)); PyModule_AddObject(m, "RAP_NetShareCheck", PyInt_FromLong(5)); PyModule_AddObject(m, "RAP_WFileEnum2_REQ", PyString_FromString("zzWrLehb8g8")); PyModule_AddObject(m, "RAP_W16RIPLMachineEnum", PyInt_FromLong(303)); PyModule_AddObject(m, "RAP_NetPathCanonicalize", PyInt_FromLong(137)); PyModule_AddObject(m, "RAP_WUseDel", PyInt_FromLong(67)); PyModule_AddObject(m, "RAP_NetErrorLogOpen", PyInt_FromLong(19)); PyModule_AddObject(m, "RAP_WDASDCtl", PyInt_FromLong(273)); PyModule_AddObject(m, "RAP_WaliasGetInfo", PyInt_FromLong(254)); PyModule_AddObject(m, "RAP_SERVER_INFO_L0", PyString_FromString("B16")); PyModule_AddObject(m, "RAP_PRINTQ_INFO_L2", PyString_FromString("B13BWWWzzzzzWN")); PyModule_AddObject(m, "RAP_WNetAccountConfirmUpdate", PyInt_FromLong(210)); PyModule_AddObject(m, "RAP_CONNECTION_INFO_L1", PyString_FromString("WWWWDzz")); PyModule_AddObject(m, "RAP_wI_NetRplWkstaEnum", PyInt_FromLong(186)); PyModule_AddObject(m, "RAP_NetServerDeregister", PyInt_FromLong(171)); PyModule_AddObject(m, "RAP_TI_FTGetDriveStats", PyInt_FromLong(158)); PyModule_AddObject(m, "RAP_SESSION_INFO_L2", PyString_FromString("zzWWWDDDz")); PyModule_AddObject(m, "RAP_WMessageNameFwd", PyInt_FromLong(33)); PyModule_AddObject(m, "RAP_NetFileEntrySetInfo", PyInt_FromLong(182)); PyModule_AddObject(m, "RAP_WGetDCName", PyInt_FromLong(119)); PyModule_AddObject(m, "RAP_W16RIPLMachineListParmEnum", PyInt_FromLong(304)); PyModule_AddObject(m, "RAP_NetServerRegister", PyInt_FromLong(170)); PyModule_AddObject(m, "RAP_WMessageLogFileGet", PyInt_FromLong(38)); PyModule_AddObject(m, "RAP_SERVER_INFO_L1", PyString_FromString("B16BBDz")); PyModule_AddObject(m, "RAP_WaliasEnum", PyInt_FromLong(256)); PyModule_AddObject(m, "RAP_NetSessionDel_REQ", PyString_FromString("zW")); PyModule_AddObject(m, "RAP_NetUserPasswordSet_REQ", PyString_FromString("zb16b16w")); PyModule_AddObject(m, "RAP_WIServerSetInfo", PyInt_FromLong(201)); PyModule_AddObject(m, "RAP_NetGroupDel_REQ", PyString_FromString("z")); PyModule_AddObject(m, "PRJ_QS_SPOOLING", PyInt_FromLong(PRJ_QS_SPOOLING)); PyModule_AddObject(m, "RAP_WDASDGetInfo", PyInt_FromLong(269)); PyModule_AddObject(m, "RAP_WPrintPortEnum", PyInt_FromLong(207)); PyModule_AddObject(m, "RAP_WDASDCheck", PyInt_FromLong(272)); PyModule_AddObject(m, "RAP_NetSessionEntryGetInfo", PyInt_FromLong(174)); PyModule_AddObject(m, "RAP_TI_FTErrorGetInfo", PyInt_FromLong(160)); PyModule_AddObject(m, "RAP_WuserGetAppSel", PyInt_FromLong(259)); PyModule_AddObject(m, "RAP_WWkstaSetInfo", PyInt_FromLong(64)); PyModule_AddObject(m, "RAP_NetGroupSetUsers_REQ", PyString_FromString("zWsTW")); PyModule_AddObject(m, "RAP_SamOEMChgPasswordUser2_P", PyInt_FromLong(214)); PyModule_AddObject(m, "RAP_WCharDevQSetInfo", PyInt_FromLong(26)); PyModule_AddObject(m, "RAP_WserverGetInfo", PyInt_FromLong(13)); PyModule_AddObject(m, "RAP_NetPrintQEnum_REQ", PyString_FromString("WrLeh")); PyModule_AddObject(m, "RAP_WPrintJobSetInfo", PyInt_FromLong(147)); PyModule_AddObject(m, "RAP_WUserModalsGet", PyInt_FromLong(110)); PyModule_AddObject(m, "RAP_WMessageFileSend", PyInt_FromLong(36)); PyModule_AddObject(m, "RAP_WAccessSetInfo", PyInt_FromLong(44)); PyModule_AddObject(m, "RAP_WMessageNameEnum", PyInt_FromLong(29)); PyModule_AddObject(m, "RAP_WGroupEnum", PyInt_FromLong(47)); PyModule_AddObject(m, "RAP_I_ShareAdd", PyInt_FromLong(281)); PyModule_AddObject(m, "RAP_WShareEnum_REQ", PyString_FromString("WrLeh")); PyModule_AddObject(m, "RAP_NetUserValidate2_REQ", PyString_FromString("Wb62WWrLhWW")); PyModule_AddObject(m, "PRQ_ACTIVE", PyInt_FromLong(PRQ_ACTIVE)); PyModule_AddObject(m, "RAP_W16AppParmDel", PyInt_FromLong(297)); PyModule_AddObject(m, "RAP_WWkstaUserLogoff", PyInt_FromLong(133)); PyModule_AddObject(m, "RAP_SMB_PRINT_JOB_L1", PyString_FromString("WB21BB16B10zWWzDDz")); PyModule_AddObject(m, "RAP_NetGroupDelUser_REQ", PyString_FromString("zz")); PyModule_AddObject(m, "RAP_WshareSetInfo", PyInt_FromLong(2)); PyModule_AddObject(m, "RAP_SHARENAME_LEN", PyInt_FromLong(13)); PyModule_AddObject(m, "RAP_W16RIPLMachClassLPEnum", PyInt_FromLong(310)); PyModule_AddObject(m, "RAP_NetSessionEntrySetInfo", PyInt_FromLong(175)); PyModule_AddObject(m, "RAP_WServiceControl", PyInt_FromLong(41)); PyModule_AddObject(m, "RAP_WUseAdd", PyInt_FromLong(66)); PyModule_AddObject(m, "RAP_SHARE_INFO_L1", PyString_FromString("B13BWz")); PyModule_AddObject(m, "RAP_NetHandleGetInfo", PyInt_FromLong(120)); PyModule_AddObject(m, "RAP_WAccessGetUserPerms", PyInt_FromLong(105)); PyModule_AddObject(m, "RAP_W16RIPLMachClassEnum", PyInt_FromLong(306)); PyModule_AddObject(m, "RAP_GROUPNAME_LEN", PyInt_FromLong(21)); PyModule_AddObject(m, "PRJ_QS_ERROR", PyInt_FromLong(PRJ_QS_ERROR)); PyModule_AddObject(m, "RAP_WUserSetInfo2", PyInt_FromLong(114)); PyModule_AddObject(m, "RAP_WserverNameDel", PyInt_FromLong(314)); PyModule_AddObject(m, "RAP_NetAuditOpen", PyInt_FromLong(17)); PyModule_AddObject(m, "RAP_WKSTA_INFO_L1", PyString_FromString("WDzzzzBBDWDWWWWWWWWWWWWWWWWWWWzzWzzW")); PyModule_AddObject(m, "RAP_NetAlertRaise", PyInt_FromLong(164)); PyModule_AddObject(m, "RAP_wI_NetRplProfileGetInfo", PyInt_FromLong(192)); PyModule_AddObject(m, "RAP_WMessageBufferSend", PyInt_FromLong(35)); PyModule_AddObject(m, "RAP_WMessageLogFileSet", PyInt_FromLong(37)); PyModule_AddObject(m, "RAP_WuserSetAppSel", PyInt_FromLong(260)); PyModule_AddObject(m, "RAP_WuserSetLogonAsn", PyInt_FromLong(258)); PyModule_AddObject(m, "RAP_wI_NetRplProfileEnum", PyInt_FromLong(191)); PyModule_AddObject(m, "RAP_NetFileEntryGetInfo", PyInt_FromLong(183)); PyModule_AddObject(m, "RAP_NetServerAdminCommand_REQ", PyString_FromString("zhrLeh")); PyModule_AddObject(m, "RAP_WserverNameAdd", PyInt_FromLong(313)); PyModule_AddObject(m, "RAP_NetUserPasswordSet2_REQ", PyString_FromString("zb16b16WW")); PyModule_AddObject(m, "RAP_NetConnectionEntryClear", PyInt_FromLong(177)); PyModule_AddObject(m, "RAP_WNetAccountUpdate", PyInt_FromLong(209)); PyModule_AddObject(m, "RAP_wI_NetRplWkstaDel", PyInt_FromLong(190)); PyModule_AddObject(m, "RAP_WGroupGetUsers", PyInt_FromLong(52)); PyModule_AddObject(m, "RAP_W16AppParmGet", PyInt_FromLong(298)); PyModule_AddObject(m, "RAP_WPrintJobContinue", PyInt_FromLong(83)); PyModule_AddObject(m, "RAP_NetGroupAdd_REQ", PyString_FromString("WsT")); PyModule_AddObject(m, "RAP_AliasEnum", PyInt_FromLong(282)); PyModule_AddObject(m, "RAP_WsessionEnum", PyInt_FromLong(6)); PyModule_AddObject(m, "RAP_WFileGetInfo2_REQ", PyString_FromString("DWrLh")); PyModule_AddObject(m, "RAP_WFileClose2_REQ", PyString_FromString("D")); PyModule_AddObject(m, "RAP_USER_INFO_L1", PyString_FromString("B21BB16DWzzWz")); PyModule_AddObject(m, "RAP_WshareAdd", PyInt_FromLong(3)); PyModule_AddObject(m, "RAP_WUseGetInfo", PyInt_FromLong(68)); PyModule_AddObject(m, "RAP_WPrintDestGetInfo", PyInt_FromLong(85)); PyModule_AddObject(m, "RAP_NetServiceStatus", PyInt_FromLong(169)); PyModule_AddObject(m, "RAP_WConfigGetAll2", PyInt_FromLong(118)); PyModule_AddObject(m, "RAP_DATATYPE_LEN", PyInt_FromLong(10)); PyModule_AddObject(m, "RAP_WRemoteTODSet", PyInt_FromLong(294)); PyModule_AddObject(m, "RAP_NetAlertStop", PyInt_FromLong(166)); PyModule_AddObject(m, "RAP_WDeleteRIPLMachine", PyInt_FromLong(277)); PyModule_AddObject(m, "RAP_WServiceEnum", PyInt_FromLong(39)); PyModule_AddObject(m, "RAP_SAMOEMChgPasswordUser2_REQ", PyString_FromString("B516B16")); PyModule_AddObject(m, "RAP_NetAccessCheck", PyInt_FromLong(163)); PyModule_AddObject(m, "RAP_TI_FTVerifyMirror", PyInt_FromLong(150)); PyModule_AddObject(m, "RAP_WserverSetInfo", PyInt_FromLong(14)); PyModule_AddObject(m, "RAP_NetGroupGetUsers_REQ", PyString_FromString("zWrLeh")); PyModule_AddObject(m, "RAP_FILE_INFO_L3", PyString_FromString("DWWzz")); PyModule_AddObject(m, "RAP_WPrt16Query", PyInt_FromLong(284)); PyModule_AddObject(m, "RAP_NetWkstaUserLogoff_REQ", PyString_FromString("zzWb38WrLh")); PyModule_AddObject(m, "RAP_SHARE_INFO_L2", PyString_FromString("B13BWzWWWzB9B")); PyModule_AddObject(m, "RAP_wI_NetRplProfileSetInfo", PyInt_FromLong(193)); PyModule_AddObject(m, "RAP_TI_FTSetInfo", PyInt_FromLong(153)); PyModule_AddObject(m, "RAP_wI_NetRplProfileAdd", PyInt_FromLong(194)); PyModule_AddObject(m, "RAP_WserverNameEnum", PyInt_FromLong(315)); PyModule_AddObject(m, "RAP_W16RIPLMachineGetInfo", PyInt_FromLong(301)); PyModule_AddObject(m, "RAP_WStatisticsGet", PyInt_FromLong(89)); PyModule_AddObject(m, "RAP_SERVER_INFO_L3", PyString_FromString("B16BBDzDDDWWzWWWWWWWB21BzWWWWWWWWWWWWWWWWWWWWWWzDWz")); PyModule_AddObject(m, "RAP_WuserGetLogonAsn", PyInt_FromLong(257)); PyModule_AddObject(m, "RAP_W16AppParmSet", PyInt_FromLong(299)); PyModule_AddObject(m, "RAP_WUserRemoteLogonCheck2", PyInt_FromLong(287)); PyModule_AddObject(m, "RAP_NetCharDevQEnum", PyInt_FromLong(24)); PyModule_AddObject(m, "RAP_NetCharDevGetInfo", PyInt_FromLong(22)); PyModule_AddObject(m, "RAP_WGroupGetInfo", PyInt_FromLong(106)); PyModule_AddObject(m, "RAP_WauditClear", PyInt_FromLong(18)); PyModule_AddObject(m, "RAP_wI_NetRplProfileDel", PyInt_FromLong(195)); PyModule_AddObject(m, "RAP_WsessionDel", PyInt_FromLong(8)); PyModule_AddObject(m, "RAP_NetWkstatGetInfo", PyString_FromString("WrLh")); PyModule_AddObject(m, "RAP_GROUP_USERS_INFO_1", PyString_FromString("B21BN")); PyModule_AddObject(m, "RAP_WConfigSet", PyInt_FromLong(211)); PyModule_AddObject(m, "RAP_WPrintQEnum", PyInt_FromLong(69)); PyModule_AddObject(m, "RAP_WGroupSetInfo", PyInt_FromLong(107)); PyModule_AddObject(m, "RAP_WCharDevQPurge", PyInt_FromLong(27)); PyModule_AddObject(m, "RAP_I_WDASDEnum", PyInt_FromLong(316)); PyModule_AddObject(m, "RAP_WCharDevControl", PyInt_FromLong(23)); PyModule_AddObject(m, "RAP_WappEnum", PyInt_FromLong(265)); PyModule_AddObject(m, "RAP_WUserDCDBInit", PyInt_FromLong(266)); PyModule_AddObject(m, "RAP_WUserEnum2", PyInt_FromLong(131)); PyModule_AddObject(m, "RAP_WWkstaSetUID", PyInt_FromLong(62)); PyModule_AddObject(m, "RAP_WUserGetInfo", PyInt_FromLong(56)); PyModule_AddObject(m, "RAP_WProfileLoad", PyInt_FromLong(88)); PyModule_AddObject(m, "RAP_TI_FTAbortVerify", PyInt_FromLong(151)); PyModule_AddObject(m, "RAP_NetUserSetGroups_REQ", PyString_FromString("zWsTW")); PyModule_AddObject(m, "RAP_WServiceGetInfo", PyInt_FromLong(96)); PyModule_AddObject(m, "RAP_WKSTA_INFO_L10", PyString_FromString("zzzBBzz")); PyModule_AddObject(m, "RAP_wI_NetRplBaseProfileEnum", PyInt_FromLong(197)); PyModule_AddObject(m, "RAP_WappDel", PyInt_FromLong(262)); PyModule_AddObject(m, "RAP_SRVCNAME_LEN", PyInt_FromLong(16)); PyModule_AddObject(m, "RAP_WStatisticsClear", PyInt_FromLong(90)); PyModule_AddObject(m, "RAP_NetUserEnum_REQ", PyString_FromString("WrLeh")); PyModule_AddObject(m, "RAP_NetServerEnum2", PyInt_FromLong(104)); PyModule_AddObject(m, "RAP_WPrintQGetInfo", PyInt_FromLong(70)); PyModule_AddObject(m, "RAP_WNetServerAuthenticate", PyInt_FromLong(127)); PyModule_AddObject(m, "RAP_NetConnectionEntryGetInfo", PyInt_FromLong(179)); PyModule_AddObject(m, "RAP_NetFileEntryClear", PyInt_FromLong(181)); PyModule_AddObject(m, "RAP_WprintJobMoveAll", PyInt_FromLong(295)); PyModule_AddObject(m, "RAP_WDASDSetInfo2", PyInt_FromLong(318)); PyModule_AddObject(m, "RAP_W16RIPLMachClassSetInfo", PyInt_FromLong(308)); PyModule_AddObject(m, "RAP_UPASSWD_LEN", PyInt_FromLong(16)); PyModule_AddObject(m, "RAP_NetAlertStart", PyInt_FromLong(165)); PyModule_AddObject(m, "RAP_SHARE_INFO_L0", PyString_FromString("B13")); PyModule_AddObject(m, "RAP_WUserModalsSet", PyInt_FromLong(111)); PyModule_AddObject(m, "RAP_WWkstaGetInfo_REQ", PyString_FromString("WrLh")); PyModule_AddObject(m, "RAP_WPrintJobSetInfo_OLD", PyInt_FromLong(78)); PyModule_AddObject(m, "RAP_NetServerEnum2_REQ", PyString_FromString("WrLehDz")); PyModule_AddObject(m, "RAP_WPrintDriverEnum", PyInt_FromLong(205)); PyModule_AddObject(m, "RAP_WPrintDestControl", PyInt_FromLong(86)); PyModule_AddObject(m, "RAP_WDASDSetInfo", PyInt_FromLong(270)); PyModule_AddObject(m, "RAP_USER_INFO_L0", PyString_FromString("B21")); PyModule_AddObject(m, "RAP_WEnumRIPLMachine", PyInt_FromLong(280)); PyModule_AddObject(m, "RAP_TI_NetServerDiskGetInfo", PyInt_FromLong(149)); PyModule_AddObject(m, "RAP_NetServerEnum", PyInt_FromLong(94)); PyModule_AddObject(m, "RAP_WNetWriteUpdateLog", PyInt_FromLong(208)); PyModule_AddObject(m, "RAP_WappGetInfo", PyInt_FromLong(263)); PyModule_AddObject(m, "RAP_NetCharDevQGetInfo", PyInt_FromLong(25)); PyModule_AddObject(m, "RAP_SERVICE_INFO_L0", PyString_FromString("B16")); PyModule_AddObject(m, "RAP_NetIRemoteAPI", PyInt_FromLong(168)); PyModule_AddObject(m, "RAP_WFileEnum2", PyInt_FromLong(112)); PyModule_AddObject(m, "RAP_WPrintDestSetInfo", PyInt_FromLong(144)); PyModule_AddObject(m, "RAP_NetSessionEnum_REQ", PyString_FromString("WrLeh")); PyModule_AddObject(m, "RAP_NetNameCanonicalize", PyInt_FromLong(140)); PyModule_AddObject(m, "RAP_WserverAdminCommand", PyInt_FromLong(16)); PyModule_AddObject(m, "RAP_WFileClose2", PyInt_FromLong(125)); PyModule_AddObject(m, "RAP_TI_NetServerDiskEnum", PyInt_FromLong(148)); PyModule_AddObject(m, "RAP_WWkstaGetInfo", PyInt_FromLong(63)); PyModule_AddObject(m, "RAP_WGroupDelUser", PyInt_FromLong(51)); PyModule_AddObject(m, "RAP_WPrintJobPause", PyInt_FromLong(82)); PyModule_AddObject(m, "RAP_wI_NetRplWkstaSetInfo", PyInt_FromLong(188)); PyModule_AddObject(m, "RAP_WUserPasswordSet2", PyInt_FromLong(115)); PyModule_AddObject(m, "RAP_WSetRIPLMachineInfo", PyInt_FromLong(279)); PyModule_AddObject(m, "RAP_WshareGetInfo", PyInt_FromLong(1)); PyModule_AddObject(m, "RAP_NetAuditWrite", PyInt_FromLong(167)); PyModule_AddObject(m, "RAP_WProfileSave", PyInt_FromLong(87)); PyModule_AddObject(m, "PRQ_ERROR", PyInt_FromLong(PRQ_ERROR)); PyModule_AddObject(m, "RAP_WconnectionEnum", PyInt_FromLong(9)); PyModule_AddObject(m, "RAP_WDASDEnum", PyInt_FromLong(271)); PyModule_AddObject(m, "RAP_WAccessEnum", PyInt_FromLong(42)); PyModule_AddObject(m, "RAP_W16RIPLMachineDelete", PyInt_FromLong(311)); PyModule_AddObject(m, "RAP_WNetAccountSync", PyInt_FromLong(130)); PyModule_AddObject(m, "RAP_AltSrvMessageBufferSend", PyInt_FromLong(184)); PyModule_AddObject(m, "RAP_WPrintDestAdd", PyInt_FromLong(143)); PyModule_AddObject(m, "RAP_WCreateRIPLMachine", PyInt_FromLong(276)); PyModule_AddObject(m, "RAP_WPrintQPause", PyInt_FromLong(74)); PyModule_AddObject(m, "RAP_WserverGetInfo_REQ", PyString_FromString("WrLh")); PyModule_AddObject(m, "RAP_WNetAccountDeltas", PyInt_FromLong(129)); PyModule_AddObject(m, "RAP_NetUserAdd2_REQ", PyString_FromString("WsTWW")); PyModule_AddObject(m, "RAP_wI_NetRplProfileClone", PyInt_FromLong(196)); PyModule_AddObject(m, "RAP_MACHNAME_LEN", PyInt_FromLong(16)); PyModule_AddObject(m, "RAP_WPrintJobGetInfo", PyInt_FromLong(77)); PyModule_AddObject(m, "RAP_WappSetInfo", PyInt_FromLong(264)); PyModule_AddObject(m, "RAP_WMessageNameGetInfo", PyInt_FromLong(30)); PyModule_AddObject(m, "RAP_W16RIPLMachClassGetInfo", PyInt_FromLong(305)); PyModule_AddObject(m, "RAP_SRVCCMNT_LEN", PyInt_FromLong(64)); PyModule_AddObject(m, "RAP_TI_FTAbortFix", PyInt_FromLong(156)); PyModule_AddObject(m, "RAP_NetServiceGetInfo_REQ", PyString_FromString("zWrLh")); PyModule_AddObject(m, "RAP_W16RIPLMachineSetInfo", PyInt_FromLong(302)); PyModule_AddObject(m, "RAP_WAuditRead", PyInt_FromLong(142)); PyModule_AddObject(m, "RAP_WDASDAdd", PyInt_FromLong(267)); PyModule_AddObject(m, "RAP_NetServiceEnum_REQ", PyString_FromString("WrLeh")); PyModule_AddObject(m, "RAP_WNetBiosEnum", PyInt_FromLong(92)); PyModule_AddObject(m, "RAP_WUserDel", PyInt_FromLong(55)); PyModule_AddObject(m, "RAP_wI_NetRplWkstaAdd", PyInt_FromLong(189)); PyModule_AddObject(m, "RAP_USERNAME_LEN", PyInt_FromLong(21)); PyModule_AddObject(m, "RAP_NetNameCompare", PyInt_FromLong(141)); PyModule_AddObject(m, "RAP_WaliasDel", PyInt_FromLong(253)); PyModule_AddObject(m, "RAP_WUserSetInfo", PyInt_FromLong(57)); PyModule_AddObject(m, "RAP_WMessageNameUnFwd", PyInt_FromLong(34)); PyModule_AddObject(m, "RAP_WShareAdd_REQ", PyString_FromString("WsT")); PyModule_AddObject(m, "RAP_NetNameValidate", PyInt_FromLong(139)); PyModule_AddObject(m, "RAP_WAccessAdd", PyInt_FromLong(45)); PyModule_AddObject(m, "RAP_WDASDDel", PyInt_FromLong(268)); PyModule_AddObject(m, "RAP_NetServerEnum3", PyInt_FromLong(215)); PyModule_AddObject(m, "RAP_WPrintQAdd", PyInt_FromLong(72)); PyModule_AddObject(m, "MAX_API", PyInt_FromLong(318)); PyModule_AddObject(m, "RAP_WGroupSetUsers", PyInt_FromLong(108)); PyModule_AddObject(m, "RAP_NetSessionEntryMake", PyInt_FromLong(172)); PyModule_AddObject(m, "RAP_NetHandleSetInfo", PyInt_FromLong(121)); PyModule_AddObject(m, "RAP_NetRemoteTOD", PyInt_FromLong(91)); PyModule_AddObject(m, "RAP_WCharDevQPurgeSelf", PyInt_FromLong(28)); PyModule_AddObject(m, "RAP_WPrintDestDel", PyInt_FromLong(145)); PyModule_AddObject(m, "RAP_WUseEnum", PyInt_FromLong(65)); PyModule_AddObject(m, "RAP_WGroupAddUser", PyInt_FromLong(50)); PyModule_AddObject(m, "RAP_WaccessApply", PyInt_FromLong(283)); PyModule_AddObject(m, "RAP_NetConnectionEnum_REQ", PyString_FromString("zWrLeh")); PyModule_AddObject(m, "RAP_NetSessionEntryClear", PyInt_FromLong(173)); PyModule_AddObject(m, "RAP_WUserEnum", PyInt_FromLong(53)); PyModule_AddObject(m, "RAP_WshareDel", PyInt_FromLong(4)); PyModule_AddObject(m, "RAP_AltSrvMessageFileSend", PyInt_FromLong(185)); PyModule_AddObject(m, "RAP_NetUserEnum2_REQ", PyString_FromString("WrLDieh")); PyModule_AddObject(m, "RAP_WfileGetInfo", PyInt_FromLong(11)); PyModule_AddObject(m, "RAP_WuserRemoteLogonCheck", PyInt_FromLong(274)); PyModule_AddObject(m, "RAP_NetUserGetGroups_REQ", PyString_FromString("zWrLeh")); PyModule_AddObject(m, "RAP_WNetBiosGetInfo", PyInt_FromLong(93)); PyModule_AddObject(m, "RAP_WPrintDestEnum", PyInt_FromLong(84)); PyModule_AddObject(m, "RAP_WServiceInstall", PyInt_FromLong(40)); PyModule_AddObject(m, "RAP_WshareEnum", PyInt_FromLong(0)); PyModule_AddObject(m, "RAP_GROUP_INFO_L0", PyString_FromString("B21")); PyModule_AddObject(m, "RAP_WPrt16Set", PyInt_FromLong(285)); PyModule_AddObject(m, "RAP_FILE_INFO_L2", PyString_FromString("D")); PyModule_AddObject(m, "RAP_WUserSetGroups", PyInt_FromLong(109)); PyModule_AddObject(m, "RAP_WAccessGetInfo", PyInt_FromLong(43)); PyModule_AddObject(m, "RAP_W16RIPLMachClassDelete", PyInt_FromLong(309)); PyModule_AddObject(m, "RAP_WAccountsReplicate", PyInt_FromLong(212)); PyModule_AddObject(m, "RAP_WprintDriverSetInfo", PyInt_FromLong(251)); PyModule_AddObject(m, "RAP_TI_FTFixError", PyInt_FromLong(155)); PyModule_AddObject(m, "RAP_WNetServerPasswordSet", PyInt_FromLong(128)); PyModule_AddObject(m, "RAP_WerrorLogClear", PyInt_FromLong(20)); PyModule_AddObject(m, "PRJ_QS_QUEUED", PyInt_FromLong(PRJ_QS_QUEUED)); PyModule_AddObject(m, "RAP_WPrintJobDel", PyInt_FromLong(81)); PyModule_AddObject(m, "RAP_WStatisticsGet2", PyInt_FromLong(122)); PyModule_AddObject(m, "RAP_WAccessDel", PyInt_FromLong(46)); PyModule_AddObject(m, "PRJ_QS_PRINTING", PyInt_FromLong(PRJ_QS_PRINTING)); PyModule_AddObject(m, "RAP_WserverDiskEnum", PyInt_FromLong(15)); PyModule_AddObject(m, "PRJ_QS_PAUSED", PyInt_FromLong(PRJ_QS_PAUSED)); PyModule_AddObject(m, "RAP_I_NetServerEnum", PyInt_FromLong(95)); PyModule_AddObject(m, "RAP_wI_NetRplWkstaGetInfo", PyInt_FromLong(187)); PyModule_AddObject(m, "RAP_USER_LOGOFF_INFO_L1", PyString_FromString("WDW")); PyModule_AddObject(m, "RAP_WGroupDel", PyInt_FromLong(49)); PyModule_AddObject(m, "RAP_NetConnectionEntrySetInfo", PyInt_FromLong(178)); PyModule_AddObject(m, "RAP_SERVER_INFO_L2", PyString_FromString("B16BBDzDDDWWzWWWWWWWB21BzWWWWWWWWWWWWWWWWWWWWWWz")); PyModule_AddObject(m, "RAP_WUserAdd", PyInt_FromLong(54)); PyModule_AddObject(m, "RAP_WfileClose", PyInt_FromLong(12)); PyModule_AddObject(m, "RAP_WFileGetInfo2", PyInt_FromLong(124)); PyModule_AddObject(m, "RAP_WPrintQPurge", PyInt_FromLong(103)); PyModule_AddObject(m, "RAP_NetCharDevEnum", PyInt_FromLong(21)); PyModule_AddObject(m, "RAP_SPASSWD_LEN", PyInt_FromLong(9)); PyModule_AddObject(m, "RAP_GROUP_USERS_INFO_0", PyString_FromString("B21")); PyModule_AddObject(m, "RAP_NetServiceInstall_REQ", PyString_FromString("zF88sg88T")); PyModule_AddObject(m, "RAP_NetGroupEnum_REQ", PyString_FromString("WrLeh")); PyModule_AddObject(m, "RAP_NetFileEntryMake", PyInt_FromLong(180)); PyModule_AddObject(m, "RAP_WPrintQProcessorEnum", PyInt_FromLong(206)); PyModule_AddObject(m, "RAP_WPrintQDel", PyInt_FromLong(73)); PyModule_AddObject(m, "RAP_WWkstaUserLogon", PyInt_FromLong(132)); PyModule_AddObject(m, "PRQ_PAUSE", PyInt_FromLong(PRQ_PAUSE)); PyModule_AddObject(m, "RAP_NetPathType", PyInt_FromLong(136)); PyModule_AddObject(m, "RAP_W16RIPLMachClassCreate", PyInt_FromLong(307)); PyModule_AddObject(m, "RAP_WUserDel100", PyInt_FromLong(286)); PyModule_AddObject(m, "RAP_TI_FTDiagnoseError", PyInt_FromLong(157)); PyModule_AddObject(m, "RAP_I_NetServerEnum2", PyInt_FromLong(116)); PyModule_AddObject(m, "RAP_NetServiceControl_REQ", PyString_FromString("zWWrL")); PyModule_AddObject(m, "RAP_WUserPasswordSet", PyInt_FromLong(58)); PyModule_AddObject(m, "RAP_WUserGetGroups", PyInt_FromLong(59)); PyModule_AddObject(m, "RAP_WUserPasswordSet3", PyInt_FromLong(275)); PyModule_AddObject(m, "RAP_WShareDel_REQ", PyString_FromString("zW")); PyModule_AddObject(m, "RAP_WMessageNameDel", PyInt_FromLong(32)); PyModule_AddObject(m, "RAP_WfileEnum", PyInt_FromLong(10)); PyModule_AddObject(m, "RAP_NetPathCompare", PyInt_FromLong(138)); PyModule_AddObject(m, "RAP_WErrorLogRead", PyInt_FromLong(135)); PyModule_AddObject(m, "RAP_WMessageNameAdd", PyInt_FromLong(31)); PyModule_AddObject(m, "RAP_GROUP_INFO_L1", PyString_FromString("B21Bz")); Py_INCREF((PyObject *)(void *)&rap_group_info_1_Type); PyModule_AddObject(m, "group_info_1", (PyObject *)(void *)&rap_group_info_1_Type); Py_INCREF((PyObject *)(void *)&rap_user_info_1_Type); PyModule_AddObject(m, "user_info_1", (PyObject *)(void *)&rap_user_info_1_Type); Py_INCREF((PyObject *)(void *)&rap_service_info_2_Type); PyModule_AddObject(m, "service_info_2", (PyObject *)(void *)&rap_service_info_2_Type); Py_INCREF((PyObject *)(void *)&rap_share_info_0_Type); PyModule_AddObject(m, "share_info_0", (PyObject *)(void *)&rap_share_info_0_Type); Py_INCREF((PyObject *)(void *)&rap_share_info_1_Type); PyModule_AddObject(m, "share_info_1", (PyObject *)(void *)&rap_share_info_1_Type); Py_INCREF((PyObject *)(void *)&rap_share_info_2_Type); PyModule_AddObject(m, "share_info_2", (PyObject *)(void *)&rap_share_info_2_Type); Py_INCREF((PyObject *)(void *)&rap_server_info_0_Type); PyModule_AddObject(m, "server_info_0", (PyObject *)(void *)&rap_server_info_0_Type); Py_INCREF((PyObject *)(void *)&rap_server_info_1_Type); PyModule_AddObject(m, "server_info_1", (PyObject *)(void *)&rap_server_info_1_Type); Py_INCREF((PyObject *)(void *)&rap_PrintQueue0_Type); PyModule_AddObject(m, "PrintQueue0", (PyObject *)(void *)&rap_PrintQueue0_Type); Py_INCREF((PyObject *)(void *)&rap_PrintQueue1_Type); PyModule_AddObject(m, "PrintQueue1", (PyObject *)(void *)&rap_PrintQueue1_Type); Py_INCREF((PyObject *)(void *)&rap_PrintQueue2_Type); PyModule_AddObject(m, "PrintQueue2", (PyObject *)(void *)&rap_PrintQueue2_Type); Py_INCREF((PyObject *)(void *)&rap_PrintQueue3_Type); PyModule_AddObject(m, "PrintQueue3", (PyObject *)(void *)&rap_PrintQueue3_Type); Py_INCREF((PyObject *)(void *)&rap_PrintQueue4_Type); PyModule_AddObject(m, "PrintQueue4", (PyObject *)(void *)&rap_PrintQueue4_Type); Py_INCREF((PyObject *)(void *)&rap_PrintQueue5_Type); PyModule_AddObject(m, "PrintQueue5", (PyObject *)(void *)&rap_PrintQueue5_Type); Py_INCREF((PyObject *)(void *)&rap_PrintJobInfo0_Type); PyModule_AddObject(m, "PrintJobInfo0", (PyObject *)(void *)&rap_PrintJobInfo0_Type); Py_INCREF((PyObject *)(void *)&rap_PrintJobInfo1_Type); PyModule_AddObject(m, "PrintJobInfo1", (PyObject *)(void *)&rap_PrintJobInfo1_Type); Py_INCREF((PyObject *)(void *)&rap_PrintJobInfo2_Type); PyModule_AddObject(m, "PrintJobInfo2", (PyObject *)(void *)&rap_PrintJobInfo2_Type); Py_INCREF((PyObject *)(void *)&rap_PrintJobInfo3_Type); PyModule_AddObject(m, "PrintJobInfo3", (PyObject *)(void *)&rap_PrintJobInfo3_Type); #ifdef PY_MOD_RAP_PATCH PY_MOD_RAP_PATCH(m); #endif }