Hello!  I'm working on a native node.js module and have run into a bit of a 
brick wall.  I'm writing a function that, in javascript-land, takes an 
object as its first parameter and a callback function as its second 
parameter, for example:

var param = {
one: 'foo',
two: 'bar'
};

myMod.baz(param, function(err) {
// do something
});

So far I've been able to take strings and functions as parameters, and even 
emit events with objects.  However, for the life of me, I can't figure out 
how to access an object passed in as a function parameter.  I need to pull 
out individual values by key name and pass these values as C strings to the 
API I'm wrapping.

Does anyone know of an existing native module that does something similar 
that I can examine?  After spending the better part of a day trying every 
wrong permutation of 6 lines code, I could use some advice... :-)

Thanks in advance!

- Paul

-- 
-- 
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

--- 
You received this message because you are subscribed to the Google Groups 
"nodejs" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to