Enlightenment CVS committal
Author : lordchaos
Project : e17
Module : proto
Dir : e17/proto/entropy/src
Modified Files:
entropy_core.c entropy_file.c
Log Message:
* DND Work
* posix->file
===================================================================
RCS file: /cvsroot/enlightenment/e17/proto/entropy/src/entropy_core.c,v
retrieving revision 1.46
retrieving revision 1.47
diff -u -3 -r1.46 -r1.47
--- entropy_core.c 21 Feb 2006 10:15:55 -0000 1.46
+++ entropy_core.c 21 Feb 2006 10:45:18 -0000 1.47
@@ -1256,6 +1256,9 @@
printf("*** BAD: Called set-reference with file already
cached!\n");
entropy_core_file_cache_add_reference(md5);
}
+
+ entropy_generic_file_uri_set(listener->file);
+
file_cache_size++;
/*printf("File cache goes to %ld\n", file_cache_size);*/
UNLOCK(&core_core->file_cache_mutex);
@@ -1269,6 +1272,7 @@
return file;
}
+
void entropy_core_file_cache_add_reference(char* md5) {
LOCK(&core_core->file_cache_mutex);
entropy_file_listener* listener =
ecore_hash_get(core_core->file_interest_list, md5);
@@ -1278,10 +1282,7 @@
/*At this point, check if the file needs a uri generating..
* And generate if necesary */
- if (!listener->file->uri) {
- listener->file->uri =
entropy_core_generic_file_uri_create(listener->file,0);
- ecore_hash_set(core_core->uri_reference_list,
listener->file->uri, listener->file);
- }
+ entropy_generic_file_uri_set(listener->file);
}
UNLOCK(&core_core->file_cache_mutex);
}
===================================================================
RCS file: /cvsroot/enlightenment/e17/proto/entropy/src/entropy_file.c,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -3 -r1.7 -r1.8
--- entropy_file.c 21 Nov 2005 10:49:21 -0000 1.7
+++ entropy_file.c 21 Feb 2006 10:45:18 -0000 1.8
@@ -39,6 +39,15 @@
print_allocation();
}
+void entropy_generic_file_uri_set(entropy_generic_file* file) {
+ if (file->uri == NULL) {
+ file->uri =entropy_core_generic_file_uri_create(file,0);
+ ecore_hash_set(entropy_core_get_core()->uri_reference_list,
file->uri, file);
+
+ printf("Set uri for %p to %s...\n", file, file->uri);
+ }
+}
+
/*Ecore_List* entropy_generic_file_list_sort(Ecore_List* file_list) {
Ecore_List* new_list = ecore_list_new();
entropy_generic_file* file_ins;
-------------------------------------------------------
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://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
enlightenment-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs