summaryrefslogtreecommitdiffstats
path: root/src/dbi.h
diff options
context:
space:
mode:
authorOpenGnSys Support Team <soporte-og@soleta.eu>2024-09-19 10:30:46 +0200
committerAlejandro Sirgo Rica <asirgo@soleta.eu>2024-09-23 13:51:07 +0200
commit5d97a721d0d475ea86e9d503a2e413e22f53492b (patch)
treeddc362e3525685cbfa00b21e1dc1c41febb157bf /src/dbi.h
parentad31c3832d08fa1aca7bb473141cd5265e6f670d (diff)
ogAdmServer: replace old actualizaConfiguracion
Reimplement the legacy funcion actualizaConfiguracion with og_update_client_config in src/client.c if disk does not exist, add it, otherwise update disk contents. if partition size, code, filesystem or os is different, reset image id, otherwise update partition usage only. delete partitions that are gone at the end.
Diffstat (limited to 'src/dbi.h')
-rw-r--r--src/dbi.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/dbi.h b/src/dbi.h
index b2eca96..9e8dd6e 100644
--- a/src/dbi.h
+++ b/src/dbi.h
@@ -142,5 +142,6 @@ int og_dbi_get_repository_ip(const struct og_dbi *dbi, const uint32_t repo_id,
const char *client_ip, char *repository_ip);
int og_dbi_get_server_ip(const struct og_dbi *dbi, const char *client_ip,
char *server_ip);
+int og_dbi_get_os_id(const struct og_dbi *dbi, const char *os_name, uint32_t *os_id);
#endif