X-Git-Url: http://git.vrable.net/?a=blobdiff_plain;f=bluesky%2Fbluesky-private.h;h=418c1e587106c32e47aaf83a7a8a67a4650e2efe;hb=f2586554fd55cd3cc1be65ac33d1122d00372133;hp=0f86f45d71f8c8f952829a0316bed35e1bb48343;hpb=ac5113f4988176ca8b4f8f575df82ba7d05495cd;p=bluesky.git diff --git a/bluesky/bluesky-private.h b/bluesky/bluesky-private.h index 0f86f45..418c1e5 100644 --- a/bluesky/bluesky-private.h +++ b/bluesky/bluesky-private.h @@ -165,6 +165,7 @@ typedef struct { } BlueSkyCloudPointer; typedef enum { + LOGTYPE_INVALID = -1, LOGTYPE_UNKNOWN = 0, LOGTYPE_DATA = 1, LOGTYPE_INODE = 2, @@ -209,8 +210,11 @@ struct _BlueSkyCloudLog { // Pointers to other objects GArray *pointers; - // Serialized data, if available in memory (otherwise NULL). + // Serialized data, if available in memory (otherwise NULL), and a lock + // count which tracks if there are users that require the data to be kept + // around. BlueSkyRCStr *data; + int data_lock_count; }; /* Serialize objects into a log segment to be written to the cloud. */