Página principal | Lista de componentes | Directories | Lista de archivos | Miembros de las clases | Archivos de los miembros | Páginas relacionadas

util.h

Ir a la documentación de este archivo.
00001 /* 
00002  * LabSession - login application and administration tools 
00003  * Copyright (C) 2005 - 2006 - Hugo Ruscitti (see AUTHORS file)
00004  * 
00005  * This program is free software; you can redistribute it and/or modify
00006  * it under the terms of the GNU General Public License as published by
00007  * the Free Software Foundation; either version 2 of the License, or
00008  * (at your option) any later version.
00009  * 
00010  * This program is distributed in the hope that it will be useful,
00011  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00012  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00013  * GNU General Public License for more details.
00014  * 
00015  * You should have received a copy of the GNU General Public License
00016  * along with this program; if not, write to the Free Software
00017  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA
00018  */
00019 
00020 #ifndef _UTIL_H
00021 #define _UTIL_H
00022 
00028 #include <stdio.h>
00029 #include <stdlib.h>
00030 #include <string.h>
00031 #include <unistd.h>
00032 #include <sys/types.h>
00033 #include <signal.h>
00034 #include <gtk/gtk.h>
00035 #include <time.h>
00036 
00037 #include "config.h"
00038 #include "opciones.h"
00039 
00040 #include "socket.h"
00041 
00042 #ifdef WIN32
00043         #define SIGPIPE 0
00044         #define signal(X,Y)
00045 #endif
00046 
00047 
00048 int bibliotecas_iniciar (int argc, char * argv [], int con_gtk);
00049 void bibliotecas_terminar (void);
00050 int leer_opciones (DuplaOpciones * opciones, int n, char * ruta);
00051 void leer_opciones_cargar (char * buffer, DuplaOpciones * opciones, int n);
00052 void quitar_barra_n (char * buffer);
00053 int util_exec (const char * comando, GPid * pid, gboolean limpiar, char * msg);
00054 void mostrar_dialogo (GtkMessageType tipo, gchar * mensaje);
00055 void mostrar_dialogo_bloqueante (GtkWidget * ventana, GtkMessageType tipo, \
00056                 char * mensaje, gboolean auto_cerrar);
00057 void mostrar_creditos (GtkWidget * ventana);
00058 int control_de_acceso (GtkWidget * ventana, char * codigo);
00059 int dialogo_de_mensaje (GtkWidget * ventana_padre, char * codigo);
00060 void quitar_guion (char * buffer);
00061 
00062 #endif




Generado con Doxygen, versión 1.4.2