Wireshark 4.5.0
The Wireshark network protocol analyzer
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
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_filter_valid_fg, gui_filter_invalid_fg, gui_filter_deprecated_fg;
170 color_t gui_filter_valid_bg, gui_filter_invalid_bg, gui_filter_deprecated_bg;
171 bool restore_filter_after_following_stream;
172 int gui_toolbar_main_style;
173 char *gui_font_name;
174 int gui_color_scheme;
175 color_t gui_active_fg;
176 color_t gui_active_bg;
177 int gui_active_style;
178 color_t gui_inactive_fg;
179 color_t gui_inactive_bg;
180 int gui_inactive_style;
181 color_t gui_marked_fg;
182 color_t gui_marked_bg;
183 color_t gui_ignored_fg;
184 color_t gui_ignored_bg;
185 char *gui_colorized_fg;
186 char *gui_colorized_bg;
187 bool gui_geometry_save_position;
188 bool gui_geometry_save_size;
189 bool gui_geometry_save_maximized;
190 unsigned gui_recent_df_entries_max;
191 unsigned gui_recent_files_count_max;
192 unsigned gui_fileopen_style;
193 char *gui_fileopen_dir;
194 unsigned gui_fileopen_preview;
195 char *gui_tlskeylog_command;
196 bool gui_ask_unsaved;
197 bool gui_autocomplete_filter;
198 bool gui_find_wrap;
199 char *gui_window_title;
200 char *gui_prepend_window_title;
201 char *gui_start_title;
202 version_info_e gui_version_placement;
203 unsigned gui_max_export_objects;
204 unsigned gui_max_tree_items;
205 unsigned gui_max_tree_depth;
206 bool gui_welcome_page_show_recent;
207 layout_type_e gui_layout_type;
208 layout_pane_content_e gui_layout_content_1;
209 layout_pane_content_e gui_layout_content_2;
210 layout_pane_content_e gui_layout_content_3;
211 splitter_layout_e gui_packet_dialog_layout;
212 char *gui_interfaces_hide_types;
213 bool gui_interfaces_show_hidden;
214 bool gui_interfaces_remote_display;
215 bool gui_io_graph_automatic_update;
216 bool gui_io_graph_enable_legend;
217 bool gui_plot_automatic_update;
218 bool gui_plot_enable_legend;
219 bool gui_plot_enable_auto_scroll;
220 bool gui_packet_details_show_byteview;
221 char *capture_device;
222 char *capture_devices_linktypes;
223 char *capture_devices_descr;
224 char *capture_devices_hide;
225 char *capture_devices_monitor_mode;
226 char *capture_devices_buffersize;
227 char *capture_devices_snaplen;
228 char *capture_devices_pmode;
229 char *capture_devices_filter; /* XXX - Mostly unused. Deprecate? */
230 bool capture_prom_mode;
231 bool capture_monitor_mode;
232 bool capture_pcap_ng;
233 bool capture_real_time;
234 unsigned capture_update_interval;
235 bool capture_no_interface_load;
236 bool capture_no_extcap;
237 bool capture_show_info;
238 GList *capture_columns;
239 unsigned tap_update_interval;
240 bool display_hidden_proto_items;
241 bool display_byte_fields_with_spaces;
242 abs_time_format_e display_abs_time_ascii;
243 bool enable_incomplete_dissectors_check;
244 bool incomplete_dissectors_check_debug;
245 bool strict_conversation_tracking_heuristics;
246 int conversation_deinterlacing_key;
247 bool ignore_dup_frames;
248 unsigned ignore_dup_frames_cache_entries;
249 bool filter_expressions_old; /* true if old filter expressions preferences were loaded. */
250 bool cols_hide_new; /* true if the new (index-based) gui.column.hide preference was loaded. */
251 bool gui_update_enabled;
252 software_update_channel_e gui_update_channel;
253 int gui_update_interval;
254 int gui_debounce_timer;
255 char *saved_at_version;
256 bool unknown_prefs; /* unknown or obsolete pref(s) */
257 bool gui_packet_list_separator;
258 bool gui_packet_header_column_definition;
259 bool gui_packet_list_hover_style; /* Enable/Disable mouse-over colorization */
260 bool gui_show_selected_packet;
261 bool gui_show_file_load_time;
262 elide_mode_e gui_packet_list_elide_mode;
263 copy_format_e gui_packet_list_copy_format_options_for_keyboard_shortcut;
264 bool gui_packet_list_copy_text_with_aligned_columns;
265 bool gui_packet_list_show_related;
266 bool gui_packet_list_show_minimap;
267 bool gui_packet_list_sortable;
268 unsigned gui_packet_list_cached_rows_max;
269 int gui_decimal_places1; /* Used for type 1 calculations */
270 int gui_decimal_places2; /* Used for type 2 calculations */
271 int gui_decimal_places3; /* Used for type 3 calculations */
272 bool gui_rtp_player_use_disk1;
273 bool gui_rtp_player_use_disk2;
274 unsigned flow_graph_max_export_items;
275 bool st_enable_burstinfo;
276 bool st_burst_showcount;
277 int st_burst_resolution;
278 int st_burst_windowlen;
279 bool st_sort_casesensitve;
280 bool st_sort_rng_fixorder;
281 bool st_sort_rng_nameonly;
282 int st_sort_defcolflag;
283 bool st_sort_defdescending;
284 bool st_sort_showfullname;
285 int st_format;
286 bool conv_machine_readable;
287 bool extcap_save_on_start;
288} e_prefs;
289
290WS_DLL_PUBLIC e_prefs prefs;
291
292/*
293 * Routines to let modules that have preference settings register
294 * themselves by name, and to let them register preference settings
295 * by name.
296 */
297struct pref_module;
298
299struct pref_custom_cbs;
300
301typedef struct pref_module module_t;
302
304void prefs_init(void);
305
307WS_DLL_PUBLIC void prefs_reset(void);
308
310void prefs_cleanup(void);
311
315WS_DLL_PUBLIC void prefs_set_gui_theme_is_dark(bool is_dark);
316
325WS_DLL_PUBLIC module_t *prefs_register_protocol(int id, void (*apply_cb)(void));
326
333WS_DLL_PUBLIC void prefs_register_module_alias(const char *name, module_t *module);
334
340void prefs_deregister_protocol(int id);
341
352WS_DLL_PUBLIC module_t *prefs_register_stat(const char *name, const char *title,
353 const char *description, void (*apply_cb)(void));
354
365WS_DLL_PUBLIC module_t *prefs_register_codec(const char *name, const char *title,
366 const char *description, void (*apply_cb)(void));
367
379WS_DLL_PUBLIC module_t *prefs_register_protocol_subtree(const char *subtree, int id,
380 void (*apply_cb)(void));
381
389WS_DLL_PUBLIC module_t *prefs_register_protocol_obsolete(int id);
390
394typedef unsigned (*module_cb)(module_t *module, void *user_data);
395
401WS_DLL_PUBLIC bool prefs_module_has_submodules(module_t *module);
402
414WS_DLL_PUBLIC unsigned prefs_modules_foreach(module_cb callback, void *user_data);
415
431WS_DLL_PUBLIC unsigned prefs_modules_foreach_submodules(module_t *module, module_cb callback, void *user_data);
432
439WS_DLL_PUBLIC void prefs_apply_all(void);
440
448WS_DLL_PUBLIC void prefs_apply(module_t *module);
449
450
451struct preference;
452
453typedef struct preference pref_t;
454
460WS_DLL_PUBLIC bool prefs_is_registered_protocol(const char *name);
461
467WS_DLL_PUBLIC const char *prefs_get_title_by_name(const char *name);
468
477WS_DLL_PUBLIC module_t *prefs_find_module(const char *name);
478
488WS_DLL_PUBLIC pref_t *prefs_find_preference(module_t * module, const char *pref);
489
507WS_DLL_PUBLIC void prefs_register_uint_preference(module_t *module, const char *name,
508 const char *title, const char *description, unsigned base, unsigned *var);
509
510/*
511 * prefs_register_ callers must conform to the following:
512 *
513 * Names must be in lowercase letters only (underscore allowed).
514 * Titles and descriptions must be valid UTF-8 or NULL.
515 * Titles must be short (less than 80 characters)
516 * Titles must not contain newlines.
517 */
518
535WS_DLL_PUBLIC void prefs_register_bool_preference(module_t *module, const char *name,
536 const char *title, const char *description, bool *var);
537
558WS_DLL_PUBLIC void prefs_register_enum_preference(module_t *module, const char *name,
559 const char *title, const char *description, int *var,
560 const enum_val_t *enumvals, bool radio_buttons);
561
583WS_DLL_PUBLIC void prefs_register_string_preference(module_t *module, const char *name,
584 const char *title, const char *description, const char **var);
585
613WS_DLL_PUBLIC void prefs_register_filename_preference(module_t *module, const char *name,
614 const char *title, const char *description, const char **var, bool for_writing);
615
640WS_DLL_PUBLIC void prefs_register_directory_preference(module_t *module, const char *name,
641 const char *title, const char *description, const char **var);
642
660WS_DLL_PUBLIC void prefs_register_range_preference(module_t *module, const char *name,
661 const char *title, const char *description, range_t **var,
662 uint32_t max_value);
663
678WS_DLL_PUBLIC void prefs_register_static_text_preference(module_t *module, const char *name,
679 const char *title, const char *description);
680
698WS_DLL_PUBLIC void prefs_register_uat_preference(module_t *module,
699 const char *name, const char* title, const char *description, struct epan_uat* uat);
700
721void prefs_register_color_preference(module_t *module, const char *name,
722 const char *title, const char *description, color_t *color);
723
745 const char *title, const char *description, struct pref_custom_cbs* custom_cbs,
746 void** custom_data);
747
768 const char *title, const char *description, range_t **var,
769 uint32_t max_value, const char *dissector_table, const char *dissector_description);
770
787WS_DLL_PUBLIC void prefs_register_password_preference(module_t *module, const char *name,
788 const char *title, const char *description, const char **var);
789
811WS_DLL_PUBLIC void prefs_register_dissector_preference(module_t *module, const char *name,
812 const char *title, const char *description, const char **var);
813
830WS_DLL_PUBLIC void prefs_register_obsolete_preference(module_t *module,
831 const char *name);
832
853WS_DLL_PUBLIC void prefs_register_custom_preference_TCP_Analysis(module_t *module, const char *name,
854 const char *title, const char *description, int *var,
855 const enum_val_t *enumvals, bool radio_buttons);
856
871WS_DLL_PUBLIC void prefs_set_preference_effect_fields(module_t *module,
872 const char *name);
873
874
875typedef unsigned (*pref_cb)(pref_t *pref, void *user_data);
876
891WS_DLL_PUBLIC unsigned prefs_pref_foreach(module_t *module, pref_cb callback,
892 void *user_data);
893
904WS_DLL_PUBLIC GList *prefs_get_string_list(const char *str);
905
910WS_DLL_PUBLIC void prefs_clear_string_list(GList *sl);
911
918WS_DLL_PUBLIC
919const char *prefs_pref_type_name(pref_t *pref);
920
929WS_DLL_PUBLIC
931
939WS_DLL_PUBLIC
940char *prefs_pref_to_str(pref_t *pref, pref_source_t source);
941
948WS_DLL_PUBLIC
950
961extern e_prefs *read_prefs(void);
962
972WS_DLL_PUBLIC int write_prefs(char **pf_path_return);
973
977typedef enum {
978 PREFS_SET_OK, /* succeeded */
979 PREFS_SET_SYNTAX_ERR, /* syntax error in string */
980 PREFS_SET_NO_SUCH_PREF, /* no such preference */
981 PREFS_SET_OBSOLETE /* preference used to exist but no longer does */
983
997WS_DLL_PUBLIC prefs_set_pref_e prefs_set_pref(char *prefarg, char **errmsg);
998
1008WS_DLL_PUBLIC range_t* prefs_get_range_value(const char *module_name, const char* pref_name);
1009
1015WS_DLL_PUBLIC bool prefs_is_capture_device_hidden(const char *name);
1016
1022WS_DLL_PUBLIC bool prefs_capture_device_monitor_mode(const char *name);
1023
1030WS_DLL_PUBLIC bool prefs_capture_options_dialog_column_is_visible(const char *column);
1031
1038WS_DLL_PUBLIC bool prefs_has_layout_pane_content (layout_pane_content_e layout_pane_content);
1039
1040#ifdef __cplusplus
1041}
1042#endif /* __cplusplus */
1043
1044#endif /* prefs.h */
1045
1046/*
1047 * Editor modelines - https://www.wireshark.org/tools/modelines.html
1048 *
1049 * Local variables:
1050 * c-basic-offset: 4
1051 * tab-width: 8
1052 * indent-tabs-mode: nil
1053 * End:
1054 *
1055 * vi: set shiftwidth=4 tabstop=8 expandtab:
1056 * :indentSize=4:tabSize=8:noTabs=true:
1057 */
void prefs_init(void)
Definition prefs.c:323
WS_DLL_PUBLIC module_t * prefs_register_codec(const char *name, const char *title, const char *description, void(*apply_cb)(void))
Definition prefs.c:804
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:1577
WS_DLL_PUBLIC bool prefs_is_preference_obsolete(pref_t *pref)
Definition prefs.c:2060
WS_DLL_PUBLIC module_t * prefs_register_protocol_subtree(const char *subtree, int id, void(*apply_cb)(void))
Definition prefs.c:666
WS_DLL_PUBLIC prefs_set_pref_e prefs_set_pref(char *prefarg, char **errmsg)
Definition prefs.c:5095
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:1816
e_prefs * read_prefs(void)
Definition prefs.c:4739
WS_DLL_PUBLIC void prefs_clear_string_list(GList *sl)
Definition prefs.c:4200
void prefs_register_color_preference(module_t *module, const char *name, const char *title, const char *description, color_t *color)
Definition prefs.c:1834
WS_DLL_PUBLIC range_t * prefs_get_range_value(const char *module_name, const char *pref_name)
Definition prefs.c:1777
WS_DLL_PUBLIC bool prefs_capture_options_dialog_column_is_visible(const char *column)
Definition prefs.c:5391
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:1591
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:1633
WS_DLL_PUBLIC char * prefs_pref_type_description(pref_t *pref)
Definition prefs.c:6654
WS_DLL_PUBLIC void prefs_register_obsolete_preference(module_t *module, const char *name)
Definition prefs.c:2054
WS_DLL_PUBLIC module_t * prefs_find_module(const char *name)
Definition prefs.c:824
WS_DLL_PUBLIC unsigned prefs_modules_foreach_submodules(module_t *module, module_cb callback, void *user_data)
Definition prefs.c:926
WS_DLL_PUBLIC void prefs_apply_all(void)
Definition prefs.c:956
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:1563
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:1968
WS_DLL_PUBLIC bool prefs_has_layout_pane_content(layout_pane_content_e layout_pane_content)
Definition prefs.c:5406
unsigned(* module_cb)(module_t *module, void *user_data)
Definition prefs.h:394
WS_DLL_PUBLIC bool prefs_is_registered_protocol(const char *name)
Definition prefs.c:1170
WS_DLL_PUBLIC void prefs_register_static_text_preference(module_t *module, const char *name, const char *title, const char *description)
Definition prefs.c:1804
WS_DLL_PUBLIC void prefs_set_preference_effect_fields(module_t *module, const char *name)
Definition prefs.c:2066
WS_DLL_PUBLIC const char * prefs_get_title_by_name(const char *name)
Definition prefs.c:1181
WS_DLL_PUBLIC void prefs_set_gui_theme_is_dark(bool is_dark)
Definition prefs.c:423
WS_DLL_PUBLIC unsigned prefs_pref_foreach(module_t *module, pref_cb callback, void *user_data)
Definition prefs.c:2397
WS_DLL_PUBLIC pref_t * prefs_find_preference(module_t *module, const char *pref)
Definition prefs.c:1161
WS_DLL_PUBLIC module_t * prefs_register_protocol_obsolete(int id)
Definition prefs.c:732
void prefs_deregister_protocol(int id)
Definition prefs.c:655
WS_DLL_PUBLIC bool prefs_capture_device_monitor_mode(const char *name)
Definition prefs.c:5367
WS_DLL_PUBLIC void prefs_register_module_alias(const char *name, module_t *module)
Definition prefs.c:587
prefs_set_pref_e
Definition prefs.h:977
WS_DLL_PUBLIC char * prefs_pref_to_str(pref_t *pref, pref_source_t source)
Definition prefs.c:6842
WS_DLL_PUBLIC const char * prefs_pref_type_name(pref_t *pref)
Definition prefs.c:6516
void prefs_cleanup(void)
Definition prefs.c:405
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:1192
WS_DLL_PUBLIC int write_prefs(char **pf_path_return)
Definition prefs.c:7167
WS_DLL_PUBLIC void prefs_reset(void)
Definition prefs.c:4630
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:1998
WS_DLL_PUBLIC module_t * prefs_register_protocol(int id, void(*apply_cb)(void))
Definition prefs.c:630
WS_DLL_PUBLIC GList * prefs_get_string_list(const char *str)
Definition prefs.c:4071
WS_DLL_PUBLIC unsigned prefs_modules_foreach(module_cb callback, void *user_data)
Definition prefs.c:910
WS_DLL_PUBLIC void prefs_apply(module_t *module)
Definition prefs.c:968
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:1235
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:1324
WS_DLL_PUBLIC module_t * prefs_register_stat(const char *name, const char *title, const char *description, void(*apply_cb)(void))
Definition prefs.c:772
WS_DLL_PUBLIC bool prefs_module_has_submodules(module_t *module)
Definition prefs.c:888
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:1949
WS_DLL_PUBLIC bool prefs_is_capture_device_hidden(const char *name)
Definition prefs.c:5218
WS_DLL_PUBLIC char string_to_name_resolve(const char *string, struct _e_addr_resolve *name_resolve)
Definition prefs.c:5426
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:1984
Flags to control name resolution.
Definition addr_resolv.h:52
Definition prefs.h:165
Definition color.h:23
Definition packet.c:97
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:217
unsigned base
Definition prefs.c:255
const char * description
Definition prefs.c:220
const char * title
Definition prefs.c:219
const char * name
Definition prefs.c:218
struct pref_custom_cbs custom_cbs
Definition prefs.c:265
uint32_t max_value
Definition prefs.c:256
const enum_val_t * enumvals
Definition prefs.c:258
bool radio_buttons
Definition prefs.c:259