clsync
Loading...
Searching...
No Matches
sync.h File Reference
#include <glib.h>
Include dependency graph for sync.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  thread_callbackfunct_arg
 
struct  threadinfo
 
struct  threadsinfo
 

Typedefs

typedef struct thread_callbackfunct_arg thread_callbackfunct_arg_t
 
typedef int(* thread_callbackfunct_t) (ctx_t *ctx_p, thread_callbackfunct_arg_t *arg_p)
 
typedef struct threadinfo threadinfo_t
 
typedef struct threadsinfo threadsinfo_t
 

Functions

int sync_run (struct ctx *ctx)
 
int sync_dump (struct ctx *ctx, const char *const dest_dir)
 
int sync_term (int exitcode)
 
int threads_foreach (int(*funct)(threadinfo_t *, void *), state_t state, void *arg)
 
threadsinfo_tthread_info ()
 
time_t thread_nextexpiretime ()
 
int sync_prequeue_loadmark (int fsmon_d, struct ctx *ctx_p, struct indexes *indexes_p, const char *path_full, const char *path_rel, stat64_t *lst_p, eventobjtype_t objtype_old, eventobjtype_t objtype_new, uint32_t event_mask, int event_wd, mode_t st_mode, off_t st_size, char **path_buf_p, size_t *path_buf_len_p, struct eventinfo *evinfo)
 
int sync_prequeue_unload (struct ctx *ctx_p, struct indexes *indexes_p)
 
const char * sync_parameter_get (const char *variable_name, void *_dosync_arg_p)
 

Variables

pthread_t pthread_sighandler
 

Typedef Documentation

◆ thread_callbackfunct_arg_t

Definition at line 27 of file sync.h.

◆ thread_callbackfunct_t

typedef int(* thread_callbackfunct_t) (ctx_t *ctx_p, thread_callbackfunct_arg_t *arg_p)

Definition at line 29 of file sync.h.

◆ threadinfo_t

typedef struct threadinfo threadinfo_t

Definition at line 53 of file sync.h.

◆ threadsinfo_t

typedef struct threadsinfo threadsinfo_t

Definition at line 65 of file sync.h.

Function Documentation

◆ sync_dump()

int sync_dump ( struct ctx * ctx,
const char *const dest_dir )
extern

Definition at line 3773 of file sync.c.

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

◆ sync_parameter_get()

const char * sync_parameter_get ( const char * variable_name,
void * _dosync_arg_p )
extern

Definition at line 1548 of file sync.c.

Here is the caller graph for this function:

◆ sync_prequeue_loadmark()

int sync_prequeue_loadmark ( int fsmon_d,
struct ctx * ctx_p,
struct indexes * indexes_p,
const char * path_full,
const char * path_rel,
stat64_t * lst_p,
eventobjtype_t objtype_old,
eventobjtype_t objtype_new,
uint32_t event_mask,
int event_wd,
mode_t st_mode,
off_t st_size,
char ** path_buf_p,
size_t * path_buf_len_p,
struct eventinfo * evinfo )
extern

Definition at line 2142 of file sync.c.

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

◆ sync_prequeue_unload()

int sync_prequeue_unload ( struct ctx * ctx_p,
struct indexes * indexes_p )
extern

Definition at line 2564 of file sync.c.

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

◆ sync_run()

int sync_run ( struct ctx * ctx)
extern

Definition at line 3998 of file sync.c.

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

◆ sync_term()

int sync_term ( int exitcode)
extern

Definition at line 3991 of file sync.c.

Here is the caller graph for this function:

◆ thread_info()

threadsinfo_t * thread_info ( )
extern

Definition at line 190 of file sync.c.

Here is the caller graph for this function:

◆ thread_nextexpiretime()

time_t thread_nextexpiretime ( )
extern
Here is the caller graph for this function:

◆ threads_foreach()

int threads_foreach ( int(* funct )(threadinfo_t *, void *),
state_t state,
void * arg )
extern
Here is the caller graph for this function:

Variable Documentation

◆ pthread_sighandler

pthread_t pthread_sighandler
extern

Definition at line 59 of file sync.c.