X-Git-Url: https://plomlompom.com/repos/?a=blobdiff_plain;f=src%2Fwincontrol.h;h=cb7d0ba85b7cb932b638e56244c1076da911e7c3;hb=b705b99b02a5eeb2b76605fe9b11eb6d5411d6e3;hp=c8dc83ba79b430a37d41076e9a18a114ed057912;hpb=244df9d304d76ebbfe62ecfd6201b134a0150025;p=plomrogue diff --git a/src/wincontrol.h b/src/wincontrol.h index c8dc83b..cb7d0ba 100644 --- a/src/wincontrol.h +++ b/src/wincontrol.h @@ -16,12 +16,18 @@ struct World; +/* Free allocated memory for an initialized Win struct. */ +extern void free_win(struct Win * win); + + + + /* Wrapper around init_win() that reads the desired window size and title from a * file at the path prefixing the provided win name "w_name" with * "config/windows/". "f"() is the window drawing function (Win._draw()). */ -extern struct Win init_win_from_file(struct World * world, char * w_name, - void (* f) (struct Win *)); +extern struct Win * init_win_from_file(struct World * world, char * w_name, + void (* f) (struct Win *));