X-Git-Url: https://plomlompom.com/repos/?a=blobdiff_plain;f=src%2Fwindows.h;h=a40835d9c591925b3d080b8747495c9b21a5c3ed;hb=c1a7e6cdb13cd7d883424afdf0fe08e9a10fbc28;hp=0e3f79bfd63dba060fb15fc3a7b27a9b8aa3c872;hpb=f8325a4ea617b15315183d7a8027c0b913c91034;p=plomrogue diff --git a/src/windows.h b/src/windows.h index 0e3f79b..a40835d 100644 --- a/src/windows.h +++ b/src/windows.h @@ -113,12 +113,17 @@ extern uint8_t init_win_meta(WINDOW * screen, struct WinMeta * wmeta); * * Other members of the Win struct are initialized to 0. */ -extern uint8_t init_win(struct WinMeta * wmeta, struct Win * w, char * title, +extern uint8_t init_win(struct WinMeta * wmeta, struct Win ** w, char * title, int16_t height, int16_t width, void * data, void * func); +/* Free allocated memory for an initialized Win struct. */ +extern void free_win(struct Win * win); + + + /* Append/suspend window "w" to/from chain of visible windows below "wmeta". * Appended windows will become active. Suspended active windows will move the * active window selection to their successor in the window chain or, failing