summaryrefslogtreecommitdiffstats
path: root/sources/dbi.h
diff options
context:
space:
mode:
authorRoberto Hueso Gómez <rhueso@soleta.eu>2020-06-24 11:10:11 +0200
committerOpenGnSys Support Team <soporte-og@soleta.eu>2020-06-24 13:31:24 +0200
commit3d253e65bcd77f534528ef633bd785d37b1d4da5 (patch)
tree3b0831792eb3fa09dead45d185c50132314f272a /sources/dbi.h
parent9c8e5c710269067859e12474a0803a8f2934136e (diff)
#980 Add GET /scopes REST request
This patch implements HTTP GET /scopes request which returns the scopes hierarchy: Request: HTTP GET /scopes Response: 200 OK { "scope": [ { "name": "Center 1", "type": "center", "id": 1, "scope": [ { "name": "Room 1", "type": "room", "id": 1, "scope": [ { "name": "Computer 1", "type": "computer", "id": 1, "scope": [] }, { "name": "Computer 3", "type": "computer", "id": 2, "scope": [] } ] } ] } ] }
Diffstat (limited to 'sources/dbi.h')
-rw-r--r--sources/dbi.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/sources/dbi.h b/sources/dbi.h
index 09a5b4c..30327a7 100644
--- a/sources/dbi.h
+++ b/sources/dbi.h
@@ -19,6 +19,8 @@ struct og_dbi *og_dbi_open(struct og_dbi_config *config);
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_IMAGE_NAME_MAXLEN 50
#define OG_DB_FILESYSTEM_MAXLEN 16
#define OG_DB_INT8_MAXLEN 8