diff options
author | Rob Austein <sra@hactrn.net> | 2017-04-15 16:34:39 -0400 |
---|---|---|
committer | Rob Austein <sra@hactrn.net> | 2017-04-15 16:34:39 -0400 |
commit | 7c8dd2672337a760477049e9f6196054332e4f5a (patch) | |
tree | 3b69ce8f20edda65127d4465fa36f9697be4556b /hal_internal.h | |
parent | 91ce93471aa8e9824a8ad298dfb11d05814937c7 (diff) |
Logging infrastructure.
Diffstat (limited to 'hal_internal.h')
-rw-r--r-- | hal_internal.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/hal_internal.h b/hal_internal.h index 1822781..f17179c 100644 --- a/hal_internal.h +++ b/hal_internal.h @@ -99,6 +99,18 @@ extern void hal_ks_lock(void); extern void hal_ks_unlock(void); /* + * Logging. + */ + + +typedef enum { + HAL_LOG_DEBUG, HAL_LOG_INFO, HAL_LOG_WARN, HAL_LOG_ERROR, HAL_LOG_SILENT +} hal_log_level_t; + +extern void hal_log_set_level(const hal_log_level_t level); +extern void hal_log(const hal_log_level_t level, const char *format, ...); + +/* * Dispatch structures for RPC implementation. * * The breakdown of which functions go into which dispatch vectors is |