On Sat, Jan 9, 2010 at 5:51 PM, Adam Flott <[email protected]> wrote:
> I created Perl bindings for Elementary.
>
> http://search.cpan.org/perldoc?EFL::Elementary

congrats! if you want to maintain them inside BINDINGS/perl, then even
better... that is currently unmaintained and thus bad :-/


> Most of the tests from elementary_test are done. Once I figure out how to
> handle the void *event_info from the callbacks in XS I can finish the tests.

check python, it's handled "okay" there... we have a C version that
takes care of converting the event_info* to wrapped object and then
dispatch the wrapped call... it's basically:

c_callback(void *data, Evas_Object *o, void *event_info)
{
     c_callback_data d = data;
     wrapped_object = get_wrapped_object(o);
     wrapped_cb = d.cb;
     conv_event_info = d.event_conv;
     wrapped_ev = conv_event_info(event_info);
     wrapped_cb(wrapped_object, wrapped_ev, ....);
}

I guess you got the idea



> And I'm off to handle the rest of EFL...

excellent


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

------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev 
_______________________________________________
enlightenment-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to