diff options
Diffstat (limited to 'capture.h')
-rw-r--r-- | capture.h | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -19,11 +19,17 @@ struct capture { struct runcap rc; int flags; struct line_closure closure[2]; + SV *program; }; typedef struct capture *POSIX__Run__Capture; +typedef char** ARGV; -struct capture *capture_new(AV *av, unsigned timeout, SV *cb[2]); +ARGV XS_unpack_ARGV(SV *sv); +void XS_pack_ARGV(SV *const sv, ARGV argv); + +struct capture *capture_new(SV *pn, ARGV argv, unsigned timeout, SV *cb[2]); void capture_DESTROY(struct capture *rc); char *capture_next_line(struct capture *rc, int fd); int capture_run(struct capture *cp); +void capture_set_argv_ref(struct capture *cp, ARGV av); |