aboutsummaryrefslogblamecommitdiffstats
path: root/src/bin/e_order.h
blob: 4ca93e36c00286af4c21c2c819b53b2463e8bad2 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13












                                       
 
                            
                                                                                          
                                                                           
                             




                                                

  

                                   
 









                                                                                                         
 

      
#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