aboutsummaryrefslogtreecommitdiff
path: root/src/espik.c
diff options
context:
space:
mode:
authorbeber <beber>2006-01-12 02:45:18 +0000
committerbeber <beber>2006-01-12 02:45:18 +0000
commitef65e849f5671f0b3696c6b366e367437b36d7da (patch)
treeed85d8f977f6513a9e9a7393285fb77304a9eabf /src/espik.c
parentNew ignore for windows (diff)
downloadespik-ef65e849f5671f0b3696c6b366e367437b36d7da.tar.xz
comment and unused code
Diffstat (limited to 'src/espik.c')
-rw-r--r--src/espik.c50
1 files changed, 31 insertions, 19 deletions
diff --git a/src/espik.c b/src/espik.c
index e93beea..307e569 100644
--- a/src/espik.c
+++ b/src/espik.c
@@ -20,7 +20,9 @@
typedef int (*Handler_Func) (void *data, int ev_type, void *ev);
-/*typedef int (*Handler_Fd_Func) (void *data, Ecore_Fd_Handler * fd_handler);*/
+/*
+typedef int (*Handler_Fd_Func) (void *data, Ecore_Fd_Handler * fd_handler);
+*/
/* Use to replace EOL ('\n') with NULL ('\0') */
@@ -45,7 +47,9 @@ int del_backslash (char *msg)
int main (int argc, char **argv)
{
Ecore_Fd_Handler *fd_kb;
+#ifdef _ESPIK_DEBUG_
__indent_level = 0;
+#endif
espik_enter();
printf ("Welcome to %s %s\n", APPS_NAME, ESPIK_VERSION);
@@ -75,25 +79,25 @@ int main (int argc, char **argv)
printf ("nick: %s\n", a_infos.client->nickname);
printf ("user: %s\n", a_infos.client->username);
printf ("real: %s\n", a_infos.client->realname);
-
+
+#if 0
if (!ecore_init ())
{
printf ("Cannot init ecore; %d\n", 1);
exit (-1);
}
- /*
- * 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);
- * }
- */
+ 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 */
fd_kb = ecore_main_fd_handler_add (STDIN_FILENO, ECORE_FD_READ, kb_get,
@@ -103,8 +107,10 @@ 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); */
+ /*
+ ecore_event_handler_add (ECORE_CON_EVENT_SERVER_DATA,
+ (Handler_Func) server_data, NULL);
+ */
espik_con_init (a_infos);
@@ -112,7 +118,9 @@ int main (int argc, char **argv)
ecore_main_loop_begin ();
- /* ecore_con_server_del (con_sock); */
+ /*
+ ecore_con_server_del (con_sock);
+ */
free (a_infos.server->host);
free (a_infos.server);
@@ -124,12 +132,16 @@ int main (int argc, char **argv)
*/
free (a_infos.client);
- /* ecore_main_loop_quit (); */
+ /*
+ ecore_main_loop_quit ();
+ */
espik_debug_print ("end");
ecore_config_shutdown ();
- /* ecore_con_shutdown (); */
+ /*
+ ecore_con_shutdown ();
+ */
ecore_shutdown ();
espik_leave();