Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
uuidutil.h
Go to the documentation of this file.
1 /*
2  * uuidutil.h
3  *
4  * DSP-BIOS Bridge driver support functions for TI OMAP processors.
5  *
6  * This file contains the specification of UUID helper functions.
7  *
8  * Copyright (C) 2005-2006 Texas Instruments, Inc.
9  *
10  * This package is free software; you can redistribute it and/or modify
11  * it under the terms of the GNU General Public License version 2 as
12  * published by the Free Software Foundation.
13  *
14  * THIS PACKAGE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
15  * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
16  * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
17  */
18 
19 #ifndef UUIDUTIL_
20 #define UUIDUTIL_
21 
22 #define MAXUUIDLEN 37
23 
24 /*
25  * ======== uuid_uuid_from_string ========
26  * Purpose:
27  * Converts an ANSI string to a dsp_uuid.
28  * Parameters:
29  * sz_uuid: Pointer to a string that represents a dsp_uuid object.
30  * uuid_obj: Pointer to a dsp_uuid object.
31  * Returns:
32  * Requires:
33  * uuid_obj & sz_uuid are non-NULL values.
34  * Ensures:
35  * Details:
36  * We assume the string representation of a UUID has the following format:
37  * "12345678_1234_1234_1234_123456789abc".
38  */
39 extern void uuid_uuid_from_string(char *sz_uuid,
40  struct dsp_uuid *uuid_obj);
41 
42 #endif /* UUIDUTIL_ */