Changeset d55ab823 in mainline


Ignore:
Timestamp:
2020-11-07T16:16:01Z (4 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
8c772c4
Parents:
b71c0fc
Message:

Return task return code from ui_run()

Location:
uspace
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/uidemo/uidemo.c

    rb71c0fc rd55ab823  
    3636#include <stdio.h>
    3737#include <str.h>
    38 #include <task.h>
    3938#include <ui/fixed.h>
    4039#include <ui/label.h>
     
    128127        demo.window = window;
    129128
    130         task_retval(0);
    131 
    132129        ui_res = ui_window_get_res(window);
    133130
  • uspace/lib/ui/src/ui.c

    rb71c0fc rd55ab823  
    3838#include <fibril.h>
    3939#include <stdlib.h>
     40#include <task.h>
    4041#include <ui/ui.h>
    4142#include "../private/ui.h"
     
    105106/** Execute user interface.
    106107 *
    107  * This function returns once the application starts the termination
    108  * process by calling ui_quit(@a ui).
     108 * Return task exit code of zero and block unitl the application starts
     109 * the termination process by calling ui_quit(@a ui).
    109110 *
    110111 * @param ui User interface
     
    112113void ui_run(ui_t *ui)
    113114{
     115        task_retval(0);
     116
    114117        while (!ui->quit)
    115118                fibril_usleep(100000);
Note: See TracChangeset for help on using the changeset viewer.