diff options
author | Michael Brown <mcb30@etherboot.org> | 2006-12-20 06:06:38 +0000 |
---|---|---|
committer | Michael Brown <mcb30@etherboot.org> | 2006-12-20 06:06:38 +0000 |
commit | f8910410fe718e17f91819b8cbc0e3040cdb7bd8 (patch) | |
tree | 1a49ff6038b7bff1ee8a5d22d043c29e265a4abd /src/include/curses.h | |
parent | 8f9336e0c12827b77b82a5ab30897f12b2a2ac71 (diff) | |
download | ipxe-f8910410fe718e17f91819b8cbc0e3040cdb7bd8.tar.gz |
Add attr_{get,set,on,off} as static inlines.
Diffstat (limited to 'src/include/curses.h')
-rw-r--r-- | src/include/curses.h | 24 |
1 files changed, 20 insertions, 4 deletions
diff --git a/src/include/curses.h b/src/include/curses.h index 77bd98847..4d89c0ef1 100644 --- a/src/include/curses.h +++ b/src/include/curses.h @@ -295,10 +295,10 @@ extern unsigned short _LINES; //extern int attroff ( int ); //extern int attron ( int ); //extern int attrset ( int ); -extern int attr_get ( attr_t *, short *, void * ); -extern int attr_off ( attr_t, void * ); -extern int attr_on ( attr_t, void * ); -extern int attr_set ( attr_t, short, void * ); +//extern int attr_get ( attr_t *, short *, void * ); +//extern int attr_off ( attr_t, void * ); +//extern int attr_on ( attr_t, void * ); +//extern int attr_set ( attr_t, short, void * ); extern int baudrate ( void ); extern int beep ( void ); //extern void bkgdset ( chtype ); @@ -588,6 +588,22 @@ static inline int attrset ( int attrs ) { return wattrset ( stdscr, attrs ); } +static inline int attr_get ( attr_t *attrs, short *pair, void *opts ) { + return wattr_get ( stdscr, attrs, pair, opts ); +} + +static inline int attr_off ( attr_t attrs, void *opts ) { + return wattr_off ( stdscr, attrs, opts ); +} + +static inline int attr_on ( attr_t attrs, void *opts ) { + return wattr_on ( stdscr, attrs, opts ); +} + +static inline int attr_set ( attr_t attrs, short cpair, void *opts ) { + return wattr_set ( stdscr, attrs, cpair, opts ); +} + static inline void bkgdset ( chtype ch ) { wattrset ( stdscr, ch ); } |