groundwork for an interface change
Add a new window-port interface function
perminvent_info *
update_invent_slot(winid window, int slot, perminvent_info *);
That should be nice and flexible and allow exchanges of useful
information between the core and the window port. Information
to be exchange can be easily modified in include/wintype.h as
things evolve.
Information useful to the core can be exchanged from the
window-port in struct to_core.
Information useful from the core to the window-port can be
passed in struct from_core.
I'm not going to update any docs until much later after things
are fully working and settled.
This also doesn't fix or have anything to do with existing
TTY_PERM_INVENT issues.
This commit is contained in:
@@ -450,7 +450,6 @@ extern void X11_add_menu(winid, const glyph_info *, const ANY_P *, char,
|
||||
char, int, const char *, unsigned int);
|
||||
extern void X11_end_menu(winid, const char *);
|
||||
extern int X11_select_menu(winid, int, MENU_ITEM_P **);
|
||||
extern void X11_update_inventory(int);
|
||||
extern void X11_mark_synch(void);
|
||||
extern void X11_wait_synch(void);
|
||||
#ifdef CLIPPING
|
||||
@@ -487,5 +486,7 @@ extern void genl_outrip(winid, int, time_t);
|
||||
#endif
|
||||
|
||||
extern void X11_preference_update(const char *);
|
||||
extern void X11_update_inventory(int);
|
||||
extern perminvent_info *X11_update_invent_slot(winid, int, perminvent_info *);
|
||||
|
||||
#endif /* WINX_H */
|
||||
|
||||
Reference in New Issue
Block a user