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:
parent
5407327bc6
commit
4cbacf6bac
@ -18,6 +18,8 @@
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
#warning "liblvm2app is deprecated, use D-Bus API instead."
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user