diff options
Diffstat (limited to 'pjnath/include/pjnath/stun_sock.h')
-rw-r--r-- | pjnath/include/pjnath/stun_sock.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/pjnath/include/pjnath/stun_sock.h b/pjnath/include/pjnath/stun_sock.h index f9e9be2e..30e94a2d 100644 --- a/pjnath/include/pjnath/stun_sock.h +++ b/pjnath/include/pjnath/stun_sock.h @@ -27,6 +27,7 @@ #include <pjnath/stun_config.h> #include <pjlib-util/resolver.h> #include <pj/ioqueue.h> +#include <pj/lock.h> #include <pj/sock.h> #include <pj/sock_qos.h> @@ -218,6 +219,14 @@ typedef struct pj_stun_sock_info typedef struct pj_stun_sock_cfg { /** + * The group lock to be used by the STUN socket. If NULL, the STUN socket + * will create one internally. + * + * Default: NULL + */ + pj_grp_lock_t *grp_lock; + + /** * Packet buffer size. * * Default value is PJ_STUN_SOCK_PKT_LEN. |