summaryrefslogtreecommitdiff
path: root/src/apk_solver.h
diff options
context:
space:
mode:
authorTimo Teräs <timo.teras@iki.fi>2012-02-29 11:26:12 +0200
committerTimo Teräs <timo.teras@iki.fi>2012-02-29 11:26:12 +0200
commit2f66295fc7ca65e5706b647971559aaddb5dfa55 (patch)
tree4e12e858065df56f76058600125ee4128c2f5353 /src/apk_solver.h
parent15adb0475f49d461b21f4826f9f0e1a1b8562205 (diff)
downloadapk-tools-2f66295fc7ca65e5706b647971559aaddb5dfa55.tar.gz
apk-tools-2f66295fc7ca65e5706b647971559aaddb5dfa55.tar.bz2
apk-tools-2f66295fc7ca65e5706b647971559aaddb5dfa55.tar.xz
apk-tools-2f66295fc7ca65e5706b647971559aaddb5dfa55.zip
solver: merge apk_name_state to apk_name
apk_name_state is now quite small; and we avoid overhead of two pointers (+ malloc overhead) when we just make it part of apk_name. It also fixes some problems (that got introduced) where apk_name_state was not allocated.
Diffstat (limited to 'src/apk_solver.h')
-rw-r--r--src/apk_solver.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/apk_solver.h b/src/apk_solver.h
index 4ecb9a7..c839f7b 100644
--- a/src/apk_solver.h
+++ b/src/apk_solver.h
@@ -12,6 +12,9 @@
#ifndef APK_SOLVER_H
#define APK_SOLVER_H
+struct apk_name;
+struct apk_package;
+
struct apk_solution_entry {
struct apk_package *pkg;
unsigned short repository_tag : 15;