X-Git-Url: http://git.vrable.net/?a=blobdiff_plain;f=bluesky%2Fbluesky.h;h=7419cd439daa2082fa6db0fca37db09b2fa590ee;hb=e9636461ac9e6c7075ac0866f8554b947fc464ba;hp=1d0b0b1fe6a1a46f7401917b5a810b3df35af78a;hpb=7ca401a44bfecb14b7e5ecf849aec31157382231;p=bluesky.git diff --git a/bluesky/bluesky.h b/bluesky/bluesky.h index 1d0b0b1..7419cd4 100644 --- a/bluesky/bluesky.h +++ b/bluesky/bluesky.h @@ -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;