diff options
author | Martin Mathieson <martin.r.mathieson@googlemail.com> | 2015-09-30 04:49:01 -0700 |
---|---|---|
committer | Martin Mathieson <martin.r.mathieson@googlemail.com> | 2015-09-30 12:55:51 +0000 |
commit | e3ace4f27d454467bee225e19f8f34e0d4e9965d (patch) | |
tree | 2a35c72265dac295570f0d7b21f99654435efb55 /ui/recent.c | |
parent | 1d0532fee52bcb507c91ad1b500fb0965951c6b1 (diff) |
Use a 'recent' setting to persist the checkbox controlling the source of PDUs to use in LTE RLC statistics
Change-Id: I20234c3a3bf7761f70b0db5a6acbbf54ffbfcef5
Reviewed-on: https://code.wireshark.org/review/10699
Petri-Dish: Martin Mathieson <martin.r.mathieson@googlemail.com>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Martin Mathieson <martin.r.mathieson@googlemail.com>
Diffstat (limited to 'ui/recent.c')
-rw-r--r-- | ui/recent.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/ui/recent.c b/ui/recent.c index ca4fb7d51f..2633ac92cf 100644 --- a/ui/recent.c +++ b/ui/recent.c @@ -69,6 +69,7 @@ #define RECENT_GUI_FILEOPEN_REMEMBERED_DIR "gui.fileopen_remembered_dir" #define RECENT_GUI_CONVERSATION_TABS "gui.conversation_tabs" #define RECENT_GUI_ENDPOINT_TABS "gui.endpoint_tabs" +#define RECENT_GUI_RLC_PDUS_FROM_MAC_FRAMES "gui.rlc_pdus_from_mac_frames" #define RECENT_GUI_GEOMETRY "gui.geom." @@ -800,6 +801,11 @@ write_profile_recent(void) fprintf(rf, RECENT_GUI_ENDPOINT_TABS ": %s\n", string_list); g_free(string_list); + fprintf(rf, "\n# For RLC stats, whether to use RLC PDUs found inside MAC frames.\n"); + fprintf(rf, "# TRUE or FALSE (case-insensitive).\n"); + fprintf(rf, RECENT_GUI_RLC_PDUS_FROM_MAC_FRAMES ": %s\n", + recent.gui_rlc_use_pdus_from_mac == TRUE ? "TRUE" : "FALSE"); + if (get_last_open_dir() != NULL) { fprintf(rf, "\n# Last directory navigated to in File Open dialog.\n"); @@ -1038,6 +1044,13 @@ read_set_recent_pair_static(gchar *key, const gchar *value, recent.conversation_tabs = prefs_get_string_list(value); } else if (strcmp(key, RECENT_GUI_ENDPOINT_TABS) == 0) { recent.endpoint_tabs = prefs_get_string_list(value); + } else if (strcmp(key, RECENT_GUI_RLC_PDUS_FROM_MAC_FRAMES) == 0) { + if (g_ascii_strcasecmp(value, "true") == 0) { + recent.gui_rlc_use_pdus_from_mac = TRUE; + } + else { + recent.gui_rlc_use_pdus_from_mac = FALSE; + } } else if (strcmp(key, RECENT_KEY_COL_WIDTH) == 0) { col_l = prefs_get_string_list(value); if (col_l == NULL) |