Wireshark  2.9.0-477-g68ec514b
The Wireshark network protocol analyzer
Functions | Variables
preference_utils.h File Reference

Go to the source code of this file.

Functions

void prefs_to_capture_opts (void)
 
void prefs_main_write (void)
 
unsigned int prefs_store_ext (const char *module, const char *key, const char *value)
 
gboolean prefs_store_ext_multiple (const char *module, GHashTable *pref_values)
 
gint column_prefs_add_custom (gint fmt, const gchar *title, const gchar *custom_field, gint custom_occurrence)
 
void column_prefs_remove_link (GList *col_link)
 
void column_prefs_remove_nth (gint col)
 

Variables

gboolean auto_scroll_live
 

Detailed Description

Preference utility routines.

Function Documentation

gint column_prefs_add_custom ( gint  fmt,
const gchar *  title,
const gchar *  custom_field,
gint  custom_occurrence 
)

Add a custom column.

Parameters
fmtcolumn format
titlecolumn title
custom_fieldcolumn custom field
custom_occurrencecustom occurrence
Returns
The index of the inserted column
void column_prefs_remove_link ( GList *  col_link)

Remove a column.

Parameters
col_linkColumn list entry
void column_prefs_remove_nth ( gint  col)

Remove a column.

Parameters
colColumn number
void prefs_main_write ( void  )

Save all preferences

unsigned int prefs_store_ext ( const char *  module,
const char *  key,
const char *  value 
)

Convenient function for plugin_if

Note: The preferences must exist, it is not possible to create entries using this function

Parameters
modulethe module for the preference
keythe key for the preference
valuethe new value as string for the preference
Returns
flags of types of preferences changed, non-zero if the value has been stored successfully
gboolean prefs_store_ext_multiple ( const char *  module,
GHashTable *  pref_values 
)

Convenient function for the writing of multiple preferences, without explicitly having prefs_t variables.

Note: The preferences must exist, it is not possible to create entries using this function

Parameters
modulethe module for the preference
pref_valuesa hash table
Returns
true if the value has been stored successfully
void prefs_to_capture_opts ( void  )

Fill in capture options with values from the preferences

Variable Documentation

gboolean auto_scroll_live

If autoscroll in live captures is active or not