diff options
author | Mark D. Roth <roth@google.com> | 2017-06-29 08:11:57 -0700 |
---|---|---|
committer | Mark D. Roth <roth@google.com> | 2017-06-29 08:11:57 -0700 |
commit | cc4ef5919f81dc0c1be14172785da0f4d24d1e21 (patch) | |
tree | dea6cc89dbcba2dda817a75cc2bb924f53f5a464 /src/core | |
parent | a410632b570a8717eb5f3c1f43eb84bf80e0aca9 (diff) |
Improvements to C++ filter API:
- Make sure all C-core parameters are passed into C++ methods.
- Add Destroy() methods for ChannelData and CallData.
- Use C++-style casts.
- Add 'extern "C"' to iomgr/closure.h, which is used in C++ filters.
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/lib/iomgr/closure.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/core/lib/iomgr/closure.h b/src/core/lib/iomgr/closure.h index 2560bf4527..cd32a4ba38 100644 --- a/src/core/lib/iomgr/closure.h +++ b/src/core/lib/iomgr/closure.h @@ -26,6 +26,10 @@ #include "src/core/lib/iomgr/error.h" #include "src/core/lib/support/mpscq.h" +#ifdef __cplusplus +extern "C" { +#endif + struct grpc_closure; typedef struct grpc_closure grpc_closure; @@ -197,4 +201,8 @@ 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 */ |