htable.cpp revision b36935f93195696e1d8f1ed66ba8e71685094563
/* $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_htable.h>
#include <cr_error.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)
}
{
{
if (!RT_SUCCESS(rc))
{
return CRHTABLE_HANDLE_INVALID;
}
}
return VINF_SUCCESS;
}
{
{
if (!RT_SUCCESS(rc))
{
return CRHTABLE_HANDLE_INVALID;
}
}
{
{
return crHTableIndex2Handle(i);
}
}
WARN(("should not be here"));
return CRHTABLE_HANDLE_INVALID;
}
{
{
return pvData;
}
return NULL;
}
{
return NULL;
}