From 9d292f7e22e1af751918a5ed002a90b69adf9545 Mon Sep 17 00:00:00 2001 From: sinanmohd Date: Tue, 23 Jul 2024 07:12:00 +0530 Subject: solver_util -> jobid --- include/jobid.h | 16 ++++++++++++++++ include/queue.h | 1 - include/solver_util.h | 20 -------------------- 3 files changed, 16 insertions(+), 21 deletions(-) create mode 100644 include/jobid.h delete mode 100644 include/solver_util.h (limited to 'include') diff --git a/include/jobid.h b/include/jobid.h new file mode 100644 index 0000000..980c85c --- /dev/null +++ b/include/jobid.h @@ -0,0 +1,16 @@ +#include + +#include "jobs.h" + +#ifndef SOLVER_UTIL_H + +struct jobid { + struct job **jobs; + size_t filled, size; +}; + +void jobid_free(struct jobid *jid); +int jobid_init(struct job_clist *q, struct jobid **jobid); + +#define SOLVER_UTIL_H +#endif diff --git a/include/queue.h b/include/queue.h index ca318cf..e6178e2 100644 --- a/include/queue.h +++ b/include/queue.h @@ -5,7 +5,6 @@ #include #include "jobs.h" -#include "solver_util.h" #ifndef QUEUE_H diff --git a/include/solver_util.h b/include/solver_util.h deleted file mode 100644 index 08f7f16..0000000 --- a/include/solver_util.h +++ /dev/null @@ -1,20 +0,0 @@ -#include - -#include "jobs.h" - -#ifndef SOLVER_UTIL_H - -struct jobid { - struct job **jobs; - size_t filled, size; - uint32_t *cost; - /* user directly asked for this to be built, 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 -- cgit v1.2.3