Changeset 04803bf in mainline for uspace/lib/c/generic/io/console.c


Ignore:
Timestamp:
2011-03-21T22:00:17Z (15 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
143932e3
Parents:
b50b5af2 (diff), 7308e84 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge mainline changes (needs fixes).

File:
1 moved

Legend:

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

    rb50b5af2 r04803bf  
    4545}
    4646
    47 int console_get_size(int phone, ipcarg_t *rows, ipcarg_t *cols)
     47int console_get_size(int phone, sysarg_t *cols, sysarg_t *rows)
    4848{
    49         return async_req_0_2(phone, CONSOLE_GET_SIZE, rows, cols);
     49        return async_req_0_2(phone, CONSOLE_GET_SIZE, cols, rows);
    5050}
    5151
    52 void console_set_style(int phone, int style)
     52void console_set_style(int phone, uint8_t style)
    5353{
    5454        async_msg_1(phone, CONSOLE_SET_STYLE, style);
    5555}
    5656
    57 void console_set_color(int phone, int fg_color, int bg_color, int flags)
     57void console_set_color(int phone, uint8_t fg_color, uint8_t bg_color,
     58    uint8_t flags)
    5859{
    5960        async_msg_3(phone, CONSOLE_SET_COLOR, fg_color, bg_color, flags);
    6061}
    6162
    62 void console_set_rgb_color(int phone, int fg_color, int bg_color)
     63void console_set_rgb_color(int phone, uint32_t fg_color, uint32_t bg_color)
    6364{
    6465        async_msg_2(phone, CONSOLE_SET_RGB_COLOR, fg_color, bg_color);
     
    6768void console_cursor_visibility(int phone, bool show)
    6869{
    69         async_msg_1(phone, CONSOLE_CURSOR_VISIBILITY, show != false);
     70        async_msg_1(phone, CONSOLE_CURSOR_VISIBILITY, (show != false));
    7071}
    7172
    72 int console_get_color_cap(int phone, int *ccap)
     73int console_get_color_cap(int phone, sysarg_t *ccap)
    7374{
    74         ipcarg_t ccap_tmp;
    75         int rc;
    76 
    77         rc = async_req_0_1(phone, CONSOLE_GET_COLOR_CAP, &ccap_tmp);
    78         *ccap = ccap_tmp;
    79 
    80         return rc;
     75        return async_req_0_1(phone, CONSOLE_GET_COLOR_CAP, ccap);
    8176}
    8277
     
    8681}
    8782
    88 void console_goto(int phone, ipcarg_t row, ipcarg_t col)
     83int console_get_pos(int phone, sysarg_t *col, sysarg_t *row)
    8984{
    90         async_msg_2(phone, CONSOLE_GOTO, row, col);
     85        return async_req_0_2(phone, CONSOLE_GET_POS, col, row);
     86}
     87
     88void console_set_pos(int phone, sysarg_t col, sysarg_t row)
     89{
     90        async_msg_2(phone, CONSOLE_GOTO, col, row);
    9191}
    9292
    9393bool console_get_event(int phone, console_event_t *event)
    9494{
    95         ipcarg_t type;
    96         ipcarg_t key;
    97         ipcarg_t mods;
    98         ipcarg_t c;
     95        sysarg_t type;
     96        sysarg_t key;
     97        sysarg_t mods;
     98        sysarg_t c;
    9999       
    100100        int rc = async_req_0_4(phone, CONSOLE_GET_EVENT, &type, &key, &mods, &c);
Note: See TracChangeset for help on using the changeset viewer.