]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
c++tools : Add a simple handler for ModuleCompiledRequest.
authorIain Sandoe <iain@sandoe.co.uk>
Sat, 24 Apr 2021 14:44:34 +0000 (15:44 +0100)
committerIain Sandoe <iain@sandoe.co.uk>
Tue, 14 Sep 2021 18:17:34 +0000 (19:17 +0100)
This just replies with "OK".

c++tools/ChangeLog:

* resolver.cc (module_resolver::ModuleCompiledRequest):
Add a simple handler.
* resolver.h: Declare handler for ModuleCompiledRequest.

c++tools/resolver.cc
c++tools/resolver.h

index edd4624b1212c812a842ba62f35d59cdfa004f3b..421fdaa55fe23d49fdcb39100e5439262210c856 100644 (file)
@@ -307,3 +307,14 @@ module_resolver::IncludeTranslateRequest (Cody::Server *s, Cody::Flags,
   return 0;
 }
 
+/* This handles a client notification to the server that a CMI has been
+   produced for a module.  For this simplified server, we just accept
+   the transaction and respond with "OK".  */
+
+int
+module_resolver::ModuleCompiledRequest (Cody::Server *s, Cody::Flags,
+                                     std::string &)
+{
+  s->OKResponse();
+  return 0;
+}
index b2f4381b4fa8162278a540fd1f415f6332134d8e..c1ce9564e7fc32b3cc6453fdf41d9af1d8d2e0ac 100644 (file)
@@ -96,6 +96,10 @@ public:
                                       std::string &include)
     override;
 
+  using parent::ModuleCompiledRequest;
+  virtual int ModuleCompiledRequest (Cody::Server *s, Cody::Flags Flags,
+                                    std::string &Module) override;
+
 private:
   using parent::GetCMISuffix;
   virtual char const *GetCMISuffix () override;