Add name of rename target to treewalk data structure.

This commit is contained in:
Klaas Freitag 2012-10-26 20:01:25 +02:00
parent 8bdf0694ca
commit 0db9427377
3 changed files with 11 additions and 6 deletions

View file

@ -578,6 +578,7 @@ static int _csync_treewalk_visitor(void *obj, void *data) {
trav.mode = cur->mode;
trav.type = cur->type;
trav.instruction = cur->instruction;
trav.rename_path = cur->destpath;
return (*visitor)(&trav, twctx->userdata);
}

View file

@ -115,6 +115,13 @@ enum csync_instructions_e {
CSYNC_INSTRUCTION_UPDATED = 0x00000400
};
enum csync_ftw_type_e {
CSYNC_FTW_TYPE_FILE,
CSYNC_FTW_TYPE_SLINK,
CSYNC_FTW_TYPE_DIR
};
/**
* CSync File Traversal structure.
*
@ -139,8 +146,10 @@ struct csync_tree_walk_file_s {
gid_t gid;
#endif
mode_t mode;
int type;
enum csync_ftw_type_e type;
enum csync_instructions_e instruction;
const char *rename_path;
};
typedef struct csync_tree_walk_file_s TREE_WALK_FILE;

View file

@ -142,11 +142,6 @@ struct csync_s {
int status;
};
enum csync_ftw_type_e {
CSYNC_FTW_TYPE_FILE,
CSYNC_FTW_TYPE_SLINK,
CSYNC_FTW_TYPE_DIR
};
#ifdef _MSC_VER
#pragma pack(1)