gsocket: Explicitly mark size parameter as (in)

The generated gir file marks the size parameter as "out" by default. This is wrong in the context of a caller allocated buffer with a given size. Explicitly marking the size parameter as (in) fixes the issue.
This commit is contained in:
badcel 2023-04-15 22:53:05 +02:00
parent 9d2f65576f
commit f510fa0227
No known key found for this signature in database
GPG Key ID: 70A8373EEB2233E0

View File

@ -3400,7 +3400,7 @@ g_socket_receive_with_blocking (GSocket *socket,
* pointer, or %NULL
* @buffer: (array length=size) (element-type guint8) (out caller-allocates):
* a buffer to read data into (which should be at least @size bytes long).
* @size: the number of bytes you want to read from the socket
* @size: (in): the number of bytes you want to read from the socket
* @cancellable: (nullable): a %GCancellable or %NULL
* @error: #GError for error reporting, or %NULL to ignore.
*