From 8f691e6c947092da9c046b451f7666fc981fae8f Mon Sep 17 00:00:00 2001 From: Alistair Veitch Date: Mon, 31 Aug 2015 08:27:11 -0700 Subject: [PATCH] add clone to aggregation ops --- include/grpc/census.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/include/grpc/census.h b/include/grpc/census.h index 3fd8266acd5..f01c8e30bfc 100644 --- a/include/grpc/census.h +++ b/include/grpc/census.h @@ -194,8 +194,10 @@ void census_record(census_context *context, census_value *values, /** Structure used to describe an aggregation type. */ typedef struct { /* Create a new aggregation. The pointer returned can be used in future calls - to free(), record(), data() and reset(). */ + to clone(), free(), record(), data() and reset(). */ void *(*create)(const void *create_arg); + /* Make a copy of an aggregation created by create() */ + void *(*clone)(const void *aggregation); /* Destroy an aggregation created by create() */ void (*free)(void *aggregation); /* Record a new value against aggregation. */