Since g2ef72cb, plugins are no more stored in plugins/$VERSION folder

Also update the custom samples to reflect the latest changes done

Change-Id: I2ac865fad1acdef5a5c4d68a155cbdf970c306f5
Reviewed-on: https://code.wireshark.org/review/7805
Petri-Dish: Pascal Quantin <pascal.quantin@gmail.com>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Pascal Quantin <pascal.quantin@gmail.com>
This commit is contained in:
Pascal Quantin 2015-03-24 18:37:35 +01:00
parent 6545d199cc
commit 7710da4d77
3 changed files with 4 additions and 50 deletions

View File

@ -1,4 +1,4 @@
; $Id$
;Add your custom diameter dictionary here
; Example:
;File "..\..\diameter\foo.xml"
;File "${STAGING_DIR}\diameter\foo.xml"

View File

@ -1,3 +1,3 @@
;Add your custom plugins directives here
; Example:
;File "${STAGING_DIR}\plugins\${VERSION}\foo.dll"
;File "${STAGING_DIR}\plugins\foo.dll"

View File

@ -979,30 +979,7 @@ init_plugin_dir(void)
* on Windows, the data file directory is the directory
* in which the Wireshark binary resides.
*/
plugin_dir = g_strdup_printf("%s\\plugins\\%s", get_datafile_dir(),
VERSION);
/*
* Make sure that pathname refers to a directory.
*/
if (test_for_directory(plugin_dir) != EISDIR) {
/*
* Either it doesn't refer to a directory or it
* refers to something that doesn't exist.
*
* Assume that means we're running a version of
* Wireshark we've built in a build directory,
* in which case {datafile dir}\plugins is the
* top-level plugins source directory, and use
* that directory and set the "we're running in
* a build directory" flag, so the plugin
* scanner will check all subdirectories of that
* directory for plugins.
*/
g_free( (gpointer) plugin_dir);
plugin_dir = g_strdup_printf("%s\\plugins", get_datafile_dir());
running_in_build_directory_flag = TRUE;
}
plugin_dir = g_strdup_printf("%s\\plugins", get_datafile_dir());
#else
if (running_in_build_directory_flag) {
/*
@ -1088,30 +1065,7 @@ static void init_extcap_dir(void) {
* on Windows, the data file directory is the directory
* in which the Wireshark binary resides.
*/
extcap_dir = g_strdup_printf("%s\\extcap\\%s", get_datafile_dir(),
VERSION);
/*
* Make sure that pathname refers to a directory.
*/
if (test_for_directory(extcap_dir) != EISDIR) {
/*
* Either it doesn't refer to a directory or it
* refers to something that doesn't exist.
*
* Assume that means we're running a version of
* Wireshark we've built in a build directory,
* in which case {datafile dir}\plugins is the
* top-level extcap hooks source directory, and use
* that directory and set the "we're running in
* a build directory" flag, so the plugin
* scanner will check all subdirectories of that
* directory for extcap hooks.
*/
g_free( (gpointer) extcap_dir);
extcap_dir = g_strdup_printf("%s\\extcap", get_datafile_dir());
running_in_build_directory_flag = TRUE;
}
extcap_dir = g_strdup_printf("%s\\extcap", get_datafile_dir());
#else
if (running_in_build_directory_flag) {
/*