diff options
Diffstat (limited to 'ACE/TAO/tests/POA/Default_Servant2/File.idl')
-rw-r--r-- | ACE/TAO/tests/POA/Default_Servant2/File.idl | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/ACE/TAO/tests/POA/Default_Servant2/File.idl b/ACE/TAO/tests/POA/Default_Servant2/File.idl new file mode 100644 index 00000000000..c7476b120b9 --- /dev/null +++ b/ACE/TAO/tests/POA/Default_Servant2/File.idl @@ -0,0 +1,55 @@ +// $Id$ + +//================================================================= +// +// = FILENAME +// File.idl +// +// = DESCRIPTION +// A simple File Descriptor and File System IDL interface. +// +// = AUTHOR +// Irfan Pyarali +// +//================================================================== + +// IDL + +module File +{ + exception IOError + { + long error; + }; + + interface Descriptor + { + typedef sequence<octet> DataBuffer; + + long write (in DataBuffer buffer) + raises (IOError); + // write buffer to File + + DataBuffer read (in long num_bytes) + raises (IOError); + // read num_bytes to DataBuffer + + unsigned long lseek (in unsigned long offset, + in long whence) + raises (IOError); + // seek to offset in File from whence + + void destroy (); + // destroy the descriptor + }; + + interface System + { + /// File open operation + Descriptor open (in string file_name, + in long flags) + raises (IOError); + + oneway void shutdown (); + }; +}; |