// Copyright (c) 2024 Xu Shaohua <shaohua@biofan.org>. All rights reserved.
// Use of this source is governed by Apache-2.0 License that can be found
// in the LICENSE file.

use crate::restorefn_t;

unsafe extern "C" {
    fn __nc_restore_rt();

    // TODO(Shaohua): Also export "__nc_restore" function.
}

#[must_use]
#[inline]
pub fn get_sa_restorer() -> Option<restorefn_t> {
    Some(__nc_restore_rt)
}
