Method

GioDBusMessageget_header

Declaration

GVariant*
g_dbus_message_get_header (
  GDBusMessage* message,
  GDBusMessageHeaderField header_field
)

Description

Gets a header field on message.

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

Available since:2.26

Parameters

header_field GDBusMessageHeaderField
 

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

Return value

Returns: GVariant
 

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

 The data is owned by the instance.
 The return value can be NULL.