aboutsummaryrefslogtreecommitdiff
path: root/include/solver_util.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/solver_util.h')
-rw-r--r--include/solver_util.h13
1 files changed, 11 insertions, 2 deletions
diff --git a/include/solver_util.h b/include/solver_util.h
index 99d5fcd..5c5f5d2 100644
--- a/include/solver_util.h
+++ b/include/solver_util.h
@@ -1,11 +1,20 @@
+#include <stdint.h>
+
#include "jobs.h"
#ifndef SOLVER_UTIL_H
-struct job_ids {
+struct jobid {
struct job **jobs;
- ssize_t filled, size;
+ size_t filled, size;
+ uint32_t *cost;
+ /* user directly asked for this to be build, not a transitively acquired
+ * dependency */
+ bool *isdirect;
};
+void jobid_free(struct jobid *jid);
+int jobid_init(struct job_clist *q, struct jobid **job_ids);
+
#define SOLVER_UTIL_H
#endif