"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");