master - liblvm: Deprecate library and bindings
Gitweb: https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=4cbacf6bac47227ec3460da1619ab29557f2c89b Commit: 4cbacf6bac47227ec3460da1619ab29557f2c89b Parent: 5407327bc6fff77dabb6dd55150832373ba163a7 Author: Marian Csontos <[email protected]> AuthorDate: Tue Sep 19 15:17:01 2017 +0200 Committer: Marian Csontos <[email protected]> CommitterDate: Wed Sep 20 13:07:06 2017 +0200
liblvm: Deprecate library and bindings
It is recommended to use D-Bus API instead of liblvm2app or python bindings.
--- liblvm/lvm2app.h | 2 ++ python/liblvm.c | 2 ++ 2 files changed, 4 insertions(+), 0 deletions(-)
liblvm/lvm2app.h +2 -0
@@ -18,6 +18,8 @@#include <stdint.h> +#warning "liblvm2app is deprecated, use D-Bus API instead." +#ifdef __cplusplusextern "C" {#endif
python/liblvm.c +2 -0
@@ -2085,6 +2085,8 @@ PyMODINIT_FUNC initlvm(void)PyModule_AddObject (m,"LibLVMError" , _LibLVMError); } +PyErr_Warn (PyExc_DeprecationWarning,"Python API is deprecated, use D-Bus API instead." ); +Py_AtExit (_liblvm_cleanup);#ifdef IS_PY3K return m;