Changes in / [262cd01:6b89868] in mainline
- Location:
- uspace
- Files:
-
- 3 edited
-
app/tetris/screen.h (modified) (1 diff)
-
lib/libc/generic/io/console.c (modified) (2 diffs)
-
lib/libc/include/io/console.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/tetris/screen.h
r262cd01 r6b89868 51 51 52 52 typedef struct { 53 i nt ws_row;54 i nt ws_col;53 ipcarg_t ws_row; 54 ipcarg_t ws_col; 55 55 } winsize_t; 56 56 -
uspace/lib/libc/generic/io/console.c
r262cd01 r6b89868 45 45 } 46 46 47 int console_get_size(int phone, i nt *cols, int *rows)47 int console_get_size(int phone, ipcarg_t *rows, ipcarg_t *cols) 48 48 { 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; 49 return async_req_0_2(phone, CONSOLE_GET_SIZE, rows, cols); 58 50 } 59 51 … … 94 86 } 95 87 96 void console_goto(int phone, i nt col, int row)88 void console_goto(int phone, ipcarg_t row, ipcarg_t col) 97 89 { 98 async_msg_2(phone, CONSOLE_GOTO, col, row);90 async_msg_2(phone, CONSOLE_GOTO, row, col); 99 91 } 100 92 -
uspace/lib/libc/include/io/console.h
r262cd01 r6b89868 68 68 extern void console_clear(int phone); 69 69 70 extern int console_get_size(int phone, i nt *cols, int *rows);71 extern void console_goto(int phone, i nt col, int row);70 extern int console_get_size(int phone, ipcarg_t *rows, ipcarg_t *cols); 71 extern void console_goto(int phone, ipcarg_t row, ipcarg_t col); 72 72 73 73 extern void console_set_style(int phone, int style);
Note:
See TracChangeset
for help on using the changeset viewer.
