diff --git a/src/geom.c b/src/geom.c index 34a4e36..ce46058 100644 --- a/src/geom.c +++ b/src/geom.c @@ -32,16 +32,6 @@ struct WinGeom win_geom_create() 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 * *****************************/ diff --git a/src/lib.rs b/src/lib.rs index d7639b1..9e8af26 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -69,6 +69,11 @@ unsafe extern "C" fn basic_geom_init(basic_geom: &mut geom::BasicGeom) { *basic_geom = Default::default(); } +#[no_mangle] +unsafe extern "C" fn win_geom_init(win_geom: &mut geom::WinGeom) { + *win_geom = Default::default(); +} + #[no_mangle] unsafe extern "C" fn position_init_from_args( position: *mut geom::Position,