Commit 956c0012 authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent e3952ffb
......@@ -106,11 +106,12 @@ cdef extern from "<wendelin/bigfile/file.h>" nogil:
pass
cdef extern from * nogil:
"""
extern bigfile_ops ZBigFile_mmap_ops;
extern const bigfile_ops ZBigFile_mmap_ops;
"""
const bigfile_ops ZBigFile_mmap_ops
from cpython cimport PyCapsule_New
cdef object _ZBigFile_mmap_pycapsule = PyCapsule_New(&ZBigFile_mmap_ops, "bigfile.blkmmaper", NULL)
cdef object _ZBigFile_mmap_pycapsule = PyCapsule_New(
<void*>&ZBigFile_mmap_ops, "bigfile.blkmmaper", NULL)
# pywconnOf establishes and returns (py) wcfs.Conn associated with zconn.
......
......@@ -68,7 +68,7 @@ static void zfile_munmap(VMA *vma, BigFile *file) {
}
//const VirtMMapper zfile_mmapper = {
// NOTE reusing whole bigfile_ops for just .mmap* ops.
const bigfile_ops ZBigFile_mmap_ops = {
.mmap_setup_read = zfile_mmap_setup_read,
.remmap_blk_read = zfile_remmap_blk_read,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment