Files
xtool-mirror/Sources/CXKit/include/inotify_shim.h
Kabir Oberai 3bebb76013 wip: hot reloading
Discriminate with module name

Fully working

Changes

Fix linux

changes

allow customizing xload path

Lint
2026-05-30 03:10:17 -04:00

22 lines
368 B
C

#ifndef CINOTIFY_SHIMS_H
#define CINOTIFY_SHIMS_H
#ifdef __linux__
#include <stdio.h>
#include <stdint.h>
#include <sys/inotify.h>
static inline const char *cin_event_name(const struct inotify_event *event) {
if (event->len)
return event->name;
else
return NULL;
}
static const uint32_t cin_all_events = IN_ALL_EVENTS;
#endif
#endif /* CINOTIFY_SHIMS_H */