Changeset 3d10a2f in mainline for uspace/lib/ui/src/window.c


Ignore:
Timestamp:
2021-10-04T12:25:43Z (3 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
cd981f2a, e0e1b3d
Parents:
6d172f6
git-author:
Jiri Svoboda <jiri@…> (2021-10-03 17:25:36)
git-committer:
Jiri Svoboda <jiri@…> (2021-10-04 12:25:43)
Message:

Null display spec for the benefit of unit testing

When testing something that takes a display specification as argument,
it is useful to be able to be able to specify dummy output (so far,
only ui_create_disp() could create a UI with dummy output.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/ui/src/window.c

    r6d172f6 r3d10a2f  
    601601}
    602602
     603/** Get window's containing UI.
     604 *
     605 * @param window Window
     606 * @return Containing UI
     607 */
     608ui_t *ui_window_get_ui(ui_window_t *window)
     609{
     610        return window->ui;
     611}
     612
    603613/** Get UI resource from window.
    604614 *
Note: See TracChangeset for help on using the changeset viewer.