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 edd4624..421fdaa 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 b2f4381..c1ce956 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;