Forums | developer.brewmp.com Forums | developer.brewmp.com

Developer

Forums

Forums:

In brew API 2.1.3 documented IWeb status state WEBS_PERCENTCOMPLETE, but I can't find it in the headers, against it, I found WEBS_PROGRESS -is it the same? Documentation bug?

So, anyone can tell, how to use the WEBS_PROGRESS value:

is code below correct?

static void WebStatus(void *pWebAction, WebStatus ws, void *pVal)
{
if( WEBS_PROGRESS == ws )
{
uint32* pival = (uint32*)pVal;
DBGPRINTF("[trs][progress][%u]", (*pival) );
}