Update a comment to reflect current reality.
All plugin types now have plugin_register() as the registration function, so it's an entry point for the plugin registration function, not the particular plugin type. Clean up white space while we're at it. Change-Id: I166359deac57512cb6e87b2c7388c4b25cc54e10 Reviewed-on: https://code.wireshark.org/review/25254 Reviewed-by: Guy Harris <guy@alum.mit.edu>
This commit is contained in:
parent
c1719a8bf3
commit
c721763858
|
@ -141,7 +141,7 @@ plugins_scan_dir(GPtrArray **plugins_ptr, const char *dirpath, plugin_type_e typ
|
|||
continue;
|
||||
}
|
||||
|
||||
/* Search for the entry point for the plugin type */
|
||||
/* Search for the entry point for the plugin registration function */
|
||||
if (!g_module_symbol(handle, "plugin_register", &symbol)) {
|
||||
report_failure("The plugin '%s' has no \"plugin_register\" symbol", name);
|
||||
g_module_close(handle);
|
||||
|
@ -251,7 +251,7 @@ plugins_init(plugin_type_e type)
|
|||
|
||||
switch (type) {
|
||||
case WS_PLUGIN_EPAN:
|
||||
type_dir = TYPE_DIR_EPAN;
|
||||
type_dir = TYPE_DIR_EPAN;
|
||||
break;
|
||||
case WS_PLUGIN_WIRETAP:
|
||||
type_dir = TYPE_DIR_WIRETAP;
|
||||
|
|
Loading…
Reference in New Issue