diff options
Diffstat (limited to 'src/rua.c')
-rw-r--r-- | src/rua.c | 10 |
1 files changed, 8 insertions, 2 deletions
@@ -134,8 +134,8 @@ API int rua_clear_history(void) API int rua_history_load_db_for_uid(char ***table, int *nrows, int *ncols, uid_t uid) { static const char query[] = - "SELECT pkg_name, app_path, arg, launch_time, instance_id," - " instance_name, icon, uri, image " + "SELECT pkg_name, app_path, arg, launch_time, comp_id," + " instance_id, instance_name, icon, uri, image " "FROM rua_history ORDER BY launch_time DESC"; int r; char *db_err = NULL; @@ -247,6 +247,12 @@ API int rua_history_get_rec(struct rua_rec *rec, char **table, int nrows, int nc if (tmp) rec->launch_time = atoi(tmp); + tmp = db_result[RUA_COL_COMP_ID]; + if (tmp && tmp[0] != '\0') + rec->comp_id = tmp; + else + rec->comp_id = NULL; + tmp = db_result[RUA_COL_INSTANCE_ID]; if (tmp && tmp[0] != '\0') rec->instance_id = tmp; |