aboutsummaryrefslogtreecommitdiffstats
path: root/epan/tfs.h
diff options
context:
space:
mode:
authorJoão Valverde <j@v6e.pt>2023-09-21 18:38:47 +0100
committerJoão Valverde <j@v6e.pt>2023-09-22 12:19:55 +0000
commit78547a149f6cf5f26eb18c26964804f1fa7a4a1b (patch)
tree90c95a3065de3daa2e9713b0fad380111c7a70c0 /epan/tfs.h
parentfad2c1e3be0dcf43674858cd662e47ec84789395 (diff)
Make tfs_true_false the default for booleans
Instead of adding a TFS(&tfs_true_false) to every boolean field, make it the default if "strings" is NULL. This seems to match the already existing documentation: If the Boolean field is to be displayed as "False" or "True", the 'strings' field would be set to NULL.
Diffstat (limited to 'epan/tfs.h')
-rw-r--r--epan/tfs.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/tfs.h b/epan/tfs.h
index bbe8c40cd8..83dde898ed 100644
--- a/epan/tfs.h
+++ b/epan/tfs.h
@@ -40,7 +40,7 @@ WS_DLL_PUBLIC const char *tfs_get_string(gboolean value, const true_false_string
/*
* A default set of true/false strings that dissectors can use for
- * FT_BOOLEAN header fields.
+ * FT_BOOLEAN header fields. By default tfs_true_false is used.
*/
WS_DLL_PUBLIC const true_false_string tfs_true_false;
WS_DLL_PUBLIC const true_false_string tfs_yes_no;