diff options
author | Werner Koch <[email protected]> | 2015-06-22 18:54:23 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2015-06-22 18:54:23 +0000 |
commit | 22147952b744958ec46d356e942540356ff7d93e (patch) | |
tree | 93876a6a2024f2b442da5e81566dc6716a05455e /common/util.h | |
parent | common: Add function strtokenize. (diff) | |
download | gnupg-22147952b744958ec46d356e942540356ff7d93e.tar.gz gnupg-22147952b744958ec46d356e942540356ff7d93e.zip |
common: Add function parse_debug_flag
* common/miscellaneous.c (parse_debug_flag): New.
* common/util.h (struct debug_flags_s): New.
Signed-off-by: Werner Koch <[email protected]>
Diffstat (limited to '')
-rw-r--r-- | common/util.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/common/util.h b/common/util.h index 82e9887d6..d5ddc1f13 100644 --- a/common/util.h +++ b/common/util.h @@ -389,6 +389,14 @@ int match_multistr (const char *multistr,const char *match); int gnupg_compare_version (const char *a, const char *b); +struct debug_flags_s +{ + unsigned int flag; + const char *name; +}; +int parse_debug_flag (const char *string, unsigned int *debugvar, + const struct debug_flags_s *flags); + /*-- Simple replacement functions. */ |