diff options
author | Craig Tiller <ctiller@google.com> | 2016-11-21 13:46:31 -0800 |
---|---|---|
committer | Craig Tiller <ctiller@google.com> | 2016-11-21 13:46:31 -0800 |
commit | 3b05e1da916aa298fe58a58ec79a7f7c043534c7 (patch) | |
tree | 72353f42667b389f913e6a5164019199000eded7 /include/grpc/impl/codegen/slice.h | |
parent | 73ee7dc5590447bc726f7a1c3e51c2a217c8d5b6 (diff) |
Move from cmp --> eq, and provide a good implementation for interning
Diffstat (limited to 'include/grpc/impl/codegen/slice.h')
-rw-r--r-- | include/grpc/impl/codegen/slice.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/grpc/impl/codegen/slice.h b/include/grpc/impl/codegen/slice.h index ecce1ca089..fbd18e6c65 100644 --- a/include/grpc/impl/codegen/slice.h +++ b/include/grpc/impl/codegen/slice.h @@ -57,7 +57,8 @@ typedef struct grpc_slice grpc_slice; typedef struct grpc_slice_refcount_vtable { void (*ref)(void *); void (*unref)(grpc_exec_ctx *exec_ctx, void *); - uint32_t (*hash)(void *, grpc_slice slice); + int (*eq)(grpc_slice a, grpc_slice b); + uint32_t (*hash)(grpc_slice slice); } grpc_slice_refcount_vtable; /* Reference count container for grpc_slice. Contains function pointers to |