Miscellaneous fixes.
[bluesky.git] / bluesky / bluesky.h
index 1d0b0b1..7419cd4 100644 (file)
@@ -18,6 +18,8 @@ extern "C" {
 
 void bluesky_init(void);
 
+gchar *bluesky_lowercase(const gchar *s);
+
 /* Reference-counted blocks of memory, used for passing data in and out of
  * storage backends and in other places. */
 typedef struct {
@@ -128,7 +130,12 @@ typedef struct {
      * that we don't exhaust the identifier space. */
     uint64_t inum;
 
-    uint64_t change_count;      /* Incremented each with each change made */
+    /* change_count is increased with every operation which modifies the inode,
+     * and can be used to determine if cached data is still valid.
+     * change_commit is the value of change_count when the inode was last
+     * committed to stable storage. */
+    uint64_t change_count, change_commit;
+
     int64_t atime;              /* Microseconds since the Unix epoch */
     int64_t ctime;
     int64_t mtime;