aboutsummaryrefslogtreecommitdiffhomepage
path: root/templates/src
diff options
context:
space:
mode:
authorGravatar Yash Tibrewal <yashkt@google.com>2017-09-21 15:49:55 -0700
committerGravatar Yash Tibrewal <yashkt@google.com>2017-10-02 16:26:53 -0700
commit1c9b584a153ff592c92b6cf6baa620d8602a37cd (patch)
treed0b37f8e7536144d2f8549d48901e732093e81e6 /templates/src
parent53a47f09e2fe9755608eac9308a90d232fb1551f (diff)
Changes for C to C++. Adding extern C to header files for compatibility.
Diffstat (limited to 'templates/src')
-rw-r--r--templates/src/core/lib/surface/version.cc.template (renamed from templates/src/core/lib/surface/version.c.template)0
-rw-r--r--templates/src/core/plugin_registry.template6
2 files changed, 3 insertions, 3 deletions
diff --git a/templates/src/core/lib/surface/version.c.template b/templates/src/core/lib/surface/version.cc.template
index d2efa565e5..d2efa565e5 100644
--- a/templates/src/core/lib/surface/version.c.template
+++ b/templates/src/core/lib/surface/version.cc.template
diff --git a/templates/src/core/plugin_registry.template b/templates/src/core/plugin_registry.template
index cf0f4f523e..8d7617129f 100644
--- a/templates/src/core/plugin_registry.template
+++ b/templates/src/core/plugin_registry.template
@@ -2,7 +2,7 @@
---
foreach: libs
cond: selected.get('generate_plugin_registry', False)
-output_name: ${selected.name}_plugin_registry.c
+output_name: ${selected.name}_plugin_registry.cc
template: |
/*
*
@@ -25,8 +25,8 @@ template: |
#include <grpc/grpc.h>
%for plugin in selected.plugins:
- extern void ${plugin}_init(void);
- extern void ${plugin}_shutdown(void);
+ extern "C" void ${plugin}_init(void);
+ extern "C" void ${plugin}_shutdown(void);
%endfor
void grpc_register_built_in_plugins(void) {