]> git.ipfire.org Git - pakfire.git/commitdiff
libpakfire: Completely hide Pakfire type
authorMichael Tremer <michael.tremer@ipfire.org>
Thu, 30 Nov 2017 17:48:26 +0000 (18:48 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Thu, 30 Nov 2017 17:48:49 +0000 (18:48 +0100)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/libpakfire/include/pakfire/pakfire.h
src/libpakfire/pakfire.c

index 69296c8e226996052e45fe5a523c0f5035db6764..e56a0ed79dce211de427a5c26a9b321a1f883f35 100644 (file)
@@ -21,7 +21,6 @@
 #ifndef PAKFIRE_PAKFIRE_H
 #define PAKFIRE_PAKFIRE_H
 
-#include <pakfire/logging.h>
 #include <pakfire/types.h>
 
 int pakfire_init();
@@ -36,20 +35,4 @@ const char* pakfire_get_arch(Pakfire pakfire);
 
 PakfirePool pakfire_get_pool(Pakfire pakfire);
 
-#ifdef PAKFIRE_PRIVATE
-
-struct _Pakfire {
-       char* path;
-       char* arch;
-       PakfirePool pool;
-
-       // Logging
-       pakfire_log_function_t log_function;
-       int log_priority;
-
-       int nrefs;
-};
-
-#endif
-
 #endif /* PAKFIRE_PAKFIRE_H */
index 362c1136d19258e66566c1a8996a21f19ecaa271..89675a80aa59d771cc78db71dc28837c4ceeaab5 100644 (file)
@@ -18,6 +18,7 @@
 #                                                                             #
 #############################################################################*/
 
+#include <pakfire/logging.h>
 #include <pakfire/pakfire.h>
 #include <pakfire/pool.h>
 #include <pakfire/private.h>
 #include <pakfire/types.h>
 #include <pakfire/util.h>
 
+struct _Pakfire {
+       char* path;
+       char* arch;
+       PakfirePool pool;
+
+       // Logging
+       pakfire_log_function_t log_function;
+       int log_priority;
+
+       int nrefs;
+};
+
 PAKFIRE_EXPORT int pakfire_init() {
        // Setup logging
        pakfire_setup_logging();