util: Add API to check address family of IP address

This commit is contained in:
Evangelos Ribeiro Tzaras
2022-10-09 11:57:00 +02:00
parent 29a2059e0e
commit 1deee0b71b
3 changed files with 78 additions and 0 deletions

View File

@@ -129,5 +129,7 @@ const char *get_protocol_from_address_with_fallback (const char *target);
gboolean dtmf_tone_key_is_valid (char key);
const char *get_call_icon_symbolic_name (gboolean inbound,
gboolean missed);
int get_address_family_for_ip (const char *ip,
gboolean only_configured_interfaces);
G_END_DECLS