summaryrefslogtreecommitdiffstats
path: root/src/dbi.h
diff options
context:
space:
mode:
authorJavier Sánchez Parra <jsanchez@soleta.eu>2022-06-20 09:40:48 +0200
committerJavier Sánchez Parra <jsanchez@soleta.eu>2022-06-20 10:41:50 +0200
commit30d6af09d5db938612b6ea803c5f88ea531cf7b7 (patch)
tree15796ade39995c401ea8dc37acaf4c3e6154b3ad /src/dbi.h
parent52a38d3e574fb25b47d230bc87754583eb17b4a6 (diff)
#915 Use the repository id on image list
API "GET /images" shows the repository ID the image belongs to, instead of the IP. This is a preparative commit to the support of repositories with several IPs. Request GET /images Response 200 OK: { "images": [ { "name": "windows10", "datasize": 0, "size": 626088433, "modified": "Fri Jun 10 12:20:32 2022", "permissions": "744", "software_id": 1, "type": 1, "id": 6, "repo_id": 1 } ], "disk": { "total": 52573995008, "free": 38964637696 } }
Diffstat (limited to 'src/dbi.h')
-rw-r--r--src/dbi.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/dbi.h b/src/dbi.h
index bebae02..5f6b52e 100644
--- a/src/dbi.h
+++ b/src/dbi.h
@@ -53,7 +53,6 @@ struct og_image_legacy {
struct og_image {
char name[OG_DB_IMAGE_NAME_MAXLEN + 1];
char description[OG_DB_IMAGE_DESCRIPTION_MAXLEN + 1];
- char repo_ip[OG_DB_IP_MAXLEN + 1];
uint64_t software_id;
uint64_t center_id;
uint64_t datasize;