Changeset 0cc4313 in mainline for uspace/app


Ignore:
Timestamp:
2007-11-22T15:50:24Z (18 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
d40a8ff
Parents:
8498915
Message:

Modify the async framework to make use of all six syscall arguments.
Supply user-friendly macros as in previous cases.

File:
1 edited

Legend:

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

    r8498915 r0cc4313  
    9696void clear_screen(void)
    9797{
    98         async_msg(con_phone, CONSOLE_CLEAR, 0);
    99         moveto(0,0);
     98        async_msg_0(con_phone, CONSOLE_CLEAR);
     99        moveto(0, 0);
    100100}
    101101
     
    108108
    109109        resume_normal();
    110         async_msg(con_phone, CONSOLE_CLEAR, 0);
     110        async_msg_0(con_phone, CONSOLE_CLEAR);
    111111        curscore = -1;
    112112        memset((char *)curscreen, 0, sizeof(curscreen));
     
    120120{
    121121        con_phone = get_fd_phone(1);
    122         async_msg(con_phone, CONSOLE_CURSOR_VISIBILITY, 0);
     122        async_msg_1(con_phone, CONSOLE_CURSOR_VISIBILITY, 0);
    123123        resume_normal();
    124124        scr_clear();
     
    132132static void fflush(void)
    133133{
    134         async_msg(con_phone, CONSOLE_FLUSH, 0);
     134        async_msg_0(con_phone, CONSOLE_FLUSH);
    135135}
    136136
     
    139139static int get_display_size(winsize_t *ws)
    140140{
    141         return async_req_2(con_phone, CONSOLE_GETSIZE, 0, 0, &ws->ws_row, &ws->ws_col);
     141        return async_req_0_2(con_phone, CONSOLE_GETSIZE, &ws->ws_row,
     142            &ws->ws_col);
    142143}
    143144
Note: See TracChangeset for help on using the changeset viewer.