Add (type GSocketMsgFlags) to int-typed flags parameters in GSocket

This commit is contained in:
Sebastian Dröge 2019-01-18 18:24:03 +02:00
parent f0a11b2727
commit cc7f2f6b28

View File

@ -4537,7 +4537,7 @@ input_message_from_msghdr (const struct msghdr *msg,
* @messages: (array length=num_messages) (nullable): a pointer to an * @messages: (array length=num_messages) (nullable): a pointer to an
* array of #GSocketControlMessages, or %NULL. * array of #GSocketControlMessages, or %NULL.
* @num_messages: number of elements in @messages, or -1. * @num_messages: number of elements in @messages, or -1.
* @flags: an int containing #GSocketMsgFlags flags * @flags: (type GSocketMsgFlags): an int containing #GSocketMsgFlags flags
* @cancellable: (nullable): a %GCancellable or %NULL * @cancellable: (nullable): a %GCancellable or %NULL
* @error: #GError for error reporting, or %NULL to ignore. * @error: #GError for error reporting, or %NULL to ignore.
* *
@ -4620,7 +4620,7 @@ g_socket_send_message (GSocket *socket,
* @messages: (array length=num_messages) (nullable): a pointer to an * @messages: (array length=num_messages) (nullable): a pointer to an
* array of #GSocketControlMessages, or %NULL. * array of #GSocketControlMessages, or %NULL.
* @num_messages: number of elements in @messages, or -1. * @num_messages: number of elements in @messages, or -1.
* @flags: an int containing #GSocketMsgFlags flags * @flags: (type GSocketMsgFlags): an int containing #GSocketMsgFlags flags
* @timeout: the maximum time (in microseconds) to wait, or -1 * @timeout: the maximum time (in microseconds) to wait, or -1
* @bytes_written: (out) (optional): location to store the number of bytes that were written to the socket * @bytes_written: (out) (optional): location to store the number of bytes that were written to the socket
* @cancellable: (nullable): a %GCancellable or %NULL * @cancellable: (nullable): a %GCancellable or %NULL
@ -4853,7 +4853,7 @@ g_socket_send_message_with_timeout (GSocket *socket,
* @socket: a #GSocket * @socket: a #GSocket
* @messages: (array length=num_messages): an array of #GOutputMessage structs * @messages: (array length=num_messages): an array of #GOutputMessage structs
* @num_messages: the number of elements in @messages * @num_messages: the number of elements in @messages
* @flags: an int containing #GSocketMsgFlags flags * @flags: (type GSocketMsgFlags): an int containing #GSocketMsgFlags flags
* @cancellable: (nullable): a %GCancellable or %NULL * @cancellable: (nullable): a %GCancellable or %NULL
* @error: #GError for error reporting, or %NULL to ignore. * @error: #GError for error reporting, or %NULL to ignore.
* *
@ -5347,7 +5347,7 @@ g_socket_receive_message_with_timeout (GSocket *socket,
* @socket: a #GSocket * @socket: a #GSocket
* @messages: (array length=num_messages): an array of #GInputMessage structs * @messages: (array length=num_messages): an array of #GInputMessage structs
* @num_messages: the number of elements in @messages * @num_messages: the number of elements in @messages
* @flags: an int containing #GSocketMsgFlags flags for the overall operation * @flags: (type GSocketMsgFlags): an int containing #GSocketMsgFlags flags for the overall operation
* @cancellable: (nullable): a %GCancellable or %NULL * @cancellable: (nullable): a %GCancellable or %NULL
* @error: #GError for error reporting, or %NULL to ignore * @error: #GError for error reporting, or %NULL to ignore
* *
@ -5633,7 +5633,7 @@ g_socket_receive_messages_with_timeout (GSocket *socket,
* which may be filled with an array of #GSocketControlMessages, or %NULL * which may be filled with an array of #GSocketControlMessages, or %NULL
* @num_messages: (out): a pointer which will be filled with the number of * @num_messages: (out): a pointer which will be filled with the number of
* elements in @messages, or %NULL * elements in @messages, or %NULL
* @flags: (inout): a pointer to an int containing #GSocketMsgFlags flags * @flags: (type GSocketMsgFlags): (inout): a pointer to an int containing #GSocketMsgFlags flags
* @cancellable: a %GCancellable or %NULL * @cancellable: a %GCancellable or %NULL
* @error: a #GError pointer, or %NULL * @error: a #GError pointer, or %NULL
* *