From b32a4f6511171ebfc64811471c7a2fa61bf17961 Mon Sep 17 00:00:00 2001 From: Edoardo La Greca Date: Fri, 29 Aug 2025 19:28:27 +0200 Subject: delete NinePMacros.kt and replace it with ConnectionOSLike and ProtocolInitData --- lib/src/main/kotlin/ProtocolInitData.kt | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 lib/src/main/kotlin/ProtocolInitData.kt (limited to 'lib/src/main/kotlin/ProtocolInitData.kt') diff --git a/lib/src/main/kotlin/ProtocolInitData.kt b/lib/src/main/kotlin/ProtocolInitData.kt new file mode 100644 index 0000000..351b289 --- /dev/null +++ b/lib/src/main/kotlin/ProtocolInitData.kt @@ -0,0 +1,19 @@ +/** + * Data for initializing the 9P protocol using [ProtocolTranslator.version], [ProtocolTranslator.auth], and + * [ProtocolTranslator.attach]. + * + * @param msize A value for the `msize` field in the `version` message. + * @param version A value for the `version` field in the `version` message. + * @param uname A value for the `uname` field in the `auth` and `attach` messages. + * @param aname A value for the `aname` field in the `auth` and `attach` messages. + * @param rootFid A value for the root `fid` in the `attach` message. + * @param auth An [Authenticator] implementation used for authenticating the user. + */ +data class ProtocolInitData( + val msize: UInt, + val version: String, + val uname: String, + val aname: String, + val rootFid: UInt, + val auth: Authenticator +) \ No newline at end of file -- cgit v1.2.3