diff options
author | hagbard <hagbard@f5534014-38df-0310-8fa8-9805f1628bb7> | 2001-04-02 00:38:36 +0000 |
---|---|---|
committer | hagbard <hagbard@f5534014-38df-0310-8fa8-9805f1628bb7> | 2001-04-02 00:38:36 +0000 |
commit | ba92673951c41698455b144e5f62893ce051a267 (patch) | |
tree | 9b6ab3270962ed53d41dbf9d7978bf6bff9705b7 /dftest.c | |
parent | 824a1b9856b2893b4f356cfd3d8bedd667fca376 (diff) |
Added two new arguments to epan_init() and proto_init() to
allow the passing of register_all_protocols() and
register_all_protocol_handoffs() through epan_init() to proto_init().
This allows the removal of the compile time dependence of proto.c
on register.h. Modified dftest.c, tethereal.c, and gtk/main.c to
use the new style epan_init() and depend on register.h.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@3237 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'dftest.c')
-rw-r--r-- | dftest.c | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -1,6 +1,6 @@ /* dftest.c.c * - * $Id: dftest.c,v 1.1 2001/02/01 20:21:13 gram Exp $ + * $Id: dftest.c,v 1.2 2001/04/02 00:38:33 hagbard Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@zing.org> @@ -81,6 +81,7 @@ #include "prefs.h" #include "util.h" #include "epan/dfilter/dfilter.h" +#include "register.h" packet_info pi; ts_type timestamp_type = RELATIVE; @@ -98,7 +99,8 @@ main(int argc, char **argv) "-g" flag, as the "-g" flag dumps a list of fields registered by the dissectors, and we must do it before we read the preferences, in case any dissectors register preferences. */ - epan_init(PLUGIN_DIR); + epan_init(PLUGIN_DIR,register_all_protocols, + register_all_protocol_handoffs); /* now register the preferences for any non-dissector modules. we must do that before we read the preferences as well. */ |