Skip to content

ocf_2.0_pre_0

The functions oc_assert_role and oc_send_ping both register
callback handler functions without adding the void *user_data.
C programs may never be expected to use the user_data parameter
but when developing language bindings like Java JNI the
user_data is used to hold pointer to the Java methods.

Without the context pointer language binding becomes much more
difficult.  Since the oc_response_handler_t already has space
for the user_data it is trivial to add the context pointer in
this case.

Change-Id: I75d8a8260005d78a3f34f2bbf7d04115cc0e97cf
Signed-off-by: George Nash <[email protected]>
Reviewed-on: https://gerrit.iotivity.org/gerrit/27844
Tested-by: IoTivity Jenkins <[email protected]>
Reviewed-by: Kishen Maloor <[email protected]>
Assets 2
Loading