b36935f93195696e1d8f1ed66ba8e71685094563vboxsync * uint32_t handle to void simple table API
b36935f93195696e1d8f1ed66ba8e71685094563vboxsync * Copyright (C) 2013 Oracle Corporation
b36935f93195696e1d8f1ed66ba8e71685094563vboxsync * This file is part of VirtualBox Open Source Edition (OSE), as
b36935f93195696e1d8f1ed66ba8e71685094563vboxsync * available from http://www.virtualbox.org. This file is free software;
b36935f93195696e1d8f1ed66ba8e71685094563vboxsync * you can redistribute it and/or modify it under the terms of the GNU
b36935f93195696e1d8f1ed66ba8e71685094563vboxsync * General Public License (GPL) as published by the Free Software
b36935f93195696e1d8f1ed66ba8e71685094563vboxsync * Foundation, in version 2 as it comes in the "COPYING" file of the
b36935f93195696e1d8f1ed66ba8e71685094563vboxsync * VirtualBox OSE distribution. VirtualBox OSE is distributed in the
b36935f93195696e1d8f1ed66ba8e71685094563vboxsync * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
b36935f93195696e1d8f1ed66ba8e71685094563vboxsync/*private stuff, not to be used directly */
b36935f93195696e1d8f1ed66ba8e71685094563vboxsyncDECLINLINE(CRHTABLE_HANDLE) crHTableIndex2Handle(uint32_t iIndex)
b36935f93195696e1d8f1ed66ba8e71685094563vboxsyncDECLINLINE(uint32_t) crHTableHandle2Index(CRHTABLE_HANDLE hHandle)
b36935f93195696e1d8f1ed66ba8e71685094563vboxsync/* public API */
b36935f93195696e1d8f1ed66ba8e71685094563vboxsyncDECLINLINE(void) CrHTableIterInit(PCRHTABLE pTbl, PCRHTABLE_ITERATOR pIter)
b36935f93195696e1d8f1ed66ba8e71685094563vboxsyncDECLINLINE(void*) CrHTableIterNext(PCRHTABLE_ITERATOR pIter, CRHTABLE_HANDLE *phHandle)
b36935f93195696e1d8f1ed66ba8e71685094563vboxsyncVBOXHTABLEDECL(int) CrHTableCreate(PCRHTABLE pTbl, uint32_t cSize);
b36935f93195696e1d8f1ed66ba8e71685094563vboxsyncDECLINLINE(void) CrHTableMoveTo(PCRHTABLE pSrcTbl, PCRHTABLE pDstTbl)
b36935f93195696e1d8f1ed66ba8e71685094563vboxsyncVBOXHTABLEDECL(void) CrHTableDestroy(PCRHTABLE pTbl);
b36935f93195696e1d8f1ed66ba8e71685094563vboxsyncVBOXHTABLEDECL(int) CrHTableRealloc(PCRHTABLE pTbl, uint32_t cNewSize);
b36935f93195696e1d8f1ed66ba8e71685094563vboxsyncVBOXHTABLEDECL(CRHTABLE_HANDLE) CrHTablePut(PCRHTABLE pTbl, void *pvData);
b36935f93195696e1d8f1ed66ba8e71685094563vboxsyncVBOXHTABLEDECL(int) CrHTablePutToSlot(PCRHTABLE pTbl, CRHTABLE_HANDLE hHandle, void* pvData);
b36935f93195696e1d8f1ed66ba8e71685094563vboxsync/* note: can be called for the element returned with CrHTableIterNext w/o corrupting the iterator */
b36935f93195696e1d8f1ed66ba8e71685094563vboxsyncVBOXHTABLEDECL(void*) CrHTableRemove(PCRHTABLE pTbl, CRHTABLE_HANDLE hHandle);
b36935f93195696e1d8f1ed66ba8e71685094563vboxsyncVBOXHTABLEDECL(void*) CrHTableGet(PCRHTABLE pTbl, CRHTABLE_HANDLE hHandle);
b36935f93195696e1d8f1ed66ba8e71685094563vboxsync#endif /* #ifndef ___cr_htable_h_*/