Imported Upstream version 4.0.0+dfsg1
[abartlet/samba-debian.git] / source3 / autoconf / librpc / gen_ndr / py_unixinfo.c
similarity index 93%
rename from source3/librpc/gen_ndr/py_unixinfo.c
rename to source3/autoconf/librpc/gen_ndr/py_unixinfo.c
index 908ff4568511d89dc77eaf934d11eeff8643281c..c9018aaa885dedf9de2302bd8171026d733c3d8c 100644 (file)
@@ -5,8 +5,8 @@
 #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;
@@ -18,7 +18,7 @@ static PyTypeObject *ClientConnection_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;
@@ -26,14 +26,14 @@ static PyObject *py_unixinfo_GetPWUidInfo_get_status(PyObject *obj, void *closur
 
 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;
@@ -46,7 +46,7 @@ static PyObject *py_unixinfo_GetPWUidInfo_get_homedir(PyObject *obj, void *closu
 
 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)) {
@@ -60,7 +60,7 @@ static int py_unixinfo_GetPWUidInfo_set_homedir(PyObject *py_obj, PyObject *valu
 
 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;
@@ -73,7 +73,7 @@ static PyObject *py_unixinfo_GetPWUidInfo_get_shell(PyObject *obj, void *closure
 
 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)) {
@@ -94,7 +94,7 @@ static PyGetSetDef py_unixinfo_GetPWUidInfo_getsetters[] = {
 
 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);
 }
 
 
@@ -104,7 +104,7 @@ static PyTypeObject 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,
 };
 
@@ -121,11 +121,11 @@ static bool pack_py_unixinfo_SidToUid_args_in(PyObject *args, PyObject *kwargs,
        }
 
        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;
 }
 
@@ -170,7 +170,7 @@ static PyObject *unpack_py_unixinfo_UidToSid_args_out(struct unixinfo_UidToSid *
 {
        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);
@@ -192,11 +192,11 @@ static bool pack_py_unixinfo_SidToGid_args_in(PyObject *args, PyObject *kwargs,
        }
 
        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;
 }
 
@@ -241,7 +241,7 @@ static PyObject *unpack_py_unixinfo_GidToSid_args_out(struct unixinfo_GidToSid *
 {
        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);
@@ -298,7 +298,7 @@ static PyObject *unpack_py_unixinfo_GetPWUid_args_out(struct unixinfo_GetPWUid *
                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);
                }
        }