4 * DSP-BIOS Bridge driver support functions for TI OMAP processors.
6 * This file contains the specification of UUID helper functions.
8 * Copyright (C) 2005-2006 Texas Instruments, Inc.
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.
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.
25 * ======== uuid_uuid_to_string ========
27 * Converts a dsp_uuid to an ANSI string.
29 * uuid_obj: Pointer to a dsp_uuid object.
30 * sz_uuid: Pointer to a buffer to receive a NULL-terminated UUID
32 * size: Maximum size of the sz_uuid string.
35 * uuid_obj & sz_uuid are non-NULL values.
37 * Lenghth of sz_uuid is less than MAXUUIDLEN.
39 * UUID string limit currently set at MAXUUIDLEN.
41 void uuid_uuid_to_string(struct dsp_uuid *uuid_obj, char *sz_uuid,
45 * ======== uuid_uuid_from_string ========
47 * Converts an ANSI string to a dsp_uuid.
49 * sz_uuid: Pointer to a string that represents a dsp_uuid object.
50 * uuid_obj: Pointer to a dsp_uuid object.
53 * uuid_obj & sz_uuid are non-NULL values.
56 * We assume the string representation of a UUID has the following format:
57 * "12345678_1234_1234_1234_123456789abc".
59 extern void uuid_uuid_from_string(char *sz_uuid,
60 struct dsp_uuid *uuid_obj);
62 #endif /* UUIDUTIL_ */