Back to index

lightning-sunbird  0.9+nobinonly
Public Member Functions
nsIUUIDGenerator Interface Reference

nsIUUIDGenerator is implemented by a service that can generate universally unique identifiers, ideally using any platform-native method for generating UUIDs. More...

import "nsIUUIDGenerator.idl";

Inheritance diagram for nsIUUIDGenerator:
Inheritance graph
[legend]
Collaboration diagram for nsIUUIDGenerator:
Collaboration graph
[legend]

List of all members.

Public Member Functions

nsIDPtr generateUUID ()
 Obtains a new UUID using appropriate platform-specific methods to obtain a nsID that can be considered to be globally unique.
void generateUUIDInPlace (in nsNonConstIDPtr id)
 Obtain a new UUID like the generateUUID method, but place it in the provided nsID pointer instead of allocating a new nsID.

Detailed Description

nsIUUIDGenerator is implemented by a service that can generate universally unique identifiers, ideally using any platform-native method for generating UUIDs.

Definition at line 49 of file nsIUUIDGenerator.idl.


Member Function Documentation

Obtains a new UUID using appropriate platform-specific methods to obtain a nsID that can be considered to be globally unique.

Returns:
an nsID filled in with a new UUID.
Exceptions:
NS_ERROR_FAILUREif a UUID cannot be generated (e.g. if an underlying source of randomness is not available)

Obtain a new UUID like the generateUUID method, but place it in the provided nsID pointer instead of allocating a new nsID.

Parameters:
idan existing nsID pointer where the UUID will be stored.
Exceptions:
NS_ERROR_FAILUREif a UUID cannot be generated (e.g. if an underlying source of randomness is not available)

The documentation for this interface was generated from the following file: