Move func "win_geom_init" to Rust

This commit is contained in:
Alex Kotov 2022-09-07 19:50:27 +04:00
parent 4eb62632fa
commit 30b8bd2703
Signed by: kotovalexarian
GPG key ID: 553C0EBBEB5D5F08
2 changed files with 5 additions and 10 deletions

View file

@ -32,16 +32,6 @@ struct WinGeom win_geom_create()
return win_geom; return win_geom;
} }
/**************************
* Default init functions *
**************************/
void win_geom_init(const WinGeom win_geom)
{
basic_geom_init(&win_geom->basic);
win_geom->border_width = 0;
}
/***************************** /*****************************
* Argument create functions * * Argument create functions *
*****************************/ *****************************/

View file

@ -69,6 +69,11 @@ unsafe extern "C" fn basic_geom_init(basic_geom: &mut geom::BasicGeom) {
*basic_geom = Default::default(); *basic_geom = Default::default();
} }
#[no_mangle]
unsafe extern "C" fn win_geom_init(win_geom: &mut geom::WinGeom) {
*win_geom = Default::default();
}
#[no_mangle] #[no_mangle]
unsafe extern "C" fn position_init_from_args( unsafe extern "C" fn position_init_from_args(
position: *mut geom::Position, position: *mut geom::Position,