projects
/
bluesky.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Switch to refcounted strings for storing cached file blocks.
[bluesky.git]
/
bluesky.h
diff --git
a/bluesky.h
b/bluesky.h
index
c4bad9e
..
856dd75
100644
(file)
--- a/
bluesky.h
+++ b/
bluesky.h
@@
-22,7
+22,7
@@
struct S3Store;
* storage backends and in other places. */
typedef struct {
gint refcount;
* storage backends and in other places. */
typedef struct {
gint refcount;
- g
pointer
data;
+ g
char *
data;
gsize len;
} BlueSkyRCStr;
gsize len;
} BlueSkyRCStr;
@@
-123,7
+123,7
@@
typedef enum {
typedef struct {
BlueSkyBlockType type;
gchar *ref; /* Name of data block in the backing store */
typedef struct {
BlueSkyBlockType type;
gchar *ref; /* Name of data block in the backing store */
-
gchar *data; /* Pointer to data in memory
*/
+
BlueSkyRCStr *data; /* Pointer to data in memory if cached
*/
} BlueSkyBlock;
BlueSkyFS *bluesky_new_fs(gchar *name);
} BlueSkyBlock;
BlueSkyFS *bluesky_new_fs(gchar *name);