set event source number 84/253284/1
authorJunkyeong Kim <jk0430.kim@samsung.com>
Mon, 8 Feb 2021 09:38:50 +0000 (18:38 +0900)
committerJunkyeong Kim <jk0430.kim@samsung.com>
Mon, 8 Feb 2021 09:38:55 +0000 (18:38 +0900)
Change-Id: I4fd98c13155b66a0ba5b76783ebc51ffd62232f3
Signed-off-by: Junkyeong Kim <jk0430.kim@samsung.com>
src/hal-api-tdm.c

index 14edccd..a59b2de 100644 (file)
@@ -274,6 +274,8 @@ hal_tdm_backend_get_event_sources(hal_tdm_backend *backend, int *num_event_sourc
        }
 
        event_source = backend_data->event_sources;
+       if (num_event_sources)
+               *num_event_sources = backend_data->num_event_sources;
 
        return backend_data->event_sources;
 }