#ifndef PAKFIRE_PAKFIRE_H
#define PAKFIRE_PAKFIRE_H
+#include <stdarg.h>
#include <stddef.h>
#include <stdio.h>
#include <sys/stat.h>
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);
#ifndef PAKFIRE_TYPES_H
#define PAKFIRE_TYPES_H
-#include <stdarg.h>
-
typedef struct _Pakfire* Pakfire;
typedef struct _PakfireArchive* PakfireArchive;
typedef struct _PakfireArchiveSignature* PakfireArchiveSignature;
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 */