summaryrefslogtreecommitdiffstats
path: root/src/json.h
diff options
context:
space:
mode:
authorJose M. Guisado <jguisado@soleta.eu>2023-10-10 16:47:18 +0200
committerJose M. Guisado <jguisado@soleta.eu>2023-10-10 18:09:19 +0200
commit6f6372d0e0c19530364b168fb9c843c45a430c5a (patch)
tree0209ff78d7bc759b49aa01d245e11a1970832e79 /src/json.h
parentdc68d0f1354c11185f87f7111130fc4aa367af60 (diff)
src: move og_repository to dbi.h
Move struct og_repository to dbi.h and use field max length for name and ip. Use og_json_parse_string_copy instead of og_json_parse_string to check maximum length against the request payload. Fixes: 86ccc3c2e8377623 ("#915 Add POST /repository/add")
Diffstat (limited to 'src/json.h')
-rw-r--r--src/json.h5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/json.h b/src/json.h
index 9ac5c4e..e37f1b2 100644
--- a/src/json.h
+++ b/src/json.h
@@ -132,9 +132,4 @@ struct og_procedure {
int og_json_parse_procedure(json_t *element, struct og_procedure *proc);
-struct og_repository {
- const char *name;
- const char *ip;
-};
-
#endif