Re: USB Type-C Port Manager API concern

From: Mats Karrman
Date: Fri Apr 14 2017 - 04:30:22 EST


On 04/14/2017 04:57 AM, Guenter Roeck wrote:

... Overall I think there is an assumption in any API that any callback functions provided in a registration call can immediately be called. Otherwise any API would be in trouble. Can you modify your code to not require the port pointer in its callback functions ?

Yes, I have deferred my calls until after the registration function has returned which seems only logical. Thanks, Mats