Commit 5ce6f8ac authored by Pekka Pessi's avatar Pekka Pessi

Maded tport stun plugin pointer private.

darcs-hash:20060418053431-65a35-7fd61bef24eb1c82c4ba1118e7906abade23b833.gz
parent 266357e4
...@@ -39,6 +39,12 @@ ...@@ -39,6 +39,12 @@
#include <assert.h> #include <assert.h>
/* ---------------------------------------------------------------------- */
/* Plugin pointer */
tport_stun_server_vtable_t const *tport_stun_server_vtable = NULL;
static static
tport_stun_server_t *vst_create(su_root_t *root, tagi_t const *tags) tport_stun_server_t *vst_create(su_root_t *root, tagi_t const *tags)
{ {
...@@ -62,6 +68,7 @@ int tport_init_stun_server(tport_master_t *mr, tagi_t const *tags) ...@@ -62,6 +68,7 @@ int tport_init_stun_server(tport_master_t *mr, tagi_t const *tags)
tport_stun_server_vtable_t const *vst = tport_stun_server_vtable; tport_stun_server_vtable_t const *vst = tport_stun_server_vtable;
if (vst == NULL) if (vst == NULL)
/* Nobody has plugged better server in, use miniserver */
tport_stun_server_vtable = vst = &stun_mini_vtable; tport_stun_server_vtable = vst = &stun_mini_vtable;
if (!vst) if (!vst)
...@@ -261,8 +268,6 @@ int tport_keepalive(tport_t *tp, su_addrinfo_t const *ai, ...@@ -261,8 +268,6 @@ int tport_keepalive(tport_t *tp, su_addrinfo_t const *ai,
/* ---------------------------------------------------------------------- */ /* ---------------------------------------------------------------------- */
/* Plugin interface */ /* Plugin interface */
tport_stun_server_vtable_t const *tport_stun_server_vtable = NULL;
/** Plug in stun server. /** Plug in stun server.
* *
* @note This function @b must be called before any transport is initialized. * @note This function @b must be called before any transport is initialized.
......
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