diff options
author | Michael Mann <mmann78@netscape.net> | 2014-05-04 17:20:34 -0400 |
---|---|---|
committer | Michael Mann <mmann78@netscape.net> | 2014-05-08 00:31:29 +0000 |
commit | 078daeb27faddb9e5e25026f003304fbba764fc5 (patch) | |
tree | 8eb0c6e3d784c118cdd342235cd92dbe67f345e9 /wiretap/wtap.h | |
parent | 18ee6225170590c1a5ac50786e413e33564f86af (diff) | |
download | wireshark-078daeb27faddb9e5e25026f003304fbba764fc5.tar.gz |
Populate heuristic extension list during initialization and not during each call to heuristic_uses_extension.
Change-Id: I7e484de65c49060793a91cc11cb211effa2006db
Reviewed-on: https://code.wireshark.org/review/1494
Reviewed-by: Michael Mann <mmann78@netscape.net>
Diffstat (limited to 'wiretap/wtap.h')
-rw-r--r-- | wiretap/wtap.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/wiretap/wtap.h b/wiretap/wtap.h index ea8c3d132e..6c99f73323 100644 --- a/wiretap/wtap.h +++ b/wiretap/wtap.h @@ -1258,6 +1258,7 @@ struct open_info { int type; wtap_open_routine_t open_routine; const char *extensions; + gchar **extensions_set; /* populated using extensions member during initialization */ void* wslua_data; /* should be NULL for C-code file readers */ }; WS_DLL_PUBLIC struct open_info *open_routines; @@ -1535,7 +1536,7 @@ WS_DLL_PUBLIC void wtap_register_file_type_extension(const struct file_extension_info *ei); WS_DLL_PUBLIC -void wtap_register_open_info(const struct open_info *oi, const gboolean first_routine); +void wtap_register_open_info(struct open_info *oi, const gboolean first_routine); WS_DLL_PUBLIC gboolean wtap_has_open_info(const gchar *name); WS_DLL_PUBLIC |