Wireshark 4.5.0
The Wireshark network protocol analyzer
Loading...
Searching...
No Matches
prefs.h
Go to the documentation of this file.
1
11#ifndef __PREFS_H__
12#define __PREFS_H__
13
14#include <glib.h>
15
16#include <epan/params.h>
17#include <epan/range.h>
18
19#include <wsutil/color.h>
20
21#include "ws_symbol_export.h"
22
23#ifdef __cplusplus
24extern "C" {
25#endif /* __cplusplus */
26
27#define DEF_WIDTH 750
28#define DEF_HEIGHT 550
29
30#define MAX_VAL_LEN 1024
31
32#define TAP_UPDATE_DEFAULT_INTERVAL 3000
33#define ST_DEF_BURSTRES 5
34#define ST_DEF_BURSTLEN 100
35#define ST_MAX_BURSTRES 600000 /* somewhat arbitrary limit of 10 minutes */
36#define ST_MAX_BURSTBUCKETS 100 /* somewhat arbitrary limit - more buckets degrade performance */
37#define DEF_GUI_DECIMAL_PLACES1 2
38#define DEF_GUI_DECIMAL_PLACES2 4
39#define DEF_GUI_DECIMAL_PLACES3 6
40
41#define CONV_DEINT_KEY_CAPFILE 0x01 /* unused yet */
42#define CONV_DEINT_KEY_INTERFACE 0x02
43#define CONV_DEINT_KEY_MAC 0x04
44#define CONV_DEINT_KEY_VLAN 0x08
45
46struct epan_uat;
47struct _e_addr_resolve;
48
60WS_DLL_PUBLIC
61char string_to_name_resolve(const char *string, struct _e_addr_resolve *name_resolve);
62
63/*
64 * Modes for the starting directory in File Open dialogs.
65 */
66#define FO_STYLE_LAST_OPENED 0 /* start in last directory we looked at */
67#define FO_STYLE_SPECIFIED 1 /* start in specified directory */
68#define FO_STYLE_CWD 2 /* start in current working directory at startup */
69
70/*
71 * Toolbar styles.
72 */
73#define TB_STYLE_ICONS 0
74#define TB_STYLE_TEXT 1
75#define TB_STYLE_BOTH 2
76
77/*
78 * Color styles.
79 */
80#define COLOR_STYLE_DEFAULT 0
81#define COLOR_STYLE_FLAT 1
82#define COLOR_STYLE_GRADIENT 2
83
84#define COLOR_STYLE_ALPHA 0.25
85
86#define COLOR_SCHEME_DEFAULT 0
87#define COLOR_SCHEME_LIGHT 1
88#define COLOR_SCHEME_DARK 2
89
90/*
91 * Types of layout of summary/details/hex panes.
92 */
93typedef enum {
94 layout_unused, /* entry currently unused */
95 layout_type_5,
96 layout_type_2,
97 layout_type_1,
98 layout_type_4,
99 layout_type_3,
100 layout_type_6,
101 layout_type_max
102} layout_type_e;
103
104/*
105 * Types of pane.
106 */
107typedef enum {
108 layout_pane_content_none,
109 layout_pane_content_plist,
110 layout_pane_content_pdetails,
111 layout_pane_content_pbytes,
112 layout_pane_content_pdiagram,
113} layout_pane_content_e;
114
115/*
116 * Places version information will show up
117 */
118typedef enum {
119 version_welcome_only,
120 version_title_only,
121 version_both,
122 version_neither
123} version_info_e;
124
125typedef enum {
126 layout_vertical,
127 layout_horizontal
128} splitter_layout_e;
129
130typedef enum {
131 pref_default,
132 pref_stashed,
133 pref_current
134} pref_source_t;
135
136typedef enum {
137 ELIDE_LEFT,
138 ELIDE_RIGHT,
139 ELIDE_MIDDLE,
140 ELIDE_NONE
141} elide_mode_e;
142
143typedef enum {
144 COPY_FORMAT_TEXT,
145 COPY_FORMAT_CSV,
146 COPY_FORMAT_YAML,
147 COPY_FORMAT_HTML
148} copy_format_e;
149
150typedef enum {
151 ABS_TIME_ASCII_NEVER,
152 ABS_TIME_ASCII_TREE,
153 ABS_TIME_ASCII_COLUMN,
154 ABS_TIME_ASCII_ALWAYS,
155} abs_time_format_e;
156
157/*
158 * Update channel.
159 */
160typedef enum {
161 UPDATE_CHANNEL_DEVELOPMENT,
162 UPDATE_CHANNEL_STABLE
163} software_update_channel_e;
164
165typedef struct _e_prefs {
166 GList *col_list;
167 int num_cols;
168 color_t st_client_fg, st_client_bg, st_server_fg, st_server_bg;
169 color_t gui_text_valid, gui_text_invalid, gui_text_deprecated;
170 bool restore_filter_after_following_stream;
171 int gui_toolbar_main_style;
172 char *gui_font_name;
173 int gui_color_scheme;
174 color_t gui_active_fg;
175 color_t gui_active_bg;
176 int gui_active_style;
177 color_t gui_inactive_fg;
178 color_t gui_inactive_bg;
179 int gui_inactive_style;
180 color_t gui_marked_fg;
181 color_t gui_marked_bg;
182 color_t gui_ignored_fg;
183 color_t gui_ignored_bg;
184 char *gui_colorized_fg;
185 char *gui_colorized_bg;
186 bool gui_geometry_save_position;
187 bool gui_geometry_save_size;
188 bool gui_geometry_save_maximized;
189 unsigned gui_recent_df_entries_max;
190 unsigned gui_recent_files_count_max;
191 unsigned gui_fileopen_style;
192 char *gui_fileopen_dir;
193 unsigned gui_fileopen_preview;
194 char *gui_tlskeylog_command;
195 bool gui_ask_unsaved;
196 bool gui_autocomplete_filter;
197 bool gui_find_wrap;
198 char *gui_window_title;
199 char *gui_prepend_window_title;
200 char *gui_start_title;
201 version_info_e gui_version_placement;
202 unsigned gui_max_export_objects;
203 unsigned gui_max_tree_items;
204 unsigned gui_max_tree_depth;
205 bool gui_welcome_page_show_recent;
206 layout_type_e gui_layout_type;
207 layout_pane_content_e gui_layout_content_1;
208 layout_pane_content_e gui_layout_content_2;
209 layout_pane_content_e gui_layout_content_3;
210 splitter_layout_e gui_packet_dialog_layout;
211 char *gui_interfaces_hide_types;
212 bool gui_interfaces_show_hidden;
213 bool gui_interfaces_remote_display;
214 bool gui_io_graph_automatic_update;
215 bool gui_io_graph_enable_legend;
216 bool gui_packet_details_show_byteview;
217 char *capture_device;
218 char *capture_devices_linktypes;
219 char *capture_devices_descr;
220 char *capture_devices_hide;
221 char *capture_devices_monitor_mode;
222 char *capture_devices_buffersize;
223 char *capture_devices_snaplen;
224 char *capture_devices_pmode;
225 char *capture_devices_filter; /* XXX - Mostly unused. Deprecate? */
226 bool capture_prom_mode;
227 bool capture_monitor_mode;
228 bool capture_pcap_ng;
229 bool capture_real_time;
230 unsigned capture_update_interval;
231 bool capture_no_interface_load;
232 bool capture_no_extcap;
233 bool capture_show_info;
234 GList *capture_columns;
235 unsigned tap_update_interval;
236 bool display_hidden_proto_items;
237 bool display_byte_fields_with_spaces;
238 abs_time_format_e display_abs_time_ascii;
239 bool enable_incomplete_dissectors_check;
240 bool incomplete_dissectors_check_debug;
241 bool strict_conversation_tracking_heuristics;
242 int conversation_deinterlacing_key;
243 bool ignore_dup_frames;
244 unsigned ignore_dup_frames_cache_entries;
245 bool filter_expressions_old; /* true if old filter expressions preferences were loaded. */
246 bool cols_hide_new; /* true if the new (index-based) gui.column.hide preference was loaded. */
247 bool gui_update_enabled;
248 software_update_channel_e gui_update_channel;
249 int gui_update_interval;
250 int gui_debounce_timer;
251 char *saved_at_version;
252 bool unknown_prefs; /* unknown or obsolete pref(s) */
253 bool gui_packet_list_separator;
254 bool gui_packet_header_column_definition;
255 bool gui_packet_list_hover_style; /* Enable/Disable mouse-over colorization */
256 bool gui_show_selected_packet;
257 bool gui_show_file_load_time;
258 elide_mode_e gui_packet_list_elide_mode;
259 copy_format_e gui_packet_list_copy_format_options_for_keyboard_shortcut;
260 bool gui_packet_list_copy_text_with_aligned_columns;
261 bool gui_packet_list_show_related;
262 bool gui_packet_list_show_minimap;
263 bool gui_packet_list_sortable;
264 unsigned gui_packet_list_cached_rows_max;
265 int gui_decimal_places1; /* Used for type 1 calculations */
266 int gui_decimal_places2; /* Used for type 2 calculations */
267 int gui_decimal_places3; /* Used for type 3 calculations */
268 bool gui_rtp_player_use_disk1;
269 bool gui_rtp_player_use_disk2;
270 unsigned flow_graph_max_export_items;
271 bool st_enable_burstinfo;
272 bool st_burst_showcount;
273 int st_burst_resolution;
274 int st_burst_windowlen;
275 bool st_sort_casesensitve;
276 bool st_sort_rng_fixorder;
277 bool st_sort_rng_nameonly;
278 int st_sort_defcolflag;
279 bool st_sort_defdescending;
280 bool st_sort_showfullname;
281 bool extcap_save_on_start;
282} e_prefs;
283
284WS_DLL_PUBLIC e_prefs prefs;
285
286/*
287 * Routines to let modules that have preference settings register
288 * themselves by name, and to let them register preference settings
289 * by name.
290 */
291struct pref_module;
292
293struct pref_custom_cbs;
294
295typedef struct pref_module module_t;
296
298void prefs_init(void);
299
301WS_DLL_PUBLIC void prefs_reset(void);
302
304void prefs_cleanup(void);
305
309WS_DLL_PUBLIC void prefs_set_gui_theme_is_dark(bool is_dark);
310
319WS_DLL_PUBLIC module_t *prefs_register_protocol(int id, void (*apply_cb)(void));
320
327WS_DLL_PUBLIC void prefs_register_module_alias(const char *name, module_t *module);
328
334void prefs_deregister_protocol(int id);
335
346WS_DLL_PUBLIC module_t *prefs_register_stat(const char *name, const char *title,
347 const char *description, void (*apply_cb)(void));
348
359WS_DLL_PUBLIC module_t *prefs_register_codec(const char *name, const char *title,
360 const char *description, void (*apply_cb)(void));
361
373WS_DLL_PUBLIC module_t *prefs_register_protocol_subtree(const char *subtree, int id,
374 void (*apply_cb)(void));
375
383WS_DLL_PUBLIC module_t *prefs_register_protocol_obsolete(int id);
384
388typedef unsigned (*module_cb)(module_t *module, void *user_data);
389
395WS_DLL_PUBLIC bool prefs_module_has_submodules(module_t *module);
396
408WS_DLL_PUBLIC unsigned prefs_modules_foreach(module_cb callback, void *user_data);
409
425WS_DLL_PUBLIC unsigned prefs_modules_foreach_submodules(module_t *module, module_cb callback, void *user_data);
426
433WS_DLL_PUBLIC void prefs_apply_all(void);
434
442WS_DLL_PUBLIC void prefs_apply(module_t *module);
443
444
445struct preference;
446
447typedef struct preference pref_t;
448
454WS_DLL_PUBLIC bool prefs_is_registered_protocol(const char *name);
455
461WS_DLL_PUBLIC const char *prefs_get_title_by_name(const char *name);
462
471WS_DLL_PUBLIC module_t *prefs_find_module(const char *name);
472
482WS_DLL_PUBLIC pref_t *prefs_find_preference(module_t * module, const char *pref);
483
501WS_DLL_PUBLIC void prefs_register_uint_preference(module_t *module, const char *name,
502 const char *title, const char *description, unsigned base, unsigned *var);
503
504/*
505 * prefs_register_ callers must conform to the following:
506 *
507 * Names must be in lowercase letters only (underscore allowed).
508 * Titles and descriptions must be valid UTF-8 or NULL.
509 * Titles must be short (less than 80 characters)
510 * Titles must not contain newlines.
511 */
512
529WS_DLL_PUBLIC void prefs_register_bool_preference(module_t *module, const char *name,
530 const char *title, const char *description, bool *var);
531
552WS_DLL_PUBLIC void prefs_register_enum_preference(module_t *module, const char *name,
553 const char *title, const char *description, int *var,
554 const enum_val_t *enumvals, bool radio_buttons);
555
577WS_DLL_PUBLIC void prefs_register_string_preference(module_t *module, const char *name,
578 const char *title, const char *description, const char **var);
579
607WS_DLL_PUBLIC void prefs_register_filename_preference(module_t *module, const char *name,
608 const char *title, const char *description, const char **var, bool for_writing);
609
634WS_DLL_PUBLIC void prefs_register_directory_preference(module_t *module, const char *name,
635 const char *title, const char *description, const char **var);
636
654WS_DLL_PUBLIC void prefs_register_range_preference(module_t *module, const char *name,
655 const char *title, const char *description, range_t **var,
656 uint32_t max_value);
657
672WS_DLL_PUBLIC void prefs_register_static_text_preference(module_t *module, const char *name,
673 const char *title, const char *description);
674
692WS_DLL_PUBLIC void prefs_register_uat_preference(module_t *module,
693 const char *name, const char* title, const char *description, struct epan_uat* uat);
694
712WS_DLL_PUBLIC void prefs_register_uat_preference_qt(module_t *module,
713 const char *name, const char* title, const char *description, struct epan_uat* uat);
714
715
736void prefs_register_color_preference(module_t *module, const char *name,
737 const char *title, const char *description, color_t *color);
738
760 const char *title, const char *description, struct pref_custom_cbs* custom_cbs,
761 void** custom_data);
762
783 const char *title, const char *description, range_t **var,
784 uint32_t max_value, const char *dissector_table, const char *dissector_description);
785
802WS_DLL_PUBLIC void prefs_register_password_preference(module_t *module, const char *name,
803 const char *title, const char *description, const char **var);
804
826WS_DLL_PUBLIC void prefs_register_dissector_preference(module_t *module, const char *name,
827 const char *title, const char *description, const char **var);
828
845WS_DLL_PUBLIC void prefs_register_obsolete_preference(module_t *module,
846 const char *name);
847
868WS_DLL_PUBLIC void prefs_register_custom_preference_TCP_Analysis(module_t *module, const char *name,
869 const char *title, const char *description, int *var,
870 const enum_val_t *enumvals, bool radio_buttons);
871
886WS_DLL_PUBLIC void prefs_set_preference_effect_fields(module_t *module,
887 const char *name);
888
889
890typedef unsigned (*pref_cb)(pref_t *pref, void *user_data);
891
906WS_DLL_PUBLIC unsigned prefs_pref_foreach(module_t *module, pref_cb callback,
907 void *user_data);
908
919WS_DLL_PUBLIC GList *prefs_get_string_list(const char *str);
920
925WS_DLL_PUBLIC void prefs_clear_string_list(GList *sl);
926
933WS_DLL_PUBLIC
934const char *prefs_pref_type_name(pref_t *pref);
935
944WS_DLL_PUBLIC
946
954WS_DLL_PUBLIC
955char *prefs_pref_to_str(pref_t *pref, pref_source_t source);
956
967extern e_prefs *read_prefs(void);
968
978WS_DLL_PUBLIC int write_prefs(char **pf_path_return);
979
983typedef enum {
984 PREFS_SET_OK, /* succeeded */
985 PREFS_SET_SYNTAX_ERR, /* syntax error in string */
986 PREFS_SET_NO_SUCH_PREF, /* no such preference */
987 PREFS_SET_OBSOLETE /* preference used to exist but no longer does */
989
1003WS_DLL_PUBLIC prefs_set_pref_e prefs_set_pref(char *prefarg, char **errmsg);
1004
1014
1022
1032WS_DLL_PUBLIC range_t* prefs_get_range_value(const char *module_name, const char* pref_name);
1033
1039WS_DLL_PUBLIC bool prefs_is_capture_device_hidden(const char *name);
1040
1046WS_DLL_PUBLIC bool prefs_capture_device_monitor_mode(const char *name);
1047
1054WS_DLL_PUBLIC bool prefs_capture_options_dialog_column_is_visible(const char *column);
1055
1062WS_DLL_PUBLIC bool prefs_has_layout_pane_content (layout_pane_content_e layout_pane_content);
1063
1064#ifdef __cplusplus
1065}
1066#endif /* __cplusplus */
1067
1068#endif /* prefs.h */
1069
1070/*
1071 * Editor modelines - https://www.wireshark.org/tools/modelines.html
1072 *
1073 * Local variables:
1074 * c-basic-offset: 4
1075 * tab-width: 8
1076 * indent-tabs-mode: nil
1077 * End:
1078 *
1079 * vi: set shiftwidth=4 tabstop=8 expandtab:
1080 * :indentSize=4:tabSize=8:noTabs=true:
1081 */
void prefs_init(void)
Definition prefs.c:353
WS_DLL_PUBLIC module_t * prefs_register_codec(const char *name, const char *title, const char *description, void(*apply_cb)(void))
Definition prefs.c:835
WS_DLL_PUBLIC void prefs_register_filename_preference(module_t *module, const char *name, const char *title, const char *description, const char **var, bool for_writing)
Definition prefs.c:1607
WS_DLL_PUBLIC module_t * prefs_register_protocol_subtree(const char *subtree, int id, void(*apply_cb)(void))
Definition prefs.c:697
WS_DLL_PUBLIC prefs_set_pref_e prefs_set_pref(char *prefarg, char **errmsg)
Definition prefs.c:5086
WS_DLL_PUBLIC void prefs_register_uat_preference(module_t *module, const char *name, const char *title, const char *description, struct epan_uat *uat)
Definition prefs.c:1846
e_prefs * read_prefs(void)
Definition prefs.c:4730
WS_DLL_PUBLIC void prefs_clear_string_list(GList *sl)
Definition prefs.c:4210
void prefs_register_color_preference(module_t *module, const char *name, const char *title, const char *description, color_t *color)
Definition prefs.c:1880
WS_DLL_PUBLIC range_t * prefs_get_range_value(const char *module_name, const char *pref_name)
Definition prefs.c:1807
WS_DLL_PUBLIC bool prefs_capture_options_dialog_column_is_visible(const char *column)
Definition prefs.c:5382
bool prefs_get_preference_obsolete(pref_t *pref)
Definition prefs.c:2118
WS_DLL_PUBLIC void prefs_register_directory_preference(module_t *module, const char *name, const char *title, const char *description, const char **var)
Definition prefs.c:1621
WS_DLL_PUBLIC void prefs_register_range_preference(module_t *module, const char *name, const char *title, const char *description, range_t **var, uint32_t max_value)
Definition prefs.c:1663
prefs_set_pref_e prefs_set_preference_obsolete(pref_t *pref)
Definition prefs.c:2130
WS_DLL_PUBLIC char * prefs_pref_type_description(pref_t *pref)
Definition prefs.c:6652
WS_DLL_PUBLIC void prefs_register_obsolete_preference(module_t *module, const char *name)
Definition prefs.c:2100
WS_DLL_PUBLIC module_t * prefs_find_module(const char *name)
Definition prefs.c:855
WS_DLL_PUBLIC unsigned prefs_modules_foreach_submodules(module_t *module, module_cb callback, void *user_data)
Definition prefs.c:957
WS_DLL_PUBLIC void prefs_apply_all(void)
Definition prefs.c:987
WS_DLL_PUBLIC void prefs_register_string_preference(module_t *module, const char *name, const char *title, const char *description, const char **var)
Definition prefs.c:1593
void prefs_register_decode_as_range_preference(module_t *module, const char *name, const char *title, const char *description, range_t **var, uint32_t max_value, const char *dissector_table, const char *dissector_description)
Definition prefs.c:2014
WS_DLL_PUBLIC bool prefs_has_layout_pane_content(layout_pane_content_e layout_pane_content)
Definition prefs.c:5397
unsigned(* module_cb)(module_t *module, void *user_data)
Definition prefs.h:388
WS_DLL_PUBLIC bool prefs_is_registered_protocol(const char *name)
Definition prefs.c:1200
WS_DLL_PUBLIC void prefs_register_static_text_preference(module_t *module, const char *name, const char *title, const char *description)
Definition prefs.c:1834
WS_DLL_PUBLIC void prefs_set_preference_effect_fields(module_t *module, const char *name)
Definition prefs.c:2106
WS_DLL_PUBLIC const char * prefs_get_title_by_name(const char *name)
Definition prefs.c:1211
WS_DLL_PUBLIC void prefs_set_gui_theme_is_dark(bool is_dark)
Definition prefs.c:457
WS_DLL_PUBLIC unsigned prefs_pref_foreach(module_t *module, pref_cb callback, void *user_data)
Definition prefs.c:2453
WS_DLL_PUBLIC void prefs_register_uat_preference_qt(module_t *module, const char *name, const char *title, const char *description, struct epan_uat *uat)
Definition prefs.c:1861
WS_DLL_PUBLIC pref_t * prefs_find_preference(module_t *module, const char *pref)
Definition prefs.c:1191
WS_DLL_PUBLIC module_t * prefs_register_protocol_obsolete(int id)
Definition prefs.c:763
void prefs_deregister_protocol(int id)
Definition prefs.c:686
WS_DLL_PUBLIC bool prefs_capture_device_monitor_mode(const char *name)
Definition prefs.c:5358
WS_DLL_PUBLIC void prefs_register_module_alias(const char *name, module_t *module)
Definition prefs.c:618
prefs_set_pref_e
Definition prefs.h:983
WS_DLL_PUBLIC char * prefs_pref_to_str(pref_t *pref, pref_source_t source)
Definition prefs.c:6847
WS_DLL_PUBLIC const char * prefs_pref_type_name(pref_t *pref)
Definition prefs.c:6510
void prefs_cleanup(void)
Definition prefs.c:439
WS_DLL_PUBLIC void prefs_register_uint_preference(module_t *module, const char *name, const char *title, const char *description, unsigned base, unsigned *var)
Definition prefs.c:1222
WS_DLL_PUBLIC int write_prefs(char **pf_path_return)
Definition prefs.c:7180
WS_DLL_PUBLIC void prefs_reset(void)
Definition prefs.c:4621
WS_DLL_PUBLIC void prefs_register_dissector_preference(module_t *module, const char *name, const char *title, const char *description, const char **var)
Definition prefs.c:2044
WS_DLL_PUBLIC module_t * prefs_register_protocol(int id, void(*apply_cb)(void))
Definition prefs.c:661
WS_DLL_PUBLIC GList * prefs_get_string_list(const char *str)
Definition prefs.c:4081
WS_DLL_PUBLIC unsigned prefs_modules_foreach(module_cb callback, void *user_data)
Definition prefs.c:941
WS_DLL_PUBLIC void prefs_apply(module_t *module)
Definition prefs.c:999
WS_DLL_PUBLIC void prefs_register_bool_preference(module_t *module, const char *name, const char *title, const char *description, bool *var)
Definition prefs.c:1265
void prefs_register_custom_preference(module_t *module, const char *name, const char *title, const char *description, struct pref_custom_cbs *custom_cbs, void **custom_data)
WS_DLL_PUBLIC void prefs_register_enum_preference(module_t *module, const char *name, const char *title, const char *description, int *var, const enum_val_t *enumvals, bool radio_buttons)
Definition prefs.c:1354
WS_DLL_PUBLIC module_t * prefs_register_stat(const char *name, const char *title, const char *description, void(*apply_cb)(void))
Definition prefs.c:803
WS_DLL_PUBLIC bool prefs_module_has_submodules(module_t *module)
Definition prefs.c:919
WS_DLL_PUBLIC void prefs_register_custom_preference_TCP_Analysis(module_t *module, const char *name, const char *title, const char *description, int *var, const enum_val_t *enumvals, bool radio_buttons)
Definition prefs.c:1995
WS_DLL_PUBLIC bool prefs_is_capture_device_hidden(const char *name)
Definition prefs.c:5209
WS_DLL_PUBLIC char string_to_name_resolve(const char *string, struct _e_addr_resolve *name_resolve)
Definition prefs.c:5417
WS_DLL_PUBLIC void prefs_register_password_preference(module_t *module, const char *name, const char *title, const char *description, const char **var)
Definition prefs.c:2030
Flags to control name resolution.
Definition addr_resolv.h:52
Definition prefs.h:165
Definition color.h:23
Definition packet.c:86
Definition params.h:23
Definition range.h:41
Definition uat-int.h:40
Definition prefs-int.h:75
Definition prefs-int.h:27
const char * description
Definition prefs-int.h:30
const char * name
Definition prefs-int.h:28
void(* apply_cb)(void)
Definition prefs-int.h:32
const char * title
Definition prefs-int.h:29
Definition prefs.c:248
unsigned base
Definition prefs.c:285
const char * description
Definition prefs.c:251
const char * title
Definition prefs.c:250
const char * name
Definition prefs.c:249
struct pref_custom_cbs custom_cbs
Definition prefs.c:295
uint32_t max_value
Definition prefs.c:286
const enum_val_t * enumvals
Definition prefs.c:288
bool radio_buttons
Definition prefs.c:289