libnm: add NM_VERSION_1_40_20

This commit is contained in:
Fernando Fernandez Mancera 2023-05-09 12:46:09 +02:00
parent c787d22fc8
commit 4fd186bbf6
2 changed files with 7 additions and 0 deletions

View file

@ -73,6 +73,7 @@
#define NM_VERSION_1_38 (NM_ENCODE_VERSION (1, 38, 0))
#define NM_VERSION_1_40 (NM_ENCODE_VERSION (1, 40, 0))
#define NM_VERSION_1_40_4 (NM_ENCODE_VERSION (1, 40, 4))
#define NM_VERSION_1_40_20 (NM_ENCODE_VERSION (1, 40, 20))
/* For releases, NM_API_VERSION is equal to NM_VERSION.
*

View file

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