mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-01-01 22:20:12 +01:00
libnm-core, libnm-util: belatedly update version macros
Add version macros for NM 1.2, and change NM_VERSION_CUR_STABLE to 1.0, and NEXT_STABLE to 1.2.
This commit is contained in:
parent
4c691cf69e
commit
5756c65c6f
2 changed files with 46 additions and 16 deletions
|
|
@ -67,9 +67,10 @@
|
|||
#define NM_VERSION_0_9_8 (NM_ENCODE_VERSION (0, 9, 8))
|
||||
#define NM_VERSION_0_9_10 (NM_ENCODE_VERSION (0, 9, 10))
|
||||
#define NM_VERSION_1_0 (NM_ENCODE_VERSION (1, 0, 0))
|
||||
#define NM_VERSION_1_2 (NM_ENCODE_VERSION (1, 2, 0))
|
||||
|
||||
#define NM_VERSION_CUR_STABLE NM_VERSION_0_9_10
|
||||
#define NM_VERSION_NEXT_STABLE NM_VERSION_1_0
|
||||
#define NM_VERSION_CUR_STABLE NM_VERSION_1_0
|
||||
#define NM_VERSION_NEXT_STABLE NM_VERSION_1_2
|
||||
|
||||
#if !defined (NM_VERSION_MIN_REQUIRED) || (NM_VERSION_MIN_REQUIRED == 0)
|
||||
# undef NM_VERSION_MIN_REQUIRED
|
||||
|
|
@ -100,6 +101,12 @@
|
|||
# define NM_DEPRECATED_IN_0_9_10_FOR(f)
|
||||
#endif
|
||||
|
||||
#if NM_VERSION_MAX_ALLOWED < NM_VERSION_0_9_10
|
||||
# define NM_AVAILABLE_IN_0_9_10 G_UNAVAILABLE(0.9,10)
|
||||
#else
|
||||
# define NM_AVAILABLE_IN_0_9_10
|
||||
#endif
|
||||
|
||||
#if NM_VERSION_MIN_REQUIRED >= NM_VERSION_1_0
|
||||
# define NM_DEPRECATED_IN_1_0 G_DEPRECATED
|
||||
# define NM_DEPRECATED_IN_1_0_FOR(f) G_DEPRECATED_FOR(f)
|
||||
|
|
@ -108,16 +115,24 @@
|
|||
# define NM_DEPRECATED_IN_1_0_FOR(f)
|
||||
#endif
|
||||
|
||||
#if NM_VERSION_MAX_ALLOWED < NM_VERSION_0_9_10
|
||||
# define NM_AVAILABLE_IN_0_9_10 G_UNAVAILABLE(0.9,10)
|
||||
#else
|
||||
# define NM_AVAILABLE_IN_0_9_10
|
||||
#endif
|
||||
|
||||
#if NM_VERSION_MAX_ALLOWED < NM_VERSION_1_0
|
||||
# define NM_AVAILABLE_IN_1_0 G_UNAVAILABLE(1,0)
|
||||
#else
|
||||
# define NM_AVAILABLE_IN_1_0
|
||||
#endif
|
||||
|
||||
#if NM_VERSION_MIN_REQUIRED >= NM_VERSION_1_2
|
||||
# define NM_DEPRECATED_IN_1_2 G_DEPRECATED
|
||||
# define NM_DEPRECATED_IN_1_2_FOR(f) G_DEPRECATED_FOR(f)
|
||||
#else
|
||||
# define NM_DEPRECATED_IN_1_2
|
||||
# define NM_DEPRECATED_IN_1_2_FOR(f)
|
||||
#endif
|
||||
|
||||
#if NM_VERSION_MAX_ALLOWED < NM_VERSION_1_2
|
||||
# define NM_AVAILABLE_IN_1_2 G_UNAVAILABLE(1,2)
|
||||
#else
|
||||
# define NM_AVAILABLE_IN_1_2
|
||||
#endif
|
||||
|
||||
#endif /* NM_VERSION_H */
|
||||
|
|
|
|||
|
|
@ -67,9 +67,10 @@
|
|||
#define NM_VERSION_0_9_8 (NM_ENCODE_VERSION (0, 9, 8))
|
||||
#define NM_VERSION_0_9_10 (NM_ENCODE_VERSION (0, 9, 10))
|
||||
#define NM_VERSION_1_0 (NM_ENCODE_VERSION (1, 0, 0))
|
||||
#define NM_VERSION_1_2 (NM_ENCODE_VERSION (1, 2, 0))
|
||||
|
||||
#define NM_VERSION_CUR_STABLE NM_VERSION_0_9_10
|
||||
#define NM_VERSION_NEXT_STABLE NM_VERSION_1_0
|
||||
#define NM_VERSION_CUR_STABLE NM_VERSION_1_0
|
||||
#define NM_VERSION_NEXT_STABLE NM_VERSION_1_2
|
||||
|
||||
#if !defined (NM_VERSION_MIN_REQUIRED) || (NM_VERSION_MIN_REQUIRED == 0)
|
||||
# undef NM_VERSION_MIN_REQUIRED
|
||||
|
|
@ -100,6 +101,12 @@
|
|||
# define NM_DEPRECATED_IN_0_9_10_FOR(f)
|
||||
#endif
|
||||
|
||||
#if NM_VERSION_MAX_ALLOWED < NM_VERSION_0_9_10
|
||||
# define NM_AVAILABLE_IN_0_9_10 G_UNAVAILABLE(0.9,10)
|
||||
#else
|
||||
# define NM_AVAILABLE_IN_0_9_10
|
||||
#endif
|
||||
|
||||
#if NM_VERSION_MIN_REQUIRED >= NM_VERSION_1_0
|
||||
# define NM_DEPRECATED_IN_1_0 G_DEPRECATED
|
||||
# define NM_DEPRECATED_IN_1_0_FOR(f) G_DEPRECATED_FOR(f)
|
||||
|
|
@ -108,16 +115,24 @@
|
|||
# define NM_DEPRECATED_IN_1_0_FOR(f)
|
||||
#endif
|
||||
|
||||
#if NM_VERSION_MAX_ALLOWED < NM_VERSION_0_9_10
|
||||
# define NM_AVAILABLE_IN_0_9_10 G_UNAVAILABLE(0.9,10)
|
||||
#else
|
||||
# define NM_AVAILABLE_IN_0_9_10
|
||||
#endif
|
||||
|
||||
#if NM_VERSION_MAX_ALLOWED < NM_VERSION_1_0
|
||||
# define NM_AVAILABLE_IN_1_0 G_UNAVAILABLE(1,0)
|
||||
#else
|
||||
# define NM_AVAILABLE_IN_1_0
|
||||
#endif
|
||||
|
||||
#if NM_VERSION_MIN_REQUIRED >= NM_VERSION_1_2
|
||||
# define NM_DEPRECATED_IN_1_2 G_DEPRECATED
|
||||
# define NM_DEPRECATED_IN_1_2_FOR(f) G_DEPRECATED_FOR(f)
|
||||
#else
|
||||
# define NM_DEPRECATED_IN_1_2
|
||||
# define NM_DEPRECATED_IN_1_2_FOR(f)
|
||||
#endif
|
||||
|
||||
#if NM_VERSION_MAX_ALLOWED < NM_VERSION_1_2
|
||||
# define NM_AVAILABLE_IN_1_2 G_UNAVAILABLE(1,2)
|
||||
#else
|
||||
# define NM_AVAILABLE_IN_1_2
|
||||
#endif
|
||||
|
||||
#endif /* NM_VERSION_H */
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue