# Path: python_bindings/rust_qpick/lib.py
# def find_library():


import os
from .lib import ffi, lib

class QpickResults(object):
    def __init__(self, ptr, next_fn, free_fn, free_item_fn, free_dist_fn, autom_ptr=None,
                 autom_free_fn=None):
        self._free_fn = free_fn
        self._free_item_fn = free_item_fn
        self._free_dist_fn = free_dist_fn

# Path: python_bindings/rust_qpick/lib.py
# def find_library():


# Path: python_bindings/rust_qpick/qpick.py
import os
from .lib import ffi, lib


class QpickResults(object):
    def __init__(self, ptr, next_fn, free_fn, free_item_fn, free_dist_fn, autom_ptr=None,
                 autom_free_fn=None):
        self._free_fn = free_fn
        self._free_item_fn = free_item_fn
        self._free_dist_fn = free_dist_fn

        self._ptr = ffi.gc(ptr, free_fn)