Deferred instantiation of socket implmentations until registration.

Instantiating the implementations on plugin load was problematic
in case multiple socket plugins were loaded. Now, the first one
registered is instantiated.
This commit is contained in:
Tobias Brunner
2010-10-15 17:30:21 +02:00
parent 4de8398f93
commit fa20849431
11 changed files with 104 additions and 78 deletions
@@ -35,10 +35,6 @@ struct socket_default_socket_t {
*/
socket_t socket;
/**
* Destroy a socket_default_socket_t.
*/
void (*destroy)(socket_default_socket_t *this);
};
/**