Files
libcoap/include
Serafin Leschke e394ca2953 resource.h: Introduce new field user_data
The library API lacks a way to store context for the handlers. A
LED-handler for example needs to now on which pin the specific LED
is connected in order to control it. Or a higher level API would like to save the
object pointer to the object responsible for the resource.

This change will introduce a void pointer for the user to save context.
He can then retrieve the context in the handler if needed.
2018-03-13 09:29:53 +01:00
..