clsync
Data Structures | Macros | Enumerations | Functions
mon_inotify.c File Reference
#include "common.h"
#include "error.h"
#include "sync.h"
#include "indexes.h"
#include "privileged.h"
#include "mon_inotify.h"
Include dependency graph for mon_inotify.c:

Go to the source code of this file.

Data Structures

struct  recognize_event_return
 

Macros

#define INOTIFY_HANDLE_CONTINUE
 

Enumerations

enum  event_bits {
  UEM_DIR = 0x01, UEM_CREATED = 0x02, UEM_DELETED = 0x04, UEM_DIR = 0x01,
  UEM_CREATED = 0x02, UEM_DELETED = 0x04
}
 

Functions

static void recognize_event (struct recognize_event_return *r, uint32_t event)
 
int inotify_add_watch_dir (ctx_t *ctx_p, indexes_t *indexes_p, const char *const accpath)
 
int inotify_wait (ctx_t *ctx_p, struct indexes *indexes_p, struct timeval *tv_p)
 
int inotify_handle (ctx_t *ctx_p, indexes_t *indexes_p)
 
int inotify_deinit (ctx_t *ctx_p)
 

Macro Definition Documentation

◆ INOTIFY_HANDLE_CONTINUE

#define INOTIFY_HANDLE_CONTINUE
Value:
{\
ptr += sizeof(struct inotify_event) + event->len;\
count++;\
continue;\
}

Definition at line 70 of file mon_inotify.c.

Enumeration Type Documentation

◆ event_bits

enum event_bits
Enumerator
UEM_DIR 
UEM_CREATED 
UEM_DELETED 
UEM_DIR 
UEM_CREATED 
UEM_DELETED 

Definition at line 27 of file mon_inotify.c.

Function Documentation

◆ inotify_add_watch_dir()

int inotify_add_watch_dir ( ctx_t ctx_p,
indexes_t indexes_p,
const char *const  accpath 
)

Definition at line 52 of file mon_inotify.c.

Here is the caller graph for this function:

◆ inotify_deinit()

int inotify_deinit ( ctx_t ctx_p)

Definition at line 180 of file mon_inotify.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ inotify_handle()

int inotify_handle ( ctx_t ctx_p,
indexes_t indexes_p 
)

Definition at line 76 of file mon_inotify.c.

Here is the caller graph for this function:

◆ inotify_wait()

int inotify_wait ( ctx_t ctx_p,
struct indexes indexes_p,
struct timeval *  tv_p 
)

Definition at line 59 of file mon_inotify.c.

Here is the caller graph for this function:

◆ recognize_event()

static void recognize_event ( struct recognize_event_return r,
uint32_t  event 
)
inlinestatic

Definition at line 38 of file mon_inotify.c.

event
Definition: mon_gio.c:41