summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Winship <danw@redhat.com>2015-01-21 12:54:36 -0500
committerDan Winship <danw@redhat.com>2015-01-21 12:54:36 -0500
commit7bdc6f5de53584414ccec3be47f16d909ae92bb6 (patch)
tree5aa8508d70b0cecfa6369b35e6f748e940c4217e
parent4c691cf69ed33bcbaa0b4802e419b98ed687630b (diff)
parent6da3b3a5a5acf81a82a7819c3f68cf2b38eff8d2 (diff)
downloadNetworkManager-7bdc6f5de53584414ccec3be47f16d909ae92bb6.tar.gz
libnm-core, libnm-util: merge branch 'danw/versioning-bgo742993'
https://bugzilla.gnome.org/show_bug.cgi?id=742993
-rw-r--r--libnm-core/nm-utils.c9
-rw-r--r--libnm-core/nm-utils.h2
-rw-r--r--libnm-core/nm-version.h.in31
-rw-r--r--libnm-util/nm-version.h.in31
-rw-r--r--libnm/Makefile.am2
-rw-r--r--libnm/libnm.ver8
6 files changed, 61 insertions, 22 deletions
diff --git a/libnm-core/nm-utils.c b/libnm-core/nm-utils.c
index f55a7dac03..6ced0937f3 100644
--- a/libnm-core/nm-utils.c
+++ b/libnm-core/nm-utils.c
@@ -3238,8 +3238,9 @@ static BondMode bond_mode_table[] = {
* available modes.
*
* Returns: bonding mode string, or NULL on error
-*/
-
+ *
+ * Since: 1.2
+ */
const char *
nm_utils_bond_mode_int_to_string (int mode)
{
@@ -3258,7 +3259,9 @@ nm_utils_bond_mode_int_to_string (int mode)
* The @mode string can be either a descriptive name or a number (as string).
*
* Returns: numeric bond mode, or -1 on error
-*/
+ *
+ * Since: 1.2
+ */
int
nm_utils_bond_mode_string_to_int (const char *mode)
{
diff --git a/libnm-core/nm-utils.h b/libnm-core/nm-utils.h
index 7393040696..727f000568 100644
--- a/libnm-core/nm-utils.h
+++ b/libnm-core/nm-utils.h
@@ -185,7 +185,9 @@ gboolean nm_utils_ipaddr_valid (int family, const char *ip);
gboolean nm_utils_check_virtual_device_compatibility (GType virtual_type, GType other_type);
+NM_AVAILABLE_IN_1_2
int nm_utils_bond_mode_string_to_int (const char *mode);
+NM_AVAILABLE_IN_1_2
const char *nm_utils_bond_mode_int_to_string (int mode);
G_END_DECLS
diff --git a/libnm-core/nm-version.h.in b/libnm-core/nm-version.h.in
index 0a33ac295e..3ba7cfd832 100644
--- a/libnm-core/nm-version.h.in
+++ b/libnm-core/nm-version.h.in
@@ -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 */
diff --git a/libnm-util/nm-version.h.in b/libnm-util/nm-version.h.in
index 0a33ac295e..3ba7cfd832 100644
--- a/libnm-util/nm-version.h.in
+++ b/libnm-util/nm-version.h.in
@@ -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 */
diff --git a/libnm/Makefile.am b/libnm/Makefile.am
index e8915b4268..2c9d94ef54 100644
--- a/libnm/Makefile.am
+++ b/libnm/Makefile.am
@@ -130,7 +130,7 @@ libnm_la_LIBADD = \
SYMBOL_VIS_FILE=$(srcdir)/libnm.ver
libnm_la_LDFLAGS = -Wl,--version-script=$(SYMBOL_VIS_FILE) \
- -version-info "0:0:0"
+ -version-info "1:0:1"
###
diff --git a/libnm/libnm.ver b/libnm/libnm.ver
index 322d553560..aba84f4a83 100644
--- a/libnm/libnm.ver
+++ b/libnm/libnm.ver
@@ -754,8 +754,6 @@ global:
nm_state_get_type;
nm_utils_ap_mode_security_valid;
nm_utils_bin2hexstr;
- nm_utils_bond_mode_int_to_string;
- nm_utils_bond_mode_string_to_int;
nm_utils_check_virtual_device_compatibility;
nm_utils_escape_ssid;
nm_utils_file_is_certificate;
@@ -846,3 +844,9 @@ global:
local:
*;
};
+
+libnm_1_2_0 {
+global:
+ nm_utils_bond_mode_int_to_string;
+ nm_utils_bond_mode_string_to_int;
+} libnm_1_0_0;