diff options
author | Edoardo La Greca | 2025-08-29 19:28:27 +0200 |
---|---|---|
committer | Edoardo La Greca | 2025-08-29 19:28:27 +0200 |
commit | b32a4f6511171ebfc64811471c7a2fa61bf17961 (patch) | |
tree | f2d0e31ef584fbbd9ff921adcbab3cfc01deddfe /lib/src/main/kotlin/ProtocolInitData.kt | |
parent | 3ab30c0fc3a7d6744908812284b168b57729b4ce (diff) |
delete NinePMacros.kt and replace it with ConnectionOSLike and ProtocolInitData
Diffstat (limited to 'lib/src/main/kotlin/ProtocolInitData.kt')
-rw-r--r-- | lib/src/main/kotlin/ProtocolInitData.kt | 19 |
1 files changed, 19 insertions, 0 deletions
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 |