diff options
author | 2016-01-29 07:58:22 -0800 | |
---|---|---|
committer | 2016-01-29 07:58:22 -0800 | |
commit | 9b42637047e640e1a139ab5bfd04ef025f7879b5 (patch) | |
tree | 474b04ab5af1a90b08035e3d1de0ad6b5d002888 /include/grpc/support/host_port.h | |
parent | 50d012bb82cec63d87e4bbef0274eef10bcbdf25 (diff) |
Add {GPR,GRPC,CENSUS}_API tags to public functions
Diffstat (limited to 'include/grpc/support/host_port.h')
-rw-r--r-- | include/grpc/support/host_port.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/include/grpc/support/host_port.h b/include/grpc/support/host_port.h index 375d1774e6..30d997fd20 100644 --- a/include/grpc/support/host_port.h +++ b/include/grpc/support/host_port.h @@ -34,6 +34,8 @@ #ifndef GRPC_SUPPORT_HOST_PORT_H #define GRPC_SUPPORT_HOST_PORT_H +#include <grpc/support/port_platform.h> + #ifdef __cplusplus extern "C" { #endif @@ -48,14 +50,14 @@ extern "C" { destroyed using gpr_free(). In the unlikely event of an error, returns -1 and sets *out to NULL. */ -int gpr_join_host_port(char **out, const char *host, int port); +GPR_API int gpr_join_host_port(char **out, const char *host, int port); /* Given a name in the form "host:port" or "[ho:st]:port", split into hostname and port number, into newly allocated strings, which must later be destroyed using gpr_free(). Return 1 on success, 0 on failure. Guarantees *host and *port == NULL on failure. */ -int gpr_split_host_port(const char *name, char **host, char **port); +GPR_API int gpr_split_host_port(const char *name, char **host, char **port); #ifdef __cplusplus } |