aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/lib/iomgr/sockaddr_utils.h
diff options
context:
space:
mode:
authorGravatar David Garcia Quintas <dgq@google.com>2017-02-13 10:13:24 -0800
committerGravatar David Garcia Quintas <dgq@google.com>2017-02-13 10:13:24 -0800
commit7317195b8e1e05109ee2e71131e90a90a0a09f40 (patch)
tree5ba8bf3bc89c55b83b27a2b499af71ee380c10e1 /src/core/lib/iomgr/sockaddr_utils.h
parent191d52c4c1246b7fb80a901186fa39f101738815 (diff)
parentee31910271a72c4e454a9d64ceafa530566388a6 (diff)
Merge branch 'master' of github.com:grpc/grpc into compression_implicit_encoding
Diffstat (limited to 'src/core/lib/iomgr/sockaddr_utils.h')
-rw-r--r--src/core/lib/iomgr/sockaddr_utils.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/core/lib/iomgr/sockaddr_utils.h b/src/core/lib/iomgr/sockaddr_utils.h
index 5371e360c5..2b22f11b49 100644
--- a/src/core/lib/iomgr/sockaddr_utils.h
+++ b/src/core/lib/iomgr/sockaddr_utils.h
@@ -84,6 +84,10 @@ int grpc_sockaddr_set_port(const grpc_resolved_address *addr, int port);
int grpc_sockaddr_to_string(char **out, const grpc_resolved_address *addr,
int normalize);
+/* Returns the URI string corresponding to \a addr */
char *grpc_sockaddr_to_uri(const grpc_resolved_address *addr);
+/* Returns the URI scheme corresponding to \a addr */
+const char *grpc_sockaddr_get_uri_scheme(const grpc_resolved_address *addr);
+
#endif /* GRPC_CORE_LIB_IOMGR_SOCKADDR_UTILS_H */