summaryrefslogtreecommitdiffstats
path: root/src/rest.c
diff options
context:
space:
mode:
authorJavier Hernandez <jhernandez@soleta.eu>2024-01-11 13:09:05 +0100
committerOpenGnSys Support Team <soporte-og@soleta.eu>2024-01-11 13:35:41 +0100
commit149d1af21a9d8348cd504b21ad29fd2d742e8f77 (patch)
tree6c245024753f6057b06d1f2af1b001b3c0638de5 /src/rest.c
parent41ce6400330731015c7d60755a576eec29245481 (diff)
rest: Change room field 'group' to 'folder_id'
Change the name of variable 'group', in og_group struct, to 'folder_id'. Change payload field to 'folder_id' These changes are to make code easier to understand.
Diffstat (limited to 'src/rest.c')
-rw-r--r--src/rest.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/rest.c b/src/rest.c
index 5bafb4c..be92fa9 100644
--- a/src/rest.c
+++ b/src/rest.c
@@ -5988,8 +5988,8 @@ static int og_cmd_post_room_add(json_t *element,
} else if (!strcmp(key, "center")) {
err = og_json_parse_uint(value, &room.center);
params->flags |= OG_REST_PARAM_CENTER;
- } else if (!strcmp(key, "group")) {
- err = og_json_parse_uint(value, &room.group);
+ } else if (!strcmp(key, "folder_id")) {
+ err = og_json_parse_uint(value, &room.folder_id);
} else if (!strcmp(key, "remote")) {
err = og_json_parse_bool(value, &room.remote);
}
@@ -6047,7 +6047,7 @@ static int og_cmd_post_room_add(json_t *element,
"%d, '%s', '%s', %d, '%s', "
"'%s', '%s', '%s', %d)",
room.center, room.name, room.netmask,
- room.group, room.location, room.gateway,
+ room.folder_id, room.location, room.gateway,
room.dns, room.ntp, room.remote);
if (!result) {