summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAlfred E. Heggestad <aeh@db.org>2016-06-05 15:01:53 +0200
committerAlfred E. Heggestad <aeh@db.org>2016-06-05 15:01:53 +0200
commit439c2f9cb452c20155d7080930e79bee978b9983 (patch)
tree37aa9bfadcb196588ceb36f983c64c5bff166d37 /include
parent8dee67182685e7d738f4752fc60b754fd96fa35a (diff)
ua: added ua exit handler
Diffstat (limited to 'include')
-rw-r--r--include/baresip.h3
1 files changed, 3 insertions, 0 deletions
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);