2017-12-08 23:06:21 +00:00
|
|
|
#ifndef _OPTIONS_H_
|
|
|
|
#define _OPTIONS_H_
|
|
|
|
|
2017-12-31 21:50:59 +00:00
|
|
|
#include <stdbool.h>
|
2017-12-08 23:06:21 +00:00
|
|
|
#include <stdio.h>
|
|
|
|
|
2017-12-31 21:50:59 +00:00
|
|
|
enum option_flags {
|
2018-03-21 20:26:58 +00:00
|
|
|
OPTION_DISASSEMBLE = 1,
|
2017-12-31 21:50:59 +00:00
|
|
|
};
|
|
|
|
|
2017-12-08 23:06:21 +00:00
|
|
|
/*
|
|
|
|
* These are the most possible number of disk inputs we can accept
|
|
|
|
*/
|
|
|
|
#define OPTION_MAX_DISKS 2
|
|
|
|
|
2017-12-31 21:50:59 +00:00
|
|
|
extern bool option_flag(int);
|
2017-12-08 23:06:21 +00:00
|
|
|
extern FILE *option_get_input(int);
|
2017-12-26 22:47:34 +00:00
|
|
|
extern const char *option_get_error();
|
2017-12-08 23:06:21 +00:00
|
|
|
extern int option_parse(int, char **);
|
2018-03-09 22:44:20 +00:00
|
|
|
extern int option_open_file(FILE **, const char *, const char *);
|
2017-12-26 22:47:34 +00:00
|
|
|
extern int option_set_size(const char *);
|
|
|
|
extern void option_print_help();
|
2017-12-08 23:06:21 +00:00
|
|
|
extern void option_set_error(const char *);
|
|
|
|
extern void option_set_input(int, FILE *);
|
|
|
|
|
|
|
|
#endif
|