Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/gui/terminal.c

    rb7fd2a0 rc8211849  
    6262static LIST_INITIALIZE(terms);
    6363
    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 *);
     64static int term_open(con_srvs_t *, con_srv_t *);
     65static int term_close(con_srv_t *);
     66static int term_read(con_srv_t *, void *, size_t, size_t *);
     67static int term_write(con_srv_t *, void *, size_t, size_t *);
    6868static void term_sync(con_srv_t *);
    6969static void term_clear(con_srv_t *);
    7070static void term_set_pos(con_srv_t *, sysarg_t col, sysarg_t row);
    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 *);
     71static int term_get_pos(con_srv_t *, sysarg_t *, sysarg_t *);
     72static int term_get_size(con_srv_t *, sysarg_t *, sysarg_t *);
     73static int term_get_color_cap(con_srv_t *, console_caps_t *);
    7474static void term_set_style(con_srv_t *, console_style_t);
    7575static void term_set_color(con_srv_t *, console_color_t, console_color_t,
     
    7777static void term_set_rgb_color(con_srv_t *, pixel_t, pixel_t);
    7878static void term_set_cursor_visibility(con_srv_t *, bool);
    79 static errno_t term_get_event(con_srv_t *, cons_event_t *);
     79static int term_get_event(con_srv_t *, cons_event_t *);
    8080
    8181static con_ops_t con_ops = {
     
    376376}
    377377
    378 static errno_t term_open(con_srvs_t *srvs, con_srv_t *srv)
     378static int term_open(con_srvs_t *srvs, con_srv_t *srv)
    379379{
    380380        return EOK;
    381381}
    382382
    383 static errno_t term_close(con_srv_t *srv)
     383static int term_close(con_srv_t *srv)
    384384{
    385385        return EOK;
    386386}
    387387
    388 static errno_t term_read(con_srv_t *srv, void *buf, size_t size, size_t *nread)
     388static int term_read(con_srv_t *srv, void *buf, size_t size, size_t *nread)
    389389{
    390390        terminal_t *term = srv_to_terminal(srv);
     
    463463}
    464464
    465 static errno_t term_write(con_srv_t *srv, void *data, size_t size, size_t *nwritten)
     465static int term_write(con_srv_t *srv, void *data, size_t size, size_t *nwritten)
    466466{
    467467        terminal_t *term = srv_to_terminal(srv);
     
    504504}
    505505
    506 static errno_t term_get_pos(con_srv_t *srv, sysarg_t *col, sysarg_t *row)
     506static int term_get_pos(con_srv_t *srv, sysarg_t *col, sysarg_t *row)
    507507{
    508508        terminal_t *term = srv_to_terminal(srv);
     
    515515}
    516516
    517 static errno_t term_get_size(con_srv_t *srv, sysarg_t *cols, sysarg_t *rows)
     517static int term_get_size(con_srv_t *srv, sysarg_t *cols, sysarg_t *rows)
    518518{
    519519        terminal_t *term = srv_to_terminal(srv);
     
    527527}
    528528
    529 static errno_t term_get_color_cap(con_srv_t *srv, console_caps_t *caps)
     529static int term_get_color_cap(con_srv_t *srv, console_caps_t *caps)
    530530{
    531531        (void) srv;
     
    575575}
    576576
    577 static errno_t term_get_event(con_srv_t *srv, cons_event_t *event)
     577static int term_get_event(con_srv_t *srv, cons_event_t *event)
    578578{
    579579        terminal_t *term = srv_to_terminal(srv);
     
    751751        term->srvs.sarg = term;
    752752       
    753         errno_t rc = loc_server_register(NAME);
     753        int rc = loc_server_register(NAME);
    754754        if (rc != EOK) {
    755755                widget_deinit(&term->widget);
Note: See TracChangeset for help on using the changeset viewer.