summaryrefslogtreecommitdiffstats
path: root/execute.h
diff options
context:
space:
mode:
authorStephen Dolan <mu@netsoc.tcd.ie>2013-05-06 14:21:00 +0100
committerStephen Dolan <mu@netsoc.tcd.ie>2013-05-06 14:21:00 +0100
commit5be97463ecd4f93fdfbaec457d9100beeb9dc603 (patch)
treec60380d11fa33623ceb683189b12bf411bd24244 /execute.h
parent48be23233ad63bf1bd218c259efedff3e52106c5 (diff)
Add a --arg option to allow variables to be passed from the cmdline.
Closes #107
Diffstat (limited to 'execute.h')
-rw-r--r--execute.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/execute.h b/execute.h
index 1cf14df7..004b66ba 100644
--- a/execute.h
+++ b/execute.h
@@ -3,8 +3,12 @@
#include "bytecode.h"
+
struct bytecode* jq_compile(const char* str);
+/* args must be an array of the form [{name:"foo", value:"thing"}, {name:"bar",value:3}] */
+struct bytecode* jq_compile_args(const char* str, jv args);
+
typedef struct jq_state jq_state;
enum {JQ_DEBUG_TRACE = 1};