summaryrefslogtreecommitdiff
path: root/src/baresip.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/baresip.c')
-rw-r--r--src/baresip.c13
1 files changed, 12 insertions, 1 deletions
diff --git a/src/baresip.c b/src/baresip.c
index 72d13f1..5605136 100644
--- a/src/baresip.c
+++ b/src/baresip.c
@@ -15,7 +15,7 @@
static struct baresip {
struct network *net;
struct contacts contacts;
-
+ struct commands commands;
} baresip;
@@ -40,12 +40,17 @@ int baresip_init(struct config *cfg, bool prefer_ipv6)
if (err)
return err;
+ err = cmd_init(&baresip.commands);
+ if (err)
+ return err;
+
return 0;
}
void baresip_close(void)
{
+ cmd_close(&baresip.commands);
contact_close(&baresip.contacts);
baresip.net = mem_deref(baresip.net);
@@ -62,3 +67,9 @@ struct contacts *baresip_contacts(void)
{
return &baresip.contacts;
}
+
+
+struct commands *baresip_commands(void)
+{
+ return &baresip.commands;
+}