Commit 4dc002a7 authored by Scott Vokes's avatar Scott Vokes
Browse files

add getnext/getprevious to CLI utility

parent efb868ce
Loading
Loading
Loading
Loading
+16 −0
Original line number Diff line number Diff line
@@ -141,6 +141,22 @@ KineticStatus ExecuteOperation(
        }
    }

    else if (strcmp("getnext", operation) == 0) {
        status = KineticClient_GetNext(sessionHandle, entry, NULL);
        if (status == 0) {
            printf("\nGetNext executed successfully."
                   "The entry has been retrieved!\n\n");
        }
    }

    else if (strcmp("getprevious", operation) == 0) {
        status = KineticClient_GetPrevious(sessionHandle, entry, NULL);
        if (status == 0) {
            printf("\nGetPrevious executed successfully."
                   "The entry has been retrieved!\n\n");
        }
    }

    else {
        printf("\nSpecified operation '%s' is invalid!\n\n", operation);
        return -1;