On Tue, Jun 12, 2012 at 9:37 PM, Cedric BAIL <[email protected]> wrote:
> Yop,
>
> On Wed, Jun 13, 2012 at 5:27 AM, Gustavo Sverzut Barbieri
> <[email protected]> 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 ?

Just use the const version of the macro for the eio_*_stat_ls, then it
would work for me and that case you've cited (which is valid as well)


-- 
Gustavo Sverzut Barbieri
http://profusion.mobi embedded systems
--------------------------------------
MSN: [email protected]
Skype: gsbarbieri
Mobile: +55 (19) 9225-2202

------------------------------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to