Juniper / grpc-c

C implementation of gRPC layered on top of core library
BSD 3-Clause "New" or "Revised" License
220 stars 59 forks source link

extra "uint32_t flags" in generated client code #28

Closed zwumdd closed 6 years ago

zwumdd commented 6 years ago

Hi Ajay,

I tried the steps, the generated foo.grpc-c.h file has an extra "uint32_t flags" parameter (6 params total), however the caller does not (5 params total), resulting in the following compile error:

foo.grpc-c.h:

int foogreetersay_hello (grpc_c_client_t client, grpc_c_metadata_array_t a rray, uint32_t flags, FooHelloRequest *input, FooHelloReply *output, grpc_c _status_t status, long timeout);

../../examples/foo_client.c:46:18: error: too few arguments to function ‘foogreetersay_hello’ int status = foogreetersay_hello(client, NULL, &h, &r, NULL, -1);

zwumdd commented 6 years ago

also _write and _finish have similar issues:

../../examples/foo_server.c:50:10: error: too few arguments to function ‘context->gcc_stream->write’ if (!context->gcc_stream->write(context, &r, -1)) {

../../examples/foo_server.c:63:9: error: too few arguments to function ‘context->gcc_stream->finish’ if (context->gcc_stream->finish(context, &status)) {

ajhai commented 6 years ago

Commit 1aa14a9 updates examples with new API.