diff options
Diffstat (limited to 'epan/prefs.c')
-rw-r--r-- | epan/prefs.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/epan/prefs.c b/epan/prefs.c index ef612685e1..3f9831cae7 100644 --- a/epan/prefs.c +++ b/epan/prefs.c @@ -397,6 +397,19 @@ prefs_apply_all(void) } /* + * Call the "apply" callback function for a specific module if any of + * its preferences have changed, and then clear the flag saying its + * preferences have changed, as the module has been notified of that + * fact. + */ +void +prefs_apply(module_t *module) +{ + if (module && module->prefs_changed) + call_apply_cb(module, NULL); +} + +/* * Register a preference in a module's list of preferences. * If it has a title, give it an ordinal number; otherwise, it's a * preference that won't show up in the UI, so it shouldn't get an |