diff --git a/example/c-vt-kitty-graphics/src/main.c b/example/c-vt-kitty-graphics/src/main.c index fb8087697..5001c3707 100644 --- a/example/c-vt-kitty-graphics/src/main.c +++ b/example/c-vt-kitty-graphics/src/main.c @@ -170,11 +170,11 @@ int main() { GhosttyKittyImageFormat format = 0; size_t data_len = 0; - ghostty_kitty_image_get(image, GHOSTTY_KITTY_IMAGE_DATA_NUMBER, &number); - ghostty_kitty_image_get(image, GHOSTTY_KITTY_IMAGE_DATA_WIDTH, &width); - ghostty_kitty_image_get(image, GHOSTTY_KITTY_IMAGE_DATA_HEIGHT, &height); - ghostty_kitty_image_get(image, GHOSTTY_KITTY_IMAGE_DATA_FORMAT, &format); - ghostty_kitty_image_get(image, GHOSTTY_KITTY_IMAGE_DATA_DATA_LEN, &data_len); + ghostty_kitty_graphics_image_get(image, GHOSTTY_KITTY_IMAGE_DATA_NUMBER, &number); + ghostty_kitty_graphics_image_get(image, GHOSTTY_KITTY_IMAGE_DATA_WIDTH, &width); + ghostty_kitty_graphics_image_get(image, GHOSTTY_KITTY_IMAGE_DATA_HEIGHT, &height); + ghostty_kitty_graphics_image_get(image, GHOSTTY_KITTY_IMAGE_DATA_FORMAT, &format); + ghostty_kitty_graphics_image_get(image, GHOSTTY_KITTY_IMAGE_DATA_DATA_LEN, &data_len); printf(" image: number=%u size=%ux%u format=%d data_len=%zu\n", number, width, height, format, data_len); diff --git a/include/ghostty/vt/kitty_graphics.h b/include/ghostty/vt/kitty_graphics.h index 124dc4265..e31bb2c65 100644 --- a/include/ghostty/vt/kitty_graphics.h +++ b/include/ghostty/vt/kitty_graphics.h @@ -162,7 +162,7 @@ typedef enum { } GhosttyKittyImageCompression; /** - * Queryable data kinds for ghostty_kitty_image_get(). + * Queryable data kinds for ghostty_kitty_graphics_image_get(). * * @ingroup kitty_graphics */ @@ -277,7 +277,7 @@ GHOSTTY_API GhosttyKittyGraphicsImage ghostty_kitty_graphics_image( * * @ingroup kitty_graphics */ -GHOSTTY_API GhosttyResult ghostty_kitty_image_get( +GHOSTTY_API GhosttyResult ghostty_kitty_graphics_image_get( GhosttyKittyGraphicsImage image, GhosttyKittyGraphicsImageData data, void* out); diff --git a/src/lib_vt.zig b/src/lib_vt.zig index dcdd1f1b8..ce2e4d5b6 100644 --- a/src/lib_vt.zig +++ b/src/lib_vt.zig @@ -235,7 +235,7 @@ comptime { @export(&c.terminal_grid_ref, .{ .name = "ghostty_terminal_grid_ref" }); @export(&c.kitty_graphics_get, .{ .name = "ghostty_kitty_graphics_get" }); @export(&c.kitty_graphics_image, .{ .name = "ghostty_kitty_graphics_image" }); - @export(&c.kitty_image_get, .{ .name = "ghostty_kitty_image_get" }); + @export(&c.kitty_graphics_image_get, .{ .name = "ghostty_kitty_graphics_image_get" }); @export(&c.kitty_graphics_placement_iterator_new, .{ .name = "ghostty_kitty_graphics_placement_iterator_new" }); @export(&c.kitty_graphics_placement_iterator_free, .{ .name = "ghostty_kitty_graphics_placement_iterator_free" }); @export(&c.kitty_graphics_placement_next, .{ .name = "ghostty_kitty_graphics_placement_next" }); diff --git a/src/terminal/c/main.zig b/src/terminal/c/main.zig index 2599bb971..ebfe2571d 100644 --- a/src/terminal/c/main.zig +++ b/src/terminal/c/main.zig @@ -11,7 +11,7 @@ pub const grid_ref = @import("grid_ref.zig"); pub const kitty_graphics = @import("kitty_graphics.zig"); pub const kitty_graphics_get = kitty_graphics.get; pub const kitty_graphics_image = kitty_graphics.image_get_handle; -pub const kitty_image_get = kitty_graphics.image_get; +pub const kitty_graphics_image_get = kitty_graphics.image_get; pub const kitty_graphics_placement_iterator_new = kitty_graphics.placement_iterator_new; pub const kitty_graphics_placement_iterator_free = kitty_graphics.placement_iterator_free; pub const kitty_graphics_placement_next = kitty_graphics.placement_iterator_next;