aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/lib/iomgr/closure.h
diff options
context:
space:
mode:
authorGravatar ncteisen <ncteisen@gmail.com>2017-11-16 11:09:15 -0800
committerGravatar ncteisen <ncteisen@gmail.com>2017-11-16 11:09:15 -0800
commit232af482b5b8d23de247d051bf206b3a46292552 (patch)
treebc282902ce10af4ff79f4a6d41b64a71955bc534 /src/core/lib/iomgr/closure.h
parentce0ad22f8735581afdb8ce8d78c4293a8b360d2c (diff)
inline helper and remove extern c
Diffstat (limited to 'src/core/lib/iomgr/closure.h')
-rw-r--r--src/core/lib/iomgr/closure.h10
1 files changed, 1 insertions, 9 deletions
diff --git a/src/core/lib/iomgr/closure.h b/src/core/lib/iomgr/closure.h
index 8ecb5b3583..8d6bdc98d8 100644
--- a/src/core/lib/iomgr/closure.h
+++ b/src/core/lib/iomgr/closure.h
@@ -30,10 +30,6 @@
#include "src/core/lib/profiling/timers.h"
#include "src/core/lib/support/mpscq.h"
-#ifdef __cplusplus
-extern "C" {
-#endif
-
struct grpc_closure;
typedef struct grpc_closure grpc_closure;
@@ -152,7 +148,7 @@ typedef struct {
grpc_closure wrapper;
} wrapped_closure;
-void closure_wrapper(grpc_exec_ctx* exec_ctx, void* arg, grpc_error* error) {
+inline void closure_wrapper(grpc_exec_ctx* exec_ctx, void* arg, grpc_error* error) {
wrapped_closure* wc = (wrapped_closure*)arg;
grpc_iomgr_cb_func cb = wc->cb;
void* cb_arg = wc->cb_arg;
@@ -368,8 +364,4 @@ inline void grpc_closure_list_sched(grpc_exec_ctx* exec_ctx,
grpc_closure_list_sched(exec_ctx, closure_list)
#endif
-#ifdef __cplusplus
-}
-#endif
-
#endif /* GRPC_CORE_LIB_IOMGR_CLOSURE_H */