Changeset 8be2833 in mainline


Ignore:
Timestamp:
2009-09-10T21:36:21Z (15 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
262cd01
Parents:
9b11daef
Message:

Hide implementation details.

Location:
uspace
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/tetris/screen.h

    r9b11daef r8be2833  
    5151
    5252typedef struct {
    53         ipcarg_t ws_row;
    54         ipcarg_t ws_col;
     53        int ws_row;
     54        int ws_col;
    5555} winsize_t;
    5656
  • uspace/lib/libc/generic/io/console.c

    r9b11daef r8be2833  
    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
     
    8694}
    8795
    88 void console_goto(int phone, ipcarg_t col, ipcarg_t row)
     96void console_goto(int phone, int col, int row)
    8997{
    9098        async_msg_2(phone, CONSOLE_GOTO, col, row);
  • uspace/lib/libc/include/io/console.h

    r9b11daef r8be2833  
    6868extern void console_clear(int phone);
    6969
    70 extern int console_get_size(int phone, ipcarg_t *cols, ipcarg_t *rows);
    71 extern void console_goto(int phone, ipcarg_t col, ipcarg_t row);
     70extern int console_get_size(int phone, int *cols, int *rows);
     71extern void console_goto(int phone, int col, int row);
    7272
    7373extern void console_set_style(int phone, int style);
Note: See TracChangeset for help on using the changeset viewer.