X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~mdw/git/mgLib/blobdiff_plain/19c0192cb4ce59aea6af17238745c26e22d05489..5fb46e95417c10b761c627169abdbd5d8f700489:/msg.h diff --git a/msg.h b/msg.h index 31ba0de..8c973c5 100644 --- a/msg.h +++ b/msg.h @@ -1,6 +1,6 @@ /* -*-c-*- * - * $Id: msg.h,v 1.3 1999/05/05 18:52:45 mdw Exp $ + * $Id: msg.h,v 1.6 2002/01/13 14:32:23 mdw Exp $ * * Display a message and get an answer * @@ -22,13 +22,23 @@ * GNU Library General Public License for more details. * * You should have received a copy of the GNU Library General Public - * License along with mgLib; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + * License along with mgLib; if not, write to the Free + * Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, + * MA 02111-1307, USA. */ /*----- Revision history --------------------------------------------------* * * $Log: msg.h,v $ + * Revision 1.6 2002/01/13 14:32:23 mdw + * Allow control over the message box title. + * + * Revision 1.5 2000/08/15 22:40:15 mdw + * Change guard constants. + * + * Revision 1.4 1999/05/06 19:51:48 mdw + * Reformatted the LGPL notice a little bit. + * * Revision 1.3 1999/05/05 18:52:45 mdw * Change licensing conditions to LGPL. * @@ -40,8 +50,8 @@ * */ -#ifndef MSG_H -#define MSG_H +#ifndef MGLIB_MSG_H +#define MGLIB_MSG_H #ifdef __cplusplus extern "C" { @@ -55,8 +65,9 @@ /* --- @msg@ --- * * - * Arguments: @char *buttons@ = the button strings to display - * @char *msg@ = the message skeleton string + * Arguments: @const char *title@ = the title for the message box + * @const char *buttons@ = the button strings to display + * @const char *msg@ = the message skeleton string * * Returns: Index of the button selected. * @@ -72,7 +83,8 @@ * of the button selected. */ -extern int msg(const char */*buttons*/, const char */*msg*/, ...); +extern int msg(const char */*msg*/, const char */*buttons*/, + const char */*msg*/, ...); /*----- That's all, folks -------------------------------------------------*/