comparison libpurple/network.c @ 15949:b4ab4812838a

purple_pmp_create_map() returns a gboolean now, not a pointer
author Evan Schoenberg <evan.s@dreskin.net>
date Tue, 27 Mar 2007 04:20:55 +0000
parents 3a45be1c3281
children 1a12ce76c4f4
comparison
equal deleted inserted replaced
15948:5c88d2887cc1 15949:b4ab4812838a
362 listen_data->cb_data = cb_data; 362 listen_data->cb_data = cb_data;
363 363
364 #ifdef ENABLE_NAT_PMP 364 #ifdef ENABLE_NAT_PMP
365 /* Attempt a NAT-PMP Mapping, which will return immediately */ 365 /* Attempt a NAT-PMP Mapping, which will return immediately */
366 if (purple_pmp_create_map(((socket_type == SOCK_STREAM) ? PURPLE_PMP_TYPE_TCP : PURPLE_PMP_TYPE_UDP), 366 if (purple_pmp_create_map(((socket_type == SOCK_STREAM) ? PURPLE_PMP_TYPE_TCP : PURPLE_PMP_TYPE_UDP),
367 actual_port, actual_port, PURPLE_PMP_LIFETIME) != NULL) 367 actual_port, actual_port, PURPLE_PMP_LIFETIME))
368 { 368 {
369 purple_debug_info("network", "Created NAT-PMP mapping on port %i",actual_port); 369 purple_debug_info("network", "Created NAT-PMP mapping on port %i",actual_port);
370 /* We want to return listen_data now, and on the next run loop trigger the cb and destroy listen_data */ 370 /* We want to return listen_data now, and on the next run loop trigger the cb and destroy listen_data */
371 purple_timeout_add(0, purple_network_finish_pmp_map_cb, listen_data); 371 purple_timeout_add(0, purple_network_finish_pmp_map_cb, listen_data);
372 } 372 }