2023-10-10 18:37:30 +00:00
|
|
|
|
|
|
|
import
|
|
|
|
preserves
|
|
|
|
|
|
|
|
type
|
|
|
|
InotifyMessage* {.preservesRecord: "inotify".} = object
|
|
|
|
`path`*: string
|
|
|
|
`event`*: Symbol
|
|
|
|
`cookie`*: BiggestInt
|
|
|
|
`name`*: string
|
|
|
|
|
|
|
|
proc `$`*(x: InotifyMessage): string =
|
2023-12-25 23:11:54 +00:00
|
|
|
`$`(toPreserves(x))
|
2023-10-10 18:37:30 +00:00
|
|
|
|
|
|
|
proc encode*(x: InotifyMessage): seq[byte] =
|
2023-12-25 23:11:54 +00:00
|
|
|
encode(toPreserves(x))
|