Move func "basic_geom_init" to Rust
This commit is contained in:
parent
5d3f337f0a
commit
4eb62632fa
2 changed files with 5 additions and 6 deletions
|
@ -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);
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue