next up previous contents
Next: Interface declaration by example Up: Interface declarations in the Previous: Interface declarations in the

Syntax

A powerRPC IDL files may contain the following components,

  1. C preprocessor pseudo-ops, such as #include. powerRPC will pass the IDL file through CPP before performing its own parsing. It also defines a macro POWERRPC_COMPILE by itself when invoking CPP.
  2. type declarations, as described in chapter 1.
  3. A single interface declaration which specifies the RPC functions. This must appear after all type declarations.
  4. copy-out statements. These are arbitrary text followed by a leading %. They are copied AS IS to the header file generated by powerRPC. Those appear before the interface declaration are prepended to the header file, and those appear after are appended to the header file.

Interface declaration...


Copyright (C) Netbula LLC, 1996