htable.cpp revision 952c666524c391e60f019eb4a2e31d26751c9abc
/* $Id$ */
/** @file
* uint32_t handle to void simple table impl
*/
/*
* Copyright (C) 2013 Oracle Corporation
*
* This file is part of VirtualBox Open Source Edition (OSE), as
* available from http://www.virtualbox.org. This file is free software;
* General Public License (GPL) as published by the Free Software
* Foundation, in version 2 as it comes in the "COPYING" file of the
* VirtualBox OSE distribution. VirtualBox OSE is distributed in the
* hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
*/
#include "cr_spu.h"
#include "cr_vreg.h"
#include "cr_htable.h"
#include "cr_spu.h"
#include "chromium.h"
#include "cr_error.h"
#include "cr_net.h"
#include "cr_rand.h"
#include "cr_mem.h"
#include "cr_string.h"
{
if (!cSize)
return VINF_SUCCESS;
{
return VINF_SUCCESS;
}
WARN(("RTMemAllocZ failed!"));
return VERR_NO_MEMORY;
}
{
return;
}
{
{
if (!pvNewData)
{
return VERR_NO_MEMORY;
}
return VINF_SUCCESS;
}
{
WARN(("not implemented"));
return VERR_NOT_IMPLEMENTED;
}
WARN(("invalid parameter"));
return VERR_INVALID_PARAMETER;
}
{
}
{
pTbl->iNext2Search = 0;
}
{
if (!pvOld)
return pvOld;
}
{
if (!pvData)
{
AssertMsgFailed(("pvData is NULL\n"));
return VERR_INVALID_PARAMETER;
}
{
if (!RT_SUCCESS(rc))
{
return CRHTABLE_HANDLE_INVALID;
}
}
return VINF_SUCCESS;
}
{
if (!pvData)
{
AssertMsgFailed(("pvData is NULL\n"));
return VERR_INVALID_PARAMETER;
}
{
if (!RT_SUCCESS(rc))
{
return CRHTABLE_HANDLE_INVALID;
}
}
{
{
return crHTableIndex2Handle(i);
}
}
WARN(("should not be here"));
return CRHTABLE_HANDLE_INVALID;
}
{
{
if (pvData)
{
}
return pvData;
}
return NULL;
}
{
return NULL;
}