diff options
author | OpenGnSys Support Team <soporte-og@soleta.eu> | 2024-07-03 13:59:59 +0200 |
---|---|---|
committer | OpenGnSys Support Team <soporte-og@soleta.eu> | 2024-07-05 13:32:31 +0200 |
commit | 3f02d64104fede43074df2e0f229f514d24363fe (patch) | |
tree | 2010f57893ab3a49128bc2a83ddf001bdb471036 /src/dbi.h | |
parent | 23bd5f1a0703ffa1f6593489b1b544d8306bb82f (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.h | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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; |