diff options
author | Benny Prijono <bennylp@teluu.com> | 2007-12-01 08:52:57 +0000 |
---|---|---|
committer | Benny Prijono <bennylp@teluu.com> | 2007-12-01 08:52:57 +0000 |
commit | 2e6a62f43b622320d69971cfc07a68ab59e29f1b (patch) | |
tree | e123dbdeb138f64618e9c5bba112798becec5547 /pjlib/include/pj/ip_helper.h | |
parent | 4ee49ed9e7fda6b2150c400cbe5a10dda99867db (diff) |
More ticket #415: more IPv6 and some reorganization of the source codes
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@1601 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'pjlib/include/pj/ip_helper.h')
-rw-r--r-- | pjlib/include/pj/ip_helper.h | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/pjlib/include/pj/ip_helper.h b/pjlib/include/pj/ip_helper.h index 9515d978..266a785a 100644 --- a/pjlib/include/pj/ip_helper.h +++ b/pjlib/include/pj/ip_helper.h @@ -53,16 +53,24 @@ typedef union pj_ip_route_entry /** - * Enumerate the local IP interface currently active in the host. + * Enumerate the local IP interfaces currently active in the host. * + * @param af Family of the address to be retrieved. Application + * may specify pj_AF_UNSPEC() to retrieve all addresses, + * or pj_AF_INET() or pj_AF_INET6() to retrieve interfaces + * with specific address family. * @param count On input, specify the number of entries. On output, * it will be filled with the actual number of entries. - * @param ifs Array of IP addresses. + * @param ifs Array of socket addresses, which address part will + * be filled with the interface address. The address + * family part will be initialized with the address + * family of the IP address. * * @return PJ_SUCCESS on success, or the appropriate error code. */ -PJ_DECL(pj_status_t) pj_enum_ip_interface(unsigned *count, - pj_in_addr ifs[]); +PJ_DECL(pj_status_t) pj_enum_ip_interface(int af, + unsigned *count, + pj_sockaddr ifs[]); /** |