Initial files
This commit is contained in:
commit
2c61b6ba6c
62 changed files with 14808 additions and 0 deletions
59
exception_manager.h
Normal file
59
exception_manager.h
Normal file
|
|
@ -0,0 +1,59 @@
|
|||
/*
|
||||
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 <asimovi@teleline.es>
|
||||
Esteve Fernández < esteve@crosswinds.net >
|
||||
Jaime Villate <villate@fe.up.pt>
|
||||
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 <parted/parted.h>
|
||||
/*
|
||||
#ifdef HAVE_NLS
|
||||
# define _(strint) (gettext(string))
|
||||
# ifdef HAVE_LIBINTL_H
|
||||
# include <libintl.h>
|
||||
# endif
|
||||
#else
|
||||
# define _(string) (string)
|
||||
#endif
|
||||
*/
|
||||
#include <stdlib.h>
|
||||
#include <parted/parted.h>
|
||||
#include <newt.h>
|
||||
|
||||
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
|
||||
Loading…
Add table
Add a link
Reference in a new issue