1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00
lvm2/python
Andy Grover 0e47639a44 python-lvm: Implement proper refcounting for parent objects
Our object nesting:

lib -> VG -> LV -> lvseg
          -> PV -> pvseg

Implement refcounting and checks to ensure parent objects are not
dealloced before their children. Also ensure calls to self or child's
methods are handled cleanly for objects that have been closed or removed.

Ensure all functions that are object methods have a first parameter named
'self', for consistency

Rename local vars that reference a Python object to '*obj', in order to
differentiate from liblvm handles

Fix a misspelled pv method name

Signed-off-by: Andy Grover <agrover@redhat.com>
2012-10-17 12:55:25 -07:00
..
example.py python-lvm: Update example to work with lvm object removal. 2012-10-15 14:11:10 -07:00
liblvm.c python-lvm: Implement proper refcounting for parent objects 2012-10-17 12:55:25 -07:00
Makefile.in python: Add bindings for liblvm2app. 2012-10-12 02:08:47 +01:00
setup.py.in python: Add bindings for liblvm2app. 2012-10-12 02:08:47 +01:00