/* 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>
#include "prefs.h"
#include "util.h"
#include "epan/dfilter/dfilter.h"
+#include "register.h"
packet_info pi;
ts_type timestamp_type = RELATIVE;
"-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. */
/* epan.h
*
- * $Id: epan.c,v 1.9 2001/04/01 22:01:34 hagbard Exp $
+ * $Id: epan.c,v 1.10 2001/04/02 00:38:34 hagbard Exp $
*
* Ethereal Protocol Analyzer Library
*
* libraries are located.)
*/
void
-epan_init(const char *plugin_dir)
+epan_init(const char *plugin_dir, void (register_all_protocols)(void),
+ void (register_all_handoffs)(void))
{
except_init();
tvbuff_init();
frame_data_init();
- proto_init(plugin_dir);
+ proto_init(plugin_dir,register_all_protocols,register_all_handoffs);
packet_init();
dfilter_init();
}
/* epan.h
*
- * $Id: epan.h,v 1.5 2001/02/01 20:21:16 gram Exp $
+ * $Id: epan.h,v 1.6 2001/04/02 00:38:34 hagbard Exp $
*
* Ethereal Protocol Analyzer Library
*
/* XXX - for now */
#include "packet.h"
-void epan_init(const char *);
+void epan_init(const char * plugindir, void (register_all_protocols)(void),
+ void (register_all_handoffs)(void));
void epan_cleanup(void);
void epan_conversation_init(void);
/* proto.c
* Routines for protocol tree
*
- * $Id: proto.c,v 1.18 2001/04/01 22:50:08 hagbard Exp $
+ * $Id: proto.c,v 1.19 2001/04/02 00:38:34 hagbard Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@zing.org>
#include "packet.h"
#include "strutil.h"
#include "resolv.h"
-#include "register.h"
#include "plugins.h"
#include "ipv6-utils.h"
#include "proto.h"
/* initialize data structures and register protocols and fields */
void
-proto_init(const char *plugin_dir)
+proto_init(const char *plugin_dir,void (register_all_protocols)(void),
+ void (register_all_protocol_handoffs)(void))
{
static hf_register_info hf[] = {
{ &hf_text_only,
/* proto.h
* Definitions for protocol display
*
- * $Id: proto.h,v 1.10 2001/04/01 22:50:08 hagbard Exp $
+ * $Id: proto.h,v 1.11 2001/04/02 00:38:34 hagbard Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@zing.org>
#define NullTVB NULL
/* Sets up memory used by proto routines. Called at program startup */
-void proto_init(const char *plugin_dir);
+void proto_init(const char *plugin_dir, void (register_all_protocols)(void),
+ void (register_all_handoffs)(void));
/* Frees memory used by proto routines. Called at program shutdown */
void proto_cleanup(void);
/* main.c
*
- * $Id: main.c,v 1.185 2001/03/27 06:48:12 guy Exp $
+ * $Id: main.c,v 1.186 2001/04/02 00:38:36 hagbard Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
#include "plugins.h"
#include "colors.h"
#include "strutil.h"
+#include "register.h"
packet_info pi;
capture_file cfile;
"-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. */
/* tethereal.c
*
- * $Id: tethereal.c,v 1.72 2001/03/27 06:48:11 guy Exp $
+ * $Id: tethereal.c,v 1.73 2001/04/02 00:38:33 hagbard Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@zing.org>
#include "util.h"
#include "conversation.h"
#include "plugins.h"
+#include "register.h"
static guint32 firstsec, firstusec;
static guint32 prevsec, prevusec;
"-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. */