DBusMessage.getHeader

Gets a header field on message.

The caller is responsible for checking the type of the returned glib.Variant matches what is expected.

class DBusMessage
getHeader

Parameters

headerField GDBusMessageHeaderField

A 8-bit unsigned integer (typically a value from the GDBusMessageHeaderField enumeration)

Return Value

Type: Variant

A glib.Variant with the value if the header was found, NULL otherwise. Do not free, it is owned by message.

Meta

Since

2.26