Changes
4 changed files (+14/-0)
-
-
@@ -77,6 +77,7 @@ uint64_t seek_position;uint64_t length; bool has_seek_position; bool has_length; const char *image_key; } plac_transport_now_playing; plac_transport_now_playing *plac_transport_now_playing_retain(plac_transport_now_playing*); void plac_transport_now_playing_release(plac_transport_now_playing*);
-
-
-
@@ -97,6 +97,7 @@ public uint64 seek_position;public uint64 length; public bool has_seek_position; public bool has_length; public string? image_key; } [CCode (
-
-
-
@@ -24,6 +24,7 @@pub const NowPlaying = struct { seek_position: ?u64, length: ?u64, image_key: ?[]const u8 = null, one_line: struct { line1: []const u8, },
-
-
-
@@ -35,6 +35,7 @@ seek_position: u64,length: u64, has_seek_position: bool, has_length: bool, image_key: ?[*:0]const u8, pub const Internal = struct { arc: Arc = .{},
-
@@ -68,6 +69,12 @@ elsenull; errdefer if (three_line_line3) |buf| allocator.free(buf); const image_key = if (src.image_key) |input| try allocator.dupeZ(u8, input) else null; errdefer if (image_key) |buf| allocator.free(buf); const internal = try allocator.create(Internal); errdefer allocator.destroy(internal);
-
@@ -88,6 +95,7 @@ .seek_position = src.seek_position orelse 0,.length = src.length orelse 0, .has_seek_position = src.seek_position != null, .has_length = src.length != null, .image_key = if (image_key) |slice| slice.ptr else null, }; return self;
-
@@ -119,6 +127,9 @@ allocator.free(std.mem.span(line));} if (self.three_line_line3) |line| { allocator.free(std.mem.span(line)); } if (self.image_key) |image_key| { allocator.free(std.mem.span(image_key)); } allocator.destroy(self.internal); allocator.destroy(self);
-