A
NULL is ok, both for passing and for returning.
C
This parameter is a 'user_data', for callbacks; many bindings can pass NULL here.
S
The callback is valid until first called.
T
Free data after the code is done.
Don't free data after the code is done.