From 79406edca5e4e90acacfd19c85a2b3bab64a108b Mon Sep 17 00:00:00 2001 From: Soohye Shin Date: Mon, 30 Mar 2015 20:06:55 +0900 Subject: [PATCH] bug fix to check each callback function of engine Change-Id: Iac2b5ea2b6d34ac04e49dda1b6340f3740bfbe19 Signed-off-by: Soohye Shin --- src/Bus.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/Bus.cpp b/src/Bus.cpp index 977f13d..317b14e 100644 --- a/src/Bus.cpp +++ b/src/Bus.cpp @@ -323,7 +323,7 @@ bool CBus::OnAddLabel(SLabel *opdata) bool CBus::OnAddAlbum(SAlbum *opdata, SAction *act) { bool ret = false; - if (m->cb.cbAddLabel) + if (m->cb.cbAddAlbum) ret = m->cb.cbAddAlbum(opdata, act, m->cb.cookie); return ret; } @@ -332,7 +332,7 @@ bool CBus::OnAddAlbum(SAlbum *opdata, SAction *act) bool CBus::OnAddContent(SContent *opdata, SAction *act) { bool ret = false; - if (m->cb.cbAddLabel) + if (m->cb.cbAddContent) ret = m->cb.cbAddContent(opdata, act, m->cb.cookie); return ret; } @@ -341,7 +341,7 @@ bool CBus::OnAddContent(SContent *opdata, SAction *act) bool CBus::OnAddPin(SPin *opdata, SAction *act) { bool ret = false; - if (m->cb.cbAddLabel) + if (m->cb.cbAddPin) ret = m->cb.cbAddPin(opdata, act, m->cb.cookie); return ret; } @@ -350,7 +350,7 @@ bool CBus::OnAddPin(SPin *opdata, SAction *act) bool CBus::OnDelContent(const char *svcid, int ctnt_id) { bool ret = false; - if (m->cb.cbAddLabel) + if (m->cb.cbDelContent) ret = m->cb.cbDelContent(svcid, ctnt_id, m->cb.cookie); return ret; } @@ -359,7 +359,7 @@ bool CBus::OnDelContent(const char *svcid, int ctnt_id) bool CBus::OnDelAll(const char *svcid, bool reload) { bool ret = false; - if (m->cb.cbAddLabel) + if (m->cb.cbDelAll) ret = m->cb.cbDelAll(svcid, reload, m->cb.cookie); return ret; } -- 2.7.4