aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorsinanmohd <sinan@sinanmohd.com>2024-08-24 20:06:12 +0530
committersinanmohd <sinan@sinanmohd.com>2024-08-24 20:23:46 +0530
commitee76b7aaf3e39fac459ac819d25b2c64c848bb3e (patch)
tree3a090a5c540a3571caae4ae6947b03859a3625ba /include
parent16ac10cfc0a441013229406b101fac5f02b26953 (diff)
jobs/job_cost_estimate: init
Diffstat (limited to 'include')
-rw-r--r--include/evanix.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/include/evanix.h b/include/evanix.h
index 62dd22d..1d3d661 100644
--- a/include/evanix.h
+++ b/include/evanix.h
@@ -6,6 +6,11 @@
#ifndef EVANIX_H
+struct estimate {
+ struct sqlite3 *db;
+ sqlite3_stmt *statement;
+};
+
struct evanix_opts_t {
bool isflake;
bool isdryrun;
@@ -15,7 +20,7 @@ struct evanix_opts_t {
bool check_cache_status;
bool break_evanix;
char *system;
- struct sqlite3 *estimate;
+ struct estimate estimate;
uint32_t max_builds;
uint32_t max_time;
int (*solver)(struct job **, struct job_clist *, int32_t);