doc
csync_exclude.h File Reference

Go to the source code of this file.

Functions

void csync_exclude_destroy (CSYNC *ctx)
int csync_exclude_load (CSYNC *ctx, const char *fname)
int csync_excluded (CSYNC *ctx, const char *path)

Function Documentation

◆ csync_exclude_destroy()

void csync_exclude_destroy ( CSYNC * ctx)

Destroy the exclude list in memory.

Parameters
ctxThe synchronizer context.

◆ csync_exclude_load()

int csync_exclude_load ( CSYNC * ctx,
const char * fname )

Load exclude list.

Parameters
ctxThe context of the synchronizer.
fnameThe filename to load.
Returns
0 on success, -1 if an error occured with errno set.

◆ csync_excluded()

int csync_excluded ( CSYNC * ctx,
const char * path )

Check if the given path should be excluded.

This excludes also paths which can't be used without unix extensions.

Parameters
ctxThe synchronizer context.
pathThe patch to check.
Returns
1 if excluded, 0 if not.

References path.