aboutsummaryrefslogtreecommitdiffstats
path: root/epan/plugins.c
diff options
context:
space:
mode:
authorStig Bjørlykke <stig@bjorlykke.org>2009-10-23 17:52:18 +0000
committerStig Bjørlykke <stig@bjorlykke.org>2009-10-23 17:52:18 +0000
commit3a5c9ec3b26b489438a31575c34a674d8e101fab (patch)
treed3488b143471421bc4d9f3a1e6b05ea19e9a435c /epan/plugins.c
parentc65f2d42f898d37c4585ba4ba9f855d0b44e65eb (diff)
Load lua scripts in the plugins directory, both global and personal.
List loaded lua scripts in Help->About->Plugins. svn path=/trunk/; revision=30675
Diffstat (limited to 'epan/plugins.c')
-rw-r--r--epan/plugins.c12
1 files changed, 2 insertions, 10 deletions
diff --git a/epan/plugins.c b/epan/plugins.c
index ac7f7ece27..563baeae6f 100644
--- a/epan/plugins.c
+++ b/epan/plugins.c
@@ -5,7 +5,7 @@
*
* Wireshark - Network traffic analyzer
* By Gerald Combs <gerald@wireshark.org>
- * Copyright 1999 Gerald Combs
+ * Copyright 1998 Gerald Combs
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
@@ -55,9 +55,7 @@
#include "report_err.h"
/* linked list of all plugins */
-plugin *plugin_list;
-
-#define PLUGINS_DIR_NAME "plugins"
+plugin *plugin_list = NULL;
/*
* add a new plugin to the list
@@ -333,12 +331,6 @@ plugins_scan_dir(const char *dirname)
}
}
-/* get the personal plugin dir */
-/* Return value is malloced so the caller should g_free() it. */
-char *get_plugins_pers_dir(void)
-{
- return get_persconffile_path(PLUGINS_DIR_NAME, FALSE, FALSE);
-}
/*
* init plugins