aboutsummaryrefslogtreecommitdiffstats
path: root/package/tapi_sip/src/contact.h
diff options
context:
space:
mode:
Diffstat (limited to 'package/tapi_sip/src/contact.h')
-rw-r--r--package/tapi_sip/src/contact.h33
1 files changed, 33 insertions, 0 deletions
diff --git a/package/tapi_sip/src/contact.h b/package/tapi_sip/src/contact.h
new file mode 100644
index 0000000000..1fb0037bf6
--- /dev/null
+++ b/package/tapi_sip/src/contact.h
@@ -0,0 +1,33 @@
+#ifndef __CONTACT_H__
+#define __CONTACT_H__
+
+#include <ucimap.h>
+
+struct account {
+ struct ucimap_section_data map;
+ const char *name;
+ char *realm;
+ char *username;
+ char *password;
+ int sip_port;
+ char *stun_host;
+ int stun_port;
+ struct list_head head;
+};
+
+struct contact {
+ struct ucimap_section_data map;
+ const char *name;
+ const char *identifier;
+ const char *number;
+
+ struct list_head head;
+};
+
+int contacts_init(void);
+void contacts_free(void);
+struct contact *contact_get(const char *number);
+
+struct account *get_account(void);
+
+#endif