myapi.pp 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. {
  2. This file is part of the Free Component Library
  3. Unit with the interface definitions, common between client and server
  4. Copyright (c) 2022 by Michael Van Canneyt [email protected]
  5. See the file COPYING.FPC, included in this distribution,
  6. for details about the copyright.
  7. This program is distributed in the hope that it will be useful,
  8. but WITHOUT ANY WARRANTY; without even the implied warranty of
  9. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  10. **********************************************************************}
  11. unit myapi;
  12. {$mode ObjFPC}{$H+}
  13. interface
  14. uses sysutils; // for TStringArray
  15. Type
  16. { enable RTTI for methods! }
  17. {$M+}
  18. IMyInterface = interface ['{E4C73198-0831-47B9-944C-E2D7EFAE1C6A}']
  19. procedure SayHello;
  20. function Echo(args : Array of string) : String;
  21. function DoSum(a,b : Integer) : integer;
  22. function Split(aLine,aSep : string) : TStringArray;
  23. function DoVarTest(var aArg: String): Boolean;
  24. end;
  25. IMyOtherInterface = interface ['{4D52BEE3-F709-44AC-BD31-870CBFF44632}']
  26. Function SayHello : string;
  27. function Echo(args : TStringArray) : String;
  28. end;
  29. implementation
  30. end.