1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00

liblvm: Deprecate library and bindings

It is recommended to use D-Bus API instead of liblvm2app or python
bindings.
This commit is contained in:
Marian Csontos 2017-09-19 15:17:01 +02:00
parent 5407327bc6
commit 4cbacf6bac
2 changed files with 4 additions and 0 deletions

View File

@ -18,6 +18,8 @@
#include <stdint.h>
#warning "liblvm2app is deprecated, use D-Bus API instead."
#ifdef __cplusplus
extern "C" {
#endif

View File

@ -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;