Parameter for input. Default is transfer none.
The callback is valid until first called.
Don't free data after the code is done.