From 4eb2a48b6566f65bc2576c7cb4b2e3db9c816651 Mon Sep 17 00:00:00 2001 From: Edoardo La Greca Date: Fri, 1 Aug 2025 17:04:23 +0200 Subject: add arguments to auth, read, write --- src/main/kotlin/NinePTranslator.kt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/main/kotlin/NinePTranslator.kt b/src/main/kotlin/NinePTranslator.kt index 02c8ef4..ef76cc6 100644 --- a/src/main/kotlin/NinePTranslator.kt +++ b/src/main/kotlin/NinePTranslator.kt @@ -29,7 +29,7 @@ interface NinePTranslator { /** * Perform authentication. */ - fun auth() + fun auth(afid: UInt, uname: String, aname: String) /** * Abort a message. @@ -59,12 +59,12 @@ interface NinePTranslator { /** * Transfer data from file. */ - fun read(path: String) + fun read(fid: UInt, offset: ULong, count: UInt): String? /** * Transfer data to file. */ - fun write(path: String) + fun write(fid: UInt, offset: ULong, count: UInt, data: Iterable): String? /** * Forget about an FID. -- cgit v1.2.3