diff options
author | Nicholas Marriott <nicm@cvs.openbsd.org> | 2010-01-12 23:22:15 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@cvs.openbsd.org> | 2010-01-12 23:22:15 +0000 |
commit | 6ee254699bf787d78835419be2b3241fb037d444 (patch) | |
tree | 07fe67dab517e4990f344fe2c00e65cef4d25b81 /lib/libmenu/menu_hook.3 | |
parent | 0b62f5dc36fc7203a74cdc812c4234ae188fdfd2 (diff) |
Update to ncurses 5.7, with local changes reapplied.
This is around eight years worth of changes (previously we were around ncurses
5.2), too many to list - many bug fixes and also a few new functions.
A major bump for libcurses, libpanel, libform and libmenu.
ok deraadt
Diffstat (limited to 'lib/libmenu/menu_hook.3')
-rw-r--r-- | lib/libmenu/menu_hook.3 | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/lib/libmenu/menu_hook.3 b/lib/libmenu/menu_hook.3 index 88066b67a4f..dc8bdfd10be 100644 --- a/lib/libmenu/menu_hook.3 +++ b/lib/libmenu/menu_hook.3 @@ -1,8 +1,8 @@ '\" t -.\" $OpenBSD: menu_hook.3,v 1.6 1999/01/22 03:45:06 millert Exp $ +.\" $OpenBSD: menu_hook.3,v 1.7 2010/01/12 23:22:08 nicm Exp $ .\" .\"*************************************************************************** -.\" Copyright (c) 1998 Free Software Foundation, Inc. * +.\" Copyright (c) 1998-2006,2007 Free Software Foundation, Inc. * .\" * .\" Permission is hereby granted, free of charge, to any person obtaining a * .\" copy of this software and associated documentation files (the * @@ -29,48 +29,48 @@ .\" authorization. * .\"*************************************************************************** .\" -.\" $From: menu_hook.3x,v 1.6 1998/11/29 01:09:47 Rick.Ohnemus Exp $ +.\" $Id: menu_hook.3,v 1.7 2010/01/12 23:22:08 nicm Exp $ .TH menu_hook 3 "" .SH NAME \fBmenu_hook\fR - set hooks for automatic invocation by applications .SH SYNOPSIS \fB#include <menu.h>\fR .br -int set_item_init(MENU *menu, void (*func)(MENU *)); +int set_item_init(MENU *menu, Menu_Hook func); .br -void (*)(MENU *) item_init(const MENU *menu); +Menu_Hook item_init(const MENU *menu); .br -int set_item_term(MENU *menu, void (*func)(MENU *)); +int set_item_term(MENU *menu, Menu_Hook func); .br -void (*)(MENU *) item_term(const MENU *menu); +Menu_Hook item_term(const MENU *menu); .br -int set_menu_init(MENU *menu, void (*func)(MENU *)); +int set_menu_init(MENU *menu, Menu_Hook func); .br -void (*)(MENU *) menu_init(const MENU *menu); +Menu_Hook menu_init(const MENU *menu); .br -int set_menu_term(MENU *menu, void (*func)(MENU *)); +int set_menu_term(MENU *menu, Menu_Hook func); .br -void (*)(MENU *) menu_term(const MENU *menu); +Menu_Hook menu_term(const MENU *menu); .br .SH DESCRIPTION These functions make it possible to set hook functions to be called at various points in the automatic processing of input event codes by \fBmenu_driver\fR. - +.PP The function \fBset_item_init\fR sets a hook to be called at menu-post time and each time the selected item changes (after the change). \fBitem_init\fR returns the current item init hook, if any (\fBNULL\fR if there is no such hook). - +.PP The function \fBset_item_term\fR sets a hook to be called at menu-unpost time and each time the selected item changes (before the change). \fBitem_term\fR returns the current item term hook, if any (\fBNULL\fR if there is no such hook). - +.PP The function \fBset_menu_init\fR sets a hook to be called at menu-post time and just after the top row on the menu changes once it is posted. \fBmenu_init\fR returns the current menu init hook, if any (\fBNULL\fR if there is no such hook). - +.PP The function \fBset_menu_term\fR sets a hook to be called at menu-unpost time and just before the top row on the menu changes once it is posted. \fBmenu_term\fR returns the current menu term hook, if any (\fBNULL\fR if there @@ -79,10 +79,10 @@ is no such hook). Routines that return pointers return \fBNULL\fR on error. Other routines return one of the following: .TP 5 -\fBE_OK\fR +.B E_OK The routine succeeded. .TP 5 -\fBE_SYSTEM_ERROR\fR +.B E_SYSTEM_ERROR System error occurred (see \fBerrno\fR). .SH SEE ALSO \fBcurses\fR(3), \fBmenu\fR(3). |