uuid-linux.cpp revision 677833bc953b6cb418c701facbdcf4aa18d6c44e
0N/A * InnoTek Portable Runtime - UUID, LINUX. 2362N/A * Copyright (C) 2006 InnoTek Systemberatung GmbH 2362N/A * This file is part of VirtualBox Open Source Edition (OSE), as 0N/A * you can redistribute it and/or modify it under the terms of the GNU 0N/A * General Public License as published by the Free Software Foundation, 0N/A * in version 2 as it comes in the "COPYING" file of the VirtualBox OSE 0N/A * distribution. VirtualBox OSE is distributed in the hope that it will 0N/A * be useful, but WITHOUT ANY WARRANTY of any kind. 0N/A * If you received this file as part of a commercial VirtualBox 0N/A * distribution, then only the terms of your commercial VirtualBox 0N/A * license agreement apply instead of the previous paragraph. 2362N/A/******************************************************************************* 0N/A*******************************************************************************/ 0N/A * Converts the byte order of the first 32 bit UUID component and next two 16 0N/A * bit components from BIG_ENDIAN to LITTLE_ENDIAN and vice versa. 0N/A * @returns iprt status code. 0N/A * @param pUuid Uuid to convert. 0N/A // two 16 bit components 0N/A * Generates a new UUID value. 0N/A * @returns iprt status code. 0N/A * @param pUuid Where to store generated uuid. 0N/A * Makes a null UUID value. 0N/A * @returns iprt status code. 0N/A * @param pUuid Where to store generated null uuid. 0N/A * Checks if UUID is null. 0N/A * @returns true if UUID is null. 0N/A * @param pUuid uuid to check. 0N/A * Compares two UUID values. 0N/A * @returns 0 if eq, < 0 or > 0. 0N/A * @param pUuid1 First value to compare. 0N/A * @param pUuid2 Second value to compare. 0N/A * Converts binary UUID to its string representation. 0N/A * @returns iprt status code. 0N/A * @param pUuid Uuid to convert. 0N/A * @param pszString Where to store result string. 0N/A * @param cchString pszString buffer length, must be >= RTUUID_STR_LENGTH. 0N/A * Converts UUID from its string representation to binary format. 0N/A * @returns iprt status code. 0N/A * @param pUuid Where to store result Uuid. 0N/A * @param pszString String with UUID text data.