Enlightenment CVS committal Author : handyande Project : e17 Module : apps/e
Dir : e17/apps/e/src/lib Modified Files: E.h e_main.c Log Message: Flesh out rest of dir_list API =================================================================== RCS file: /cvsroot/enlightenment/e17/apps/e/src/lib/E.h,v retrieving revision 1.8 retrieving revision 1.9 diff -u -3 -r1.8 -r1.9 --- E.h 3 Jun 2005 17:43:48 -0000 1.8 +++ E.h 3 Jun 2005 18:26:35 -0000 1.9 @@ -50,9 +50,15 @@ extern EAPI int E_RESPONSE_MODULE_LIST; extern EAPI int E_RESPONSE_BACKGROUND_GET; + +extern EAPI int E_RESPONSE_DATA_DIRS_LIST; +extern EAPI int E_RESPONSE_IMAGE_DIRS_LIST; +extern EAPI int E_RESPONSE_FONT_DIRS_LIST; +extern EAPI int E_RESPONSE_THEME_DIRS_LIST; +extern EAPI int E_RESPONSE_INIT_DIRS_LIST; +extern EAPI int E_RESPONSE_ICON_DIRS_LIST; extern EAPI int E_RESPONSE_MODULE_DIRS_LIST; extern EAPI int E_RESPONSE_BACKGROUND_DIRS_LIST; -extern EAPI int E_RESPONSE_THEME_DIRS_LIST; #ifdef __cplusplus extern "C" { @@ -76,9 +82,14 @@ EAPI void e_background_get (void); /* E path information */ + EAPI void e_data_dirs_list (void); + EAPI void e_image_dirs_list (void); + EAPI void e_font_dirs_list (void); + EAPI void e_theme_dirs_list (void); + EAPI void e_init_dirs_list (void); + EAPI void e_icon_dirs_list (void); EAPI void e_module_dirs_list (void); EAPI void e_background_dirs_list (void); - EAPI void e_theme_dirs_list (void); #ifdef __cplusplus } =================================================================== RCS file: /cvsroot/enlightenment/e17/apps/e/src/lib/e_main.c,v retrieving revision 1.18 retrieving revision 1.19 diff -u -3 -r1.18 -r1.19 --- e_main.c 3 Jun 2005 17:43:48 -0000 1.18 +++ e_main.c 3 Jun 2005 18:26:35 -0000 1.19 @@ -63,10 +63,17 @@ static Ecore_Ipc_Server *_e_ipc_server = NULL; int E_RESPONSE_MODULE_LIST = 0; -int E_RESPONSE_MODULE_DIRS_LIST = 0; int E_RESPONSE_BACKGROUND_GET = 0; -int E_RESPONSE_BACKGROUND_DIRS_LIST = 0; + +int E_RESPONSE_DATA_DIRS_LIST = 0; +int E_RESPONSE_IMAGE_DIRS_LIST = 0; +int E_RESPONSE_FONT_DIRS_LIST = 0; int E_RESPONSE_THEME_DIRS_LIST = 0; +int E_RESPONSE_INIT_DIRS_LIST = 0; +int E_RESPONSE_ICON_DIRS_LIST = 0; +int E_RESPONSE_MODULE_DIRS_LIST = 0; +int E_RESPONSE_BACKGROUND_DIRS_LIST = 0; + /* * initialise connection to the current E running on "display". @@ -140,10 +147,17 @@ if (!E_RESPONSE_MODULE_LIST) { E_RESPONSE_MODULE_LIST = ecore_event_type_new(); - E_RESPONSE_MODULE_DIRS_LIST = ecore_event_type_new(); E_RESPONSE_BACKGROUND_GET = ecore_event_type_new(); - E_RESPONSE_BACKGROUND_DIRS_LIST = ecore_event_type_new(); + + E_RESPONSE_DATA_DIRS_LIST = ecore_event_type_new(); + E_RESPONSE_IMAGE_DIRS_LIST = ecore_event_type_new(); + E_RESPONSE_FONT_DIRS_LIST = ecore_event_type_new(); E_RESPONSE_THEME_DIRS_LIST = ecore_event_type_new(); + E_RESPONSE_INIT_DIRS_LIST = ecore_event_type_new(); + E_RESPONSE_ICON_DIRS_LIST = ecore_event_type_new(); + E_RESPONSE_MODULE_DIRS_LIST = ecore_event_type_new(); + E_RESPONSE_BACKGROUND_DIRS_LIST = ecore_event_type_new(); + } if (free_disp) @@ -209,13 +223,6 @@ } void -e_module_dirs_list(void) -{ - char *type = "modules"; - _e_ipc_call(E_IPC_OP_DIRS_LIST, &type); -} - -void e_background_set(const char *bgfile) { if (!bgfile) @@ -231,9 +238,23 @@ } void -e_background_dirs_list(void) +e_data_dirs_list(void) { - char *type = "backgrounds"; + char *type = "data"; + _e_ipc_call(E_IPC_OP_DIRS_LIST, &type); +} + +void +e_image_dirs_list(void) +{ + char *type = "images"; + _e_ipc_call(E_IPC_OP_DIRS_LIST, &type); +} + +void +e_font_dirs_list(void) +{ + char *type = "fonts"; _e_ipc_call(E_IPC_OP_DIRS_LIST, &type); } @@ -244,6 +265,34 @@ _e_ipc_call(E_IPC_OP_DIRS_LIST, &type); } +void +e_init_dirs_list(void) +{ + char *type = "inits"; + _e_ipc_call(E_IPC_OP_DIRS_LIST, &type); +} + +void +e_icon_dirs_list(void) +{ + char *type = "icons"; + _e_ipc_call(E_IPC_OP_DIRS_LIST, &type); +} + +void +e_module_dirs_list(void) +{ + char *type = "modules"; + _e_ipc_call(E_IPC_OP_DIRS_LIST, &type); +} + +void +e_background_dirs_list(void) +{ + char *type = "backgrounds"; + _e_ipc_call(E_IPC_OP_DIRS_LIST, &type); +} + static int _e_ipc_init(const char *display) { ------------------------------------------------------- This SF.Net email is sponsored by: NEC IT Guy Games. How far can you shotput a projector? How fast can you ride your desk chair down the office luge track? If you want to score the big prize, get to know the little guy. Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=20 _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs