Move func "basic_geom_init" to Rust

This commit is contained in:
Alex Kotov 2022-09-07 19:49:33 +04:00
parent 5d3f337f0a
commit 4eb62632fa
Signed by: kotovalexarian
GPG key ID: 553C0EBBEB5D5F08
2 changed files with 5 additions and 6 deletions

View file

@ -36,12 +36,6 @@ struct WinGeom win_geom_create()
* Default init functions *
**************************/
void basic_geom_init(const BasicGeom basic_geom)
{
position_init(&basic_geom->position);
sizes_init(&basic_geom->sizes);
}
void win_geom_init(const WinGeom win_geom)
{
basic_geom_init(&win_geom->basic);

View file

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