mirror of
https://github.com/tribufu/sdk-rust
synced 2025-06-16 11:14:17 +00:00
Create Rust Project
This commit is contained in:
21
Source/Account/Role.rs
Normal file
21
Source/Account/Role.rs
Normal file
@ -0,0 +1,21 @@
|
||||
// Copyright (c) TribuFu. All Rights Reserved
|
||||
|
||||
use libc::c_char;
|
||||
|
||||
pub fn GetRole(id: *const c_char) {}
|
||||
|
||||
pub fn GetUserRoles(id: *const c_char) {}
|
||||
|
||||
mod External {
|
||||
use libc::c_char;
|
||||
|
||||
#[no_mangle]
|
||||
pub extern "C" fn GetRole(id: *const c_char) {
|
||||
super::GetRole(id);
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
pub extern "C" fn GetUserRoles(id: *const c_char) {
|
||||
super::GetUserRoles(id);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user