File: sendflags.pxi.in

package info (click to toggle)
py-libzfs 0.0%2Bgit20240510.5ae7d5e-1
  • links: PTS, VCS
  • area: contrib
  • in suites: sid
  • size: 876 kB
  • sloc: python: 38; makefile: 27; sh: 7
file content (27 lines) | stat: -rw-r--r-- 745 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#
# The sendflags_t struct has a lot of different variations.
# We resort to using autoconf for the metaprogramming, because
# Cython lacks the expressivity to conditionally generate fields.
#

cdef extern from "libzfs.h" nogil:
    ctypedef struct sendflags_t:
        @SENDFLAGS_T_VERBOSITY@
        int replicate
        int doall
        int fromorigin
        @SENDFLAGS_T_DEDUP@
        int props
        int dryrun
        int parsable
        int progress
        int largeblock
        int embed_data
        @SENDFLAGS_T_COMPRESS@
        @SENDFLAGS_T_RAW@
        @SENDFLAGS_T_BACKUP@
        @SENDFLAGS_T_HOLDS@
        @SENDFLAGS_T_SAVED@
        @SENDFLAGS_T_PROGRESSASTITLE@

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