Re: [Libguestfs] [libnbd PATCH v2 5/8] python: Make py_aio_buffer a private struct

2022-06-07 Thread Richard W.M. Jones
On Mon, Jun 06, 2022 at 09:08:30PM -0500, Eric Blake wrote: > Instead of having methods.c poking into the internals of a struct that > we defined, have it use PyMemoryView* and Py_buffer*; this separation > makes it easier to separate how we store the persistent data (for now, > in a PyCapsule)

[Libguestfs] [libnbd PATCH v2 5/8] python: Make py_aio_buffer a private struct

2022-06-06 Thread Eric Blake
Instead of having methods.c poking into the internals of a struct that we defined, have it use PyMemoryView* and Py_buffer*; this separation makes it easier to separate how we store the persistent data (for now, in a PyCapsule) from how we access the data. Eventually, the use of PyMemoryView*