Exemplo n.º 1
0
/** 
 * @brief See LSGmainDetach(). This is the equivalent for a "PalmService"
 * handle.
 * 
 * @param  psh          IN      PalmService handle 
 * @param  lserror      OUT     set on error 
 * 
 * @retval  true on success
 * @retval  false on failure
 */
bool
LSGmainDetachPalmService(LSPalmService *psh, LSError *lserror)
{
    bool retVal;

    retVal = LSGmainDetach(psh->public_sh, lserror);
    if (!retVal) return retVal;
    retVal = LSGmainDetach(psh->private_sh, lserror);
    if (!retVal) return retVal;

    return retVal;
}
Exemplo n.º 2
0
void Handle::detach()
{
    Error error;

    if (!LSGmainDetach(_handle, error.get()))
    {
        throw error;
    }
    release();
}