mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-25 16:30:07 +01:00
libnm: backport enum conversion utilities to 1.0.6
Backport to 1.0.6 the following symbols:
- nm_utils_enum_from_str
- nm_utils_enum_to_str
added to 1.0.6 with commit f4ce6760e0
This commit is contained in:
parent
b2a66d59c8
commit
0969d16ad8
2 changed files with 7 additions and 0 deletions
|
|
@ -4043,6 +4043,8 @@ char *nm_utils_enum_to_str (GType type, int value)
|
|||
g_type_class_unref (class);
|
||||
return ret;
|
||||
}
|
||||
NM_BACKPORT_SYMBOL (libnm_1_0_6, char *, nm_utils_enum_to_str,
|
||||
(GType type, int value), (type, value));
|
||||
|
||||
/**
|
||||
* nm_utils_enum_from_str:
|
||||
|
|
@ -4114,4 +4116,7 @@ gboolean nm_utils_enum_from_str (GType type, const char *str,
|
|||
g_type_class_unref (class);
|
||||
return ret;
|
||||
}
|
||||
NM_BACKPORT_SYMBOL (libnm_1_0_6, gboolean, nm_utils_enum_from_str,
|
||||
(GType type, const char *str, int *out_value, char **err_token),
|
||||
(type, str, out_value, err_token));
|
||||
|
||||
|
|
|
|||
|
|
@ -846,6 +846,8 @@ libnm_1_0_6 {
|
|||
#nm_device_wifi_request_scan_options_async@libnm_1_0_6;
|
||||
#nm_metered_get_type@libnm_1_0_6;
|
||||
#nm_setting_connection_get_metered@libnm_1_0_6;
|
||||
#nm_utils_enum_from_str@libnm_1_0_6;
|
||||
#nm_utils_enum_to_str@libnm_1_0_6;
|
||||
#nm_utils_wifi_2ghz_freqs@libnm_1_0_6;
|
||||
#nm_utils_wifi_5ghz_freqs@libnm_1_0_6;
|
||||
} libnm_1_0_4;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue