#ifndef PAKFIRE_UTIL_H
#define PAKFIRE_UTIL_H
-#include <stddef.h>
-#include <sys/types.h>
-#include <time.h>
-
-#include <pakfire/types.h>
-
-char* pakfire_generate_uuid();
-
#ifdef PAKFIRE_PRIVATE
#include <stdio.h>
+#include <time.h>
#include <archive.h>
+#include <pakfire/types.h>
+
#define pakfire_string_set(s, value) snprintf(s, sizeof(s) - 1, "%s", value)
int pakfire_string_startswith(const char* s, const char* prefix);
char* pakfire_mkdtemp(char* path);
int pakfire_rmtree(const char* path, int flags);
+char* pakfire_generate_uuid();
+
// Archive Stuff
int pakfire_archive_copy_data(struct archive* src, struct archive* dst,
#include <pakfire/constants.h>
#include <pakfire/logging.h>
-#include <pakfire/private.h>
#include <pakfire/types.h>
#define NSEC_PER_SEC 1000000000
return 0;
}
-PAKFIRE_EXPORT char* pakfire_generate_uuid() {
+char* pakfire_generate_uuid() {
uuid_t uuid;
// Generate a new random value