| Wireshark 4.7.3 The Wireshark network protocol analyzer

Loading...
Searching...
No Matches
ui_prefs.h
Go to the documentation of this file.
1
11
12#ifndef __UI_PREFERENCES_H__
13#define __UI_PREFERENCES_H__
14
15#include <epan/prefs.h>
16#include <epan/prefs-int.h>
17
18#ifdef __cplusplus
19 extern "C" {
20#endif /* __cplusplus */
21
22/* Initialize the UI preferences component */
23
29 void ui_prefs_init(void);
30
36 void ui_prefs_cleanup(void);
37
38 typedef pref_t* (*ui_pref_deprecated_cb)(module_t* module, const char* name);
39
61module_t*
62 ui_prefs_register_module(const char* name, const char* title,
63 const char* description, const char* help,
64 void (*apply_cb)(void), ui_pref_deprecated_cb depr_callback);
65
73 void
74 ui_prefs_deregister_module(module_t* module);
75
79 typedef struct {
80 FILE *pf;
81} ui_prefs_write_pref_arg_t;
82
90 unsigned
91 ui_prefs_write_module(module_t* module, void* user_data);
92
93
105 prefs_set_pref_e
106 ui_prefs_read_pref(char* pref_name, const char* value, void* private_data, bool return_range_errors);
107
108#ifdef __cplusplus
109}
110#endif /* __cplusplus */
111
112#endif /* __UI_PREFERENCES_H__ */
prefs-int.h
prefs.h
prefs_set_pref_e
prefs_set_pref_e
Result of setting a preference.
Definition prefs.h:1267
ui_prefs_write_pref_arg_t
Argument bundle passed to the preference writer callback when saving UI preferences to a file.
Definition ui_prefs.h:79
ui_prefs_write_pref_arg_t::pf
FILE * pf
Definition ui_prefs.h:80
ui_prefs_write_module
unsigned ui_prefs_write_module(module_t *module, void *user_data)
Write out all preferences for a UI module.
Definition ui_prefs.c:106
ui_prefs_cleanup
void ui_prefs_cleanup(void)
Cleanup the UI preferences component.
Definition ui_prefs.c:61
ui_prefs_read_pref
prefs_set_pref_e ui_prefs_read_pref(char *pref_name, const char *value, void *private_data, bool return_range_errors)
Read a preference value from the UI.
ui_prefs_register_module
module_t * ui_prefs_register_module(const char *name, const char *title, const char *description, const char *help, void(*apply_cb)(void), ui_pref_deprecated_cb depr_callback)
Register a UI component that will have preferences.
Definition ui_prefs.c:72
ui_prefs_init
void ui_prefs_init(void)
Initialize the UI preferences component.
Definition ui_prefs.c:54
ui_prefs_deregister_module
void ui_prefs_deregister_module(module_t *module)
Unregister a UI component that will have preferences.
Definition ui_prefs.c:89