summaryrefslogtreecommitdiffstats
path: root/host/include
diff options
context:
space:
mode:
authorJosh Blum <josh@joshknows.com>2012-03-20 22:12:23 -0700
committerJosh Blum <josh@joshknows.com>2012-03-21 11:36:43 -0700
commite69bcd3ea2c4b9506199a11eeb2777e0e292f33e (patch)
tree605dae45ad2f46761027b36d7017c852a1cf36bb /host/include
parentb22c32bd1420aab6809e842ffdd823090828a190 (diff)
downloaduhd-e69bcd3ea2c4b9506199a11eeb2777e0e292f33e.tar.gz
uhd-e69bcd3ea2c4b9506199a11eeb2777e0e292f33e.tar.bz2
uhd-e69bcd3ea2c4b9506199a11eeb2777e0e292f33e.zip
uhd: add calls to query an ABI compat string
Diffstat (limited to 'host/include')
-rw-r--r--host/include/uhd/version.hpp16
1 files changed, 15 insertions, 1 deletions
diff --git a/host/include/uhd/version.hpp b/host/include/uhd/version.hpp
index 19d672e65..ee0c4fe43 100644
--- a/host/include/uhd/version.hpp
+++ b/host/include/uhd/version.hpp
@@ -1,5 +1,5 @@
//
-// Copyright 2010 Ettus Research LLC
+// Copyright 2010-2012 Ettus Research LLC
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
@@ -21,8 +21,22 @@
#include <uhd/config.hpp>
#include <string>
+/*!
+ * The ABI version string that the client application builds against.
+ * Call get_abi_string() to check this against the library build.
+ * The format is oldest ABI compatible release - ABI compat number.
+ * The compatibility number allows pre-release ABI to be versioned.
+ */
+#define UHD_VERSION_ABI_STRING "3.4.0-0"
+
namespace uhd{
+
+ //! Get the version string (dotted version number + build info)
UHD_API std::string get_version_string(void);
+
+ //! Get the ABI compatibility string for this build of the library
+ UHD_API std::string get_abi_string(void);
+
} //namespace uhd
#endif /* INCLUDED_UHD_VERSION_HPP */