typedef int (*pkgmgrinfo_app_background_category_list_cb ) (const char *category_name, void *user_data);
/**
- * @fn int (*pkgmgrinfo_app_splash_screen_list_cb) (const char *src,
+ * @fn int (*pkgmgrinfo_app_splash_screen_list_cb)(const char *src,
* const char *type, const char *orientation,
- * const char *indicatordisplay, void *user_data);
+ * const char *indicatordisplay, const char *color_depth,
+ * void *user_data);
* @brief Specifies the type of function passed to pkgmgrinfo_appinfo_foreach_splash_screen()
*
* @param[in] src the source of the splashscreen
* @param[in] orientation the orientation of the splashscreen
* @param[in] indicatordisplay the indicator-display of the splashscreen
* @param[in] operation the app-control operation of the splashscreen
+ * @param[in] color_depth the color-depth of the splashscreen
* @param[in] user_data user data passed to pkgmgrinfo_appinfo_foreach_splash_screen()
*
* @return 0 if success, negative value(<0) if fail, Callback is not called if return value is negative.\n
*
* @see pkgmgrinfo_appinfo_foreach_splash_screen()
*/
-typedef int (*pkgmgrinfo_app_splash_screen_list_cb) (const char *src,
+typedef int (*pkgmgrinfo_app_splash_screen_list_cb)(const char *src,
const char *type, const char *orientation,
const char *indicatordisplay, const char *operation,
- void *user_data);
+ const char *color_depth, void *user_data);
typedef int (*pkgmgrinfo_handler)(uid_t target_uid, int req_id, const char *pkg_type,
const char *pkgid, const char *key,
"orientation text not null, " \
"indicatordisplay text, " \
"operation text, " \
+ "color_depth text not null DEFAULT '24', " \
"PRIMARY KEY(app_id, orientation, operation) " \
"FOREIGN KEY(app_id) " \
"REFERENCES package_app_info(app_id) " \
ss = (splashscreen_x *)tmp->data;
snprintf(query, sizeof(query),
"insert into package_app_splash_screen" \
- "(app_id, src, type, orientation, indicatordisplay, operation) " \
- "values('%s', '%s', '%s', '%s', '%s', '%s')",
+ "(app_id, src, type, orientation, indicatordisplay, operation, color_depth) " \
+ "values('%s', '%s', '%s', '%s', '%s', '%s', '%s')",
app->appid, ss->src, ss->type, ss->orientation,
- ss->indicatordisplay, __get_str(ss->operation));
+ ss->indicatordisplay, __get_str(ss->operation),
+ ss->color_depth);
ret = __exec_query(query);
if (ret == -1) {
_LOGD("Package UiApp Splash Screen DB Insert Failed");
const char *indicatordisplay;
const char *orientation;
const char *operation = NULL;
+ const char *color_depth = "24"; /* default */
for (app_tmp = mfx->application; app_tmp; app_tmp = app_tmp->next) {
app = (application_x *)app_tmp->data;
orientation = "portrait";
snprintf(query, sizeof(query),
"insert into package_app_splash_screen" \
- "(app_id, src, type, orientation, indicatordisplay, operation) " \
- "values('%s', '%s', '%s', '%s', '%s', '%s')",
+ "(app_id, src, type, orientation, indicatordisplay, operation, color_depth) " \
+ "values('%s', '%s', '%s', '%s', '%s', '%s', '%s')",
app->appid, app->portraitimg, image_type,
- orientation, indicatordisplay, __get_str(operation));
+ orientation, indicatordisplay, __get_str(operation),
+ color_depth);
ret = __exec_query(query);
if (ret == -1) {
_LOGD("Package UiApp Splash Screen DB Insert Failed");
orientation = "landscape";
snprintf(query, sizeof(query),
"insert into package_app_splash_screen" \
- "(app_id, src, type, orientation, indicatordisplay, operation) " \
- "values('%s', '%s', '%s', '%s', '%s', '%s')",
+ "(app_id, src, type, orientation, indicatordisplay, operation, color_depth) " \
+ "values('%s', '%s', '%s', '%s', '%s', '%s', '%s')",
app->appid, app->landscapeimg, image_type,
- orientation, indicatordisplay, __get_str(operation));
+ orientation, indicatordisplay, __get_str(operation),
+ color_depth);
ret = __exec_query(query);
if (ret == -1) {
_LOGD("Package UiApp Splash Screen DB Insert Failed");
const char *indicatordisplay;
const char *orientation;
const char *image_type;
+ const char *color_depth = "24"; /* default */
for (app_tmp = mfx->application; app_tmp; app_tmp = app_tmp->next) {
app = (application_x *)app_tmp->data;
image_type = "edj";
snprintf(query, sizeof(query),
"insert into package_app_splash_screen" \
- "(app_id, src, type, orientation, indicatordisplay, operation) " \
- "values('%s', '%s', '%s', '%s', '%s', '%s')",
+ "(app_id, src, type, orientation, indicatordisplay, operation, color_depth) " \
+ "values('%s', '%s', '%s', '%s', '%s', '%s', '%s')",
app->appid, portraitimg, image_type,
- orientation, indicatordisplay, __get_str(operation));
+ orientation, indicatordisplay, __get_str(operation),
+ color_depth);
ret = __exec_query(query);
if (ret == -1) {
_LOGD("Package UiApp Splash Screen DB Insert Failed");
image_type = "edj";
snprintf(query, sizeof(query),
"insert into package_app_splash_screen" \
- "(app_id, src, type, orientation, indicatordisplay, operation) " \
- "values('%s', '%s', '%s', '%s', '%s', '%s')",
+ "(app_id, src, type, orientation, indicatordisplay, operation, color_depth) " \
+ "values('%s', '%s', '%s', '%s', '%s', '%s', '%s')",
app->appid, landscapeimg, image_type,
- orientation, indicatordisplay, __get_str(operation));
+ orientation, indicatordisplay, __get_str(operation),
+ color_depth);
ret = __exec_query(query);
if (ret == -1) {
_LOGD("Package UiApp Splash Screen DB Insert Failed");