Commit ea28cc62 authored by jan.koester's avatar jan.koester
Browse files

test

parent eae15b0b
Loading
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -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);
@@ -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);
@@ -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);
@@ -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);
@@ -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);
@@ -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);
@@ -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);
@@ -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);
@@ -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);