From: Rob Browning Date: Sat, 9 Oct 2010 00:53:47 +0000 (-0500) Subject: Rename py_* functions to bup_* in lib/bup/_helpers.c. X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=23d642ad0fd790b94d89784583b3ad9e369d80e3;p=packages%2Fb%2Fbup.git Rename py_* functions to bup_* in lib/bup/_helpers.c. Rename py_get_linux_file_attr() to bup_get_linux_file_attr(). Rename py_set_linux_file_attr() to bup_get_linux_file_attr(). --- diff --git a/lib/bup/_helpers.c b/lib/bup/_helpers.c index 973de8a..1d0e72a 100644 --- a/lib/bup/_helpers.c +++ b/lib/bup/_helpers.c @@ -200,7 +200,7 @@ static PyObject *fadvise_done(PyObject *self, PyObject *args) } -static PyObject *py_get_linux_file_attr(PyObject *self, PyObject *args) +static PyObject *bup_get_linux_file_attr(PyObject *self, PyObject *args) { int rc; unsigned long attr; @@ -227,7 +227,7 @@ static PyObject *py_get_linux_file_attr(PyObject *self, PyObject *args) } -static PyObject *py_set_linux_file_attr(PyObject *self, PyObject *args) +static PyObject *bup_set_linux_file_attr(PyObject *self, PyObject *args) { int rc; unsigned long attr; @@ -386,9 +386,9 @@ static PyMethodDef helper_methods[] = { "open() the given filename for read with O_NOATIME if possible" }, { "fadvise_done", fadvise_done, METH_VARARGS, "Inform the kernel that we're finished with earlier parts of a file" }, - { "get_linux_file_attr", py_get_linux_file_attr, METH_VARARGS, + { "get_linux_file_attr", bup_get_linux_file_attr, METH_VARARGS, "Return the Linux attributes for the given file." }, - { "set_linux_file_attr", py_set_linux_file_attr, METH_VARARGS, + { "set_linux_file_attr", bup_set_linux_file_attr, METH_VARARGS, "Set the Linux attributes for the given file." }, #ifdef HAVE_BUP_UTIMENSAT { "utimensat", bup_utimensat, METH_VARARGS,