aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/grpc/census.h
diff options
context:
space:
mode:
authorGravatar Alistair Veitch <aveitch@google.com>2015-08-31 08:27:11 -0700
committerGravatar Alistair Veitch <aveitch@google.com>2015-08-31 08:27:11 -0700
commit8f691e6c947092da9c046b451f7666fc981fae8f (patch)
tree937e014d1a3932fa3f4cad1d94354c8cdc15bba7 /include/grpc/census.h
parentae7bbfcb92a519c5a97aae51b2e668cb2d75fe67 (diff)
add clone to aggregation ops
Diffstat (limited to 'include/grpc/census.h')
-rw-r--r--include/grpc/census.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/grpc/census.h b/include/grpc/census.h
index 3fd8266acd..f01c8e30bf 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. */