From: Junghyun Yeon Date: Thu, 8 Dec 2016 07:40:53 +0000 (+0900) Subject: Fix app/pkg event callback X-Git-Tag: submit/tizen_3.0/20161209.072525^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F85%2F103385%2F2;p=platform%2Fcore%2Fappfw%2Fslp-pkgmgr.git Fix app/pkg event callback - App/Pkg event callback will be invoked only when app/pkg event has happened Change-Id: I3fc7b226be209389ec45490f03c756a954e3c90f Signed-off-by: Junghyun Yeon --- diff --git a/client/src/pkgmgr_client_connection.c b/client/src/pkgmgr_client_connection.c index 16454cf..d7201fb 100644 --- a/client/src/pkgmgr_client_connection.c +++ b/client/src/pkgmgr_client_connection.c @@ -214,10 +214,10 @@ static void __signal_handler(GDBusConnection *conn, const gchar *sender_name, } /* each cb_data can only has one callback */ - if (cb_info->event_cb) + if (cb_info->event_cb && strcmp(appid, "") == 0) cb_info->event_cb(target_uid, cb_info->req_id, pkg_type, pkgid, key, val, NULL, cb_info->data); - else if (cb_info->app_event_cb) + else if (cb_info->app_event_cb && strcmp(appid, "") != 0) cb_info->app_event_cb(target_uid, cb_info->req_id, pkg_type, pkgid, appid, key, val, NULL, cb_info->data);