mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +02:00
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 <wk@gnupg.org>
This commit is contained in:
parent
d37f47081d
commit
22147952b7
2 changed files with 89 additions and 0 deletions
|
@ -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. */
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue