summaryrefslogtreecommitdiffstats
path: root/Source/cmFileAPI.h
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2018-09-13 12:48:29 (GMT)
committerBrad King <brad.king@kitware.com>2018-12-12 11:40:10 (GMT)
commit8fce59848b52f71ae310fcd64fcf943fb2c42bf6 (patch)
tree7e686c97356b70e6b26225b0db2e3528ee62c11e /Source/cmFileAPI.h
parenteb2ec41a0422e9acd4961e32f6f28c20846a292a (diff)
downloadCMake-8fce59848b52f71ae310fcd64fcf943fb2c42bf6.zip
CMake-8fce59848b52f71ae310fcd64fcf943fb2c42bf6.tar.gz
CMake-8fce59848b52f71ae310fcd64fcf943fb2c42bf6.tar.bz2
fileapi: Add protocol v1 support for client-specific query files
Add support for client-owned stateless query files. These allow clients to *own* requests for major object versions and get all those recognized by CMake. Issue: #18398
Diffstat (limited to 'Source/cmFileAPI.h')
-rw-r--r--Source/cmFileAPI.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/Source/cmFileAPI.h b/Source/cmFileAPI.h
index 39b054d..589b837 100644
--- a/Source/cmFileAPI.h
+++ b/Source/cmFileAPI.h
@@ -77,6 +77,9 @@ private:
/** The content of the top-level query directory. */
Query TopQuery;
+ /** The content of each "client-$client" query directory. */
+ std::map<std::string, Query> ClientQueries;
+
/** Reply index object generated for object kind/version.
This populates the "objects" field of the reply index. */
std::map<Object, Json::Value> ReplyIndexObjects;
@@ -91,6 +94,7 @@ private:
static bool ReadQuery(std::string const& query,
std::vector<Object>& objects);
+ void ReadClient(std::string const& client);
Json::Value BuildReplyIndex();
Json::Value BuildCMake();