/* $Id$ */
/** @file
* Sorted array API
*/
/*
* Copyright (C) 2014 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.
*/
#ifndef ___cr_sortarray_h_
#define ___cr_sortarray_h_
typedef struct CR_SORTARRAY
{
} CR_SORTARRAY;
#ifndef IN_RING0
#else
#endif
{
}
{
}
{
}
{
}
/*
* @return true if element is found */
/*
* @return VINF_SUCCESS if element is added
* VINF_ALREADY_INITIALIZED if element was in array already
* VERR_NO_MEMORY - no memory
* */
/*
* @return VINF_SUCCESS if element is removed
* VINF_ALREADY_INITIALIZED if element was NOT in array
* */
/*
* @return VINF_SUCCESS on success
* VERR_NO_MEMORY - no memory
* */
VBOXSADECL(int) CrSaIntersected(const CR_SORTARRAY *pArray1, const CR_SORTARRAY *pArray2, CR_SORTARRAY *pResult);
/*
* @return VINF_SUCCESS on success
* VERR_NO_MEMORY - no memory
* */
VBOXSADECL(int) CrSaUnited(const CR_SORTARRAY *pArray1, const CR_SORTARRAY *pArray2, CR_SORTARRAY *pResult);
/*
* @return VINF_SUCCESS on success
* VERR_NO_MEMORY - no memory
* */
#endif /* ___cr_sortarray_h_ */