comparison src/protocols/bonjour/dns_sd.c @ 11677:8004885fabbe

[gaim-migrate @ 13963] Remove some things from the public namespace by making them static committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Mon, 17 Oct 2005 05:50:30 +0000
parents 5a2c38d33eb4
children b37c439dfcc0
comparison
equal deleted inserted replaced
11676:0c54f9b0e67c 11677:8004885fabbe
227 } 227 }
228 228
229 return SW_OKAY; 229 return SW_OKAY;
230 } 230 }
231 231
232 int 232 static int
233 _dns_sd_publish(BonjourDnsSd *data, PublishType type) 233 _dns_sd_publish(BonjourDnsSd *data, PublishType type)
234 { 234 {
235 sw_text_record dns_data; 235 sw_text_record dns_data;
236 sw_result publish_result; 236 sw_result publish_result;
237 237
279 sw_text_record_fina(dns_data); 279 sw_text_record_fina(dns_data);
280 280
281 return 0; 281 return 0;
282 } 282 }
283 283
284 gboolean 284 static gboolean
285 _dns_sd_handle_packets(GIOChannel *source, GIOCondition condition, gpointer data) 285 _dns_sd_handle_packets(GIOChannel *source, GIOCondition condition, gpointer data)
286 { 286 {
287 sw_discovery_read_socket(*((sw_discovery*)data)); 287 sw_discovery_read_socket(*((sw_discovery*)data));
288 return TRUE; 288 return TRUE;
289 }
290
291 gpointer
292 _dns_sd_wait_for_connections(gpointer data)
293 {
294 sw_discovery_oid session_id;
295 BonjourDnsSd *dns_sd_data = (BonjourDnsSd*)data;
296
297 // Advise the daemon that we are waiting for connections
298 if (sw_discovery_browse(*(dns_sd_data->session), 0, ICHAT_SERVICE, NULL, _browser_reply,
299 dns_sd_data->account, &session_id) != SW_OKAY)
300 {
301 gaim_debug_error("bonjour", "Unable to get service.");
302 return NULL;
303 }
304
305 // Yields control of the cpu to the daemon
306 sw_discovery_run(*(dns_sd_data->session));
307
308 return NULL;
309 } 289 }
310 290
311 // End private functions 291 // End private functions
312 292
313 /** 293 /**