summaryrefslogtreecommitdiff
path: root/include/erasurecode/erasurecode.h
diff options
context:
space:
mode:
authorKota Tsuyuzaki <tsuyuzaki.kota@lab.ntt.co.jp>2016-12-01 21:35:31 -0800
committerKota Tsuyuzaki <tsuyuzaki.kota@lab.ntt.co.jp>2016-12-04 20:56:24 -0800
commit09d8bbf361955b986fbcbf172dfbef2ed78d5f24 (patch)
treef673bdc2dd0652402afa074c375e02dfdb71798f /include/erasurecode/erasurecode.h
parent0a2c06b8b446cbe4fda89c18c20b069728c70323 (diff)
downloadliberasurecode-09d8bbf361955b986fbcbf172dfbef2ed78d5f24.tar.gz
Add get_version functionality to liberasurecode lib
Currently, we have liberasurecode version info in the header and pyeclib is using the info to detect the version. However it's a bit painful because it requires to rebuild pyeclib c code for you to see the actual installed version. This addition for liberasurecode_get_version enables caller to get the version integer from compiled shared library file (.so) and it will rescure to re-compiled operation from pyeclib. Change-Id: I8161ea7da3b069e83c93e11cb41ce12fa60c6f32
Diffstat (limited to 'include/erasurecode/erasurecode.h')
-rw-r--r--include/erasurecode/erasurecode.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/erasurecode/erasurecode.h b/include/erasurecode/erasurecode.h
index a17c45c..e5a6c93 100644
--- a/include/erasurecode/erasurecode.h
+++ b/include/erasurecode/erasurecode.h
@@ -375,6 +375,14 @@ int liberasurecode_get_minimum_encode_size(int desc);
*/
int liberasurecode_get_fragment_size(int desc, int data_len);
+/**
+ * This will return the liberasurecode version for the descriptor
+ *
+ * @return version uint32_t - from erasurecode_version.h
+ */
+
+uint32_t liberasurecode_get_version();
+
/* ==~=*=~===~=*=~==~=*=~== liberasurecode Error codes =~=*=~==~=~=*=~==~== */
/* Error codes */