bug fix to check each callback function of engine 22/37522/1
authorSoohye Shin <soohye.shin@samsung.com>
Mon, 30 Mar 2015 11:06:55 +0000 (20:06 +0900)
committerSoohye Shin <soohye.shin@samsung.com>
Mon, 30 Mar 2015 11:08:18 +0000 (20:08 +0900)
Change-Id: Iac2b5ea2b6d34ac04e49dda1b6340f3740bfbe19
Signed-off-by: Soohye Shin <soohye.shin@samsung.com>
src/Bus.cpp

index 977f13d..317b14e 100644 (file)
@@ -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;
 }