mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-04-30 23:48:05 +02:00
libnm-core: clarify nm_setting_lookup_type*() failure
nm_setting_lookup_type() and nm_setting_lookup_type_by_quark() return G_TYPE_INVALID on failure.
This commit is contained in:
parent
c191c38a5f
commit
05f3068163
1 changed files with 5 additions and 3 deletions
|
|
@ -231,14 +231,15 @@ _nm_setting_is_base_type (NMSetting *setting)
|
|||
*
|
||||
* Returns the #GType of the setting's class for a given setting name.
|
||||
*
|
||||
* Returns: the #GType of the setting's class
|
||||
* Returns: the #GType of the setting's class, or %G_TYPE_INVALID if
|
||||
* @name is not recognized.
|
||||
**/
|
||||
GType
|
||||
nm_setting_lookup_type (const char *name)
|
||||
{
|
||||
SettingInfo *info;
|
||||
|
||||
g_return_val_if_fail (name != NULL, G_TYPE_NONE);
|
||||
g_return_val_if_fail (name != NULL, G_TYPE_INVALID);
|
||||
|
||||
_ensure_registered ();
|
||||
|
||||
|
|
@ -253,7 +254,8 @@ nm_setting_lookup_type (const char *name)
|
|||
* Returns the #GType of the setting's class for a given setting error quark.
|
||||
* Useful for figuring out which setting a returned error is for.
|
||||
*
|
||||
* Returns: the #GType of the setting's class
|
||||
* Returns: the #GType of the setting's class, or %G_TYPE_INVALID if
|
||||
* @error_quark is not recognized
|
||||
**/
|
||||
GType
|
||||
nm_setting_lookup_type_by_quark (GQuark error_quark)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue