Enlightenment CVS committal

Author  : lordchaos
Project : e17
Module  : proto

Dir     : e17/proto/entropy/src/include


Modified Files:
        entropy.h entropy_core.h entropy_generic.h entropy_gui.h 
        entropy_thumbnailer_engine.h plugin_base.h plugin_helper.h 


Log Message:
* Big reorginisation.  Thumbnailers now have tasks distributed to them by 
distribution_thumbnailers.  This was to enable multiple thumbnailers to take a 
stab at an image.  Therefore, we now have a demonstration: Entropy can now, 
with the aid of evfs, thumbnail images on evfs-devices (at the moment, this is 
only useful with samba).  Ftp,tar, etc will follow soon.

===================================================================
RCS file: /cvsroot/enlightenment/e17/proto/entropy/src/include/entropy.h,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -3 -r1.13 -r1.14
--- entropy.h   22 Dec 2005 04:34:42 -0000      1.13
+++ entropy.h   2 Jan 2006 09:05:42 -0000       1.14
@@ -28,12 +28,14 @@
 #include "entropy_config.h"
 
 #define IPC_TITLE "entropy"
+#define THUMBNAILER_DISTRIBUTION 0
+#define THUMBNAILER_CHILD 1
 
 
 /*Plugin related functions*/
 int entropy_plugin_load(entropy_core* core, entropy_plugin* plugin);
 entropy_plugin* create_plugin_object(char* filename);
-void entropy_plugin_thumbnailer_register(entropy_core* core, entropy_plugin* 
plugin);
+void entropy_plugin_thumbnailer_register(entropy_core* core, entropy_plugin* 
plugin, int type);
 Ecore_List* entropy_mime_register_init();
 Ecore_Hash* entropy_thumbnailers_register_init();
 void entropy_plugin_mime_register(Ecore_List*, entropy_plugin*);
===================================================================
RCS file: /cvsroot/enlightenment/e17/proto/entropy/src/include/entropy_core.h,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -3 -r1.4 -r1.5
--- entropy_core.h      22 Dec 2005 04:34:42 -0000      1.4
+++ entropy_core.h      2 Jan 2006 09:05:42 -0000       1.5
@@ -15,6 +15,7 @@
        Ecore_List* plugin_list;
        Ecore_List* mime_plugins;
        Ecore_Hash* entropy_thumbnailers;
+       Ecore_Hash* entropy_thumbnailers_child;
        Ecore_Hash* layout_gui_events;
        Ecore_Timer* notify_executer;
        Ecore_Hash* file_interest_list; /*A file cache of all files we have 
loaded*/
===================================================================
RCS file: 
/cvsroot/enlightenment/e17/proto/entropy/src/include/entropy_generic.h,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -3 -r1.8 -r1.9
--- entropy_generic.h   21 Nov 2005 10:49:21 -0000      1.8
+++ entropy_generic.h   2 Jan 2006 09:05:42 -0000       1.9
@@ -6,11 +6,12 @@
 #include "thumbnail_generic.h"
 
 #define MIME_LENGTH 40
+#define FILENAME_LENGTH 255
 
 typedef struct entropy_generic_file entropy_generic_file;
 struct entropy_generic_file {
         char path[255];
-        char filename[255];
+        char filename[FILENAME_LENGTH];
         char mime_type[MIME_LENGTH];
        char uri_base[15];
        
===================================================================
RCS file: /cvsroot/enlightenment/e17/proto/entropy/src/include/entropy_gui.h,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -3 -r1.4 -r1.5
--- entropy_gui.h       30 Dec 2005 06:47:31 -0000      1.4
+++ entropy_gui.h       2 Jan 2006 09:05:42 -0000       1.5
@@ -1,6 +1,7 @@
 #ifndef __ENTROPY_GUI_H_
 #define __ENTROPY_GUI_H_
 
+#define ENTROPY_GUI_EVENT_THUMBNAIL_AVAILABLE 
"entropy_gui_event_thumbnail_available"        //A thumbnail is ready
 #define ENTROPY_GUI_EVENT_FOLDER_CHANGE_CONTENTS 
"entropy_gui_event_folder_change_contents"   //A request for the contents of a 
dir
 #define ENTROPY_GUI_EVENT_FOLDER_CHANGE_CONTENTS_EXTERNAL 
"entropy_gui_event_folder_change_contents_external"   //A request for the 
contents of a dir (external - SEE DOCS)
 #define ENTROPY_GUI_EVENT_FOLDER_CHANGE_INFO 
"entropy_gui_event_folder_change_info"          //A request for the name of a 
dir
===================================================================
RCS file: 
/cvsroot/enlightenment/e17/proto/entropy/src/include/entropy_thumbnailer_engine.h,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -3 -r1.1 -r1.2
--- entropy_thumbnailer_engine.h        20 Oct 2005 08:45:54 -0000      1.1
+++ entropy_thumbnailer_engine.h        2 Jan 2006 09:05:42 -0000       1.2
@@ -4,6 +4,15 @@
 
 #include "entropy.h"
 
-entropy_plugin* entropy_thumbnailer_retrieve(Ecore_Hash* thumbnail_plugins, 
char* mime_type);
+entropy_plugin* entropy_thumbnailer_retrieve(char* mime_type);
+Ecore_List* entropy_thumbnailer_child_retrieve(char* mime_type);
+
+typedef struct entropy_thumbnail_request {
+       entropy_generic_file* file;
+       struct entropy_gui_component_instance* instance;
+} entropy_thumbnail_request;
+
+entropy_thumbnail_request* entropy_thumbnail_request_new();
+void entropy_thumbnail_request_destroy(entropy_thumbnail_request* request);
 
 #endif
===================================================================
RCS file: /cvsroot/enlightenment/e17/proto/entropy/src/include/plugin_base.h,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -3 -r1.1 -r1.2
--- plugin_base.h       20 Oct 2005 08:45:54 -0000      1.1
+++ plugin_base.h       2 Jan 2006 09:05:42 -0000       1.2
@@ -6,6 +6,7 @@
        ENTROPY_PLUGIN_BACKEND_FILE ,
        ENTROPY_PLUGIN_MIME,
        ENTROPY_PLUGIN_THUMBNAILER,
+       ENTROPY_PLUGIN_THUMBNAILER_DISTRIBUTION,
        ENTROPY_PLUGIN_GUI_COMPONENT,
        ENTROPY_PLUGIN_GUI_LAYOUT,
        ENTROPY_PLUGIN_ACTION_PROVIDER
===================================================================
RCS file: /cvsroot/enlightenment/e17/proto/entropy/src/include/plugin_helper.h,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -3 -r1.3 -r1.4
--- plugin_helper.h     30 Dec 2005 06:47:31 -0000      1.3
+++ plugin_helper.h     2 Jan 2006 09:05:42 -0000       1.4
@@ -7,4 +7,6 @@
 Ecore_List* entropy_plugins_type_get(int type, int subtype);
 char* entropy_plugin_plugin_identify(entropy_plugin* plugin);
 
+void entropy_plugin_filesystem_file_remove(entropy_plugin* plugin, 
entropy_generic_file* file);
+
 #endif




-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to