Changeset 3d10a2f in mainline for uspace/lib/ui/include/types/ui/ui.h


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/include/types/ui/ui.h

    r6d172f6 r3d10a2f  
    4646/** Use the default console service (argument to ui_create()) */
    4747#define UI_CONSOLE_DEFAULT "cons@"
     48/** Use dummy output (argument to ui_create()) */
     49#define UI_DISPLAY_NULL "null@"
    4850
    4951/** Window system */
     
    5456        ui_ws_display,
    5557        /** Console */
    56         ui_ws_console
     58        ui_ws_console,
     59        /** Dummy output */
     60        ui_ws_null
    5761} ui_winsys_t;
    5862
Note: See TracChangeset for help on using the changeset viewer.