2012-02-29 09:26:12 +00:00
|
|
|
/* apk_solver_data.h - Alpine Package Keeper (APK)
|
|
|
|
*
|
|
|
|
* Copyright (C) 2005-2008 Natanael Copa <n@tanael.org>
|
|
|
|
* Copyright (C) 2008-2012 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_DATA_H
|
|
|
|
#define APK_SOLVER_DATA_H
|
|
|
|
|
2013-01-28 13:31:34 +00:00
|
|
|
#include <stdint.h>
|
2012-02-29 09:26:12 +00:00
|
|
|
#include "apk_defines.h"
|
|
|
|
#include "apk_provider_data.h"
|
|
|
|
|
|
|
|
struct apk_solver_name_state {
|
|
|
|
struct apk_provider chosen;
|
2013-06-19 18:39:01 +00:00
|
|
|
union {
|
|
|
|
struct {
|
|
|
|
struct list_head dirty_list;
|
|
|
|
struct list_head unresolved_list;
|
|
|
|
};
|
|
|
|
struct {
|
|
|
|
struct apk_name *installed_name;
|
|
|
|
struct apk_package *installed_pkg;
|
|
|
|
};
|
|
|
|
};
|
2013-06-11 11:06:06 +00:00
|
|
|
unsigned short requirers;
|
2013-06-19 10:13:51 +00:00
|
|
|
unsigned short merge_depends;
|
|
|
|
unsigned short merge_provides;
|
2013-06-11 11:06:06 +00:00
|
|
|
unsigned short max_dep_chain;
|
|
|
|
unsigned seen : 1;
|
2013-06-19 17:46:53 +00:00
|
|
|
unsigned locked : 1;
|
2013-06-11 11:06:06 +00:00
|
|
|
unsigned in_changeset : 1;
|
|
|
|
unsigned reevaluate_deps : 1;
|
|
|
|
unsigned reevaluate_iif : 1;
|
|
|
|
unsigned has_iif : 1;
|
2014-03-12 11:08:40 +00:00
|
|
|
unsigned no_iif : 1;
|
2013-06-11 11:06:06 +00:00
|
|
|
unsigned has_options : 1;
|
2013-06-18 13:24:48 +00:00
|
|
|
unsigned reverse_deps_done : 1;
|
2017-10-27 12:18:15 +00:00
|
|
|
unsigned has_virtual_provides : 1;
|
2013-06-11 11:06:06 +00:00
|
|
|
};
|
2012-02-29 09:26:12 +00:00
|
|
|
|
2013-06-11 11:06:06 +00:00
|
|
|
struct apk_solver_package_state {
|
2013-06-12 05:45:29 +00:00
|
|
|
unsigned int conflicts;
|
|
|
|
unsigned short max_dep_chain;
|
2013-06-12 10:24:07 +00:00
|
|
|
unsigned short pinning_allowed;
|
|
|
|
unsigned short pinning_preferred;
|
2013-06-12 05:45:29 +00:00
|
|
|
unsigned solver_flags : 4;
|
|
|
|
unsigned solver_flags_inheritable : 4;
|
2013-06-11 11:06:06 +00:00
|
|
|
unsigned seen : 1;
|
2013-06-20 11:08:16 +00:00
|
|
|
unsigned pkg_available : 1;
|
|
|
|
unsigned pkg_selectable : 1;
|
2013-06-12 10:24:07 +00:00
|
|
|
unsigned tag_ok : 1;
|
|
|
|
unsigned tag_preferred : 1;
|
2013-06-12 12:25:16 +00:00
|
|
|
unsigned dependencies_used : 1;
|
|
|
|
unsigned dependencies_merged : 1;
|
2013-06-11 11:06:06 +00:00
|
|
|
unsigned in_changeset : 1;
|
|
|
|
unsigned iif_triggered : 1;
|
2014-03-12 11:08:40 +00:00
|
|
|
unsigned iif_failed : 1;
|
2013-06-12 14:00:43 +00:00
|
|
|
unsigned error : 1;
|
2012-02-29 09:26:12 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|