mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-02-21 01:40:33 +01:00
libnm: fix versioning on new APIs, bump soname
The newly added bond mode APIs in nm-utils will be new in 1.2, so mark them as such in the headers and docs, move them to a new section in libnm.ver. Since we're adding the new section to libnm.ver, this also seems like a good time to bump the soname.
This commit is contained in:
parent
5756c65c6f
commit
6da3b3a5a5
4 changed files with 15 additions and 6 deletions
|
|
@ -3238,8 +3238,9 @@ static BondMode bond_mode_table[] = {
|
|||
* available modes.
|
||||
*
|
||||
* Returns: bonding mode string, or NULL on error
|
||||
*/
|
||||
|
||||
*
|
||||
* Since: 1.2
|
||||
*/
|
||||
const char *
|
||||
nm_utils_bond_mode_int_to_string (int mode)
|
||||
{
|
||||
|
|
@ -3258,7 +3259,9 @@ nm_utils_bond_mode_int_to_string (int mode)
|
|||
* The @mode string can be either a descriptive name or a number (as string).
|
||||
*
|
||||
* Returns: numeric bond mode, or -1 on error
|
||||
*/
|
||||
*
|
||||
* Since: 1.2
|
||||
*/
|
||||
int
|
||||
nm_utils_bond_mode_string_to_int (const char *mode)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -185,7 +185,9 @@ gboolean nm_utils_ipaddr_valid (int family, const char *ip);
|
|||
|
||||
gboolean nm_utils_check_virtual_device_compatibility (GType virtual_type, GType other_type);
|
||||
|
||||
NM_AVAILABLE_IN_1_2
|
||||
int nm_utils_bond_mode_string_to_int (const char *mode);
|
||||
NM_AVAILABLE_IN_1_2
|
||||
const char *nm_utils_bond_mode_int_to_string (int mode);
|
||||
|
||||
G_END_DECLS
|
||||
|
|
|
|||
|
|
@ -130,7 +130,7 @@ libnm_la_LIBADD = \
|
|||
SYMBOL_VIS_FILE=$(srcdir)/libnm.ver
|
||||
|
||||
libnm_la_LDFLAGS = -Wl,--version-script=$(SYMBOL_VIS_FILE) \
|
||||
-version-info "0:0:0"
|
||||
-version-info "1:0:1"
|
||||
|
||||
###
|
||||
|
||||
|
|
|
|||
|
|
@ -754,8 +754,6 @@ global:
|
|||
nm_state_get_type;
|
||||
nm_utils_ap_mode_security_valid;
|
||||
nm_utils_bin2hexstr;
|
||||
nm_utils_bond_mode_int_to_string;
|
||||
nm_utils_bond_mode_string_to_int;
|
||||
nm_utils_check_virtual_device_compatibility;
|
||||
nm_utils_escape_ssid;
|
||||
nm_utils_file_is_certificate;
|
||||
|
|
@ -846,3 +844,9 @@ global:
|
|||
local:
|
||||
*;
|
||||
};
|
||||
|
||||
libnm_1_2_0 {
|
||||
global:
|
||||
nm_utils_bond_mode_int_to_string;
|
||||
nm_utils_bond_mode_string_to_int;
|
||||
} libnm_1_0_0;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue