diff options
Diffstat (limited to 'src/include/mm_radio_utils.h')
-rw-r--r-- | src/include/mm_radio_utils.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/include/mm_radio_utils.h b/src/include/mm_radio_utils.h index 13c3765..b873483 100644 --- a/src/include/mm_radio_utils.h +++ b/src/include/mm_radio_utils.h @@ -34,6 +34,7 @@ #define MMRADIO_LOG_ERROR debug_error #define MMRADIO_LOG_WARNING debug_warning #define MMRADIO_LOG_CRITICAL debug_critical +#define MMRADIO_SLOG_DEBUG secure_debug_log /* general */ #ifndef ARRAY_SIZE @@ -54,6 +55,13 @@ if ( ! x_radio ) \ return MM_ERROR_RADIO_NOT_INITIALIZED; \ } +#define MMRADIO_CHECK_INSTANCE_RETURN_VOID( x_radio ) \ +if ( ! x_radio ) \ +{ \ + debug_error("radio instance is NULL\n"); \ + return; \ +} + #define MMRADIO_CHECK_DEVICE_STATE( x_radio ) \ if ( x_radio->radio_fd < 0 ) \ { \ |