Rev 3897 | Rev 4356 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 3897 | Rev 3905 | ||
---|---|---|---|
Line 621... | Line 621... | ||
621 | val_type_t resp_def[OPER_MAX_ARGS] = { |
621 | val_type_t resp_def[OPER_MAX_ARGS] = { |
622 | V_INTEGER, |
622 | V_INTEGER, |
623 | V_INTEGER, |
623 | V_INTEGER, |
624 | V_INTEGER, |
624 | V_INTEGER, |
625 | V_INTEGER, |
625 | V_INTEGER, |
626 | V_INTEGER |
626 | V_INTEGER |
627 | }; |
627 | }; |
628 | 628 | ||
629 | next_thread_id = 1; |
629 | next_thread_id = 1; |
630 | paused = 0; |
630 | paused = 0; |
631 | 631 | ||
Line 656... | Line 656... | ||
656 | proto_add_oper(p, VFS_RENAME, o); |
656 | proto_add_oper(p, VFS_RENAME, o); |
657 | 657 | ||
658 | proto_register(SERVICE_VFS, p); |
658 | proto_register(SERVICE_VFS, p); |
659 | 659 | ||
660 | p = proto_new("console"); |
660 | p = proto_new("console"); |
- | 661 | resp_def[0] = V_INTEGER; resp_def[1] = V_INTEGER; |
|
661 | resp_def[0] = V_CHAR; |
662 | resp_def[2] = V_INTEGER; resp_def[3] = V_CHAR; |
662 | o = oper_new("getchar", 0, arg_def, V_INTEGER, 2, resp_def); |
663 | o = oper_new("getkey", 0, arg_def, V_ERRNO, 4, resp_def); |
663 | proto_add_oper(p, CONSOLE_GETCHAR, o); |
664 | proto_add_oper(p, CONSOLE_GETKEY, o); |
664 | 665 | ||
665 | arg_def[0] = V_CHAR; |
666 | arg_def[0] = V_CHAR; |
666 | o = oper_new("putchar", 1, arg_def, V_VOID, 0, resp_def); |
667 | o = oper_new("putchar", 1, arg_def, V_VOID, 0, resp_def); |
667 | proto_add_oper(p, CONSOLE_PUTCHAR, o); |
668 | proto_add_oper(p, CONSOLE_PUTCHAR, o); |
668 | o = oper_new("clear", 0, arg_def, V_VOID, 0, resp_def); |
669 | o = oper_new("clear", 0, arg_def, V_VOID, 0, resp_def); |