You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

41 lines
1.2 KiB

#ifdef E_TYPEDEFS
typedef struct _E_Order E_Order;
#else
#ifndef E_ORDER_H
#define E_ORDER_H
#define E_ORDER_TYPE 0xE0b01020
struct _E_Order
{
E_Object e_obj_inherit;
const char *path;
Eina_List *desktops; /* A list of Efreet_Desktop files this .order contains */
Ecore_File_Monitor *monitor; /* Check for changes int the .order file */
Ecore_Timer *delay;
struct {
void (*update)(void *data, E_Order *eo);
void *data;
} cb;
};
EINTERN int e_order_init(void);
EINTERN int e_order_shutdown(void);
E_API E_Order *e_order_new(const char *path);
E_API void e_order_update_callback_set(E_Order *eo, void (*cb)(void *data, E_Order *eo), void *data);
E_API void e_order_remove(E_Order *eo, Efreet_Desktop *desktop);
E_API void e_order_append(E_Order *eo, Efreet_Desktop *desktop);
E_API void e_order_prepend_relative(E_Order *eo, Efreet_Desktop *desktop, Efreet_Desktop *before);
E_API void e_order_files_append(E_Order *eo, Eina_List *files);
E_API void e_order_files_prepend_relative(E_Order *eo, Eina_List *files, Efreet_Desktop *before);
E_API void e_order_clear(E_Order *eo);
E_API E_Order *e_order_clone(const E_Order *eo);
#endif
#endif