On Mar 13, 2012, at 8:10 AM, Jeroen Janssen wrote: > Hi, > > I recently got a request to port my node-sdlmixer module to node 0.6 > and I was wondering if there is some porting 'howto' for C++ addons > from 0.4 to 0.6? > > My module currently uses: > * ev_async_init > * ev_async_start > * ev_ref > * ev_unref > * ev_async_send > * ev_invoke > * ev_async_stop > * EV_DEFAULT_UC_ > * eio_custom > * eio_req > * EIO_PRI_DEFAULT > > * wscript to build the addon > > It seems https://github.com/joyent/node/wiki/API-changes-between-v0.4-and-v0.6 > mostly only talks about the javascript side of things, but I can not > find any C++ API changes in there (i.e. the things added through > libuv). > > Best regards, > > Jeroen Janssen
Hi Jeroen, I'd also love to know the right answer to this question, I also asked it here a while ago, but I got no answer from any of the team members. In my case (*), I only had to replace #include ev.h for #include uv.h. Then I realized that #include node.h does #include uv.h already, so not even that. Now my modules run fine in any node from 0.2.0 up to the latest 0.7.5. But as I only use ev_async events my code does not call/use eio_custom, nor ev_invoke, nor eio_req, nor EIO_PRI_DEFAULT. (*) github.com/xk/node-sound, github.com/xk/node-threads-a-gogo -- Jorge. -- Job Board: http://jobs.nodejs.org/ Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines You received this message because you are subscribed to the Google Groups "nodejs" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/nodejs?hl=en?hl=en
