# Copyright 2015 ClusterHQ. See LICENSE file for details.

from .constants import (
    MAXNAMELEN,
)

from ._libzfs_core import (
    lzc_create,
    lzc_clone,
    lzc_rollback,
    lzc_snapshot,
    lzc_snap,
    lzc_destroy_snaps,
    lzc_bookmark,
    lzc_get_bookmarks,
    lzc_destroy_bookmarks,
    lzc_snaprange_space,
    lzc_hold,
    lzc_release,
    lzc_get_holds,
    lzc_send,
    lzc_send_space,
    lzc_receive,
    lzc_recv,
    lzc_exists,
)

__all__ = [
    'ctypes',
    'exceptions',
    'MAXNAMELEN',
    'lzc_create',
    'lzc_clone',
    'lzc_rollback',
    'lzc_snapshot',
    'lzc_snap',
    'lzc_destroy_snaps',
    'lzc_bookmark',
    'lzc_get_bookmarks',
    'lzc_destroy_bookmarks',
    'lzc_snaprange_space',
    'lzc_hold',
    'lzc_release',
    'lzc_get_holds',
    'lzc_send',
    'lzc_send_space',
    'lzc_receive',
    'lzc_recv',
    'lzc_exists',
]

# vim: softtabstop=4 tabstop=4 expandtab shiftwidth=4


# Copyright 2015 ClusterHQ. See LICENSE file for details.
'''
Python wrappers for **libzfs_core** library.

*libzfs_core* is intended to be a stable, committed interface for programmatic
administration of ZFS.
This wrapper provides one-to-one wrappers for libzfs_core API functions,
but the signatures and types are more natural to Python.
nvlists are wrapped as dictionaries or lists depending on their usage.
Some parameters have default values depending on typical use for
increased convenience.
Output parameters are not used and return values are directly returned.
Enumerations and bit flags become strings and lists of strings in Python.
Errors are reported as exceptions rather than integer errno-style
error codes.  The wrapper takes care to provide one-to-many mapping
of the error codes to the exceptions by interpreting a context
in which the error code is produced.
'''

from .constants import (
    MAXNAMELEN,
)

from ._libzfs_core import (
    lzc_create,
    lzc_clone,
    lzc_rollback,
    lzc_snapshot,
    lzc_snap,
    lzc_destroy_snaps,
    lzc_bookmark,
    lzc_get_bookmarks,
    lzc_destroy_bookmarks,
    lzc_snaprange_space,
    lzc_hold,
    lzc_release,
    lzc_get_holds,
    lzc_send,
    lzc_send_space,
    lzc_receive,
    lzc_recv,
    lzc_exists,
)

__all__ = [
    'ctypes',
    'exceptions',
    'MAXNAMELEN',
    'lzc_create',
    'lzc_clone',
    'lzc_rollback',
    'lzc_snapshot',
    'lzc_snap',
    'lzc_destroy_snaps',
    'lzc_bookmark',
    'lzc_get_bookmarks',
    'lzc_destroy_bookmarks',
    'lzc_snaprange_space',
    'lzc_hold',
    'lzc_release',
    'lzc_get_holds',
    'lzc_send',
    'lzc_send_space',
    'lzc_receive',
    'lzc_recv',
    'lzc_exists',
]

# vim: softtabstop=4 tabstop=4 expandtab shiftwidth=4


add docstring libzfs package