Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMircea Gherzan2019-11-04 14:09:48 -0500
committerMircea Gherzan2019-11-04 14:18:23 -0500
commitfc020e24ccb3259594f8ede07fba9fadcf38b90e (patch)
treefdcf1060d8f9cc13a319c6c63fc43502466ed9d4
parent6308f5a69a741cb2266cf701c6fd333cd6a27ae1 (diff)
downloadorg.eclipse.tcf.agent-fc020e24ccb3259594f8ede07fba9fadcf38b90e.tar.gz
org.eclipse.tcf.agent-fc020e24ccb3259594f8ede07fba9fadcf38b90e.tar.xz
org.eclipse.tcf.agent-fc020e24ccb3259594f8ede07fba9fadcf38b90e.zip
TCF Server: add the EXTRA_SERVICE_INIT_HOOK
This allows other services to be initialized in the proxy channel redirection listener. Change-Id: I734a317c9f59311e583e664e4cac84bcd4639844 Signed-off-by: Mircea Gherzan <mircea.gherzan@intel.com>
-rw-r--r--server/tcf/main/server.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/server/tcf/main/server.c b/server/tcf/main/server.c
index d037e7c2..0968be2b 100644
--- a/server/tcf/main/server.c
+++ b/server/tcf/main/server.c
@@ -48,6 +48,11 @@
#define SERVER_ADDPROP_HOOK do {} while(0)
#endif
+/* Hook for initializing extra services */
+#ifndef EXTRA_SERVICE_INIT_HOOK
+#define EXTRA_SERVICE_INIT_HOOK do {} while(0)
+#endif
+
#ifndef PROXY_NAME
#define PROXY_NAME "TCF Proxy"
#endif
@@ -162,6 +167,7 @@ static void channel_redirection_listener(Channel * host, Channel * target) {
#if SERVICE_Expressions
ini_expressions_service(host->protocol);
#endif
+ EXTRA_SERVICE_INIT_HOOK;
#if ENABLE_DebugContext && ENABLE_ContextProxy
create_context_proxy(host, target, forward_pm);
#endif

Back to the top