Make the OPEN_INFO_ values members of an enum.

Change-Id: I93dbd14f81492764bf5854ee40eebcd1e04f3e01
Reviewed-on: https://code.wireshark.org/review/4570
Reviewed-by: Guy Harris <guy@alum.mit.edu>
This commit is contained in:
Guy Harris 2014-10-08 17:27:08 -07:00
parent 3ee8efdfea
commit e7e2f9c639
1 changed files with 6 additions and 8 deletions

View File

@ -1294,19 +1294,17 @@ typedef int (*wtap_open_routine_t)(struct wtap*, int *, char **);
* the ones that don't, to handle the case where a file of one type
* might be recognized by the heuristics for a different file type.
*/
/*struct heuristic_open_info {
wtap_open_routine_t open_routine;
const char *extensions;
};
*/
#define OPEN_INFO_MAGIC 0
#define OPEN_INFO_HEURISTIC 1
typedef enum {
OPEN_INFO_MAGIC = 0,
OPEN_INFO_HEURISTIC = 1
} wtap_open_type;
WS_DLL_PUBLIC void init_open_routines(void);
struct open_info {
const char *name;
int type;
wtap_open_type type;
wtap_open_routine_t open_routine;
const char *extensions;
gchar **extensions_set; /* populated using extensions member during initialization */