aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/run_queue.h
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2023-07-04 16:19:32 +0200
committerEgor Tensin <Egor.Tensin@gmail.com>2023-07-04 16:19:32 +0200
commit32bea4675dd751c0d07aa1f348b1b7201794d884 (patch)
tree01be1e7ee7b55086a3f278a55cc26964fa20320c /src/run_queue.h
parentstorage_sqlite: refactoring (diff)
downloadcimple-32bea4675dd751c0d07aa1f348b1b7201794d884.tar.gz
cimple-32bea4675dd751c0d07aa1f348b1b7201794d884.zip
sqlite: store new runs in SQLite
Diffstat (limited to '')
-rw-r--r--src/run_queue.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/run_queue.h b/src/run_queue.h
index 59bc71e..7f07819 100644
--- a/src/run_queue.h
+++ b/src/run_queue.h
@@ -14,12 +14,15 @@
struct run;
-int run_create(struct run **, const char *url, const char *rev);
+int run_create(struct run **, const char *url, const char *rev, int id);
int run_from_msg(struct run **, const struct msg *);
void run_destroy(struct run *);
const char *run_get_url(const struct run *);
const char *run_get_rev(const struct run *);
+int run_get_id(const struct run *);
+
+void run_set_id(struct run *, int id);
SIMPLEQ_HEAD(run_queue, run);