summaryrefslogtreecommitdiffstats
path: root/system_part.h
diff options
context:
space:
mode:
authorGalin Simeonov <gts@volconst.com>2021-09-30 23:20:00 +0300
committerGalin Simeonov <gts@volconst.com>2021-09-30 23:20:00 +0300
commitf66d8e2562ec885c29a578956bf092a1e48cd9da (patch)
tree184a0e3472e63fdb32d08d5c9bcba699c55e5cb5 /system_part.h
parent787f4e7d956814d2404d40d086c077c9dfba4427 (diff)
downloadvolgit-f66d8e2562ec885c29a578956bf092a1e48cd9da.tar.gz
reworked argument parsing and added the tree output option
Diffstat (limited to 'system_part.h')
-rw-r--r--system_part.h12
1 files changed, 10 insertions, 2 deletions
diff --git a/system_part.h b/system_part.h
index 0cc6139..3949d8b 100644
--- a/system_part.h
+++ b/system_part.h
@@ -8,16 +8,24 @@
#include <stdarg.h>
#include <string.h>
-extern const char *default_header;
-extern const char *default_footer;
+
+#define NO_TREE_CUTOFF -1
+
+extern const char *const default_header;
+extern const char *const default_footer;
extern struct Volgit_Options
{
const char *input_path;
const char *output_path;
+
+ /*pointers to the actual text from the header and footer files*/
const char *header;
const char *footer;
+
int output_dir_fd;
+ int tree_cutoff; /*-1 means no cutoff*/
+ _Bool output_is_tree_like;
}options;
void die(const char *format, ...);