diff lib/types.h @ 19:de4bf839b565

misc: revamp SQL
author David Demelier <markand@malikania.fr>
date Fri, 15 Jul 2022 11:11:48 +0200
parents 600204c31bf0
children f98ea578b1ef
line wrap: on
line diff
--- a/lib/types.h	Tue Jul 12 20:20:51 2022 +0200
+++ b/lib/types.h	Fri Jul 15 11:11:48 2022 +0200
@@ -21,17 +21,18 @@
 
 #include <sys/types.h>
 #include <stddef.h>
+#include <stdint.h>
 
 #include <jansson.h>
 
 struct job {
-	int id;
+	intmax_t id;
 	int project_id;
 	const char *tag;
 };
 
 struct jobresult {
-	int id;
+	intmax_t id;
 	int job_id;
 	int worker_id;
 	int exitcode;
@@ -39,13 +40,13 @@
 };
 
 struct worker {
-	int id;
+	intmax_t id;
 	const char *name;
 	const char *desc;
 };
 
 struct project {
-	int id;
+	intmax_t id;
 	const char *name;
 	const char *desc;
 	const char *url;