aboutsummaryrefslogtreecommitdiff
path: root/src/espik_net.c
diff options
context:
space:
mode:
authorbeber <beber>2005-12-09 22:28:13 +0000
committerbeber <beber>2005-12-09 22:28:13 +0000
commit1bd7932bef84af9a3ab6125b2ae5ff9d1aaeff6a (patch)
tree642e7925378e5707dfb5a750b19cab19497fcf66 /src/espik_net.c
parentiadd a macro for ecore (diff)
downloadespik-1bd7932bef84af9a3ab6125b2ae5ff9d1aaeff6a.tar.xz
Add a profiler in code
Diffstat (limited to 'src/espik_net.c')
-rw-r--r--src/espik_net.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/espik_net.c b/src/espik_net.c
index 460009c..219e262 100644
--- a/src/espik_net.c
+++ b/src/espik_net.c
@@ -23,6 +23,7 @@ Ecore_Con_Server* con_sock;
void espik_con_init (t_info serv_info)
{
int nb_launch;
+ espik_enter();
nb_launch = ecore_con_init ();
@@ -56,10 +57,12 @@ void espik_con_init (t_info serv_info)
espik_debug_print ("ecore_event_handler_add (ECORE_CON_EVENT_SERVER_DEL)");
exit (-1);
}
+ espik_leave();
}
void espik_con_up()
{
+ espik_enter();
printf ("Connected\n");
espik_debug_print ("<<<<<<<< DUMMMMY CODE >>>>>>>");
@@ -79,10 +82,12 @@ void espik_con_up()
espik_debug_print ("<<<<<<<< DUMMMMY CODE >>>>>>>");
connected++;
+ espik_leave();
}
void espik_con_shutdown ()
{
+ espik_enter();
/* espik_debug_print ("> espik_con_shutdown"); */
if (!connected)
@@ -93,12 +98,14 @@ void espik_con_shutdown ()
/* espik_debug_print ("< espik_con_shutdown"); */
ecore_main_loop_quit ();
+ espik_leave();
}
void espik_raw_send (char *msg)
{
int len;
char* out;
+ espik_enter();
len = strlen (msg) + 3;
@@ -118,4 +125,5 @@ void espik_raw_send (char *msg)
/* espik_debug_print ("%d", ret); */
free (out);
+ espik_leave();
}