aboutsummaryrefslogtreecommitdiff
path: root/capture.h
diff options
context:
space:
mode:
Diffstat (limited to 'capture.h')
-rw-r--r--capture.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/capture.h b/capture.h
index 8806ea3..64bb55f 100644
--- a/capture.h
+++ b/capture.h
@@ -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);

Return to:

Send suggestions and report system problems to the System administrator.