diff options
Diffstat (limited to 'Source/Library/Userland/Binding')
-rw-r--r-- | Source/Library/Userland/Binding/Process.class.h | 6 | ||||
-rw-r--r-- | Source/Library/Userland/Binding/VirtualTerminal.class.h | 4 |
2 files changed, 8 insertions, 2 deletions
diff --git a/Source/Library/Userland/Binding/Process.class.h b/Source/Library/Userland/Binding/Process.class.h index a3fc569..948d670 100644 --- a/Source/Library/Userland/Binding/Process.class.h +++ b/Source/Library/Userland/Binding/Process.class.h @@ -57,6 +57,12 @@ class Process : public RessourceCaller { void setOutVT(VirtualTerminal vt) { doCall(PRIF_SETOUTVT, vt.resId()); } + bool authenticatePW(String user, String pw) { + return (doCall(PRIF_AUTHPW, (u32int)&user, (u32int)&pw) == 1); + } + bool authenticateNoPW(String user) { + return (doCall(PRIF_AUTHNOPW, (u32int)&user) == 1); + } }; #endif diff --git a/Source/Library/Userland/Binding/VirtualTerminal.class.h b/Source/Library/Userland/Binding/VirtualTerminal.class.h index 1bfce85..5fd9733 100644 --- a/Source/Library/Userland/Binding/VirtualTerminal.class.h +++ b/Source/Library/Userland/Binding/VirtualTerminal.class.h @@ -29,8 +29,8 @@ class VirtualTerminal : public RessourceCaller { void write(String s) { doCall(VTIF_WRITE, (u32int)&s); } - String readLine() { - return String::unserialize(doCall(VTIF_READLINE)); + String readLine(bool show = true) { + return String::unserialize(doCall(VTIF_READLINE, (show ? 1 : 0))); } void setColor(u8int fg, u8int bg = 0xFF) { doCall(VTIF_SETCOLOR, (fg << 8) | bg); |