napperley
09/08/2019, 9:04 AMsvyatoslav.scherbina
09/09/2019, 7:55 AMnapperley
09/09/2019, 9:00 AMnapperley
09/09/2019, 9:04 AMpublic final class inotify_event public constructor(rawPtr: kotlinx.cinterop.NativePtr /* = kotlin.native.internal.NativePtr */) : kotlinx.cinterop.CStructVar {
public companion object : kotlinx.cinterop.CStructVar.Type {
}
}
With this C example the inotify_event Struct has members which are missing from the mapping (mask, name etc): https://www.thegeekstuff.com/2010/04/inotify-c-program-example/olonho
09/09/2019, 9:43 AMclass inotify_event(rawPtr: NativePtr) : CStructVar(rawPtr) {
companion object : Type(16, 4)
var wd: __s32
get() = memberAt<__s32Var>(0).value
set(value) { memberAt<__s32Var>(0).value = value }
var mask: __u32
get() = memberAt<__u32Var>(4).value
set(value) { memberAt<__u32Var>(4).value = value }
var cookie: __u32
get() = memberAt<__u32Var>(8).value
set(value) { memberAt<__u32Var>(8).value = value }
var len: __u32
get() = memberAt<__u32Var>(12).value
set(value) { memberAt<__u32Var>(12).value = value }
val name: CArrayPointer<ByteVar>
get() = arrayMemberAt(16)
}
napperley
09/09/2019, 9:56 PMnapperley
09/09/2019, 10:09 PMolonho
09/10/2019, 4:59 AMplatform.linux
.msink
09/10/2019, 7:48 AMclass inotify_event
from platform.linux
package shows fields on android*
targets, and does not on linux*
targets.napperley
09/10/2019, 7:55 AMnapperley
09/10/2019, 8:06 AMmsink
09/10/2019, 8:33 AMcinterop
, probably related to __flexarr
type of last field. So better just fix this bug.msink
09/10/2019, 9:36 AM