Displaying 2 results from an estimated 2 matches for "bpargs".
Did you mean:
pargs
2019 Aug 15
0
[PATCH libnbd v2 10/10] generator: Check requirements for BytesPersistIn/Out and completion callbacks.
...| BytesPersistIn _ | BytesPersistOut _ -> true
+ | _ -> false
+ and is_oclosure_completion = function
+ | OClosure { cbname = "completion" } -> true
+ | _ -> false
+ in
+ if List.exists is_persistent_buffer_arg args then (
+ let bpargs = List.filter is_persistent_buffer_arg args in
+ if List.length bpargs >= 2 then
+ failwithf "%s: multiple BytesPersistIn/Out params not supported"
+ name;
+ if not (List.exists is_oclosure_completion optargs) then
+ failwithf "%s: functi...
2019 Aug 15
13
[PATCH libnbd v2 00/10] Callbacks and OCaml and Python persistent buffers.
This is a combination of these two earlier series:
https://www.redhat.com/archives/libguestfs/2019-August/msg00235.html
https://www.redhat.com/archives/libguestfs/2019-August/msg00240.html
plus changes to allow .callback = NULL / .free != NULL, and to reduce
the complexity of freeing callbacks.
Although it's rather long there's nothing complex here. We might
consider squashing some