]> git.ipfire.org Git - pakfire.git/commitdiff
types.h: Move pakfire log function declaration to pakfire.h
authorMichael Tremer <michael.tremer@ipfire.org>
Wed, 30 Jun 2021 17:15:23 +0000 (17:15 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Wed, 30 Jun 2021 17:15:23 +0000 (17:15 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/libpakfire/include/pakfire/pakfire.h
src/libpakfire/include/pakfire/types.h
src/libpakfire/progressbar.c

index 40b475455490f00ae6153fa73e6f0d5961991b7b..d6d4f37440819fef0a61623032c0fe324d65a18e 100644 (file)
@@ -21,6 +21,7 @@
 #ifndef PAKFIRE_PAKFIRE_H
 #define PAKFIRE_PAKFIRE_H
 
+#include <stdarg.h>
 #include <stddef.h>
 #include <stdio.h>
 #include <sys/stat.h>
@@ -39,6 +40,9 @@ enum pakfire_flags {
        PAKFIRE_FLAGS_DISABLE_RAMDISK   = (1 << 5),
 };
 
+typedef void (*pakfire_log_function_t)(void* data, int priority, const char* file,
+               int line, const char* fn, const char* format, va_list args);
+
 int pakfire_create(Pakfire* pakfire, const char* path, const char* arch,
        const char* conf, int flags, pakfire_log_function_t log, void* data);
 
index a9a906a1f41f842855f8fb1eeb6e6a770a6c63c9..d36212cf9a12953e1f533faecc6f2cf759a9374a 100644 (file)
@@ -21,8 +21,6 @@
 #ifndef PAKFIRE_TYPES_H
 #define PAKFIRE_TYPES_H
 
-#include <stdarg.h>
-
 typedef struct _Pakfire* Pakfire;
 typedef struct _PakfireArchive* PakfireArchive;
 typedef struct _PakfireArchiveSignature* PakfireArchiveSignature;
@@ -32,7 +30,4 @@ typedef struct _PakfireParser* PakfireParser;
 typedef struct _PakfireRepo* PakfireRepo;
 typedef struct _PakfireSolution* PakfireSolution;
 
-typedef void (*pakfire_log_function_t)(void* data, int priority, const char* file,
-               int line, const char* fn, const char* format, va_list args);
-
 #endif /* PAKFIRE_TYPES_H */
index 839e6ede4e8002eaf23b83e435a7cec4e1e45eb8..ead6250780e5674794956d120af100cc4f20985e 100644 (file)
@@ -20,6 +20,7 @@
 
 #include <errno.h>
 #include <signal.h>
+#include <stdarg.h>
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>