libnm: belatedly export nm_ip_routing_rule_[gs]et_uid_range() symbols

This commit is contained in:
Thomas Haller 2021-06-19 09:44:55 +02:00
parent eb8e55c822
commit 06296f7c3c
No known key found for this signature in database
GPG key ID: 29C2366E4DFC5728
3 changed files with 15 additions and 4 deletions

View file

@ -1793,3 +1793,8 @@ global:
nm_setting_match_new;
nm_setting_wired_get_accept_all_mac_addresses;
} libnm_1_30_0;
libnm_1_34_0 {
nm_ip_routing_rule_get_uid_range;
nm_ip_routing_rule_set_uid_range;
} libnm_1_32_0;

View file

@ -2441,7 +2441,10 @@ nm_ip_routing_rule_set_suppress_prefixlength(NMIPRoutingRule *self, gint32 suppr
*
* Returns: %TRUE if a uid range is set.
*
* Since: 1.32
* Since: 1.34
*
* This API was wrongly introduced in the header files for 1.32, but the
* symbols were not exported. The API only works since 1.34 and newer.
*/
gboolean
nm_ip_routing_rule_get_uid_range(const NMIPRoutingRule *self,
@ -2466,7 +2469,10 @@ nm_ip_routing_rule_get_uid_range(const NMIPRoutingRule *self,
* For a valid range, start must be less or equal to end.
* If set to an invalid range, the range gets unset.
*
* Since: 1.32
* Since: 1.34
*
* This API was wrongly introduced in the header files for 1.32, but the
* symbols were not exported. The API only works since 1.34 and newer.
*/
void
nm_ip_routing_rule_set_uid_range(NMIPRoutingRule *self,

View file

@ -248,11 +248,11 @@ NM_AVAILABLE_IN_1_20
void nm_ip_routing_rule_set_suppress_prefixlength(NMIPRoutingRule *self,
gint32 suppress_prefixlength);
NM_AVAILABLE_IN_1_32
NM_AVAILABLE_IN_1_34
gboolean nm_ip_routing_rule_get_uid_range(const NMIPRoutingRule *self,
guint32 * out_range_start,
guint32 * out_range_end);
NM_AVAILABLE_IN_1_32
NM_AVAILABLE_IN_1_34
void nm_ip_routing_rule_set_uid_range(NMIPRoutingRule *self,
guint32 uid_range_start,
guint32 uid_range_end);