![Andy Shevchenko](/assets/img/avatar_default.png)
There is native specificator for snprintf to get UUID in human readable format. Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Cc: Omar Ramirez Luna <omar.ramirez@ti.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
43 lines
1.2 KiB
C
43 lines
1.2 KiB
C
/*
|
|
* uuidutil.h
|
|
*
|
|
* DSP-BIOS Bridge driver support functions for TI OMAP processors.
|
|
*
|
|
* This file contains the specification of UUID helper functions.
|
|
*
|
|
* Copyright (C) 2005-2006 Texas Instruments, Inc.
|
|
*
|
|
* This package is free software; you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License version 2 as
|
|
* published by the Free Software Foundation.
|
|
*
|
|
* THIS PACKAGE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
|
|
* IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
|
|
* WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
|
|
*/
|
|
|
|
#ifndef UUIDUTIL_
|
|
#define UUIDUTIL_
|
|
|
|
#define MAXUUIDLEN 37
|
|
|
|
/*
|
|
* ======== uuid_uuid_from_string ========
|
|
* Purpose:
|
|
* Converts an ANSI string to a dsp_uuid.
|
|
* Parameters:
|
|
* sz_uuid: Pointer to a string that represents a dsp_uuid object.
|
|
* uuid_obj: Pointer to a dsp_uuid object.
|
|
* Returns:
|
|
* Requires:
|
|
* uuid_obj & sz_uuid are non-NULL values.
|
|
* Ensures:
|
|
* Details:
|
|
* We assume the string representation of a UUID has the following format:
|
|
* "12345678_1234_1234_1234_123456789abc".
|
|
*/
|
|
extern void uuid_uuid_from_string(char *sz_uuid,
|
|
struct dsp_uuid *uuid_obj);
|
|
|
|
#endif /* UUIDUTIL_ */
|