00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
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