Mbim.Uuid

Fields

Name

Type

Access

Description

a

bytes

r/w

b

bytes

r/w

c

bytes

r/w

d

bytes

r/w

e

bytes

r/w

Methods

class

from_context_type (context_type)

class

from_printable (str, uuid)

class

from_service (service)

cmp (b)

get_printable ()

to_context_type ()

to_service ()

Details

class Mbim.Uuid

A UUID as defined in MBIM.

New in version 1.0.

classmethod from_context_type(context_type)
Parameters:

context_type (Mbim.ContextType) – a Mbim.ContextType.

Returns:

a Mbim.Uuid.

Return type:

Mbim.Uuid

Get the UUID corresponding to context_type.

New in version 1.0.

classmethod from_printable(str, uuid)
Parameters:
Returns:

True if uuid was correctly set, False otherwise.

Return type:

bool

Fills in uuid from the printable representation give in str.

Only ccepts str written with dashes separating items, e.g.: a289cc33-bcbb-8b4f-b6b0-133ec2aae6df

New in version 1.8.

classmethod from_service(service)
Parameters:

service (Mbim.Service) – a Mbim.Service.

Returns:

a Mbim.Uuid.

Return type:

Mbim.Uuid

Get the UUID corresponding to service.

The service needs to be either a generic one (including Mbim.Service.INVALID) or a custom registered one.

New in version 1.0.

cmp(b)
Parameters:

b (Mbim.Uuid) – a Mbim.Uuid.

Returns:

True if self and b are equal, False otherwise.

Return type:

bool

Compare two Mbim.Uuid values.

New in version 1.0.

get_printable()
Returns:

a newly allocated string, which should be freed with GLib.free().

Return type:

str

Get a string with the UUID.

New in version 1.0.

to_context_type()
Returns:

a Mbim.ContextType.

Return type:

Mbim.ContextType

Get the context type corresponding to self.

New in version 1.0.

to_service()
Returns:

a Mbim.Service.

Return type:

Mbim.Service

Get the service corresponding to self.

New in version 1.0.