]> git.ipfire.org Git - pakfire.git/commitdiff
libpakfire: Make Solution obscure
authorMichael Tremer <michael.tremer@ipfire.org>
Mon, 15 Jan 2018 13:52:14 +0000 (14:52 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Mon, 15 Jan 2018 13:52:14 +0000 (14:52 +0100)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/libpakfire/include/pakfire/solution.h
src/libpakfire/solution.c

index ce5ee0e965a051d95b39b04d14f176562c184ecb..8f9a2ee7d6d9da6b309efa49a968512aa845d7f9 100644 (file)
@@ -32,17 +32,4 @@ void pakfire_solution_append(PakfireSolution solution, PakfireSolution new_solut
 
 char* pakfire_solution_to_string(PakfireSolution solution);
 
-#ifdef PAKFIRE_PRIVATE
-
-struct _PakfireSolution {
-       PakfireProblem problem;
-       Id id;
-       char** elements;
-
-       PakfireSolution next;
-       int nrefs;
-};
-
-#endif
-
 #endif /* PAKFIRE_SOLUTION_H */
index 6105a787a08264ee593ebe57d07a35fc83b6ef96..1a89abb0f8b003e87c9be6b80cdea5a0a01155dc 100644 (file)
 #include <pakfire/solution.h>
 #include <pakfire/util.h>
 
+struct _PakfireSolution {
+       PakfireProblem problem;
+       Id id;
+       char** elements;
+
+       PakfireSolution next;
+       int nrefs;
+};
+
 static void import_elements(PakfireSolution solution) {
        Solver* solver = pakfire_request_get_solver(solution->problem->request);
        Pool* pool = solver->pool;