Sync with the latest one
[platform/framework/web/livebox-viewer.git] / include / livebox_internal.h
index cbbefbc..fb9da64 100644 (file)
@@ -43,9 +43,12 @@ extern void lb_set_period(struct livebox *handler, double period);
 extern void lb_set_update_mode(struct livebox *handler, int active_mode);
 extern struct livebox *lb_ref(struct livebox *handler);
 extern struct livebox *lb_unref(struct livebox *handler);
-extern int lb_send_delete(struct livebox *handler, ret_cb_t cb, void *data);
+extern int lb_send_delete(struct livebox *handler, int type, ret_cb_t cb, void *data);
 extern int lb_delete_all(void);
 extern void lb_set_filename(struct livebox *handler, const char *filename);
+extern void lb_set_alt_info(struct livebox *handler, const char *icon, const char *name);
+extern int lb_destroy_lock_file(struct livebox *info, int is_pd);
+extern int lb_create_lock_file(struct livebox *info, int is_pd);
 
 enum lb_type { /*!< Must have to be sync with data-provider-master */
        _LB_TYPE_NONE = 0x0,
@@ -78,10 +81,13 @@ struct livebox {
        char *content;
        char *title;
        char *filename;
+       char *icon;
+       char *name;
 
        double timestamp;
 
        enum livebox_visible_state visible;
+       enum livebox_delete_type delete_type;
 
        int is_user;
        int is_pd_created;
@@ -109,6 +115,8 @@ struct livebox {
                /* For the filtering event */
                double x;
                double y;
+               char *lock;
+               int lock_fd;
        } lb;
 
        struct {
@@ -127,6 +135,8 @@ struct livebox {
                /* For the filtering event */
                double x;
                double y;
+               char *lock;
+               int lock_fd;
        } pd;
 
        int nr_of_sizes;
@@ -162,6 +172,9 @@ struct livebox {
 
        ret_cb_t access_event_cb;
        void *access_event_cbdata;
+
+       ret_cb_t key_event_cb;
+       void *key_event_cbdata;
 };
 
 /* End of a file */