aboutsummaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
authorGravatar Vijay Pai <vpai@google.com>2018-02-08 10:14:29 -0800
committerGravatar GitHub <noreply@github.com>2018-02-08 10:14:29 -0800
commit7bd5e18fea0201fed3edd74e3c3d7caf9040609c (patch)
treebeb3614571da414c6ec292918b7838fbf5bc3ef8 /include
parentf37d33a21ad5775883f516011cbdd141119a571f (diff)
parentb1ef84a7fdef7fc06680515748b007b6142ae9d1 (diff)
Merge pull request #14197 from vjpai/gpr_review_host_port
GPR review: privatize host_port.h
Diffstat (limited to 'include')
-rw-r--r--include/grpc/module.modulemap1
-rw-r--r--include/grpc/support/host_port.h51
2 files changed, 0 insertions, 52 deletions
diff --git a/include/grpc/module.modulemap b/include/grpc/module.modulemap
index da95515d8e..8e8428bab3 100644
--- a/include/grpc/module.modulemap
+++ b/include/grpc/module.modulemap
@@ -7,7 +7,6 @@ framework module grpc {
header "support/avl.h"
header "support/cmdline.h"
header "support/cpu.h"
- header "support/host_port.h"
header "support/log.h"
header "support/log_windows.h"
header "support/port_platform.h"
diff --git a/include/grpc/support/host_port.h b/include/grpc/support/host_port.h
deleted file mode 100644
index 9805811bfb..0000000000
--- a/include/grpc/support/host_port.h
+++ /dev/null
@@ -1,51 +0,0 @@
-/*
- *
- * Copyright 2015 gRPC authors.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
- */
-
-#ifndef GRPC_SUPPORT_HOST_PORT_H
-#define GRPC_SUPPORT_HOST_PORT_H
-
-#include <grpc/support/port_platform.h>
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-/** Given a host and port, creates a newly-allocated string of the form
- "host:port" or "[ho:st]:port", depending on whether the host contains colons
- like an IPv6 literal. If the host is already bracketed, then additional
- brackets will not be added.
-
- Usage is similar to gpr_asprintf: returns the number of bytes written
- (excluding the final '\0'), and *out points to a string which must later be
- destroyed using gpr_free().
-
- In the unlikely event of an error, returns -1 and sets *out to NULL. */
-GPRAPI 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. */
-GPRAPI int gpr_split_host_port(const char* name, char** host, char** port);
-
-#ifdef __cplusplus
-}
-#endif
-
-#endif /* GRPC_SUPPORT_HOST_PORT_H */