diff options
author | Craig Tiller <craig.tiller@gmail.com> | 2016-01-15 21:13:52 -0800 |
---|---|---|
committer | Craig Tiller <craig.tiller@gmail.com> | 2016-01-15 21:13:52 -0800 |
commit | b22aeae4629ebd1e3b6183652c94ec5e26b4cc24 (patch) | |
tree | bf68cfffba83cd79c3b5066b43f3d9110500c2ec /src/core/transport/metadata.h | |
parent | 694cf8b0d266f4fadcc5b52f1bfc6f2c0dd1ccb5 (diff) | |
parent | 7e098a272ccb2b2ac06464064cb59fca857e2e2a (diff) |
Merge github.com:grpc/grpc into sceq
Diffstat (limited to 'src/core/transport/metadata.h')
-rw-r--r-- | src/core/transport/metadata.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/core/transport/metadata.h b/src/core/transport/metadata.h index a7c9fd6e84..8742846be7 100644 --- a/src/core/transport/metadata.h +++ b/src/core/transport/metadata.h @@ -1,6 +1,6 @@ /* * - * Copyright 2015, Google Inc. + * Copyright 2015-2016, Google Inc. * All rights reserved. * * Redistribution and use in source and binary forms, with or without @@ -142,6 +142,8 @@ void grpc_mdelem_unref(grpc_mdelem *md); Does not promise that the returned string has no embedded nulls however. */ const char *grpc_mdstr_as_c_string(grpc_mdstr *s); +#define GRPC_MDSTR_LENGTH(s) (GPR_SLICE_LENGTH(s->slice)) + int grpc_mdstr_is_legal_header(grpc_mdstr *s); int grpc_mdstr_is_legal_nonbin_header(grpc_mdstr *s); int grpc_mdstr_is_bin_suffixed(grpc_mdstr *s); |