Rough implementation of the state server. Now it is possible to request restore of a particular file
See state-server.h for more details on command syntax.
// <PREFIX_CMD> = /localhost/<user's-device-name>/"chronoshare"/"cmd"
// <PREFIX_CMD>/"restore"/"file"/<one-component-relative-file-name>/<version>/<file-hash>
<file-hash> component is used solely to disambiguate file version and
need not be specified in full (or specified at all, but the component
need to be present). The system will only check that specified file-hash
is a prefix of the real hash of the file
Change-Id: I7a4d15a04eb1a1c59a3412da46174441c61a45c0
diff --git a/src/db-helper.h b/src/db-helper.h
index 24f8c3f..c15621c 100644
--- a/src/db-helper.h
+++ b/src/db-helper.h
@@ -45,6 +45,9 @@
static void
hash_xFinal (sqlite3_context *context);
+ static void
+ is_prefix_xFun (sqlite3_context *context, int argc, sqlite3_value **argv);
+
protected:
sqlite3 *m_db;
};