4 #include <stdio.h> /* for FILE below */
7 * Full pathname of file read in progress, or NULL.
9 extern const char *get_current_read_file(void);
10 extern const char *get_current_read_dir(void);
14 * Read and execute each line from stream.
16 * Parameters eventp, fw, context, and Module supply the context
17 * for executing the commands.
18 * cond_rc_t is passed thru incase piperead is running in a function.
20 void run_command_stream(
21 cond_rc_t
*cond_rc
, FILE *f
, const exec_context_t
*exc
);
25 * Given a filename, open it and execute the commands therein.
27 * If the filename is not an absolute path, search for it in
28 * fvwm_userdir (set in main()) or in FVWM_DATADIR. Return 1
29 * if the file was found and executed.
31 int run_command_file(char *filename
, const exec_context_t
*exc
);