implement sentry transport to write crash reports to XDG_STATE_HOME

This commit is contained in:
Mitchell Hashimoto
2024-08-27 19:29:34 -07:00
parent e029490535
commit 2abdf291f4
5 changed files with 58 additions and 3 deletions

View File

@@ -6,6 +6,10 @@ const c = @import("c.zig").c;
pub const UUID = struct {
value: c.sentry_uuid_t,
pub fn init() UUID {
return .{ .value = c.sentry_uuid_new_v4() };
}
pub fn isNil(self: UUID) bool {
return c.sentry_uuid_is_nil(&self.value) != 0;
}