Enlightenment CVS committal
Author : chaos
Project : e17
Module : proto
Dir : e17/proto/entropy/src/include
Modified Files:
entropy.h entropy_core.h
Added Files:
entropy_gui_event_handler.h
Log Message:
* Begin migration to an abstract gui_event handler core - this makes it easier
to juggle gui_events, and provides the groundwork to the rewrite of the
notification engine, now that it is pthread-less. This also means that we can
now register more than one handler per gui_event, in true AOP style
===================================================================
RCS file: /cvs/e/e17/proto/entropy/src/include/entropy.h,v
retrieving revision 1.27
retrieving revision 1.28
diff -u -3 -r1.27 -r1.28
--- entropy.h 28 Mar 2006 10:31:14 -0000 1.27
+++ entropy.h 31 Mar 2006 12:12:26 -0000 1.28
@@ -26,6 +26,7 @@
#include "entropy_macros.h"
#include "entropy_config.h"
#include "plugin_helper.h"
+#include "entropy_gui_event_handler.h"
#define IPC_TITLE "entropy"
#define ENTROPY_IPC_EVENT_CORE 1
@@ -109,6 +110,13 @@
void entropy_core_object_file_associate(void* object, entropy_generic_file*
file);
void entropy_core_object_file_disassociate(void* object);
entropy_generic_file* entropy_core_object_file_association_get(void* object);
+
+/*Event handlers*/
+void entropy_core_gui_event_handler_add(char* gui_event,
+ Entropy_Gui_Event_Handler* (*handler_func)
+ (void (*notify_event_cb)(entropy_gui_event* event,
entropy_gui_component_instance* instance),
+ void (*cleanup_cb)(struct Entropy_Gui_Event_Handler*)));
+Ecore_List* entropy_core_gui_event_handlers_get(char* event);
/*Logging stuff*/
===================================================================
RCS file: /cvs/e/e17/proto/entropy/src/include/entropy_core.h,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -3 -r1.9 -r1.10
--- entropy_core.h 28 Mar 2006 10:31:14 -0000 1.9
+++ entropy_core.h 31 Mar 2006 12:12:26 -0000 1.10
@@ -24,6 +24,8 @@
Ecore_Hash* file_interest_list; /*A file cache of all files we have
loaded*/
Ecore_Hash* uri_reference_list;
+
+ Ecore_Hash* gui_event_handlers;
Ecore_Ipc_Server* server;
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
enlightenment-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs