diff options
author | Rafael David Tinoco <rafael.tinoco@linaro.org> | 2019-01-29 15:36:57 -0200 |
---|---|---|
committer | Cyril Hrubis <chrubis@suse.cz> | 2019-01-30 14:22:37 +0100 |
commit | d9479265b8285922799702a32ba11256571b09dc (patch) | |
tree | 030356426c9c667b16aa363188f16d2027eb98e0 /include | |
parent | 8a7948b307c2c28cdcf5b8b83debf87cfe929ebd (diff) |
tst_timer: Turn clock_name() function public
This commit exposes tst_clock_name() function by removing its static
definition and creating a public function prototype. This function is
needed by clock/alarm tests and their error messages.
Signed-off-by: Rafael David Tinoco <rafael.tinoco@linaro.org>
Signed-off-by: Cyril Hrubis <chrubis@suse.cz>
Diffstat (limited to 'include')
-rw-r--r-- | include/tst_timer.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/tst_timer.h b/include/tst_timer.h index 043b71460..8751149f0 100644 --- a/include/tst_timer.h +++ b/include/tst_timer.h @@ -332,4 +332,9 @@ static inline long long tst_timer_elapsed_us(void) return tst_timespec_to_us(tst_timer_elapsed()); } +/* + * Returns a string containing given clock type name + */ +const char *tst_clock_name(clockid_t); + #endif /* TST_TIMER */ |