summaryrefslogtreecommitdiffstats
path: root/src/dbi.h
diff options
context:
space:
mode:
authorOpenGnSys Support Team <soporte-og@soleta.eu>2024-07-03 13:59:59 +0200
committerOpenGnSys Support Team <soporte-og@soleta.eu>2024-07-05 13:32:31 +0200
commit3f02d64104fede43074df2e0f229f514d24363fe (patch)
tree2010f57893ab3a49128bc2a83ddf001bdb471036 /src/dbi.h
parent23bd5f1a0703ffa1f6593489b1b544d8306bb82f (diff)
rest: add checksum to GET /images
Add a new checksum attribute to GET /images, extend database to add a new checksum field to images table.
Diffstat (limited to 'src/dbi.h')
-rw-r--r--src/dbi.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/dbi.h b/src/dbi.h
index d6de474..f7aaea3 100644
--- a/src/dbi.h
+++ b/src/dbi.h
@@ -53,9 +53,12 @@ struct og_image_legacy {
char code[OG_DB_INT8_MAXLEN + 1];
};
+#define OG_DB_CHECKSUM 128
+
struct og_image {
char name[OG_DB_IMAGE_NAME_MAXLEN + 1];
char description[OG_DB_IMAGE_DESCRIPTION_MAXLEN + 1];
+ char checksum[OG_DB_CHECKSUM + 1];
uint64_t software_id;
uint64_t center_id;
uint64_t datasize;