PDA

View Full Version : IL 1.1.2 Content pipe Callback type missing client context



mgao
01-18-2011, 08:09 PM
With IL1.1.2, a client content pipe callback can be registered with the following API,

CPresult (*RegisterCallback)(
CPhandle hContent,
CPresult (*ClientCallback)(
CP_EVENTTYPE eEvent,
CPuint iParam));

Yet it's quite inconvenient without having callback carrying client context around, by minimum a static global is then required on client side. I would propose the following,

CPresult (*RegisterCallback)(
CPhandle hContent,
CPresult (*ClientCallback)(
CP_EVENTTYPE eEvent,
CPuint iParam,
void * ClientPrivate),
void * ClientPrivate);

Or is there any particular reason why it was designed without the client context?

Regards,

/MG