cctools
batch_wrapper.h
1 /*
2 Copyright (C) 2022 The University of Notre Dame
3 This software is distributed under the GNU General Public License.
4 See the file COPYING for details.
5 */
6 
7 #ifndef BATCH_WRAPPER_H
8 #define BATCH_WRAPPER_H
9 
10 #include "batch_task.h"
11 
19 struct batch_wrapper *batch_wrapper_create(void);
20 
25 void batch_wrapper_delete(struct batch_wrapper *w);
26 
33 void batch_wrapper_pre(struct batch_wrapper *w, const char *cmd);
34 
41 void batch_wrapper_argv(struct batch_wrapper *w, char *const argv[]);
42 
48 void batch_wrapper_args(struct batch_wrapper *w, char *const args[]);
49 
54 void batch_wrapper_cmd(struct batch_wrapper *w, const char *cmd);
55 
56 
63 void batch_wrapper_post(struct batch_wrapper *w, const char *cmd);
64 
71 void batch_wrapper_prefix(struct batch_wrapper *w, const char *prefix);
72 
80 char *batch_wrapper_write(struct batch_wrapper *w, struct batch_task *t);
81 
88 char *batch_wrapper_expand(struct batch_task *t, struct jx *spec);
89 
90 #endif
91 /* vim: set noexpandtab tabstop=8: */
batch_task
Definition: batch_task.h:16
jx
JX value representing any expression type.
Definition: jx.h:117