Separate from reds.c in a separate file. Do some fixes and add a test. Changes since v1: - added test and fixes. Frediano Ziglio (3): Separate code to manage statistic file Fix removing a node Add a base test for statistic file server/Makefile.am | 2 + server/reds-private.h | 12 +-- server/reds.c | 122 ++------------------------ server/stat-file.c | 198 ++++++++++++++++++++++++++++++++++++++++++ server/stat-file.h | 43 +++++++++ server/stat.h | 4 +- server/tests/Makefile.am | 1 + server/tests/stat-file-test.c | 94 ++++++++++++++++++++ 8 files changed, 349 insertions(+), 127 deletions(-) create mode 100644 server/stat-file.c create mode 100644 server/stat-file.h create mode 100644 server/tests/stat-file-test.c -- 2.7.4 _______________________________________________ Spice-devel mailing list Spice-devel@xxxxxxxxxxxxxxxxxxxxx https://lists.freedesktop.org/mailman/listinfo/spice-devel