diff options
author | Bertrand Jacquin (Beber) <beber@setibzh.com> | 2006-01-23 01:40:14 +0100 |
---|---|---|
committer | Bertrand Jacquin (Beber) <beber@setibzh.com> | 2006-01-23 01:40:14 +0100 |
commit | 753787de54eb7e9ec27eee2dfc6e24d42a15971e (patch) | |
tree | 911379ba4a6e59e9dccdc945a3abb48f0b6b443b /src/espik.c | |
parent | Start reorganise all things (diff) | |
download | espik-753787de54eb7e9ec27eee2dfc6e24d42a15971e.tar.xz |
del unused files and code
Diffstat (limited to 'src/espik.c')
-rw-r--r-- | src/espik.c | 41 |
1 files changed, 1 insertions, 40 deletions
diff --git a/src/espik.c b/src/espik.c index 0628de2..f4fce5a 100644 --- a/src/espik.c +++ b/src/espik.c @@ -14,9 +14,7 @@ #include "espik.h" #include "espik_global.h" #include "espik_config.h" -#include "espik_irc.h" #include "espik_common_handler.h" -#include "espik_net.h" #include "espik_debug.h" typedef int (*Handler_Func) (void *data, int ev_type, void *ev); @@ -101,20 +99,7 @@ int main (int argc, char **argv) printf ("user: %s\n", a_infos.client->username); printf ("real: %s\n", a_infos.client->realname); -#if 0 - con_sock = - ecore_con_server_connect (ECORE_CON_REMOTE_SYSTEM, - a_infos.server->host, - (int)a_infos.server->port, - NULL); - if (!con_sock) - { - fprintf (stderr, "Baaa\n"); - exit (-1); - } -#endif - - /* Handler Network & Keyboard */ + /* Handler Keyboard */ fd_kb = ecore_main_fd_handler_add (STDIN_FILENO, ECORE_FD_READ, kb_get, NULL, NULL, NULL); espik_free(kb_get); @@ -123,41 +108,17 @@ int main (int argc, char **argv) printf ("Cannot ecore_main_fd_handler_add\n"); exit (-1); } - /* - ecore_event_handler_add (ECORE_CON_EVENT_SERVER_DATA, - (Handler_Func) server_data, NULL); - */ - /* - espik_con_init (a_infos); - */ - /* Init IRC connection */ ecore_main_loop_begin (); ecore_main_fd_handler_del (fd_kb); - /* - ecore_con_server_del (con_sock); - - free (a_infos.server->host); - free (a_infos.server); - - free (a_infos.client->nickname); - free (a_infos.client->username); - free (a_infos.client->realname); - free (a_infos.client); - */ - espik_debug_print ("end"); espik_config_shutdown (a_infos); - /* - espik_con_shutdown (); - */ - ecore_shutdown (); ecore_list_destroy(ptr_list); |