mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager
synced 2024-07-23 19:24:38 +00:00
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:
parent
16c9e89c3f
commit
201c153e25
|
@ -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.
|
||||
**/
|
||||
|
|
|
@ -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.
|
||||
**/
|
||||
|
|
|
@ -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.
|
||||
**/
|
||||
|
|
Loading…
Reference in a new issue