On Mon, Mar 07, 2016, Daniel Leung wrote:
Another thing is: it seems like that you expect the app developersI think the best we can do is to clearly document the life-time
expectation of the struct. I don't think there's really any other way
around it with asynchronous APIs that need to track more context than
just a simple function pointer. We've actually got several similar
approaches in the Bluetooth API as well.