From a4b9066685e60e940f3c6325c29a88a46b118e88 Mon Sep 17 00:00:00 2001 From: Tomasz Wasilczyk Date: Fri, 6 Jan 2017 14:20:13 -0800 Subject: [PATCH] Make metadata field mandatory for program info struct. Test: VTS, manual Change-Id: I7dbd62d36ac21475fdbc49723ba3ea6744460d21 --- include/system/radio.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/system/radio.h b/include/system/radio.h index b164fc8eb..ea77bdd38 100644 --- a/include/system/radio.h +++ b/include/system/radio.h @@ -170,7 +170,7 @@ typedef struct radio_program_info { bool stereo; /* program is stereo or not */ bool digital; /* digital program or not (e.g HD Radio program) */ uint32_t signal_strength; /* signal strength from 0 to 100 */ - /* non null if meta data are present (e.g PTY, song title ...) */ + /* meta data (e.g PTY, song title ...), must not be NULL */ __attribute__((aligned(8))) radio_metadata_t *metadata; } radio_program_info_t; @@ -214,7 +214,7 @@ typedef struct radio_event { bool on; radio_band_config_t config; radio_program_info_t info; - /* non null if meta data are present (e.g PTY, song title ...) */ + /* meta data (e.g PTY, song title ...), must not be NULL */ __attribute__((aligned(8))) radio_metadata_t *metadata; }; } radio_event_t;