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

@ -71,7 +71,7 @@ impl Default for xkb_rule_names {
}
#[link(name = "xkbcommon")]
extern "C" {
unsafe extern "C" {
fn xkb_context_new(flags: xkb_context_flags) -> *mut xkb_context;
fn xkb_context_unref(context: *mut xkb_context);
fn xkb_context_set_log_verbosity(context: *mut xkb_context, verbosity: c::c_int);
@ -121,7 +121,7 @@ pub struct XkbContext {
ids: KeymapIds,
}
extern "C" {
unsafe extern "C" {
fn jay_xkbcommon_log_handler_bridge();
}