34 #ifndef GRPCXX_IMPL_CODEGEN_CORE_CODEGEN_INTERFACE_H 35 #define GRPCXX_IMPL_CODEGEN_CORE_CODEGEN_INTERFACE_H 53 virtual void assert_fail(
const char* failed_assertion) = 0;
97 #define GPR_CODEGEN_ASSERT(x) \ 100 grpc::g_core_codegen_interface->assert_fail(#x); \ 106 #endif // GRPCXX_IMPL_CODEGEN_CORE_CODEGEN_INTERFACE_H
virtual gpr_timespec gpr_inf_future(gpr_clock_type type)=0
virtual void grpc_metadata_array_destroy(grpc_metadata_array *array)=0
virtual gpr_slice gpr_slice_split_tail(gpr_slice *s, size_t split)=0
gpr_clock_type
Definition: time.h:49
virtual void grpc_byte_buffer_reader_destroy(grpc_byte_buffer_reader *reader)=0
virtual void assert_fail(const char *failed_assertion)=0
Upon a failed assertion, log the error.
The result of an operation.
Definition: grpc_types.h:258
virtual const Status & cancelled()=0
Definition: byte_buffer.h:49
virtual void grpc_completion_queue_destroy(grpc_completion_queue *cq)=0
Definition: slice_buffer.h:47
virtual gpr_slice gpr_slice_malloc(size_t length)=0
virtual void grpc_byte_buffer_destroy(grpc_byte_buffer *bb)=0
virtual int grpc_byte_buffer_reader_next(grpc_byte_buffer_reader *reader, gpr_slice *slice)=0
virtual void gpr_slice_buffer_add(gpr_slice_buffer *sb, gpr_slice slice)=0
CoreCodegenInterface * g_core_codegen_interface
Definition: call.h:62
virtual grpc_byte_buffer * grpc_raw_byte_buffer_create(gpr_slice *slice, size_t nslices)=0
Interface between the codegen library and the minimal subset of core features required by the generat...
Definition: core_codegen_interface.h:50
virtual void gpr_slice_unref(gpr_slice slice)=0
Did it work? If it didn't, why?
Definition: status.h:45
virtual const Status & ok()=0
virtual void grpc_metadata_array_init(grpc_metadata_array *array)=0
Definition: byte_buffer_reader.h:43
virtual void gpr_free(void *p)=0
virtual int grpc_byte_buffer_reader_init(grpc_byte_buffer_reader *reader, grpc_byte_buffer *buffer) GRPC_MUST_USE_RESULT=0
struct grpc_completion_queue grpc_completion_queue
Completion Queues enable notification of the completion of asynchronous actions.
Definition: grpc_types.h:48
virtual void gpr_slice_buffer_pop(gpr_slice_buffer *sb)=0
virtual grpc_completion_queue * grpc_completion_queue_create(void *reserved)=0
virtual grpc_event grpc_completion_queue_pluck(grpc_completion_queue *cq, void *tag, gpr_timespec deadline, void *reserved)=0
virtual void * gpr_malloc(size_t size)=0