00001
00008 #ifndef SECURITAS_H_
00009 #define SECURITAS_H_
00010
00011 #include "structures.h"
00012 #include "files.h"
00013 #include "functions.h"
00014 #include <stdio.h>
00015 #include <string.h>
00016 #include <stdlib.h>
00017 #include <pthread.h>
00018 #include <time.h>
00019 #include <signal.h>
00020 #include <sys/time.h>
00021 #include "hashtables.h"
00022 #include "defines.h"
00023
00024
00025
00026
00027 void destroy_final_resources(pthread_cond_t *condicao, pthread_mutex_t *mutex, HASHTABLE_T **contas, HASHTABLE_T **maquinas, HASHTABLE_T **sessions, t_args_processor *args_processor, t_args_monitor *args_thread);
00028
00029
00030
00031
00032 void destroy_3_resources(pthread_cond_t *condicao, pthread_mutex_t *mutex, HASHTABLE_T **sessions);
00033
00034
00035
00036
00037 void destroy_5_resources(pthread_cond_t *condicao, pthread_mutex_t *mutex, HASHTABLE_T **contas, HASHTABLE_T **maquinas, HASHTABLE_T **sessions);
00038
00039
00040
00041
00042 int proc_pedido(int fd, void *args, char *ip_cliente);
00043
00044
00045
00046
00047 void *monitor_thread(void *args);
00048
00049
00050
00051
00052 void signal_handling(int sig);
00053
00054 #endif