From e46106ab085330341dc85b0ac75b4b526c96fb58 Mon Sep 17 00:00:00 2001 From: Sungbae Yoo Date: Tue, 22 Nov 2016 16:09:09 +0900 Subject: [PATCH] Add switch default handlers in krate-admin-cli Change-Id: I72f36b6b7013cef3f92917d0b73f327a5874d97b Signed-off-by: Sungbae Yoo --- tools/cli/krate-admin-cli.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) 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; -- 2.7.4