Enlightenment CVS committal Author : lordchaos Project : e17 Module : proto
Dir : e17/proto/entropy/src/plugins Modified Files: filesystem.c Log Message: * Add a reference count to a file's parent, so we don't accidentally clean it =================================================================== RCS file: /cvsroot/enlightenment/e17/proto/entropy/src/plugins/filesystem.c,v retrieving revision 1.10 retrieving revision 1.11 diff -u -3 -r1.10 -r1.11 --- filesystem.c 3 Nov 2005 11:37:28 -0000 1.10 +++ filesystem.c 5 Nov 2005 01:13:35 -0000 1.11 @@ -265,6 +265,10 @@ printf("File ('%s') parent's name is '%s'\n", file->filename, calling_request->reparent_file->filename); file->parent = calling_request->reparent_file; + + /*We are referencing the parent, so - we need to tell the core that we *need* this + * file - i.e. don't clean it up*/ + entropy_core_file_cache_add_reference(filesystem_core, calling_request->reparent_file->md5); } /*Mark the file's uri FIXME do this properly*/ @@ -304,6 +308,9 @@ } break; + + default: printf("Received an EVFS message we don't recognise!\n"); + break; } } ------------------------------------------------------- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42" plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs