DBusUtilities

Members

Static functions

addressEscapeValue
string addressEscapeValue(string string_)

Escape string so it can appear in a D-Bus address as the value part of a key-value pair.

addressGetForBusSync
string addressGetForBusSync(GBusType busType, Cancellable cancellable)

Synchronously looks up the D-Bus address for the well-known message bus instance specified by bus_type. This may involve using various platform specific mechanisms.

addressGetStream
void addressGetStream(string address, Cancellable cancellable, GAsyncReadyCallback callback, void* userData)

Asynchronously connects to an endpoint specified by address and sets up the connection so it is in a state to run the client-side of the D-Bus authentication conversation. address must be in the D-Bus address format.

addressGetStreamFinish
IOStream addressGetStreamFinish(AsyncResultIF res, string outGuid)

Finishes an operation started with g_dbus_address_get_stream().

addressGetStreamSync
IOStream addressGetStreamSync(string address, string outGuid, Cancellable cancellable)

Synchronously connects to an endpoint specified by address and sets up the connection so it is in a state to run the client-side of the D-Bus authentication conversation. address must be in the D-Bus address format.

generateGuid
string generateGuid()

Generate a D-Bus GUID that can be used with e.g. g_dbus_connection_new().

gvalueToGvariant
Variant gvalueToGvariant(Value gvalue, VariantType type)

Converts a gobject.Value to a glib.Variant of the type indicated by the type parameter.

gvariantToGvalue
void gvariantToGvalue(Variant value, Value outGvalue)

Converts a glib.Variant to a gobject.Value If value is floating, it is consumed.

isAddress
bool isAddress(string string_)

Checks if string is a D-Bus address.

isGuid
bool isGuid(string string_)

Checks if string is a D-Bus GUID.

isInterfaceName
bool isInterfaceName(string string_)

Checks if string is a valid D-Bus interface name.

isMemberName
bool isMemberName(string string_)

Checks if string is a valid D-Bus member (e.g. signal or method) name.

isName
bool isName(string string_)

Checks if string is a valid D-Bus bus name (either unique or well-known).

isSupportedAddress
bool isSupportedAddress(string string_)

Like g_dbus_is_address() but also checks if the library supports the transports in string and that key/value pairs for each transport are valid. See the specification of the D-Bus address format.

isUniqueName
bool isUniqueName(string string_)

Checks if string is a valid D-Bus unique bus name.