#include <pytalloc.h>
#include "librpc/rpc/pyrpc.h"
#include "librpc/rpc/pyrpc_util.h"
-#include "librpc/gen_ndr/ndr_unixinfo.h"
-#include "librpc/gen_ndr/ndr_unixinfo_c.h"
+#include "autoconf/librpc/gen_ndr/ndr_unixinfo.h"
+#include "autoconf/librpc/gen_ndr/ndr_unixinfo_c.h"
#include "librpc/gen_ndr/security.h"
staticforward PyTypeObject unixinfo_GetPWUidInfo_Type;
static PyObject *py_unixinfo_GetPWUidInfo_get_status(PyObject *obj, void *closure)
{
- struct unixinfo_GetPWUidInfo *object = (struct unixinfo_GetPWUidInfo *)py_talloc_get_ptr(obj);
+ struct unixinfo_GetPWUidInfo *object = (struct unixinfo_GetPWUidInfo *)pytalloc_get_ptr(obj);
PyObject *py_status;
py_status = PyErr_FromNTSTATUS(object->status);
return py_status;
static int py_unixinfo_GetPWUidInfo_set_status(PyObject *py_obj, PyObject *value, void *closure)
{
- struct unixinfo_GetPWUidInfo *object = (struct unixinfo_GetPWUidInfo *)py_talloc_get_ptr(py_obj);
+ struct unixinfo_GetPWUidInfo *object = (struct unixinfo_GetPWUidInfo *)pytalloc_get_ptr(py_obj);
object->status = NT_STATUS(PyInt_AsLong(value));
return 0;
}
static PyObject *py_unixinfo_GetPWUidInfo_get_homedir(PyObject *obj, void *closure)
{
- struct unixinfo_GetPWUidInfo *object = (struct unixinfo_GetPWUidInfo *)py_talloc_get_ptr(obj);
+ struct unixinfo_GetPWUidInfo *object = (struct unixinfo_GetPWUidInfo *)pytalloc_get_ptr(obj);
PyObject *py_homedir;
if (object->homedir == NULL) {
py_homedir = Py_None;
static int py_unixinfo_GetPWUidInfo_set_homedir(PyObject *py_obj, PyObject *value, void *closure)
{
- struct unixinfo_GetPWUidInfo *object = (struct unixinfo_GetPWUidInfo *)py_talloc_get_ptr(py_obj);
+ struct unixinfo_GetPWUidInfo *object = (struct unixinfo_GetPWUidInfo *)pytalloc_get_ptr(py_obj);
if (PyUnicode_Check(value)) {
object->homedir = PyString_AS_STRING(PyUnicode_AsEncodedString(value, "utf-8", "ignore"));
} else if (PyString_Check(value)) {
static PyObject *py_unixinfo_GetPWUidInfo_get_shell(PyObject *obj, void *closure)
{
- struct unixinfo_GetPWUidInfo *object = (struct unixinfo_GetPWUidInfo *)py_talloc_get_ptr(obj);
+ struct unixinfo_GetPWUidInfo *object = (struct unixinfo_GetPWUidInfo *)pytalloc_get_ptr(obj);
PyObject *py_shell;
if (object->shell == NULL) {
py_shell = Py_None;
static int py_unixinfo_GetPWUidInfo_set_shell(PyObject *py_obj, PyObject *value, void *closure)
{
- struct unixinfo_GetPWUidInfo *object = (struct unixinfo_GetPWUidInfo *)py_talloc_get_ptr(py_obj);
+ struct unixinfo_GetPWUidInfo *object = (struct unixinfo_GetPWUidInfo *)pytalloc_get_ptr(py_obj);
if (PyUnicode_Check(value)) {
object->shell = PyString_AS_STRING(PyUnicode_AsEncodedString(value, "utf-8", "ignore"));
} else if (PyString_Check(value)) {
static PyObject *py_unixinfo_GetPWUidInfo_new(PyTypeObject *type, PyObject *args, PyObject *kwargs)
{
- return py_talloc_new(struct unixinfo_GetPWUidInfo, type);
+ return pytalloc_new(struct unixinfo_GetPWUidInfo, type);
}
.tp_getset = py_unixinfo_GetPWUidInfo_getsetters,
.tp_methods = NULL,
.tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
- .tp_basicsize = sizeof(py_talloc_Object),
+ .tp_basicsize = sizeof(pytalloc_Object),
.tp_new = py_unixinfo_GetPWUidInfo_new,
};
}
PY_CHECK_TYPE(dom_sid_Type, py_sid, return false;);
- if (talloc_reference(r, py_talloc_get_mem_ctx(py_sid)) == NULL) {
+ if (talloc_reference(r, pytalloc_get_mem_ctx(py_sid)) == NULL) {
PyErr_NoMemory();
return false;
}
- r->in.sid = *(struct dom_sid *)py_talloc_get_ptr(py_sid);
+ r->in.sid = *(struct dom_sid *)pytalloc_get_ptr(py_sid);
return true;
}
{
PyObject *result;
PyObject *py_sid;
- py_sid = py_talloc_reference_ex(dom_sid_Type, r->out.sid, r->out.sid);
+ py_sid = pytalloc_reference_ex(dom_sid_Type, r->out.sid, r->out.sid);
result = py_sid;
if (NT_STATUS_IS_ERR(r->out.result)) {
PyErr_SetNTSTATUS(r->out.result);
}
PY_CHECK_TYPE(dom_sid_Type, py_sid, return false;);
- if (talloc_reference(r, py_talloc_get_mem_ctx(py_sid)) == NULL) {
+ if (talloc_reference(r, pytalloc_get_mem_ctx(py_sid)) == NULL) {
PyErr_NoMemory();
return false;
}
- r->in.sid = *(struct dom_sid *)py_talloc_get_ptr(py_sid);
+ r->in.sid = *(struct dom_sid *)pytalloc_get_ptr(py_sid);
return true;
}
{
PyObject *result;
PyObject *py_sid;
- py_sid = py_talloc_reference_ex(dom_sid_Type, r->out.sid, r->out.sid);
+ py_sid = pytalloc_reference_ex(dom_sid_Type, r->out.sid, r->out.sid);
result = py_sid;
if (NT_STATUS_IS_ERR(r->out.result)) {
PyErr_SetNTSTATUS(r->out.result);
int infos_cntr_0;
for (infos_cntr_0 = 0; infos_cntr_0 < *r->out.count; infos_cntr_0++) {
PyObject *py_infos_0;
- py_infos_0 = py_talloc_reference_ex(&unixinfo_GetPWUidInfo_Type, r->out.infos, &r->out.infos[infos_cntr_0]);
+ py_infos_0 = pytalloc_reference_ex(&unixinfo_GetPWUidInfo_Type, r->out.infos, &r->out.infos[infos_cntr_0]);
PyList_SetItem(py_infos, infos_cntr_0, py_infos_0);
}
}