]> git.ipfire.org Git - pakfire.git/commitdiff
python: Update function declaration for the log callback
authorMichael Tremer <michael.tremer@ipfire.org>
Wed, 9 Oct 2024 14:20:43 +0000 (14:20 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Wed, 9 Oct 2024 15:14:15 +0000 (15:14 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/_pakfire/ctx.c

index 8de9dd1abb269c874064ef732608a1401f5b2298..3da74ee0cfeceebf3eb27918a81233be7cf547c6 100644 (file)
@@ -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;