From: Sungbae Yoo Date: Tue, 22 Nov 2016 07:09:09 +0000 (+0900) Subject: Add switch default handlers in krate-admin-cli X-Git-Tag: accepted/tizen/3.0/common/20161123.070923^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F04%2F99204%2F1;p=platform%2Fcore%2Fsecurity%2Fkrate.git Add switch default handlers in krate-admin-cli Change-Id: I72f36b6b7013cef3f92917d0b73f327a5874d97b Signed-off-by: Sungbae Yoo --- diff --git a/tools/cli/krate-admin-cli.cpp b/tools/cli/krate-admin-cli.cpp index 45b7ea2..5b14e9a 100644 --- a/tools/cli/krate-admin-cli.cpp +++ b/tools/cli/krate-admin-cli.cpp @@ -378,6 +378,15 @@ void packageEventCallback(const char *type, case PACKAGE_MANAGER_EVENT_TYPE_UPDATE: std::cout << "update"; break; + case PACKAGE_MANAGER_EVENT_TYPE_MOVE: + std::cout << "move"; + break; + case PACKAGE_MANAGER_EVENT_TYPE_CLEAR: + std::cout << "clear"; + break; + default: + std::cout << "unknown type : " << event_type << std::endl; + break; } break; case PACKAGE_MANAGER_EVENT_STATE_PROCESSING: @@ -390,6 +399,9 @@ void packageEventCallback(const char *type, case PACKAGE_MANAGER_EVENT_STATE_COMPLETED: std::cout << "completed"; break; + default: + std::cout << "unknown state : " << event_state << std::endl; + break; } std::cout << std::endl;