Subversion Repositories HelenOS

Rev

Rev 4153 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 4153 Rev 4581
Line 39... Line 39...
39
#include <fibril.h>
39
#include <fibril.h>
40
#include <errno.h>
40
#include <errno.h>
41
#include <udebug.h>
41
#include <udebug.h>
42
#include <async.h>
42
#include <async.h>
43
#include <task.h>
43
#include <task.h>
-
 
44
#include <mem.h>
-
 
45
#include <string.h>
44
#include <loader/loader.h>
46
#include <loader/loader.h>
45
 
47
 
46
#include <libc.h>
48
#include <libc.h>
47
 
49
 
48
// Temporary: service and method names
50
// Temporary: service and method names
Line 659... Line 661...
659
 
661
 
660
    p = proto_new("console");
662
    p = proto_new("console");
661
    resp_def[0] = V_INTEGER; resp_def[1] = V_INTEGER;
663
    resp_def[0] = V_INTEGER; resp_def[1] = V_INTEGER;
662
    resp_def[2] = V_INTEGER; resp_def[3] = V_CHAR;
664
    resp_def[2] = V_INTEGER; resp_def[3] = V_CHAR;
663
    o = oper_new("getkey", 0, arg_def, V_ERRNO, 4, resp_def);
665
    o = oper_new("getkey", 0, arg_def, V_ERRNO, 4, resp_def);
664
    proto_add_oper(p, CONSOLE_GETKEY, o);
-
 
665
 
666
 
666
    arg_def[0] = V_CHAR;
667
    arg_def[0] = V_CHAR;
667
    o = oper_new("putchar", 1, arg_def, V_VOID, 0, resp_def);
-
 
668
    proto_add_oper(p, CONSOLE_PUTCHAR, o);
-
 
669
    o = oper_new("clear", 0, arg_def, V_VOID, 0, resp_def);
668
    o = oper_new("clear", 0, arg_def, V_VOID, 0, resp_def);
670
    proto_add_oper(p, CONSOLE_CLEAR, o);
669
    proto_add_oper(p, CONSOLE_CLEAR, o);
671
 
670
 
672
    arg_def[0] = V_INTEGER; arg_def[1] = V_INTEGER;
671
    arg_def[0] = V_INTEGER; arg_def[1] = V_INTEGER;
673
    o = oper_new("goto", 2, arg_def, V_VOID, 0, resp_def);
672
    o = oper_new("goto", 2, arg_def, V_VOID, 0, resp_def);
674
    proto_add_oper(p, CONSOLE_GOTO, o);
673
    proto_add_oper(p, CONSOLE_GOTO, o);
675
 
674
 
676
    resp_def[0] = V_INTEGER; resp_def[1] = V_INTEGER;
675
    resp_def[0] = V_INTEGER; resp_def[1] = V_INTEGER;
677
    o = oper_new("getsize", 0, arg_def, V_INTEGER, 2, resp_def);
676
    o = oper_new("getsize", 0, arg_def, V_INTEGER, 2, resp_def);
678
    proto_add_oper(p, CONSOLE_GETSIZE, o);
677
    proto_add_oper(p, CONSOLE_GET_SIZE, o);
679
    o = oper_new("flush", 0, arg_def, V_VOID, 0, resp_def);
-
 
680
    proto_add_oper(p, CONSOLE_FLUSH, o);
-
 
681
 
678
 
682
    arg_def[0] = V_INTEGER;
679
    arg_def[0] = V_INTEGER;
683
    o = oper_new("set_style", 1, arg_def, V_VOID, 0, resp_def);
680
    o = oper_new("set_style", 1, arg_def, V_VOID, 0, resp_def);
684
    proto_add_oper(p, CONSOLE_SET_STYLE, o);
681
    proto_add_oper(p, CONSOLE_SET_STYLE, o);
685
    arg_def[0] = V_INTEGER; arg_def[1] = V_INTEGER; arg_def[2] = V_INTEGER;
682
    arg_def[0] = V_INTEGER; arg_def[1] = V_INTEGER; arg_def[2] = V_INTEGER;