Rev 3767 | Rev 3897 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 3767 | Rev 3850 | ||
---|---|---|---|
Line 640... | Line 640... | ||
640 | proto_add_oper(p, VFS_TRUNCATE, o); |
640 | proto_add_oper(p, VFS_TRUNCATE, o); |
641 | o = oper_new("mount", 2, arg_def, V_ERRNO, 0, resp_def); |
641 | o = oper_new("mount", 2, arg_def, V_ERRNO, 0, resp_def); |
642 | proto_add_oper(p, VFS_MOUNT, o); |
642 | proto_add_oper(p, VFS_MOUNT, o); |
643 | /* o = oper_new("unmount", 0, arg_def); |
643 | /* o = oper_new("unmount", 0, arg_def); |
644 | proto_add_oper(p, VFS_UNMOUNT, o);*/ |
644 | proto_add_oper(p, VFS_UNMOUNT, o);*/ |
- | 645 | o = oper_new("open", 2, arg_def, V_INT_ERRNO, 0, resp_def); |
|
- | 646 | proto_add_oper(p, VFS_OPEN, o); |
|
- | 647 | o = oper_new("close", 1, arg_def, V_ERRNO, 0, resp_def); |
|
- | 648 | proto_add_oper(p, VFS_CLOSE, o); |
|
- | 649 | o = oper_new("seek", 3, arg_def, V_ERRNO, 0, resp_def); |
|
- | 650 | proto_add_oper(p, VFS_SEEK, o); |
|
- | 651 | o = oper_new("mkdir", 1, arg_def, V_ERRNO, 0, resp_def); |
|
- | 652 | proto_add_oper(p, VFS_MKDIR, o); |
|
- | 653 | o = oper_new("unlink", 0, arg_def, V_ERRNO, 0, resp_def); |
|
- | 654 | proto_add_oper(p, VFS_UNLINK, o); |
|
- | 655 | o = oper_new("rename", 0, arg_def, V_ERRNO, 0, resp_def); |
|
- | 656 | proto_add_oper(p, VFS_RENAME, o); |
|
645 | 657 | ||
646 | proto_register(SERVICE_VFS, p); |
658 | proto_register(SERVICE_VFS, p); |
647 | 659 | ||
648 | p = proto_new("console"); |
660 | p = proto_new("console"); |
649 | resp_def[0] = V_CHAR; |
661 | resp_def[0] = V_CHAR; |
Line 665... | Line 677... | ||
665 | proto_add_oper(p, CONSOLE_GETSIZE, o); |
677 | proto_add_oper(p, CONSOLE_GETSIZE, o); |
666 | o = oper_new("flush", 0, arg_def, V_VOID, 0, resp_def); |
678 | o = oper_new("flush", 0, arg_def, V_VOID, 0, resp_def); |
667 | proto_add_oper(p, CONSOLE_FLUSH, o); |
679 | proto_add_oper(p, CONSOLE_FLUSH, o); |
668 | 680 | ||
669 | arg_def[0] = V_INTEGER; |
681 | arg_def[0] = V_INTEGER; |
670 | o = oper_new("set_style", 1, arg_def, V_INTEGER, 0, resp_def); |
682 | o = oper_new("set_style", 1, arg_def, V_VOID, 0, resp_def); |
671 | proto_add_oper(p, CONSOLE_SET_STYLE, o); |
683 | proto_add_oper(p, CONSOLE_SET_STYLE, o); |
672 | arg_def[0] = V_INTEGER; arg_def[1] = V_INTEGER; arg_def[2] = V_INTEGER; |
684 | arg_def[0] = V_INTEGER; arg_def[1] = V_INTEGER; arg_def[2] = V_INTEGER; |
673 | o = oper_new("set_color", 3, arg_def, V_INTEGER, 0, resp_def); |
685 | o = oper_new("set_color", 3, arg_def, V_VOID, 0, resp_def); |
674 | proto_add_oper(p, CONSOLE_SET_COLOR, o); |
686 | proto_add_oper(p, CONSOLE_SET_COLOR, o); |
675 | arg_def[0] = V_INTEGER; arg_def[1] = V_INTEGER; |
687 | arg_def[0] = V_INTEGER; arg_def[1] = V_INTEGER; |
676 | o = oper_new("set_rgb_color", 2, arg_def, V_INTEGER, 0, resp_def); |
688 | o = oper_new("set_rgb_color", 2, arg_def, V_VOID, 0, resp_def); |
677 | proto_add_oper(p, CONSOLE_SET_RGB_COLOR, o); |
689 | proto_add_oper(p, CONSOLE_SET_RGB_COLOR, o); |
678 | o = oper_new("cursor_visibility", 1, arg_def, V_VOID, 0, resp_def); |
690 | o = oper_new("cursor_visibility", 1, arg_def, V_VOID, 0, resp_def); |
679 | proto_add_oper(p, CONSOLE_CURSOR_VISIBILITY, o); |
691 | proto_add_oper(p, CONSOLE_CURSOR_VISIBILITY, o); |
680 | 692 | ||
681 | proto_console = p; |
693 | proto_console = p; |