DBusMessage.getHeader

Gets a header field on @message.

The caller is responsible for checking the type of the returned #GVariant matches what is expected.

class DBusMessage
getHeader
(
GDBusMessageHeaderField headerField
)

Parameters

headerField GDBusMessageHeaderField

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

Return Value

Type: Variant

A #GVariant with the value if the header was found, %NULL otherwise. Do not free, it is owned by @message.

Meta

Since

2.26