[ifxmips]
[openwrt.git] / package / tapi_sip / src / contact.h
1 #ifndef __CONTACT_H__
2 #define __CONTACT_H__
3
4 #include <ucimap.h>
5
6 struct account {
7         struct ucimap_section_data map;
8         const char *name;
9         char *realm;
10         char *username;
11         char *password;
12         int sip_port;
13         char *stun_host;
14         int stun_port;
15         struct list_head head;
16 };
17
18 struct contact {
19         struct ucimap_section_data map;
20         const char *name;
21         const char *identifier;
22         const char *number;
23
24         struct list_head head;
25 };
26
27 int contacts_init(void);
28 void contacts_free(void);
29 struct contact *contact_get(const char *number);
30
31 struct account *get_account(void);
32
33 #endif