diff options
Diffstat (limited to 'src/apk_solver.h')
-rw-r--r-- | src/apk_solver.h | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/src/apk_solver.h b/src/apk_solver.h new file mode 100644 index 0000000..27e3b93 --- /dev/null +++ b/src/apk_solver.h @@ -0,0 +1,33 @@ +/* apk_solver.h - Alpine Package Keeper (APK) + * + * Copyright (C) 2005-2008 Natanael Copa <n@tanael.org> + * Copyright (C) 2008 Timo Teräs <timo.teras@iki.fi> + * All rights reserved. + * + * This program is free software; you can redistribute it and/or modify it + * under the terms of the GNU General Public License version 2 as published + * by the Free Software Foundation. See http://www.gnu.org/ for details. + */ + +#ifndef APK_SOLVER_H +#define APK_SOLVER_H + +struct apk_change { + struct apk_package *oldpkg; + struct apk_package *newpkg; +}; +APK_ARRAY(apk_change_array, struct apk_change); + +struct apk_changeset { + struct apk_change_array *changes; +}; + +void apk_solver_sort(struct apk_database *db); +int apk_solver_solve(struct apk_database *db, struct apk_dependency_array *world, + struct apk_package_array **solution); +int apk_solver_generate_changeset(struct apk_database *db, + struct apk_package_array *solution, + struct apk_changeset *changeset); + +#endif + |