From f8ec7f6cb19c4cc27398bdc0482b531e601d4291 Mon Sep 17 00:00:00 2001 From: Jelmer Vernooij Date: Wed, 10 Aug 2011 15:15:18 +0200 Subject: pytalloc: Use consistent prefix for functions, add ABI file. --- source4/librpc/ndr/py_misc.c | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) (limited to 'source4/librpc/ndr/py_misc.c') diff --git a/source4/librpc/ndr/py_misc.c b/source4/librpc/ndr/py_misc.c index 184029b59b..4e6d62ef48 100644 --- a/source4/librpc/ndr/py_misc.c +++ b/source4/librpc/ndr/py_misc.c @@ -1,6 +1,7 @@ /* Unix SMB/CIFS implementation. Samba utility functions + Copyright (C) Jelmer Vernooij 2008 This program is free software; you can redistribute it and/or modify @@ -26,8 +27,8 @@ static int py_GUID_cmp(PyObject *py_self, PyObject *py_other) { int ret; - struct GUID *self = py_talloc_get_ptr(py_self), *other; - other = py_talloc_get_ptr(py_other); + struct GUID *self = pytalloc_get_ptr(py_self), *other; + other = pytalloc_get_ptr(py_other); if (other == NULL) return -1; @@ -43,7 +44,7 @@ static int py_GUID_cmp(PyObject *py_self, PyObject *py_other) static PyObject *py_GUID_str(PyObject *py_self) { - struct GUID *self = py_talloc_get_ptr(py_self); + struct GUID *self = pytalloc_get_ptr(py_self); char *str = GUID_string(NULL, self); PyObject *ret = PyString_FromString(str); talloc_free(str); @@ -52,7 +53,7 @@ static PyObject *py_GUID_str(PyObject *py_self) static PyObject *py_GUID_repr(PyObject *py_self) { - struct GUID *self = py_talloc_get_ptr(py_self); + struct GUID *self = pytalloc_get_ptr(py_self); char *str = GUID_string(NULL, self); PyObject *ret = PyString_FromFormat("GUID('%s')", str); talloc_free(str); @@ -63,7 +64,7 @@ static int py_GUID_init(PyObject *self, PyObject *args, PyObject *kwargs) { PyObject *str = NULL; NTSTATUS status; - struct GUID *guid = py_talloc_get_ptr(self); + struct GUID *guid = pytalloc_get_ptr(self); const char *kwnames[] = { "str", NULL }; if (!PyArg_ParseTupleAndKeywords(args, kwargs, "|O", discard_const_p(char *, kwnames), &str)) @@ -102,7 +103,7 @@ static int py_policy_handle_init(PyObject *self, PyObject *args, PyObject *kwarg { char *str = NULL; NTSTATUS status; - struct policy_handle *handle = py_talloc_get_ptr(self); + struct policy_handle *handle = pytalloc_get_ptr(self); const char *kwnames[] = { "uuid", "type", NULL }; if (!PyArg_ParseTupleAndKeywords(args, kwargs, "|si", discard_const_p(char *, kwnames), &str, &handle->handle_type)) @@ -121,7 +122,7 @@ static int py_policy_handle_init(PyObject *self, PyObject *args, PyObject *kwarg static PyObject *py_policy_handle_repr(PyObject *py_self) { - struct policy_handle *self = py_talloc_get_ptr(py_self); + struct policy_handle *self = pytalloc_get_ptr(py_self); char *uuid_str = GUID_string(NULL, &self->uuid); PyObject *ret = PyString_FromFormat("policy_handle(%d, '%s')", self->handle_type, uuid_str); talloc_free(uuid_str); @@ -130,7 +131,7 @@ static PyObject *py_policy_handle_repr(PyObject *py_self) static PyObject *py_policy_handle_str(PyObject *py_self) { - struct policy_handle *self = py_talloc_get_ptr(py_self); + struct policy_handle *self = pytalloc_get_ptr(py_self); char *uuid_str = GUID_string(NULL, &self->uuid); PyObject *ret = PyString_FromFormat("%d, %s", self->handle_type, uuid_str); talloc_free(uuid_str); -- cgit