inotify

Linux inotify bindings
https://github.com/tong/hxinotify

To install, run:

haxelib install inotify 2.1.1 

See using Haxelib in Haxelib documentation for more information.

README.md

hxinotify

Haxe-CppHashlinkNeko bindings to inotify, a linux kernel subsystem that acts to extend filesystems to notice changes and report those changes to applications.

Inotify can be used to automatically update directory views, reload configuration files, log changes, backup, synchronize, and upload.

Inotify can be used for: Detecting changes in files and directories (e.g. configuration files, mail directories) Guarding critical files and their eventual automatic recovery File usage statistics and similar purposes Automatic upload handling Monitoring installations outside of packaging systems Automatic on-change backup and/or versioning Reflecting changes to search databases …

See: https://man7.org/linux/man-pages/man7/inotify.7.html

Actions Status Haxelib Version

Build

The haxelib package includes prebuilt ndlls for Linux64 (x86_64) and RPi (64-bit Raspberry Pi OS, aarch64). For other systems, build the native library from the sources shipped in the package (cd $(haxelib libpath inotify)).

  • Cpp/Neko (inotify.ndll)
haxelib run hxcpp build.xml

On a Raspberry Pi this writes ndll/RPi/inotify.ndll, which hxcpp loads on every Pi. Rebuild it on 32-bit Raspberry Pi OS (armv7l), since the prebuilt one is 64-bit.

  • Hashlink (inotify.hdll)
cc -o inotify.hdll -shared -std=c11 -O3 -Wall -m64 -fPIC hlinotify.c -lhl

Omit -m64 on ARM.

Test

test/test.sh

Usage

See example.

Contributors
tong
Version
2.1.1
Published
5 weeks ago
License
Public

All libraries are free

Every month, more than a thousand developers use Haxelib to find, share, and reuse code — and assemble it in powerful new ways. Enjoy Haxe; It is great!

Explore Haxe

Haxe Manual

Haxe Code Cookbook

Haxe API documentation

You can try Haxe in the browser! try.haxe.org

Join us on GitHub!

Haxe is being developed on GitHub. Feel free to contribute or report issues to our projects.

Haxe on GitHub

⌂