Re: [PATCH v2 2/2] ui: add precondition for dpy_get_ui_info()

2023-09-12 Thread Albert Esteve
On Tue, Sep 12, 2023 at 8:28 AM wrote: > From: Marc-André Lureau > > Ensure that it only get called when dpy_ui_info_supported(). The > function should always return a result. There should be a non-null > console or active_console. > > Modify the argument to be const as well. > > Signed-off-by:

[PATCH v2 2/2] ui: add precondition for dpy_get_ui_info()

2023-09-11 Thread marcandre . lureau
From: Marc-André Lureau Ensure that it only get called when dpy_ui_info_supported(). The function should always return a result. There should be a non-null console or active_console. Modify the argument to be const as well. Signed-off-by: Marc-André Lureau --- include/ui/console.h | 2 +- ui/