]> git.ipfire.org Git - pakfire.git/commitdiff
util: Make pakfire_generate_uuid private
authorMichael Tremer <michael.tremer@ipfire.org>
Sat, 10 Apr 2021 15:16:23 +0000 (15:16 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Sat, 10 Apr 2021 15:16:23 +0000 (15:16 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/libpakfire/include/pakfire/util.h
src/libpakfire/libpakfire.sym
src/libpakfire/util.c

index 8c64a75b071044aad4af7e2fd5e090e58f3c24a5..0da4bd4c6e69fcdef7046545eb9fc74f77c767cd 100644 (file)
 #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);
@@ -68,6 +63,8 @@ FILE* pakfire_mktemp(char* path);
 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,
index 30cf0ba8929eccb59c5f73c8f7c4672c88232c36..8ec3c234cfc6a140836420fb99767d30e7bf16e9 100644 (file)
@@ -405,9 +405,6 @@ global:
        pakfire_transaction_run;
        pakfire_transaction_unref;
 
-       # util
-       pakfire_generate_uuid;
-
 local:
        *;
 };
index d2cf572150e83a31b06650f044c182f9e634716a..e5a5154b10dee00da83a2734ad9a5e0567b1cd11 100644 (file)
@@ -40,7 +40,6 @@
 
 #include <pakfire/constants.h>
 #include <pakfire/logging.h>
-#include <pakfire/private.h>
 #include <pakfire/types.h>
 
 #define NSEC_PER_SEC 1000000000
@@ -365,7 +364,7 @@ int pakfire_read_file_into_buffer(FILE* f, char** buffer, size_t* len) {
        return 0;
 }
 
-PAKFIRE_EXPORT char* pakfire_generate_uuid() {
+char* pakfire_generate_uuid() {
        uuid_t uuid;
 
        // Generate a new random value