Re: [E-devel] eio Example for eio_file_stat_ls

2012-09-24 Thread Guillaume Friloux
On 24/09/2012 17:06, Vincent Torri wrote: if (!eio_init()) { eina_shutdown(); ecore_shutdown(); return 1; } the shutdown should be in the reverse order Vincent On Mon, Sep 24, 2012 at 4:59 PM, Guillaume Friloux wrote: So, another version with your r

Re: [E-devel] eio Example for eio_file_stat_ls

2012-09-24 Thread Vincent Torri
if (!eio_init()) { eina_shutdown(); ecore_shutdown(); return 1; } the shutdown should be in the reverse order Vincent On Mon, Sep 24, 2012 at 4:59 PM, Guillaume Friloux wrote: > So, another version with your remarks > > --

Re: [E-devel] eio Example for eio_file_stat_ls

2012-09-24 Thread Guillaume Friloux
So, another version with your remarks /* * Compile : * gcc -g -o eio_file_stat_ls eio_file_stat_ls.c `pkg-config --cflags --libs eina ecore eio` * * Prepare : * mkdir test * touch test/456 * touch test/excluded * touch test/backuped * * Run : * ./eio_file_stat_ls test */ #include #in

Re: [E-devel] eio Example for eio_file_stat_ls

2012-09-24 Thread Leandro Dorileo
Hi Dilly, On Mon, Sep 24, 2012 at 11:21:42AM -0300, Bruno Dilly wrote: > On Mon, Sep 24, 2012 at 10:48 AM, Leandro Dorileo > wrote: > > Hi Guillaume, > > > > On Mon, Sep 24, 2012 at 01:54:45PM +0200, Guillaume Friloux wrote: > >> On 24/09/2012 13:40, Guillaume Friloux wrote: > >> >Added a mutex t

Re: [E-devel] eio Example for eio_file_stat_ls

2012-09-24 Thread Bruno Dilly
On Mon, Sep 24, 2012 at 10:48 AM, Leandro Dorileo wrote: > Hi Guillaume, > > On Mon, Sep 24, 2012 at 01:54:45PM +0200, Guillaume Friloux wrote: >> On 24/09/2012 13:40, Guillaume Friloux wrote: >> >Added a mutex to not get crappy values when multiple calls to >> >filter_cb are done (eio can launch

Re: [E-devel] eio Example for eio_file_stat_ls

2012-09-24 Thread Leandro Dorileo
Hi Guillaume, On Mon, Sep 24, 2012 at 01:54:45PM +0200, Guillaume Friloux wrote: > On 24/09/2012 13:40, Guillaume Friloux wrote: > >Added a mutex to not get crappy values when multiple calls to > >filter_cb are done (eio can launch multiple threads it seems) > > > Fuck me i suck. This version is b

Re: [E-devel] eio Example for eio_file_stat_ls

2012-09-24 Thread David Seikel
On Mon, 24 Sep 2012 13:54:45 +0200 Guillaume Friloux wrote: > Fuck me i suck. This version is better. Nope, you are not my type, and I don't care how well you suck. :-P -- A big old stinking pile of genius that no one wants coz there are too many silver coated monkeys in the world. signatur

Re: [E-devel] eio Example for eio_file_stat_ls

2012-09-24 Thread Guillaume Friloux
On 24/09/2012 13:40, Guillaume Friloux wrote: Added a mutex to not get crappy values when multiple calls to filter_cb are done (eio can launch multiple threads it seems) Fuck me i suck. This version is better. /* * Compile : * gcc -g -o eio_file_stat_ls eio_file_stat_ls.c `pkg-config --cfla

Re: [E-devel] eio Example for eio_file_stat_ls

2012-09-24 Thread Guillaume Friloux
Added a mutex to not get crappy values when multiple calls to filter_cb are done (eio can launch multiple threads it seems) /* * Compile : * gcc -g -o eio_file_stat_ls eio_file_stat_ls.c `pkg-config --cflags --libs eina ecore eio` * * Prepare : * mkdir test * touch test/456 * touch test/exc

Re: [E-devel] eio Example for eio_file_stat_ls

2012-09-23 Thread Guillaume Friloux
On 21/09/2012 17:37, Leandro Dorileo wrote: Hi Guillaume, On Fri, Sep 21, 2012 at 01:55:54PM +0200, Guillaume Friloux wrote: Hello e people, I have written a little example app for eio_file_stat_ls() that could have its place under "trunk/eio/src/examples/" or "trunk/EXAMPLES/eio/". I think th

Re: [E-devel] eio Example for eio_file_stat_ls

2012-09-21 Thread Leandro Dorileo
Hi Guillaume, On Fri, Sep 21, 2012 at 01:55:54PM +0200, Guillaume Friloux wrote: > Hello e people, > I have written a little example app for eio_file_stat_ls() that > could have its place under "trunk/eio/src/examples/" or > "trunk/EXAMPLES/eio/". > I think this could help people that needs to us

[E-devel] eio Example for eio_file_stat_ls

2012-09-21 Thread Guillaume Friloux
Hello e people, I have written a little example app for eio_file_stat_ls() that could have its place under "trunk/eio/src/examples/" or "trunk/EXAMPLES/eio/". I think this could help people that needs to use it. It also warns about the filter_cb being called in eio's thread. A trap i stepped on