Loading src/api.cpp +9 −0 Original line number Diff line number Diff line Loading @@ -97,6 +97,7 @@ namespace { class Api { public: void checkGPO(json_object *request, json_object *response) { AuthBackend::Guard guard(_Backend, AuthBackend::Shared); json_object* cmd = get_commands_array_or_throw(request); int fcount = json_object_array_length(cmd); Loading @@ -119,6 +120,7 @@ public: } void existsGPO(json_object *request, json_object *response) { AuthBackend::Guard guard(_Backend, AuthBackend::Shared); json_object* cmd = get_commands_array_or_throw(request); int fcount = json_object_array_length(cmd); Loading Loading @@ -148,6 +150,7 @@ public: } void addGPO(json_object *request, json_object *response) { AuthBackend::Guard guard(_Backend, AuthBackend::Exclusive); json_object* cmd = get_commands_array_or_throw(request); int fcount = json_object_array_length(cmd); Loading Loading @@ -249,6 +252,7 @@ public: } const SessionData* userLogin(json_object *request, json_object *response) { AuthBackend::Guard guard(_Backend, AuthBackend::Shared); json_object* cmd = get_commands_array_or_throw(request); int fcount = json_object_array_length(cmd); Loading Loading @@ -318,6 +322,7 @@ public: } const ClientConnections* ClientLogin(json_object *request, json_object *response) { AuthBackend::Guard guard(_Backend, AuthBackend::Shared); json_object* cmd = get_commands_array_or_throw(request); int fcount = json_object_array_length(cmd); Loading Loading @@ -378,6 +383,7 @@ public: } void Connection(json_object *request, json_object *response) { AuthBackend::Guard guard(_Backend, AuthBackend::Exclusive); json_object* cmd = get_commands_array_or_throw(request); int fcount = json_object_array_length(cmd); Loading Loading @@ -567,6 +573,7 @@ public: } void changeUserPw(json_object *request, json_object *response) { AuthBackend::Guard guard(_Backend, AuthBackend::Exclusive); json_object* cmd = get_commands_array_or_throw(request); int fcount = json_object_array_length(cmd); Loading Loading @@ -643,6 +650,7 @@ public: } void UserInfo(json_object *request, json_object *response) { AuthBackend::Guard guard(_Backend, AuthBackend::Shared); json_object* cmd = get_commands_array_or_throw(request); int fcount = json_object_array_length(cmd); Loading Loading @@ -682,6 +690,7 @@ public: } void listGroups(json_object *request, json_object *response) { AuthBackend::Guard guard(_Backend, AuthBackend::Shared); json_object* cmd = get_commands_array_or_throw(request); int fcount = json_object_array_length(cmd); Loading Loading
src/api.cpp +9 −0 Original line number Diff line number Diff line Loading @@ -97,6 +97,7 @@ namespace { class Api { public: void checkGPO(json_object *request, json_object *response) { AuthBackend::Guard guard(_Backend, AuthBackend::Shared); json_object* cmd = get_commands_array_or_throw(request); int fcount = json_object_array_length(cmd); Loading @@ -119,6 +120,7 @@ public: } void existsGPO(json_object *request, json_object *response) { AuthBackend::Guard guard(_Backend, AuthBackend::Shared); json_object* cmd = get_commands_array_or_throw(request); int fcount = json_object_array_length(cmd); Loading Loading @@ -148,6 +150,7 @@ public: } void addGPO(json_object *request, json_object *response) { AuthBackend::Guard guard(_Backend, AuthBackend::Exclusive); json_object* cmd = get_commands_array_or_throw(request); int fcount = json_object_array_length(cmd); Loading Loading @@ -249,6 +252,7 @@ public: } const SessionData* userLogin(json_object *request, json_object *response) { AuthBackend::Guard guard(_Backend, AuthBackend::Shared); json_object* cmd = get_commands_array_or_throw(request); int fcount = json_object_array_length(cmd); Loading Loading @@ -318,6 +322,7 @@ public: } const ClientConnections* ClientLogin(json_object *request, json_object *response) { AuthBackend::Guard guard(_Backend, AuthBackend::Shared); json_object* cmd = get_commands_array_or_throw(request); int fcount = json_object_array_length(cmd); Loading Loading @@ -378,6 +383,7 @@ public: } void Connection(json_object *request, json_object *response) { AuthBackend::Guard guard(_Backend, AuthBackend::Exclusive); json_object* cmd = get_commands_array_or_throw(request); int fcount = json_object_array_length(cmd); Loading Loading @@ -567,6 +573,7 @@ public: } void changeUserPw(json_object *request, json_object *response) { AuthBackend::Guard guard(_Backend, AuthBackend::Exclusive); json_object* cmd = get_commands_array_or_throw(request); int fcount = json_object_array_length(cmd); Loading Loading @@ -643,6 +650,7 @@ public: } void UserInfo(json_object *request, json_object *response) { AuthBackend::Guard guard(_Backend, AuthBackend::Shared); json_object* cmd = get_commands_array_or_throw(request); int fcount = json_object_array_length(cmd); Loading Loading @@ -682,6 +690,7 @@ public: } void listGroups(json_object *request, json_object *response) { AuthBackend::Guard guard(_Backend, AuthBackend::Shared); json_object* cmd = get_commands_array_or_throw(request); int fcount = json_object_array_length(cmd); Loading