srctree

Gregory Mullen parent 95153c6d 64e88a15
add create_repo journal event & header

src/types/journal.zig added: 12, removed: 2, total 10
@@ -3,16 +3,26 @@ const Allocator = std.mem.Allocator;
 
pub const Journaling = @This();
 
pub const EvtComment = struct {
pub const Header = struct {
inet: [16]u8 = u8{0} ** 16,
};
 
pub const EvtComment = struct {
header: Header,
};
 
pub const EvtRepoCreate = struct {
header: Header,
};
 
pub const EventKind = enum(u8) {
comment = 0x00,
create_repo = 0x01,
};
 
pub const Events = union(EventKind) {
comment: EvtComment,
create_repo: EvtRepoCreate,
};
 
pub const Journal = struct {