#include "common.h"
#include "error.h"
#include "sync.h"
#include "indexes.h"
#include "privileged.h"
#include <pthread.h>
#include <gio/gio.h>
#include "mon_gio.h"
Go to the source code of this file.
|
| static void | event_free (event_t *ev) |
| |
| static int | event_push (char *path, gulong handle_id, GFileMonitorEvent event, eventobjtype_t objtype_event, eventobjtype_t objtype_old, eventobjtype_t objtype_new) |
| |
| static event_t * | event_pop () |
| |
| static void | dir_gotevent (GFileMonitor *filemon, GFile *file, GFile *file_other, GFileMonitorEvent event, gpointer arg) |
| |
| int | gio_add_watch_dir (ctx_t *ctx_p, indexes_t *indexes_p, const char *const accpath) |
| |
| void * | g_iteration_stop (void *_timeout_p) |
| |
| static int | gio_wait_now (ctx_t *ctx_p, struct indexes *indexes_p, struct timeval *tv_p) |
| |
| int | gio_wait (ctx_t *ctx_p, struct indexes *indexes_p, struct timeval *tv_p) |
| |
| int | gio_handle (ctx_t *ctx_p, indexes_t *indexes_p) |
| |
| void | free_filemondat (void *_fmdat) |
| |
| int | gio_init (ctx_t *ctx_p) |
| |
| int | gio_deinit (ctx_t *ctx_p) |
| |
◆ INFINITETIME
| #define INFINITETIME (3600 * 24 * 365 * 10) /* ~10 years */ |
◆ event_t
◆ filemondata_t
◆ dir_gotevent()
| static void dir_gotevent |
( |
GFileMonitor * | filemon, |
|
|
GFile * | file, |
|
|
GFile * | file_other, |
|
|
GFileMonitorEvent | event, |
|
|
gpointer | arg ) |
|
static |
◆ event_free()
| static void event_free |
( |
event_t * | ev | ) |
|
|
inlinestatic |
◆ event_pop()
◆ event_push()
◆ free_filemondat()
| void free_filemondat |
( |
void * | _fmdat | ) |
|
◆ g_iteration_stop()
| void * g_iteration_stop |
( |
void * | _timeout_p | ) |
|
◆ gio_add_watch_dir()
| int gio_add_watch_dir |
( |
ctx_t * | ctx_p, |
|
|
indexes_t * | indexes_p, |
|
|
const char *const | accpath ) |
◆ gio_deinit()
| int gio_deinit |
( |
ctx_t * | ctx_p | ) |
|
◆ gio_handle()
◆ gio_init()
| int gio_init |
( |
ctx_t * | ctx_p | ) |
|
◆ gio_wait()
| int gio_wait |
( |
ctx_t * | ctx_p, |
|
|
struct indexes * | indexes_p, |
|
|
struct timeval * | tv_p ) |
◆ gio_wait_now()
| static int gio_wait_now |
( |
ctx_t * | ctx_p, |
|
|
struct indexes * | indexes_p, |
|
|
struct timeval * | tv_p ) |
|
inlinestatic |
◆ cancel_g_iteration_stop
| int cancel_g_iteration_stop |
◆ gio_cond_gotevent
| pthread_cond_t gio_cond_gotevent = PTHREAD_COND_INITIALIZER |
◆ gio_loop
| GMainLoop* gio_loop = NULL |
◆ gio_mutex_prefetcher
| pthread_mutex_t gio_mutex_prefetcher = PTHREAD_MUTEX_INITIALIZER |
◆ mondirs_ht
◆ queue
◆ queue_alloc
◆ queue_length
◆ queue_lock
| pthread_spinlock_t queue_lock |
◆ thread_g_iteration_stop
| pthread_t thread_g_iteration_stop |