BOOTSTRAP (kutils) functions
LIBRARY ROUTINE
kset_quithandler - set the quit handling routine used by kquit()
LIBRARY CALL
knotify kset_quithandler(
knotify new_handler)
INPUT
- new_handler - the quit handler to be called. Specify xvu_quit()
for the Khoros pop-up quit message (xvroutines &
hybrid routines only), NULL for the default
quit handler which returns TRUE.
OUTPUT
none
RETURN VALUE
the previously installed quit handler, or NULL
if the default information handler was installed.
DESCRIPTION
Sets the quit handler routine to be used by the kquit()
reporting facility. When set to NULL (the default) the
default Khoros quit handler is used, which does not prompt
the user but simply returns yes, the user wants to quit.
If a different quit handler is set, the quit handler
must be declared as follows. It should return TRUE if
the user indicates that they do want to quit the program,
FALSE if the user indicates that they don't want to quit
after all.
int quit_handler(
char *message)
char *message - message to ask the user if they are ready to quit
ADDITIONAL INFORMATION
none
EXAMPLES
none
SIDE EFFECTS
none
RESTRICTIONS
none
MODIFICATION
none
FILES
$BOOTSTRAP/objects/library/kutils/src/notify.c
SEE ALSO
kutils(3)
COPYRIGHT
Copyright (C) 1993 - 1997, Khoral Research, Inc. ("KRI") All rights reserved.