-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgw2dmkcmdset.h
73 lines (63 loc) · 1.44 KB
/
gw2dmkcmdset.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
/*
* XXX Including this file in any other C file than gw2dmk.c and maybe
* gwdetect.c probably indicates an abstraction inversion that
* should be dealt with.
*/
#ifndef GW2DMKCMDSET_H
#define GW2DMKCMDSET_H
#ifdef __cplusplus
extern "C" {
#endif
#include <stdbool.h>
#include "greaseweazle.h"
#include "msg_levels.h"
#include "msg.h"
#include "gwmedia.h"
#include "gwfddrv.h"
#include "dmk.h"
/*
* Variable settings that come from command line arguments.
*/
// XXX Should gme and gw_fddrv be pulled out and passed as a separate parameter?
struct cmd_settings {
const char **device_list;
struct gw_fddrv fdd;
bool guess_tracks;
bool guess_sides;
bool guess_steps;
bool check_compat_sides;
bool reset_on_init;
bool forcewrite;
bool use_histo;
enum dmk_encoding_mode usr_encoding;
bool reverse_sides;
bool hole;
bool alternate;
unsigned int quirk;
int iam_pos;
int fmtimes;
int usr_fmthresh;
int usr_mfmthresh1;
int usr_mfmthresh2;
double usr_postcomp;
int ignore;
int maxsecsize;
bool join_sectors;
volatile bool menu_intr_enabled;
bool menu_err_enabled;
int scrn_verbosity;
int file_verbosity;
bool dmkopt;
int usr_dmktracklen;
const char *logfile;
const char *devlogfile;
const char *dmkfile;
struct gw_media_encoding gme;
int min_sectors[DMK_MAX_TRACKS][2];
int retries[DMK_MAX_TRACKS][2];
int min_retries[DMK_MAX_TRACKS][2];
};
#ifdef __cplusplus
}
#endif
#endif