mirror of
https://github.com/ghostty-org/ghostty.git
synced 2026-04-06 07:38:21 +00:00
Introduce the first public C render-state surface for libghostty-vt. Before this change, the render-state path was only available in Zig, so C embedders had no direct way to create and update that cache. Add an opaque GhosttyRenderState type with new, update, and free entry points, then wire those symbols through the C API bridge and library exports. Keep the surface intentionally minimal for now so ownership and update behavior are established before adding read accessors.
25 lines
849 B
Zig
25 lines
849 B
Zig
.{
|
|
.name = .c_vt_render,
|
|
.version = "0.0.0",
|
|
.fingerprint = 0xb10e18b2fab773c9,
|
|
.minimum_zig_version = "0.15.1",
|
|
.dependencies = .{
|
|
// Ghostty dependency. In reality, you'd probably use a URL-based
|
|
// dependency like the one showed (and commented out) below this one.
|
|
// We use a path dependency here for simplicity and to ensure our
|
|
// examples always test against the source they're bundled with.
|
|
.ghostty = .{ .path = "../../" },
|
|
|
|
// Example of what a URL-based dependency looks like:
|
|
// .ghostty = .{
|
|
// .url = "https://github.com/ghostty-org/ghostty/archive/COMMIT.tar.gz",
|
|
// .hash = "N-V-__8AAMVLTABmYkLqhZPLXnMl-KyN38R8UVYqGrxqO36s",
|
|
// },
|
|
},
|
|
.paths = .{
|
|
"build.zig",
|
|
"build.zig.zon",
|
|
"src",
|
|
},
|
|
}
|