diff options
author | Javier Hernandez <jhernandez@soleta.eu> | 2024-01-09 11:57:29 +0100 |
---|---|---|
committer | OpenGnSys Support Team <soporte-og@soleta.eu> | 2024-01-09 12:57:28 +0100 |
commit | 1fb425694c6d9fbf5b9c0ad7282a68fa588fa506 (patch) | |
tree | 85bf5b5197cc69473f2b9c9c4431b7eef3404586 /src/dbi.h | |
parent | 28ab2aa9b0fe22c4d4658f37799e2735b7370ef2 (diff) |
rest: Add support for adding folders
Add support for adding computer folders and room folders.
Diffstat (limited to 'src/dbi.h')
-rw-r--r-- | src/dbi.h | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -24,6 +24,7 @@ void og_dbi_close(struct og_dbi *db); #define OG_DB_COMPUTER_NAME_MAXLEN 100 #define OG_DB_CENTER_NAME_MAXLEN 100 #define OG_DB_ROOM_NAME_MAXLEN 100 +#define OG_DB_FOLDER_NAME_MAXLEN 100 #define OG_DB_ROOM_LOC_MAXLEN 255 #define OG_DB_SERIAL_NUMBER_MAXLEN 25 #define OG_DB_IMAGE_DESCRIPTION_MAXLEN 250 @@ -108,6 +109,12 @@ struct og_room { bool remote; }; +struct og_folder { + unsigned int room; + unsigned int center; + char name[OG_DB_FOLDER_NAME_MAXLEN + 1]; +}; + struct og_repository { unsigned int center; char name[OG_DB_REPO_NAME_MAXLEN]; |