defs/si_std/uuid.h File Reference

Basic facility for uuid/guids. More...

#include <si_sys/defs.h>

Go to the source code of this file.

Classes

struct  sc_uuid
 A UUID structure. More...

Functions

sc_status sc_uuid_init (sc_uuid *uuid)
sc_status sc_uuid_initFromString (sc_uuid *uuid, const TCHAR *uuidstr)
sc_status sc_uuid_assign (sc_uuid *pthis, const sc_uuid *pthat)
sc_status sc_uuid_compareEqual (const sc_uuid *g0, const sc_uuid *g1, s_bool *equal)


Detailed Description

Basic facility for uuid/guids.

Used here so that device categories and interfaces can be independently developed without need to cooperate on id constants or ranges.

Note:
Only minimal support is included here.

Function Documentation

sc_status sc_uuid_assign ( sc_uuid pthis,
const sc_uuid pthat 
)

Assign pthis to the value of *pthat.

sc_status sc_uuid_compareEqual ( const sc_uuid g0,
const sc_uuid g1,
s_bool *  equal 
)

Compares g0 to g1, and returns seTrue if they are equal, and seFalse otherwise.

Parameters:
[in] g0 A UUID
[in] g1 Another UUID
[out] equal Gets set to seTrue if they are equal, seFalse otherwise.

sc_status sc_uuid_init ( sc_uuid uuid  ) 

initialize the uuid from another uuid (may be NULL).

sc_status sc_uuid_initFromString ( sc_uuid uuid,
const TCHAR *  uuidstr 
)

Initialize the uuid from a uuid string given in the format: XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX or { XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX }

Parameters:
[in,out] uuid UUID object to initialize.
[in] uuidstr UUID string to convert.
Note:
UUID strings can be obtained on the command line with most systems using the 'uuidgen' utility.


doxygen