Go to the documentation of this file.
19 #ifndef GRPCPP_IMPL_CODEGEN_CORE_CODEGEN_H
20 #define GRPCPP_IMPL_CODEGEN_CORE_CODEGEN_H
35 grpc_completion_queue_factory_lookup(
40 void* reserved)
override;
42 void* reserved)
override;
44 void* reserved)
override;
49 void* reserved)
override;
51 void* gpr_malloc(
size_t size)
override;
52 void gpr_free(
void* p)
override;
54 void grpc_init()
override;
55 void grpc_shutdown()
override;
57 void gpr_mu_init(
gpr_mu* mu)
override;
58 void gpr_mu_destroy(
gpr_mu* mu)
override;
59 void gpr_mu_lock(
gpr_mu* mu)
override;
60 void gpr_mu_unlock(
gpr_mu* mu)
override;
61 void gpr_cv_init(
gpr_cv* cv)
override;
62 void gpr_cv_destroy(
gpr_cv* cv)
override;
64 void gpr_cv_signal(
gpr_cv* cv)
override;
65 void gpr_cv_broadcast(
gpr_cv* cv)
override;
68 size_t nops,
void* tag,
69 void* reserved)
override;
72 const char* description,
73 void* reserved)
override;
74 void grpc_call_ref(
grpc_call* call)
override;
75 void grpc_call_unref(
grpc_call* call)
override;
76 void* grpc_call_arena_alloc(
grpc_call* call,
size_t length)
override;
85 void grpc_byte_buffer_reader_destroy(
93 size_t nslices)
override;
94 grpc_slice grpc_slice_new_with_user_data(
void* p,
size_t len,
95 void (*destroy)(
void*),
96 void* user_data)
override;
97 grpc_slice grpc_slice_new_with_len(
void* p,
size_t len,
98 void (*destroy)(
void*,
size_t))
override;
100 grpc_slice grpc_slice_malloc(
size_t length)
override;
101 void grpc_slice_unref(
grpc_slice slice)
override;
108 grpc_slice grpc_slice_from_static_buffer(
const void* buffer,
109 size_t length)
override;
110 grpc_slice grpc_slice_from_copied_buffer(
const void* buffer,
111 size_t length)
override;
118 virtual const Status& ok()
override;
119 virtual const Status& cancelled()
override;
121 void assert_fail(
const char* failed_assertion,
const char* file,
127 #endif // GRPCPP_IMPL_CODEGEN_CORE_CODEGEN_H
grpc_call_error
Result of a grpc call.
Definition: grpc_types.h:424
grpc_status_code
Definition: status.h:26
This header provides an object that reads bytes directly from a grpc::ByteBuffer, via the ZeroCopyInp...
Definition: alarm.h:24
Implementation of the core codegen interface.
Definition: core_codegen.h:32
pthread_cond_t gpr_cv
Definition: sync_posix.h:46
Did it work? If it didn't, why?
Definition: status.h:31
The result of an operation.
Definition: grpc_types.h:531
struct grpc_call grpc_call
A Call represents an RPC.
Definition: grpc_types.h:70
Definition: grpc_types.h:40
Operation data: one field for each op type (except SEND_CLOSE_FROM_CLIENT which has no arguments)
Definition: grpc_types.h:607
A grpc_slice s, if initialized, represents the byte range s.bytes[0..s.length-1].
Definition: slice.h:60
Definition: grpc_types.h:759
Interface between the codegen library and the minimal subset of core features required by the generat...
Definition: core_codegen_interface.h:38
struct grpc_completion_queue_factory grpc_completion_queue_factory
The completion queue factory structure is opaque to the callers of grpc.
Definition: grpc_types.h:779
struct grpc_completion_queue grpc_completion_queue
Completion Queues enable notification of the completion of asynchronous actions.
Definition: grpc_types.h:56
Represents an expandable array of slices, to be interpreted as a single item.
Definition: slice.h:78
Definition: sync_windows.h:26
Analogous to struct timespec.
Definition: gpr_types.h:47
Definition: byte_buffer_reader.h:28
gpr_clock_type
The clocks we support.
Definition: gpr_types.h:31