aboutsummaryrefslogtreecommitdiffstats
path: root/plugins.h
diff options
context:
space:
mode:
authorGerald Combs <gerald@wireshark.org>1999-12-26 22:38:07 +0000
committerGerald Combs <gerald@wireshark.org>1999-12-26 22:38:07 +0000
commit45babe7bb5b9348a9ba6cad2e8aed26bfd10e3a3 (patch)
treecceb02d34be8c7f835ac3479456855d35e9e6e73 /plugins.h
parentc91afab6c988371f877216e5687f3a4c7f8ad13f (diff)
Integrate libtool/libltdl with the plugin code. Add libtool and libltdl
to the distribution. svn path=/trunk/; revision=1379
Diffstat (limited to 'plugins.h')
-rw-r--r--plugins.h22
1 files changed, 12 insertions, 10 deletions
diff --git a/plugins.h b/plugins.h
index 3076f43885..9f299d98d0 100644
--- a/plugins.h
+++ b/plugins.h
@@ -1,7 +1,7 @@
/* plugins.h
* definitions for plugins structures
*
- * $Id: plugins.h,v 1.2 1999/12/09 20:55:36 oabad Exp $
+ * $Id: plugins.h,v 1.3 1999/12/26 22:37:19 gerald Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@zing.org>
@@ -26,16 +26,18 @@
#ifndef __PLUGINS_H__
#define __PLUGINS_H__
+#include "ltdl.h"
+
typedef struct _plugin {
- void *handle; /* handle returned by dlopen */
- gchar *name; /* plugin name */
- gchar *version; /* plugin version */
- gboolean enabled; /* is it active ? */
- gchar *protocol; /* protocol which should call the dissector
- * for this plugin eg "tcp" */
- gchar *filter_string; /* display filter string matching frames for
- * which the dissector should be used */
- dfilter *filter; /* compiled display filter */
+ lt_dlhandle handle; /* handle returned by dlopen */
+ gchar *name; /* plugin name */
+ gchar *version; /* plugin version */
+ gboolean enabled; /* is it active ? */
+ gchar *protocol; /* protocol which should call the dissector
+ * for this plugin eg "tcp" */
+ gchar *filter_string; /* display filter string matching frames for
+ * which the dissector should be used */
+ dfilter *filter; /* compiled display filter */
/* the dissector */
void (*dissector) (const u_char *, int, frame_data *, proto_tree *);
struct _plugin *next; /* forward link */