Changeset f7a90df in mainline for uspace/lib/display/src


Ignore:
Timestamp:
2020-10-25T19:20:57Z (5 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
d284ce9
Parents:
5a43bd0
Message:

Prototype UI and window classes

It is difficult to do any useful testing on ui_window without a real
display_t. Without display, there is no window, without window no GC,
without GC no UI resource.

As a compromise, in case of unit test, create UI with display == NULL,
in which case create window with NULL dwindow and a dummy GC
(so we have valid UI resource).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/display/src/display.c

    r5a43bd0 rf7a90df  
    198198/** Destroy display window.
    199199 *
    200  * @param window Window
     200 * @param window Window or @c NULL
    201201 * @return EOK on success or an error code. In both cases @a window must
    202202 *         not be accessed anymore
     
    206206        async_exch_t *exch;
    207207        errno_t rc;
     208
     209        if (window == NULL)
     210                return EOK;
    208211
    209212        exch = async_exchange_begin(window->display->sess);
Note: See TracChangeset for help on using the changeset viewer.