csync: Keep the csync_file_stat_t instances created during discovery
authorJocelyn Turcotte <jturcotte@woboq.com>
Thu, 17 Aug 2017 17:06:58 +0000 (19:06 +0200)
committerRoeland Jago Douma <roeland@famdouma.nl>
Thu, 5 Oct 2017 20:01:33 +0000 (22:01 +0200)
commitec52807e29dc02f52ba9f9e576acf520c289ad82
treeba978a9a3ac40a1c9063ee06827475f91119b57c
parent7f88a3e1cd4b2c8581b7654247cfb18abb42fddc
csync: Keep the csync_file_stat_t instances created during discovery

Now that they use the same structure, avoid _csync_detect_update
having to recreate another instance and transfer everything manually.
Any instance created during discovery should now be used all the way
up to SyncEngine::treewalkFile.

This also makes sure that the path and types are properly set in that
object instead of having to pass everything as separate parameters.

This gets rid of csync_ftw_flags_e which was now converted from,
and to csync_ftw_type_e, already in the csync_file_stat_t.

Issue #1817
src/csync/csync_update.cpp
src/csync/csync_update.h
test/csync/csync_tests/check_csync_update.cpp