diff options
author | Michael Mann <mmann78@netscape.net> | 2013-05-24 17:59:36 +0000 |
---|---|---|
committer | Michael Mann <mmann78@netscape.net> | 2013-05-24 17:59:36 +0000 |
commit | 0d1a4b2920fc8638b8b83883ca8b88c06bcbe1dc (patch) | |
tree | e7de5f30a5a81847aa8ae3709aea5bc8a3ce9275 /epan/epan.c | |
parent | ecd30738130578f3963c5943e6c9bd5b860da796 (diff) |
Add expert info configuration framework. Bug 2412 (https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=2412).
Expert info "fields" can now be registered/addressed by name. Right now, the basic framework allows expert info fields to become "display filters". However more could be done, like user preferences overriding default severity level, speeding up expert info dialog load time by not needing to redissect a file, etc.
Long term goal is to have all expert_info filterable and have the functionality of expert_add_info_format() include the "registered index". expert_add_info_format_text() is the workaround until all current calls to expert_add_info_format() have been updated with either expert_add_info() or expert_add_info_format_text(). Then the remaining expert_add_info_format_text() will be renamed to expert_add_info_format().
svn path=/trunk/; revision=49559
Diffstat (limited to 'epan/epan.c')
-rw-r--r-- | epan/epan.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/epan/epan.c b/epan/epan.c index e3a63175b3..47cfada4bb 100644 --- a/epan/epan.c +++ b/epan/epan.c @@ -103,13 +103,14 @@ epan_init(void (*register_all_protocols_func)(register_cb cb, gpointer client_da #endif tap_init(); prefs_init(); + expert_init(); proto_init(register_all_protocols_func, register_all_handoffs_func, cb, client_data); packet_init(); dfilter_init(); final_registration_all_protocols(); /*host_name_lookup_init();*//* We load the hostname file in cf_open, no need to do it here? */ - expert_init(); + expert_packet_init(); #ifdef HAVE_LUA wslua_init(cb, client_data); #endif @@ -123,6 +124,7 @@ epan_cleanup(void) proto_cleanup(); prefs_cleanup(); packet_cleanup(); + expert_cleanup(); oid_resolv_cleanup(); #ifdef HAVE_LIBGNUTLS gnutls_global_deinit(); |