doc
Typedefs | Enumerations | Functions

csync_exclude.h File Reference

Go to the source code of this file.

Typedefs

typedef enum csync_exclude_type_e CSYNC_EXCLUDE_TYPE

Enumerations

enum  csync_exclude_type_e {
  CSYNC_NOT_EXCLUDED = 0, CSYNC_FILE_SILENTLY_EXCLUDED, CSYNC_FILE_EXCLUDE_AND_REMOVE, CSYNC_FILE_EXCLUDE_LIST,
  CSYNC_FILE_EXCLUDE_INVALID_CHAR
}

Functions

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

Typedef Documentation

Definition at line 31 of file csync_exclude.h.


Enumeration Type Documentation

Enumerator:
CSYNC_NOT_EXCLUDED 
CSYNC_FILE_SILENTLY_EXCLUDED 
CSYNC_FILE_EXCLUDE_AND_REMOVE 
CSYNC_FILE_EXCLUDE_LIST 
CSYNC_FILE_EXCLUDE_INVALID_CHAR 

Definition at line 24 of file csync_exclude.h.


Function Documentation

void csync_exclude_clear ( CSYNC ctx)

Clear the exclude list in memory.

Parameters:
ctxThe synchronizer context.
void csync_exclude_destroy ( CSYNC ctx)

Destroy the exclude list in memory.

Parameters:
ctxThe synchronizer context.
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_EXCLUDE_TYPE csync_excluded ( CSYNC ctx,
const char *  path,
int  filetype 
)

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:
2 if excluded and needs cleanup, 1 if excluded, 0 if not.