Even if the given Id is not valid,
this API should return TRUE as default.
Change-Id: Icb27109d31ef1f92e13f3ca4361d29f1cf44ae3b
Name: liblivebox-service
Summary: Service API for gathering installed livebox information.
-Version: 0.3.7
+Version: 0.3.8
Release: 1
Group: framework/livebox
License: Flora License
handle = open_db();
if (!handle) {
ErrPrint("Unable to open a DB\n");
- return 0;
+ return 1;
}
ret = sqlite3_prepare_v2(handle, "SELECT touch_effect FROM client WHERE pkgid = ?", -1, &stmt, NULL);
if (ret != SQLITE_OK) {
ErrPrint("Error: %s\n", sqlite3_errmsg(handle));
close_db(handle);
- return 0;
+ return 1;
}
/*!
lbid = livebox_service_pkgname(pkgid);
if (!lbid) {
ErrPrint("Invalid appid (%s)\n", pkgid);
- ret = 0;
+ ret = 1;
goto out;
}
free(lbid);
if (ret != SQLITE_OK) {
ErrPrint("Error: %s\n", sqlite3_errmsg(handle));
- ret = 0;
+ ret = 1;
goto out;
}