/* nparted - a frontend to libparted for manipulating disk partitions thinked to dbootstrap Copyright (C) 2000 Mario Teijeiro, Otero ,Esteve Fernández Jaime Villate, La Espiral Mario Teijeiro Otero Esteve Fernández < esteve@crosswinds.net > Jaime Villate La Espiral http://www.laespiral.org This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ #ifndef EXCEPTION_MANAGER_ #define EXCEPTION_MANAGER_ #include /* #ifdef HAVE_NLS # define _(strint) (gettext(string)) # ifdef HAVE_LIBINTL_H # include # endif #else # define _(string) (string) #endif */ #include #include #include typedef struct _button_option button_option; #define MAX_OPTIONS 5 struct _button_option{ int num; /* Numero de botones */ char* label[MAX_OPTIONS];/* etiquetas de cada botón*/ /*PedExceptionOption*/int op2ret[MAX_OPTIONS]; newtComponent button[MAX_OPTIONS];/* botón que representa */ }; /* Saca una notificación, pregunta etc..., con los botones en list_buttons, * que es la estructura de arriba, devuelve el valor de op2ret */ /*PedExceptionOption*/int do_message_window(const char *title, char* message, button_option *list_buttons); PedExceptionOption exception_handler( PedException* exception); #endif