libnm: add NM_VERSION_1_56_2

This commit is contained in:
Jan Vaclav 2026-05-07 14:08:18 +02:00
parent b74b6bf867
commit 7e05a2337e
2 changed files with 7 additions and 0 deletions

View file

@ -79,6 +79,7 @@
#define NM_VERSION_1_52 (NM_ENCODE_VERSION(1, 52, 0))
#define NM_VERSION_1_54 (NM_ENCODE_VERSION(1, 54, 0))
#define NM_VERSION_1_56 (NM_ENCODE_VERSION(1, 56, 0))
#define NM_VERSION_1_56_2 (NM_ENCODE_VERSION(1, 56, 2))
/* For releases, NM_API_VERSION is equal to NM_VERSION.
*

View file

@ -453,6 +453,12 @@
#define NM_AVAILABLE_IN_1_56
#endif
#if NM_VERSION_MAX_ALLOWED < NM_VERSION_1_56_2
#define NM_AVAILABLE_IN_1_56_2 G_UNAVAILABLE(1, 56.2)
#else
#define NM_AVAILABLE_IN_1_56_2
#endif
/*
* Synchronous API for calling D-Bus in libnm is deprecated. See
* https://networkmanager.dev/docs/libnm/latest/usage.html#sync-api