Changeset d284ce9 in mainline for uspace/lib/ui/src/ui.c
- Timestamp:
- 2020-10-27T21:56:15Z (4 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- f03d1308
- Parents:
- f7a90df
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/ui/src/ui.c
rf7a90df rd284ce9 36 36 #include <display.h> 37 37 #include <errno.h> 38 #include <fibril.h> 38 39 #include <stdlib.h> 39 40 #include <ui/ui.h> … … 65 66 ui->display = display; 66 67 ui->myoutput = true; 68 *rui = ui; 67 69 return EOK; 68 70 } … … 101 103 } 102 104 105 /** Execute user interface. 106 * 107 * This function returns once the application starts the termination 108 * process by calling ui_quit(@a ui). 109 * 110 * @param ui User interface 111 */ 112 void ui_run(ui_t *ui) 113 { 114 while (!ui->quit) 115 fibril_usleep(100000); 116 } 117 118 /** Terminate user interface. 119 * 120 * Calling this function causes the user interface to terminate 121 * (i.e. exit from ui_run()). This would be typically called from 122 * an event handler. 123 * 124 * @param ui User interface 125 */ 126 void ui_quit(ui_t *ui) 127 { 128 ui->quit = true; 129 } 130 103 131 /** @} 104 132 */
Note:
See TracChangeset
for help on using the changeset viewer.