[build] legacy files update
[platform/upstream/multipath-tools.git] / libcheckers / checkers.h
1 #ifndef _CHECKERS_H
2 #define _CHECKERS_H
3
4 #define CHECKER_NAME_SIZE 16
5 #define DEVNODE_SIZE 256
6 #define MAX_CHECKER_MSG_SIZE 256
7
8 enum checkers {
9         CHECKER_UNDEF,
10         TUR,
11         READSECTOR0,
12         DIRECTIO,
13         EMC_CLARIION,
14         HP_SW
15 };
16
17 #define MSG(a) if (msg != NULL) \
18                 snprintf(msg, MAX_CHECKER_MSG_SIZE, "%s", a);
19
20 int get_checker_id (char *);
21 void *get_checker_addr (int);
22 int get_checker_name (char *, int);
23
24 int emc_clariion (int fd, char * msg, void ** ctxt);
25 int directio (int fd, char * msg, void ** ctxt);
26 int readsector0 (int fd, char * msg, void ** ctxt);
27 int tur (int fd, char * msg, void ** ctxt);
28 int hp_sw (int fd, char * msg, void ** ctxt);
29
30 #endif /* _CHECKERS_H */