msg.c (29247) | msg.c (29628) |
---|---|
1/* 2 * The new sysinstall program. 3 * 4 * This is probably the last program in the `sysinstall' line - the next 5 * generation being essentially a complete rewrite. 6 * | 1/* 2 * The new sysinstall program. 3 * 4 * This is probably the last program in the `sysinstall' line - the next 5 * generation being essentially a complete rewrite. 6 * |
7 * $Id: msg.c,v 1.45 1997/04/20 16:46:35 jkh Exp $ | 7 * $Id: msg.c,v 1.46 1997/09/09 16:27:50 jkh Exp $ |
8 * 9 * Copyright (c) 1995 10 * Jordan Hubbard. All rights reserved. 11 * 12 * Redistribution and use in source and binary forms, with or without 13 * modification, are permitted provided that the following conditions 14 * are met: 15 * 1. Redistributions of source code must retain the above copyright --- 193 unchanged lines hidden (view full) --- 209 va_start(args, fmt); 210 vsnprintf(errstr, FILENAME_MAX, fmt, args); 211 va_end(args); 212 use_helpline(NULL); 213 use_helpfile(NULL); 214 if (isDebug()) 215 msgDebug("Notify: %s\n", errstr); 216 dialog_clear_norefresh(); | 8 * 9 * Copyright (c) 1995 10 * Jordan Hubbard. All rights reserved. 11 * 12 * Redistribution and use in source and binary forms, with or without 13 * modification, are permitted provided that the following conditions 14 * are met: 15 * 1. Redistributions of source code must retain the above copyright --- 193 unchanged lines hidden (view full) --- 209 va_start(args, fmt); 210 vsnprintf(errstr, FILENAME_MAX, fmt, args); 211 va_end(args); 212 use_helpline(NULL); 213 use_helpfile(NULL); 214 if (isDebug()) 215 msgDebug("Notify: %s\n", errstr); 216 dialog_clear_norefresh(); |
217 dialog_msgbox(" ", errstr, -1, -1, 0); | 217 dialog_msgbox(NULL, errstr, -1, -1, 0); |
218} 219 220/* Put up a message in a popup yes/no box and return 1 for YES, 0 for NO */ 221int 222msgYesNo(char *fmt, ...) 223{ 224 va_list args; 225 char *errstr; --- 70 unchanged lines hidden (view full) --- 296 errstr = (char *)alloca(FILENAME_MAX); 297 va_start(args, fmt); 298 vsnprintf(errstr, FILENAME_MAX, fmt, args); 299 va_end(args); 300 use_helpline(NULL); 301 use_helpfile(NULL); 302 msgDebug("Notify: %s\n", errstr); 303 dialog_clear_norefresh(); | 218} 219 220/* Put up a message in a popup yes/no box and return 1 for YES, 0 for NO */ 221int 222msgYesNo(char *fmt, ...) 223{ 224 va_list args; 225 char *errstr; --- 70 unchanged lines hidden (view full) --- 296 errstr = (char *)alloca(FILENAME_MAX); 297 va_start(args, fmt); 298 vsnprintf(errstr, FILENAME_MAX, fmt, args); 299 va_end(args); 300 use_helpline(NULL); 301 use_helpfile(NULL); 302 msgDebug("Notify: %s\n", errstr); 303 dialog_clear_norefresh(); |
304 dialog_msgbox(" ", errstr, -1, -1, 0); | 304 dialog_msgbox(NULL, errstr, -1, -1, 0); |
305} 306 307/* Simple versions of msgConfirm() and msgNotify() for calling from scripts */ 308int 309msgSimpleConfirm(char *str) 310{ 311 msgConfirm(str); 312 return DITEM_SUCCESS; 313} 314 315int 316msgSimpleNotify(char *str) 317{ 318 msgNotify(str); 319 return DITEM_SUCCESS; 320} | 305} 306 307/* Simple versions of msgConfirm() and msgNotify() for calling from scripts */ 308int 309msgSimpleConfirm(char *str) 310{ 311 msgConfirm(str); 312 return DITEM_SUCCESS; 313} 314 315int 316msgSimpleNotify(char *str) 317{ 318 msgNotify(str); 319 return DITEM_SUCCESS; 320} |