summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEdoardo La Greca2025-08-01 17:04:23 +0200
committerEdoardo La Greca2025-08-01 17:04:23 +0200
commit4eb2a48b6566f65bc2576c7cb4b2e3db9c816651 (patch)
tree90b6a8f90fcc8c238ce7e5e4a7b048b4b1b2cf30
parent746d6241f2fa77da79255ba114af31199fa52425 (diff)
add arguments to auth, read, write
-rw-r--r--src/main/kotlin/NinePTranslator.kt6
1 files changed, 3 insertions, 3 deletions
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<UByte>): String?
/**
* Forget about an FID.