File MUST look like this:
`signature`
`infoentry`
+ uint64_t for the last modified time
256 `indexentry`
`dbentry` 0
`dbentry` 1
*
*/
FILE* fp;
+
/**
* @~english
- * @brief Version of the database version.
+ * @brief Version of the database.
*
*/
uint16_t version;
+
+ /**
+ * @~english
+ * @brief Last modified time of the database.
+ *
+ */
+ uint64_t mtime;
};
/**
*/
int dataworks_database_get_version(struct dataworks_db* db);
+/**
+ * @~english
+ * @brief Get the last modified time of the database.
+ * @param db Database
+ * @return Last modified time of the database
+ *
+ */
+uint64_t dataworks_database_get_mtime(struct dataworks_db* db);
+
#ifdef __cplusplus
}
#endif