NULL is ok, both for passing and for returning.
The callback is valid until first called.
The callback is valid only during the call to the method.
Don't free data after the code is done.