#include <glib.h>
#include <string.h>
-#include "bluesky.h"
+#include "bluesky-private.h"
/* Serialization of in-memory filesystem data structures to bytestrings which
* can be written to persistent storage. All data is stored in little-endian
break;
}
+
+ case BLUESKY_SYMLINK:
+ {
+ g_string_append(out, inode->symlink_contents);
+ g_string_append_c(out, '\0');
+ }
+
default:
g_warning("Serialization for inode type %d not implemented!\n",
inode->type);
}
break;
}
+
+ case BLUESKY_SYMLINK:
+ {
+ inode->symlink_contents = g_strdup(buf);
+ }
+
default:
g_warning("Deserialization for inode type %d not implemented!\n",
inode->type);