Skip to content

Commit

Permalink
Create ui_companion_driver_get_msg_window_ptr
Browse files Browse the repository at this point in the history
  • Loading branch information
inactive123 committed Jun 8, 2016
1 parent aa81c1d commit 3c7fafe
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
8 changes: 8 additions & 0 deletions ui/ui_companion_driver.c
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
2 changes: 2 additions & 0 deletions ui/ui_companion_driver.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 3c7fafe

Please sign in to comment.