Use a C++ contructor and destructor for CSYNC
authorJocelyn Turcotte <jturcotte@woboq.com>
Mon, 4 Sep 2017 17:06:13 +0000 (19:06 +0200)
committerRoeland Jago Douma <roeland@famdouma.nl>
Thu, 5 Oct 2017 20:01:04 +0000 (22:01 +0200)
commite0fa5723eba894af8f812cab9aacf9a8048318df
tree2443fa1587bbd5dd5129788a5259cc2183fceab3
parent4947dc22ab71e49980d2a78f7957ef95980a0edb
Use a C++ contructor and destructor for CSYNC

Merge csync_create and csync_init into the constructor and
replace csync_destroy with the destructor.

Also use a QByteArray for csync_s::root_perms and flatten
csync_rename_s as a rename sub-struct of csync_s since it
can now handle C++ types.
20 files changed:
src/csync/csync.cpp
src/csync/csync.h
src/csync/csync_private.h
src/csync/csync_rename.cpp
src/csync/csync_rename.h
src/libsync/discoveryphase.cpp
src/libsync/syncengine.cpp
src/libsync/syncengine.h
test/csync/CMakeLists.txt
test/csync/csync_tests/check_csync_commit.cpp [deleted file]
test/csync/csync_tests/check_csync_create.cpp [deleted file]
test/csync/csync_tests/check_csync_exclude.cpp
test/csync/csync_tests/check_csync_init.cpp [deleted file]
test/csync/csync_tests/check_csync_log.cpp
test/csync/csync_tests/check_csync_statedb_load.cpp
test/csync/csync_tests/check_csync_statedb_query.cpp
test/csync/csync_tests/check_csync_update.cpp
test/csync/vio_tests/check_vio.cpp
test/csync/vio_tests/check_vio_ext.cpp
test/testcsyncsqlite.cpp