Return TypeFunction nameArguments
hzEcodehzDeltaClient::InitOnce(hzString&,)

Declared in file: hzDelta.h
Defined in file : hzDelta.cpp

Function Logic:

0:START 1:m_AppDescFile 2:Return hzerr(E_DUPLICATE,Illegal repeat call) 3:lstat(*pathname,&fs)<0 4:Return hzerr(E_NOTFOUND,Cannot stat application profile file [%s],*pathname) 5:m_AppDescFile 6:Return E_OK

Function body:

hzEcode hzDeltaClient::InitOnce (hzString& pathname)
{
   _hzfunc("hzDeltaClient::InitOnce") ;
   FSTAT   fs ;
   if (m_AppDescFile)
       return hzerr(E_DUPLICATE, "Illegal repeat call") ;
   if (lstat(*pathname, &fs) < 0)
       return hzerr(E_NOTFOUND, "Cannot stat application profile file [%s]", *pathname) ;
   m_AppDescFile = pathname ;
   return E_OK ;
}