Create ui_companion_driver_get_msg_window_ptr

This commit is contained in:
twinaphex 2016-06-08 07:02:38 +02:00
parent aa81c1d82f
commit 3c7fafe9a3
2 changed files with 10 additions and 0 deletions

View File

@ -170,6 +170,14 @@ void ui_companion_driver_free(void)
ui_companion = NULL;
}
const ui_msg_window_t *ui_companion_driver_get_msg_window_ptr(void)
{
const ui_companion_driver_t *ui = ui_companion_get_ptr();
if (!ui)
return NULL;
return ui->msg_window;
}
const ui_window_t *ui_companion_driver_get_window_ptr(void)
{
const ui_companion_driver_t *ui = ui_companion_get_ptr();

View File

@ -166,6 +166,8 @@ void ui_companion_driver_toggle(void);
void ui_companion_driver_free(void);
const ui_msg_window_t *ui_companion_driver_get_msg_window_ptr(void);
const ui_window_t *ui_companion_driver_get_window_ptr(void);
const ui_application_t *ui_companion_driver_get_application_ptr(void);