1
0
Fork 0
forked from wry/wry

all: mark extern blocks as unsafe

This commit is contained in:
Julian Orth 2024-10-20 16:28:47 +02:00
parent 0cbaf4493e
commit 448b9e332e
6 changed files with 10 additions and 10 deletions

View file

@ -20,7 +20,7 @@ struct cairo_surface_t(u8);
struct cairo_t(u8);
#[link(name = "cairo")]
extern "C" {
unsafe extern "C" {
fn cairo_image_surface_create(
format: cairo_format_t,
width: c::c_int,
@ -47,7 +47,7 @@ extern "C" {
struct PangoContext_(u8);
#[link(name = "pangocairo-1.0")]
extern "C" {
unsafe extern "C" {
fn pango_cairo_create_context(cr: *mut cairo_t) -> *mut PangoContext_;
fn pango_cairo_show_layout(cr: *mut cairo_t, layout: *mut PangoLayout_);
}
@ -56,7 +56,7 @@ extern "C" {
struct GObject(u8);
#[link(name = "gobject-2.0")]
extern "C" {
unsafe extern "C" {
fn g_object_unref(object: *mut GObject);
}
@ -66,7 +66,7 @@ struct PangoFontDescription_(u8);
struct PangoLayout_(u8);
#[link(name = "pango-1.0")]
extern "C" {
unsafe extern "C" {
fn pango_font_description_from_string(str: *const c::c_char) -> *mut PangoFontDescription_;
fn pango_font_description_free(desc: *mut PangoFontDescription_);
fn pango_font_description_get_size(desc: *mut PangoFontDescription_) -> c::c_int;