Commit 76a1da38 authored by Dafydd Harries's avatar Dafydd Harries

add close() function to UDP socket manager vtable

darcs-hash:20070111142052-c9803-53a00fcb6bea370784de0ad518140e84812b20c3.gz
parent de8d985f
......@@ -105,14 +105,15 @@ udp_socket_manager_select (UDPPacketRecvFunc cb)
}
void
udp_socket_manager_init (struct UDPSocketManager *man)
udp_socket_manager_close (struct UDPSocketManager *man)
{
man->init = udp_socket_manager_init_socket;
man->select = udp_socket_manager_select;
}
void
udp_socket_manager_close (struct UDPSocketManager *man)
udp_socket_manager_init (struct UDPSocketManager *man)
{
man->init = udp_socket_manager_init_socket;
man->select = udp_socket_manager_select;
man->close = udp_socket_manager_close;
}
......@@ -21,6 +21,7 @@ struct UDPSocketManager
gboolean (*init) (struct UDPSocketManager *man, struct UDPSocket *sock,
struct sockaddr_in *sin);
void (*select) (UDPPacketRecvFunc cb);
void (*close) (struct UDPSocketManager *man);
};
void
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment