1 /* -*- Mode: C; tab-width: 4; indent-tabs-mode: t; c-basic-offset: 4 -*- */
3 * This library is free software; you can redistribute it and/or
4 * modify it under the terms of the GNU Lesser General Public
5 * License as published by the Free Software Foundation; either
6 * version 2 of the License, or (at your option) any later version.
8 * This library is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11 * Lesser General Public License for more details.
13 * You should have received a copy of the GNU Lesser General Public
14 * License along with this library; if not, write to the
15 * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
16 * Boston, MA 02110-1301 USA.
18 * Copyright 2011 Red Hat, Inc.
26 #include <nm-version-macros.h>
28 /* Deprecation / Availability macros */
30 #if !defined (NM_VERSION_MIN_REQUIRED) || (NM_VERSION_MIN_REQUIRED == 0)
31 # undef NM_VERSION_MIN_REQUIRED
32 # define NM_VERSION_MIN_REQUIRED (NM_VERSION_CUR_STABLE)
35 #if !defined (NM_VERSION_MAX_ALLOWED) || (NM_VERSION_MAX_ALLOWED == 0)
36 # undef NM_VERSION_MAX_ALLOWED
37 # define NM_VERSION_MAX_ALLOWED (NM_VERSION_CUR_STABLE)
41 #if NM_VERSION_MIN_REQUIRED > NM_VERSION_NEXT_STABLE
42 #error "NM_VERSION_MIN_REQUIRED must be <= NM_VERSION_NEXT_STABLE"
44 #if NM_VERSION_MAX_ALLOWED < NM_VERSION_MIN_REQUIRED
45 #error "NM_VERSION_MAX_ALLOWED must be >= NM_VERSION_MIN_REQUIRED"
47 #if NM_VERSION_MIN_REQUIRED < NM_VERSION_0_9_8
48 #error "NM_VERSION_MIN_REQUIRED must be >= NM_VERSION_0_9_8"
51 #if NM_VERSION_MIN_REQUIRED >= NM_VERSION_0_9_10
52 # define NM_DEPRECATED_IN_0_9_10 G_DEPRECATED
53 # define NM_DEPRECATED_IN_0_9_10_FOR(f) G_DEPRECATED_FOR(f)
55 # define NM_DEPRECATED_IN_0_9_10
56 # define NM_DEPRECATED_IN_0_9_10_FOR(f)
59 #if NM_VERSION_MAX_ALLOWED < NM_VERSION_0_9_10
60 # define NM_AVAILABLE_IN_0_9_10 G_UNAVAILABLE(0.9,10)
62 # define NM_AVAILABLE_IN_0_9_10
65 #if NM_VERSION_MIN_REQUIRED >= NM_VERSION_1_0
66 # define NM_DEPRECATED_IN_1_0 G_DEPRECATED
67 # define NM_DEPRECATED_IN_1_0_FOR(f) G_DEPRECATED_FOR(f)
69 # define NM_DEPRECATED_IN_1_0
70 # define NM_DEPRECATED_IN_1_0_FOR(f)
73 #if NM_VERSION_MAX_ALLOWED < NM_VERSION_1_0
74 # define NM_AVAILABLE_IN_1_0 G_UNAVAILABLE(1,0)
76 # define NM_AVAILABLE_IN_1_0
79 #if NM_VERSION_MIN_REQUIRED >= NM_VERSION_1_2
80 # define NM_DEPRECATED_IN_1_2 G_DEPRECATED
81 # define NM_DEPRECATED_IN_1_2_FOR(f) G_DEPRECATED_FOR(f)
83 # define NM_DEPRECATED_IN_1_2
84 # define NM_DEPRECATED_IN_1_2_FOR(f)
87 #if NM_VERSION_MAX_ALLOWED < NM_VERSION_1_2
88 # define NM_AVAILABLE_IN_1_2 G_UNAVAILABLE(1,2)
90 # define NM_AVAILABLE_IN_1_2
93 #endif /* NM_VERSION_H */