From 439c2f9cb452c20155d7080930e79bee978b9983 Mon Sep 17 00:00:00 2001 From: "Alfred E. Heggestad" Date: Sun, 5 Jun 2016 15:01:53 +0200 Subject: ua: added ua exit handler --- include/baresip.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'include') diff --git a/include/baresip.h b/include/baresip.h index 201ecb5..68cf423 100644 --- a/include/baresip.h +++ b/include/baresip.h @@ -518,6 +518,8 @@ typedef void (ua_event_h)(struct ua *ua, enum ua_event ev, struct call *call, const char *prm, void *arg); typedef void (options_resp_h)(int err, const struct sip_msg *msg, void *arg); +typedef void (ua_exit_h)(void *arg); + /* Multiple instances */ int ua_alloc(struct ua **uap, const char *aor); int ua_connect(struct ua *ua, struct call **callp, @@ -557,6 +559,7 @@ int ua_init(const char *software, bool udp, bool tcp, bool tls, bool prefer_ipv6); void ua_close(void); void ua_stop_all(bool forced); +void uag_set_exit_handler(ua_exit_h *exith, void *arg); int uag_reset_transp(bool reg, bool reinvite); int uag_event_register(ua_event_h *eh, void *arg); void uag_event_unregister(ua_event_h *eh); -- cgit v1.2.3