summaryrefslogtreecommitdiff
path: root/src/examples
diff options
context:
space:
mode:
authorCedric Bail <cedric.bail@free.fr>2014-02-28 19:58:25 -0300
committerCedric Bail <cedric.bail@free.fr>2014-02-28 19:58:25 -0300
commitf3ba81f7c18d787eb6bcf4737f14144c08145e9c (patch)
tree9a5dba3b53a32182e76a289dea176203f41a5796 /src/examples
parent7d3e7ad748b905b2bdbf6c0cf16478e3cff78376 (diff)
ecore_avahi: remove useless printf.
Diffstat (limited to 'src/examples')
-rw-r--r--src/examples/ecore_avahi/ecore_avahi_browse_example.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/examples/ecore_avahi/ecore_avahi_browse_example.c b/src/examples/ecore_avahi/ecore_avahi_browse_example.c
index b3ca07c723..6935a13bdd 100644
--- a/src/examples/ecore_avahi/ecore_avahi_browse_example.c
+++ b/src/examples/ecore_avahi/ecore_avahi_browse_example.c
@@ -90,7 +90,6 @@ _browse_callback(AvahiServiceBrowser *b, AvahiIfIndex interface,
90 assert(b); 90 assert(b);
91 91
92 /* Called whenever a new services becomes available on the LAN or is removed from the LAN */ 92 /* Called whenever a new services becomes available on the LAN or is removed from the LAN */
93
94 switch (event) { 93 switch (event) {
95 case AVAHI_BROWSER_FAILURE: 94 case AVAHI_BROWSER_FAILURE:
96 95
@@ -127,13 +126,11 @@ _ecore_avahi_client_cb(AvahiClient *c, AvahiClientState state, void * userdata)
127{ 126{
128 Ecore_Avahi_Example *example = userdata; 127 Ecore_Avahi_Example *example = userdata;
129 128
130 fprintf(stderr, "_ecore_avahi_client_cb: %i\n", state);
131 switch (state) 129 switch (state)
132 { 130 {
133 case AVAHI_CLIENT_S_REGISTERING: 131 case AVAHI_CLIENT_S_REGISTERING:
134 case AVAHI_CLIENT_S_COLLISION: 132 case AVAHI_CLIENT_S_COLLISION:
135 case AVAHI_CLIENT_S_RUNNING: 133 case AVAHI_CLIENT_S_RUNNING:
136 fprintf(stderr, "time to create sb\n");
137 if (!example->sb) 134 if (!example->sb)
138 { 135 {
139 example->sb = avahi_service_browser_new(c, AVAHI_IF_UNSPEC, AVAHI_PROTO_UNSPEC, "_ipp._tcp", NULL, 0, _browse_callback, c); 136 example->sb = avahi_service_browser_new(c, AVAHI_IF_UNSPEC, AVAHI_PROTO_UNSPEC, "_ipp._tcp", NULL, 0, _browse_callback, c);
@@ -147,7 +144,6 @@ _ecore_avahi_client_cb(AvahiClient *c, AvahiClientState state, void * userdata)
147 break; 144 break;
148 145
149 case AVAHI_CLIENT_FAILURE: 146 case AVAHI_CLIENT_FAILURE:
150 fprintf(stderr, "Server connection failure: %s.", avahi_strerror(avahi_client_errno(c)));
151 if (avahi_client_errno(c) == AVAHI_ERR_DISCONNECTED) 147 if (avahi_client_errno(c) == AVAHI_ERR_DISCONNECTED)
152 { 148 {
153 FREE_CLEAN(example->sb, avahi_service_browser_free); 149 FREE_CLEAN(example->sb, avahi_service_browser_free);
@@ -158,7 +154,6 @@ _ecore_avahi_client_cb(AvahiClient *c, AvahiClientState state, void * userdata)
158 break; 154 break;
159 } 155 }
160 case AVAHI_CLIENT_CONNECTING: 156 case AVAHI_CLIENT_CONNECTING:
161 fprintf(stderr, "not connected yet\n");
162 FREE_CLEAN(example->sb, avahi_service_browser_free); 157 FREE_CLEAN(example->sb, avahi_service_browser_free);
163 break; 158 break;
164 } 159 }