Enlightenment CVS committal Author : lordchaos Project : e17 Module : apps/evfs
Dir : e17/apps/evfs/src/bin Modified Files: evfs_main.c Log Message: Add a timer, so the idle enterer gets hit. Otherwise we sometimes have to wait ages for an event to be fired =================================================================== RCS file: /cvsroot/enlightenment/e17/apps/evfs/src/bin/evfs_main.c,v retrieving revision 1.24 retrieving revision 1.25 diff -u -3 -r1.24 -r1.25 --- evfs_main.c 8 Nov 2005 09:00:20 -0000 1.24 +++ evfs_main.c 8 Nov 2005 11:24:48 -0000 1.25 @@ -1,7 +1,7 @@ /* -Copyright (C) 2000, 2001 Alexander Taylor <[EMAIL PROTECTED]>. +Copyright (C) 2005 Alexander Taylor <[EMAIL PROTECTED]>. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to @@ -59,7 +59,7 @@ } int -ipc_client_add(void *data, int type, void *event) +ipc_client_add(void *data __UNUSED__, int type __UNUSED__, void *event) { Ecore_Ipc_Event_Client_Add *e; evfs_client* client; @@ -84,7 +84,7 @@ } int -ipc_client_del(void *data, int type, void *event) +ipc_client_del(void *data __UNUSED__, int type __UNUSED__, void *event) { Ecore_Ipc_Event_Client_Del *e; Ecore_List* keys; @@ -257,6 +257,10 @@ } +int ecore_timer_enterer(void* data) { + return 1; +} + int incoming_command_cb(void* data) { evfs_command_client* com_cli = ecore_list_remove_first(server->incoming_command_list); @@ -286,8 +290,12 @@ server->plugin_uri_hash = ecore_hash_new(ecore_str_hash, ecore_str_compare); server->clientCounter = 0; server->incoming_command_list = ecore_list_new(); + ecore_idle_enterer_add(incoming_command_cb, NULL); + /*Add a timer, to make sure our event loop keeps going. Kinda hacky*/ + ecore_timer_add(0.5, ecore_timer_enterer, NULL); + /*Load the plugins*/ evfs_load_plugins(); ------------------------------------------------------- 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