Add error codes
[platform/core/uifw/capi-ui-sticker.git] / server / stickerd_db_manager.h
index 6e6ebb5..2ef2fd5 100644 (file)
@@ -33,6 +33,7 @@ typedef enum {
     STICKER_DB_STICKER_DESCRIPTION,
     STICKER_DB_STICKER_GROUP,
     STICKER_DB_STICKER_KEYWORD,
+    STICKER_DB_STICKER_DISP_TYPE,
 } sticker_info_db_type;
 
 typedef struct {
@@ -44,6 +45,7 @@ typedef struct {
     char *group;
     GList *keyword;
     char *date;
+    int  display_type;
 } sticker_info_db;
 
 int stickerd_db_init(void);
@@ -51,10 +53,11 @@ int stickerd_db_insert_sticker_info(int *record_id, sticker_info_db *sticker_inf
 int stickerd_db_delete_sticker_info(int record_id);
 int stickerd_db_update_sticker_info(int record_id, sticker_info_db_type type, void *data);
 int stickerd_db_get_sticker_info_by_record_id(int record_id, sticker_info_db *sticker_info);
-int stickerd_db_get_group_list(GVariantBuilder *builder);
-int stickerd_db_get_keyword_list(GVariantBuilder *builder);
+int stickerd_db_get_group_list(GVariantBuilder *builder, char *app_id);
+int stickerd_db_get_keyword_list(GVariantBuilder *builder, char *app_id);
 int stickerd_db_get_sticker_count(int *count, char *app_id);
-int stickerd_db_get_record_id(sticker_info_db_type type, GList **id_list, void *data, int offset, int count);
+int stickerd_db_get_record_id(sticker_info_db_type type, GList **id_list, void *data, char *app_id, int offset, int count);
+int stickerd_db_get_group_list_by_display_type(GVariantBuilder *builder, char *app_id, int disp_type);
 
 #ifdef __cplusplus
 }