From 621527d580e447c38952fa9046703811388b670c Mon Sep 17 00:00:00 2001 From: Xiao Meng Date: Mon, 24 Nov 2014 14:41:55 -0800 Subject: DRILL-1776: C++ Client. Add interface to get application context. --- contrib/native/client/src/include/drill/drillClient.hpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'contrib/native/client/src/include') diff --git a/contrib/native/client/src/include/drill/drillClient.hpp b/contrib/native/client/src/include/drill/drillClient.hpp index 65c07d6a9..490c823d5 100644 --- a/contrib/native/client/src/include/drill/drillClient.hpp +++ b/contrib/native/client/src/include/drill/drillClient.hpp @@ -238,6 +238,10 @@ class DECLSPEC_DRILL_CLIENT DrillClient{ * back. The listener callback will return the handle in the ctx parameter. */ status_t submitQuery(Drill::QueryType t, const std::string& plan, pfnQueryResultsListener listener, void* listenerCtx, QueryHandle_t* qHandle); + /* + * Get the application context from query handle + */ + static void* getApplicationContext(QueryHandle_t handle); /* * Submit a query asynchronously and wait for results to be returned through an iterator that returns -- cgit v1.2.3