Lots of cleanups to fvwm-menu-desktop
[fvwm.git] / fvwm / read.h
blob91b262129d4472664db8f0e95ff8fb499e1b8e92
1 /* -*-c-*- */
2 #ifndef FVWM_READ_H
3 #define FVWM_READ_H
4 #include <stdio.h> /* for FILE below */
6 /**
7 * Full pathname of file read in progress, or NULL.
8 **/
9 extern const char *get_current_read_file(void);
10 extern const char *get_current_read_dir(void);
13 /**
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.
19 **/
20 void run_command_stream(
21 cond_rc_t *cond_rc, FILE *f, const exec_context_t *exc);
24 /**
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.
30 **/
31 int run_command_file(char *filename, const exec_context_t *exc);
33 #endif