diff options
author | Christian Grothoff <christian@grothoff.org> | 2020-06-14 15:15:53 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2020-06-14 15:15:53 +0200 |
commit | 6b6814a205077f4c77f8dd42012fccdd12c0df5d (patch) | |
tree | ccf56e16f2ab036de68b93db962d6256cdc7de4a /src/include/taler_util.h | |
parent | 0276abcd9a074e648cf5ca222bb8e681c6a673d7 (diff) |
add TALER_yna_to_string()
Diffstat (limited to 'src/include/taler_util.h')
-rw-r--r-- | src/include/taler_util.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/include/taler_util.h b/src/include/taler_util.h index 07b78a43..22d7f7f2 100644 --- a/src/include/taler_util.h +++ b/src/include/taler_util.h @@ -335,4 +335,15 @@ TALER_arg_to_yna (struct MHD_Connection *connection, enum TALER_EXCHANGE_YesNoAll default_val, enum TALER_EXCHANGE_YesNoAll *yna); + +/** + * Convert YNA value to a string. + * + * @param yna value to convert + * @return string representation ("yes"/"no"/"all"). + */ +const char * +TALER_yna_to_string (enum TALER_EXCHANGE_YesNoAll yna); + + #endif |