summaryrefslogtreecommitdiffstats
path: root/src/main.c
diff options
context:
space:
mode:
authorAlejandro Sirgo Rica <asirgo@soleta.eu>2024-05-21 16:34:34 +0200
committerAlejandro Sirgo Rica <asirgo@soleta.eu>2024-05-30 11:16:13 +0200
commitefb5f2758506ef875e376e40e978b1f03bf0ef8c (patch)
tree01131c88d714493c991dfc1e4ab08e70810b4097 /src/main.c
parenta3af24d94a5a0881169e00cf7d02cdcd5bf6bfc7 (diff)
client: store image cache data in database
Parse the 'cache' field of the refresh payload sent by the clients. Cache field structure in the payload: { ... 'cache': [ {'name': 'windows.img', 'size': 2432370213, checksum: '5d4dcc677bc19f40a647d0002f4ade90'}, {'name': 'linux.img', 'size': 243234534213, checksum: '3eb22f888f88a55ad954f55644e1192e'}, ] ... } Store that data in the 'cache' table of the database so it can be obtained later on. The table contains the following fields: - clientid: the numeric identifier of the client. - imagename: name of the image in cache. - size: size in bytes of the image in cache. - checksum: checksum of the image in cache.
Diffstat (limited to 'src/main.c')
0 files changed, 0 insertions, 0 deletions