uefi-rs/uefi-raw/src/protocol/string.rs
Philipp Schuster 83412b60a0 rustfmt: update to edition 2024
We can delete rustfmt.toml as the style version defaults to
the crate's rust edition.
2025-05-17 12:27:06 +02:00

34 lines
1 KiB
Rust

// SPDX-License-Identifier: MIT OR Apache-2.0
use crate::{Char8, Char16, Guid, guid};
#[derive(Debug)]
#[repr(C)]
pub struct UnicodeCollationProtocol {
pub stri_coll:
unsafe extern "efiapi" fn(this: *const Self, s1: *const Char16, s2: *const Char16) -> isize,
pub metai_match: unsafe extern "efiapi" fn(
this: *const Self,
string: *const Char16,
pattern: *const Char16,
) -> bool,
pub str_lwr: unsafe extern "efiapi" fn(this: *const Self, s: *mut Char16),
pub str_upr: unsafe extern "efiapi" fn(this: *const Self, s: *mut Char16),
pub fat_to_str: unsafe extern "efiapi" fn(
this: *const Self,
fat_size: usize,
fat: *const Char8,
s: *mut Char16,
),
pub str_to_fat: unsafe extern "efiapi" fn(
this: *const Self,
s: *const Char16,
fat_size: usize,
fat: *mut Char8,
) -> bool,
pub supported_languages: *const Char8,
}
impl UnicodeCollationProtocol {
pub const GUID: Guid = guid!("a4c751fc-23ae-4c3e-92e9-4964cf63f349");
}