Yop, On Wed, Jun 13, 2012 at 5:27 AM, Gustavo Sverzut Barbieri <barbi...@profusion.mobi> wrote: > Any reason why Eio_Filter_Direct_Cb and Eio_Filter_Dir_Cb are > different given a 'const' on the last argument? It seems to make no > sense. > > http://trac.enlightenment.org/e/browser/trunk/eio/src/lib/Eio.h#L128 > > My use case is to have a function with a parameter "recursive", > whenever it's true I want to use 'eio_dir_stat_ls()' otherwise > 'eio_file_stat_ls()'. To do so I'm assigning the filter Cb to a local > variable and calling the proper function with the variable... but I > can't without warnings due this. > > I really expect it's a mistake, then just add the missing const and > let's be happy :-)
Hum, I have my doubt here. I think I did remove the const, because of eio_dir_direct_ls. This way you can call eina_statat yourself and modify info to match the information you got. In fact, this should also be true for eio_file_direct_ls. So maybe the fix is to remove the const in fact. Any idea ? -- Cedric BAIL ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel