Add the size in the TREE_WALK_FILE structur

This commit is contained in:
Olivier Goffart 2013-08-14 16:22:55 +02:00
parent 79c1514a2b
commit 3a57eb1b54
2 changed files with 2 additions and 6 deletions

View file

@ -631,6 +631,7 @@ static int _csync_treewalk_visitor(void *obj, void *data) {
visitor = (c_rbtree_visit_func*)(twctx->user_visitor);
if (visitor != NULL) {
trav.path = cur->path;
trav.size = cur->size;
trav.modtime = cur->modtime;
trav.uid = cur->uid;
trav.gid = cur->gid;

View file

@ -174,16 +174,11 @@ typedef struct csync_progress_s CSYNC_PROGRESS;
*
* This structure is passed to the visitor function for every file
* which is seen.
* Note: The file size is missing here because type int64_t is depending
* on the large file support in your build. Make sure to check
* that cmake and the callback app are compiled with the same
* setting for it, such as:
* -D_LARGEFILE64_SOURCE or -D_LARGEFILE_SOURCE
*
*/
struct csync_tree_walk_file_s {
const char *path;
/* off_t size; */
int64_t size;
time_t modtime;
#ifdef _WIN32
uint32_t uid;