From: Michael Tremer Date: Wed, 9 Oct 2024 14:20:43 +0000 (+0000) Subject: python: Update function declaration for the log callback X-Git-Tag: 0.9.30~1110 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=af42db6f1de4a511102563d48e9193e5cda30906;p=pakfire.git python: Update function declaration for the log callback Signed-off-by: Michael Tremer --- diff --git a/src/_pakfire/ctx.c b/src/_pakfire/ctx.c index 8de9dd1ab..3da74ee0c 100644 --- a/src/_pakfire/ctx.c +++ b/src/_pakfire/ctx.c @@ -34,6 +34,9 @@ static PyObject* Ctx_new(PyTypeObject* type, PyObject* args, PyObject* kwds) { return (PyObject *)self; } +static void Ctx_log_callback(void* data, int level, const char* file, int line, + const char* fn, const char* format, va_list args) __attribute__((format(printf, 6, 0))); + static void Ctx_log_callback(void* data, int level, const char* file, int line, const char* fn, const char* format, va_list args) { PyObject* logger = (PyObject*)data;