gdbusmessage: Improve documentation for g_dbus_message_get_header()

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

Signed-off-by: Philip Withnall <withnall@endlessm.com>
This commit is contained in:
Philip Withnall 2018-08-16 21:35:31 +01:00
parent af712bbce1
commit 94a9ab3c03

View File

@ -985,7 +985,10 @@ g_dbus_message_set_serial (GDBusMessage *message,
* *
* Gets a header field on @message. * Gets a header field on @message.
* *
* Returns: A #GVariant with the value if the header was found, %NULL * The caller is responsible for checking the type of the returned #GVariant
* matches what is expected.
*
* Returns: (transfer none) (nullable): A #GVariant with the value if the header was found, %NULL
* otherwise. Do not free, it is owned by @message. * otherwise. Do not free, it is owned by @message.
* *
* Since: 2.26 * Since: 2.26