aboutsummaryrefslogtreecommitdiffstats
path: root/ui/decode_as_utils.h
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2014-08-04 16:37:48 -0700
committerGuy Harris <guy@alum.mit.edu>2014-08-04 23:38:13 +0000
commitbbda3dd7c1998b98202af8b24de415412298db86 (patch)
tree59082faf756fcca12f040a94664edb8e9f865c4b /ui/decode_as_utils.h
parentce7b041305330e2cb87d895f57381241702c9d85 (diff)
Write out decode_as entries from the actual dissector tables.
Have a save_decode_as_entries() routine in ui/decode_as_utils.c, that does all the work of saving the entries by iterating through all the changed entries with dissector_all_tables_foreach_changed(). When doing so, write out the selector for integral values in decimal, as older versions of Wireshark only handled decimal values, and some of those older versions are EOLed and won't be fixed. Change-Id: I2dab461604524b98e3515867839a4b86c86c5d7b Reviewed-on: https://code.wireshark.org/review/3426 Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'ui/decode_as_utils.h')
-rw-r--r--ui/decode_as_utils.h23
1 files changed, 4 insertions, 19 deletions
diff --git a/ui/decode_as_utils.h b/ui/decode_as_utils.h
index d33da85748..729c20da5b 100644
--- a/ui/decode_as_utils.h
+++ b/ui/decode_as_utils.h
@@ -39,6 +39,10 @@ extern "C" {
*/
void load_decode_as_entries(void);
+/** Write out the "decode as" entries of the current profile.
+ */
+void save_decode_as_entries(void);
+
/** This routine creates one entry in the list of protocol dissector
* that need to be reset. It is called by the g_hash_table_foreach
* routine once for each changed entry in a dissector table.
@@ -69,25 +73,6 @@ void decode_build_reset_list (const gchar *table_name, ftenum_t selector_type,
*/
void decode_clear_all(void);
-/** Open the "decode_as_entries" configuration file and write its header.
- *
- * Entries should be written with decode_as_write_entry(). The file should
- * be closed with fclose().
- *
- * @return A valid FILE pointer on success, NULL on failure.
- */
-FILE *decode_as_open(void);
-
-/** Write an entry to the "decode_as_entries" file.
- *
- * @param[in] da_file FILE pointer returned by decode_as_open().
- * @param[in] table_name A short decode_as table name.
- * @param[in] selector Integer or string selector, e.g. 80 for TCP port 80.
- * @param[in] default_proto The default protocol for the selector, or "(none)".
- * @param[in] current_proto The desired protocol for the selector, or "(none)" to disable.
- */
-void decode_as_write_entry(FILE *da_file, const char *table_name, const char *selector, const char *default_proto, const char *current_proto);
-
#ifdef __cplusplus
}
#endif /* __cplusplus */