summaryrefslogtreecommitdiff
path: root/src/til_args.h
blob: 7c21668feaa831380f2fe49db5b6eb60f1fe5c71 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#ifndef _TIL_ARGS_H
#define _TIL_ARGS_H

#include <stdio.h>

typedef struct til_args_t {
	const char	*module;
	const char	*video;
	const char	*seed;

	unsigned	use_defaults:1;
	unsigned	help:1;
	unsigned	gogogo:1;
	unsigned	print_module_contexts:1;
	unsigned	print_pipes:1;
} til_args_t;

int til_args_parse(int argc, const char *argv[], til_args_t *res_args);
int til_args_pruned_parse(int argc, const char *argv[], til_args_t *res_args, int *res_argc, const char **res_argv[]);
int til_args_help(FILE *out);

#endif
© All Rights Reserved