libcortex
Event loop library following a "batteries included" approach
Loading...
Searching...
No Matches
inotify.h
1#ifndef _CRTX_INOTIFY_H
2#define _CRTX_INOTIFY_H
3
4#ifdef __cplusplus
5extern "C" {
6#endif
7
8/*
9 * Mario Kicherer (dev@kicherer.org) 2016
10 *
11 */
12
13#include <sys/inotify.h>
14
16 struct crtx_listener_base base;
17
18 int wd;
19 uint32_t mask;
20 const char *path;
21};
22
23uint32_t crtx_inotify_string2mask(char *mask_string);
24int crtx_inotify_mask2string(uint32_t mask, char *string, size_t *string_size);
25int crtx_inotify_to_dict(struct inotify_event *iev, struct crtx_dict **dict);
26
27struct crtx_listener_base *crtx_setup_inotify_listener(void *options);
28CRTX_DECLARE_ALLOC_FUNCTION(inotify)
29
30void crtx_inotify_init();
31void crtx_inotify_finish();
32
33#ifdef __cplusplus
34}
35#endif
36
37#endif
Definition dict.h:61
Definition inotify.h:15
base structure of a listener
Definition core.h:186