From 38338e9922ce1a819a0a977914fa402780b2213f Mon Sep 17 00:00:00 2001 From: Craig Tiller Date: Thu, 1 Jun 2017 12:50:12 -0700 Subject: [PATCH] Publish struct size --- src/core/lib/surface/completion_queue.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/core/lib/surface/completion_queue.c b/src/core/lib/surface/completion_queue.c index 769a700b666..3d3da15333f 100644 --- a/src/core/lib/surface/completion_queue.c +++ b/src/core/lib/surface/completion_queue.c @@ -334,7 +334,8 @@ static void cq_destroy_pluck(void *data); /* Completion queue vtables based on the completion-type */ static const cq_vtable g_cq_vtable[] = { /* GRPC_CQ_NEXT */ - {.cq_completion_type = GRPC_CQ_NEXT, + {.data_size = sizeof(cq_next_data), + .cq_completion_type = GRPC_CQ_NEXT, .init = cq_init_next, .shutdown = cq_shutdown_next, .destroy = cq_destroy_next, @@ -343,7 +344,8 @@ static const cq_vtable g_cq_vtable[] = { .next = cq_next, .pluck = NULL}, /* GRPC_CQ_PLUCK */ - {.cq_completion_type = GRPC_CQ_PLUCK, + {.data_size = sizeof(cq_pluck_data), + .cq_completion_type = GRPC_CQ_PLUCK, .init = cq_init_pluck, .shutdown = cq_shutdown_pluck, .destroy = cq_destroy_pluck,