Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/c/generic/io/console.c

    r9f1362d4 r63f8966  
    4545}
    4646
    47 int console_get_size(int phone, ipcarg_t *cols, ipcarg_t *rows)
     47int console_get_size(int phone, int *cols, int *rows)
    4848{
    49         return async_req_0_2(phone, CONSOLE_GET_SIZE, cols, rows);
     49        ipcarg_t cols_v;
     50        ipcarg_t rows_v;
     51        int rc;
     52
     53        rc = async_req_0_2(phone, CONSOLE_GET_SIZE, &cols_v, &rows_v);
     54
     55        *cols = (int) cols_v;
     56        *rows = (int) rows_v;
     57        return rc;
    5058}
    5159
    52 void console_set_style(int phone, uint8_t style)
     60void console_set_style(int phone, int style)
    5361{
    5462        async_msg_1(phone, CONSOLE_SET_STYLE, style);
    5563}
    5664
    57 void console_set_color(int phone, uint8_t fg_color, uint8_t bg_color,
    58     uint8_t flags)
     65void console_set_color(int phone, int fg_color, int bg_color, int flags)
    5966{
    6067        async_msg_3(phone, CONSOLE_SET_COLOR, fg_color, bg_color, flags);
    6168}
    6269
    63 void console_set_rgb_color(int phone, uint32_t fg_color, uint32_t bg_color)
     70void console_set_rgb_color(int phone, int fg_color, int bg_color)
    6471{
    6572        async_msg_2(phone, CONSOLE_SET_RGB_COLOR, fg_color, bg_color);
     
    6875void console_cursor_visibility(int phone, bool show)
    6976{
    70         async_msg_1(phone, CONSOLE_CURSOR_VISIBILITY, (show != false));
     77        async_msg_1(phone, CONSOLE_CURSOR_VISIBILITY, show != false);
    7178}
    7279
    73 int console_get_color_cap(int phone, ipcarg_t *ccap)
     80int console_get_color_cap(int phone, int *ccap)
    7481{
    75         return async_req_0_1(phone, CONSOLE_GET_COLOR_CAP, ccap);
     82        ipcarg_t ccap_tmp;
     83        int rc;
     84
     85        rc = async_req_0_1(phone, CONSOLE_GET_COLOR_CAP, &ccap_tmp);
     86        *ccap = ccap_tmp;
     87
     88        return rc;
    7689}
    7790
     
    8194}
    8295
    83 int console_get_pos(int phone, ipcarg_t *col, ipcarg_t *row)
     96int console_get_pos(int phone, int *col, int *row)
    8497{
    85         return async_req_0_2(phone, CONSOLE_GET_POS, col, row);
     98        ipcarg_t col_v;
     99        ipcarg_t row_v;
     100        int rc;
     101
     102        rc = async_req_0_2(phone, CONSOLE_GET_POS, &col_v, &row_v);
     103
     104        *col = (int) col_v;
     105        *row = (int) row_v;
     106        return rc;
    86107}
    87108
    88 void console_set_pos(int phone, ipcarg_t col, ipcarg_t row)
     109void console_goto(int phone, int col, int row)
    89110{
    90111        async_msg_2(phone, CONSOLE_GOTO, col, row);
Note: See TracChangeset for help on using the changeset viewer.