aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/lib/gpr/string.h
diff options
context:
space:
mode:
authorGravatar Noah Eisen <ncteisen@gmail.com>2018-07-18 07:34:24 -0700
committerGravatar GitHub <noreply@github.com>2018-07-18 07:34:24 -0700
commita9f3d78c6ef4897816f696366814967fd5db2ad6 (patch)
tree5d56c5b7490b1b609f64fc01da46662362720526 /src/core/lib/gpr/string.h
parent3904de99b8539acd0957d5e5f65e1d5531fefdaf (diff)
parent2968bf687af0f5e0db591d20276b79a7fd627c31 (diff)
Merge pull request #15980 from ncteisen/channelz-subchannel-refs
Channelz Part 3: Subchannel Refs Support for PickFirst
Diffstat (limited to 'src/core/lib/gpr/string.h')
-rw-r--r--src/core/lib/gpr/string.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/core/lib/gpr/string.h b/src/core/lib/gpr/string.h
index 2e8a4898d9..ce51fe4632 100644
--- a/src/core/lib/gpr/string.h
+++ b/src/core/lib/gpr/string.h
@@ -21,6 +21,8 @@
#include <grpc/support/port_platform.h>
+#include <grpc/impl/codegen/gpr_types.h>
+
#include <stdbool.h>
#include <stddef.h>
@@ -81,6 +83,14 @@ char* gpr_strjoin_sep(const char** strs, size_t nstrs, const char* sep,
void gpr_string_split(const char* input, const char* sep, char*** strs,
size_t* nstrs);
+/* Returns an allocated string that represents tm according to RFC-3339, and,
+ more specifically, follows:
+ https://developers.google.com/protocol-buffers/docs/proto3#json
+
+ Uses RFC 3339, where generated output will always be Z-normalized and uses
+ 0, 3, 6 or 9 fractional digits. */
+char* gpr_format_timespec(gpr_timespec);
+
/* A vector of strings... for building up a final string one piece at a time */
typedef struct {
char** strs;