use typed pointers instead of empty structs (which doesnt work anyway)
add working example