libnm: fix GObject Introspection annotations for functions returning a GPtrArray

The GPtrArray owns the element so it is a (transfer full).

https://gitlab.freedesktop.org/NetworkManager/NetworkManager/merge_requests/46
This commit is contained in:
Corentin Noël 2018-11-08 18:50:49 +01:00 committed by Thomas Haller
parent 16c9e89c3f
commit 201c153e25
3 changed files with 3 additions and 3 deletions

View file

@ -367,7 +367,7 @@ nm_access_point_connection_valid (NMAccessPoint *ap, NMConnection *connection)
* #NMDevice using nm_device_filter_connections() and finally filter that list
* with this function.
*
* Returns: (transfer container) (element-type NMConnection): an array of
* Returns: (transfer full) (element-type NMConnection): an array of
* #NMConnections that could be activated with the given @ap. The array should
* be freed with g_ptr_array_unref() when it is no longer required.
**/

View file

@ -2607,7 +2607,7 @@ nm_device_connection_compatible (NMDevice *device, NMConnection *connection, GEr
* incompatible with the device. To get the full list of connections see
* nm_client_get_connections().
*
* Returns: (transfer container) (element-type NMConnection): an array of
* Returns: (transfer full) (element-type NMConnection): an array of
* #NMConnections that could be activated with the given @device. The array
* should be freed with g_ptr_array_unref() when it is no longer required.
**/

View file

@ -151,7 +151,7 @@ nm_wimax_nsp_connection_valid (NMWimaxNsp *nsp, NMConnection *connection)
* return connections which may be activated with the NSP. Any returned
* connections will match the @nsp's network name and other attributes.
*
* Returns: (transfer container) (element-type NMConnection): an array of
* Returns: (transfer full) (element-type NMConnection): an array of
* #NMConnections that could be activated with the given @nsp. The array should
* be freed with g_ptr_array_unref() when it is no longer required.
**/