Skip to content

Commit 8009970

Browse files
committed
Expose FIELD enum
1 parent b713629 commit 8009970

File tree

2 files changed

+16
-15
lines changed

2 files changed

+16
-15
lines changed

src/output_fmt.c

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -43,21 +43,6 @@ static const char* colors[_COLOR_MAX] =
4343
, [COLOR_NONE] = "\x1B[0m"
4444
};
4545

46-
enum FIELD
47-
{
48-
_FLD_FIRST = 0
49-
, FLD_PORT_ID
50-
= _FLD_FIRST
51-
, FLD_BLK_DEV
52-
, FLD_MODEL_NO
53-
, FLD_SERIAL_NO
54-
, FLD_SIZE_BYTES
55-
, FLD_PWR_ON_HRS
56-
, FLD_TEMP_mC
57-
, FLD_BAD_SECT
58-
, _FLD_MAX
59-
};
60-
6146
struct field
6247
{
6348
char* string;

src/output_fmt.h

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,22 @@
44

55
#include <stdbool.h>
66

7+
enum FIELD
8+
{
9+
FLD_INVALID = -1
10+
, _FLD_FIRST = 0
11+
, FLD_PORT_ID
12+
= _FLD_FIRST
13+
, FLD_BLK_DEV
14+
, FLD_MODEL_NO
15+
, FLD_SERIAL_NO
16+
, FLD_SIZE_BYTES
17+
, FLD_PWR_ON_HRS
18+
, FLD_TEMP_mC
19+
, FLD_BAD_SECT
20+
, _FLD_MAX
21+
};
22+
723
struct scsi_target;
824

925
void

0 commit comments

Comments
 (0)