Hi! Would it be possible to modify the signature for OCCreateResource and OCEntityHandler such that it works the same way as OCDoResource - i.e. OCCreateResource accepts a structure similar to OCCallbackData (maybe OCResourceCallbackData or something) which contains a callback, a context, and a deleter, and the entity handler has a third parameter which is the context.
This would greatly improve the ease of writing bindings. Currently, I have to rely on libffi's implementation of C closures to pass an extra parameter to the callback containing the javascript callback I wish to execute. I'd very gladly avoid relying on such libraries if the iotivity C API were to allow such a context parameter for the entity handler. Cheers! Gabriel
