Browse Source

* Some cleanup, add file headers

Michaël Van Canneyt 3 years ago
parent
commit
a18e75eaff

+ 16 - 0
packages/fcl-web/examples/jsonrpc/rtti/demorpcrtti.lpr

@@ -1,3 +1,19 @@
+{
+    This file is part of the Free Component Library
+
+    Minimal server program for JSON-RPC server.
+
+    Copyright (c) 2022 by Michael Van Canneyt [email protected]
+
+    See the file COPYING.FPC, included in this distribution,
+    for details about the copyright.
+
+    This program is distributed in the hope that it will be useful,
+    but WITHOUT ANY WARRANTY; without even the implied warranty of
+    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+
+ **********************************************************************}
+
 program demorpcrtti;
 
 {$mode objfpc}{$H+}

+ 16 - 0
packages/fcl-web/examples/jsonrpc/rtti/dmrpc.pp

@@ -1,5 +1,21 @@
+{
+    This file is part of the Free Component Library
+
+    This module routes the actual requests. See the options set on the datamodule
+
+    Copyright (c) 2022 by Michael Van Canneyt [email protected]
+
+    See the file COPYING.FPC, included in this distribution,
+    for details about the copyright.
+
+    This program is distributed in the hope that it will be useful,
+    but WITHOUT ANY WARRANTY; without even the implied warranty of
+    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+
+ **********************************************************************}
 unit dmRPC;
 
+
 {$mode ObjFPC}{$H+}
 
 interface

+ 15 - 0
packages/fcl-web/examples/jsonrpc/rtti/myapi.pp

@@ -1,3 +1,18 @@
+{
+    This file is part of the Free Component Library
+
+    Unit with the interface definitions, common between client and server
+
+    Copyright (c) 2022 by Michael Van Canneyt [email protected]
+
+    See the file COPYING.FPC, included in this distribution,
+    for details about the copyright.
+
+    This program is distributed in the hope that it will be useful,
+    but WITHOUT ANY WARRANTY; without even the implied warranty of
+    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+
+ **********************************************************************}
 unit myapi;
 
 {$mode ObjFPC}{$H+}

+ 17 - 0
packages/fcl-web/examples/jsonrpc/rtti/rpcapi.pp

@@ -1,3 +1,20 @@
+{
+    This file is part of the Free Component Library
+
+    Unit with the server-side interface implementations of the interfaces
+    Registers the classes.
+
+    Copyright (c) 2022 by Michael Van Canneyt [email protected]
+
+    See the file COPYING.FPC, included in this distribution,
+    for details about the copyright.
+
+    This program is distributed in the hope that it will be useful,
+    but WITHOUT ANY WARRANTY; without even the implied warranty of
+    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+
+ **********************************************************************}
+
 unit rpcapi;
 
 {$mode ObjFPC}{$H+}

+ 2 - 2
packages/fcl-web/examples/jsonrpc/rtti/rttirpc.lpg

@@ -2,12 +2,12 @@
 <CONFIG>
   <ProjectGroup FileVersion="2">
     <Targets>
-      <Target FileName="rpcclient.lpi">
+      <Target FileName="demorpcrtti.lpi">
         <BuildModes>
           <Mode Name="Default"/>
         </BuildModes>
       </Target>
-      <Target FileName="demorpcrtti.lpi">
+      <Target FileName="rpcclient.lpi">
         <BuildModes>
           <Mode Name="Default"/>
         </BuildModes>