Add pluggable support for multiple storage backends.
[bluesky.git] / bluesky / file.c
index 5a4fe9b..4badc75 100644 (file)
@@ -154,7 +154,7 @@ void bluesky_block_fetch(BlueSkyFS *fs, BlueSkyBlock *block)
         return;
 
     g_print("Fetching block from %s\n", block->ref);
-    BlueSkyRCStr *string = s3store_get(fs->store, block->ref);
+    BlueSkyRCStr *string = bluesky_store_get(fs->store, block->ref);
 
     bluesky_string_unref(block->data);
     block->data = bluesky_crypt_decrypt(string, fs->encryption_key);
@@ -176,7 +176,7 @@ void bluesky_block_flush(BlueSkyFS *fs, BlueSkyBlock *block)
     gchar *name = g_strdup(g_checksum_get_string(csum));
 
     g_print("Flushing block as %s\n", name);
-    s3store_put(fs->store, name, data);
+    bluesky_store_put(fs->store, name, data);
     g_free(block->ref);
     block->ref = name;