Changeset b7fd2a0 in mainline for uspace/lib/gui/terminal.c
- Timestamp:
- 2018-01-13T03:10:29Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- a53ed3a
- Parents:
- 36f0738
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/gui/terminal.c
r36f0738 rb7fd2a0 62 62 static LIST_INITIALIZE(terms); 63 63 64 static int term_open(con_srvs_t *, con_srv_t *);65 static int term_close(con_srv_t *);66 static int term_read(con_srv_t *, void *, size_t, size_t *);67 static int term_write(con_srv_t *, void *, size_t, size_t *);64 static errno_t term_open(con_srvs_t *, con_srv_t *); 65 static errno_t term_close(con_srv_t *); 66 static errno_t term_read(con_srv_t *, void *, size_t, size_t *); 67 static errno_t term_write(con_srv_t *, void *, size_t, size_t *); 68 68 static void term_sync(con_srv_t *); 69 69 static void term_clear(con_srv_t *); 70 70 static void term_set_pos(con_srv_t *, sysarg_t col, sysarg_t row); 71 static int term_get_pos(con_srv_t *, sysarg_t *, sysarg_t *);72 static int term_get_size(con_srv_t *, sysarg_t *, sysarg_t *);73 static int term_get_color_cap(con_srv_t *, console_caps_t *);71 static errno_t term_get_pos(con_srv_t *, sysarg_t *, sysarg_t *); 72 static errno_t term_get_size(con_srv_t *, sysarg_t *, sysarg_t *); 73 static errno_t term_get_color_cap(con_srv_t *, console_caps_t *); 74 74 static void term_set_style(con_srv_t *, console_style_t); 75 75 static void term_set_color(con_srv_t *, console_color_t, console_color_t, … … 77 77 static void term_set_rgb_color(con_srv_t *, pixel_t, pixel_t); 78 78 static void term_set_cursor_visibility(con_srv_t *, bool); 79 static int term_get_event(con_srv_t *, cons_event_t *);79 static errno_t term_get_event(con_srv_t *, cons_event_t *); 80 80 81 81 static con_ops_t con_ops = { … … 376 376 } 377 377 378 static int term_open(con_srvs_t *srvs, con_srv_t *srv)378 static errno_t term_open(con_srvs_t *srvs, con_srv_t *srv) 379 379 { 380 380 return EOK; 381 381 } 382 382 383 static int term_close(con_srv_t *srv)383 static errno_t term_close(con_srv_t *srv) 384 384 { 385 385 return EOK; 386 386 } 387 387 388 static int term_read(con_srv_t *srv, void *buf, size_t size, size_t *nread)388 static errno_t term_read(con_srv_t *srv, void *buf, size_t size, size_t *nread) 389 389 { 390 390 terminal_t *term = srv_to_terminal(srv); … … 463 463 } 464 464 465 static int term_write(con_srv_t *srv, void *data, size_t size, size_t *nwritten)465 static errno_t term_write(con_srv_t *srv, void *data, size_t size, size_t *nwritten) 466 466 { 467 467 terminal_t *term = srv_to_terminal(srv); … … 504 504 } 505 505 506 static int term_get_pos(con_srv_t *srv, sysarg_t *col, sysarg_t *row)506 static errno_t term_get_pos(con_srv_t *srv, sysarg_t *col, sysarg_t *row) 507 507 { 508 508 terminal_t *term = srv_to_terminal(srv); … … 515 515 } 516 516 517 static int term_get_size(con_srv_t *srv, sysarg_t *cols, sysarg_t *rows)517 static errno_t term_get_size(con_srv_t *srv, sysarg_t *cols, sysarg_t *rows) 518 518 { 519 519 terminal_t *term = srv_to_terminal(srv); … … 527 527 } 528 528 529 static int term_get_color_cap(con_srv_t *srv, console_caps_t *caps)529 static errno_t term_get_color_cap(con_srv_t *srv, console_caps_t *caps) 530 530 { 531 531 (void) srv; … … 575 575 } 576 576 577 static int term_get_event(con_srv_t *srv, cons_event_t *event)577 static errno_t term_get_event(con_srv_t *srv, cons_event_t *event) 578 578 { 579 579 terminal_t *term = srv_to_terminal(srv); … … 751 751 term->srvs.sarg = term; 752 752 753 int rc = loc_server_register(NAME);753 errno_t rc = loc_server_register(NAME); 754 754 if (rc != EOK) { 755 755 widget_deinit(&term->widget);
Note:
See TracChangeset
for help on using the changeset viewer.