X-Git-Url: https://plomlompom.com/repos/test.html?a=blobdiff_plain;f=src%2Fwindows.h;h=5ec4d2f62bc709c80dc632290c22ed21e9fd9a00;hb=e505542d10413b5cf94edda90bdc793a48db9385;hp=0e3f79bfd63dba060fb15fc3a7b27a9b8aa3c872;hpb=f8325a4ea617b15315183d7a8027c0b913c91034;p=plomrogue diff --git a/src/windows.h b/src/windows.h index 0e3f79b..5ec4d2f 100644 --- a/src/windows.h +++ b/src/windows.h @@ -95,7 +95,7 @@ struct WinMeta * initialized 0, except for the virtual screen (height = that of the terminal * screen; width = 1) amd its frame sized to the size of the terminal screen. */ -extern uint8_t init_win_meta(WINDOW * screen, struct WinMeta * wmeta); +extern uint8_t init_win_meta(WINDOW * screen, struct WinMeta ** wmeta); @@ -113,12 +113,18 @@ 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 / WinMeta struct. */ +extern void free_winmeta(struct WinMeta * wmeta); +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