Diff for /protozilla/ipc/public/nsIPipeTransport.idl between versions 1.8 and 1.9

version 1.8, 2002/04/18 05:53:32 version 1.9, 2002/05/11 07:03:23
Line 33 Line 33
 #include "nsISupports.idl"  #include "nsISupports.idl"
 #include "nsIPipe.idl"  #include "nsIPipe.idl"
 #include "nsITransport.idl"  #include "nsITransport.idl"
   #include "nsIPipeListener.idl"
   
 interface nsITransport;  interface nsITransport;
 interface nsIFile;  interface nsIFile;
Line 41  interface nsIOutputStream; Line 42  interface nsIOutputStream;
 interface nsIStreamListener;  interface nsIStreamListener;
 interface nsIPipeTransportHeaders;  interface nsIPipeTransportHeaders;
 interface nsIPipeTransportListener;  interface nsIPipeTransportListener;
 interface nsIPipeConsole;  
   
 %{C++  %{C++
   
Line 109  interface nsIPipeTransport : nsITranspor Line 109  interface nsIPipeTransport : nsITranspor
      * @param noProxy     do not use proxy for async callback       * @param noProxy     do not use proxy for async callback
      *                    (must use join to terminate process, in this case)       *                    (must use join to terminate process, in this case)
      * @param mergeStderr merge STDERR with STDOUT       * @param mergeStderr merge STDERR with STDOUT
     * @param console     nsIPipeConsole object to capture STDERR     * @param console     nsIPipeListener object to capture STDERR
     * @param joinConsole join STDERR console on encountering EOF on STDOUT 
     *                    (i.e., wait for EOF on STDERR as well) 
      */       */
   
     void init(in string executable,      void init(in string executable,
Line 123  interface nsIPipeTransport : nsITranspor Line 121  interface nsIPipeTransport : nsITranspor
               in string killString,                in string killString,
               in boolean noProxy,                in boolean noProxy,
               in boolean mergeStderr,                in boolean mergeStderr,
              in nsIPipeConsole console,              in nsIPipeListener console);
              in boolean joinConsole); 
   
     /**      /**
      * Initializes PipeTransport by executing the specified command line,       * Initializes PipeTransport by executing the specified command line,
Line 142  interface nsIPipeTransport : nsITranspor Line 139  interface nsIPipeTransport : nsITranspor
      * @param noProxy     do not use proxy for async callback       * @param noProxy     do not use proxy for async callback
      *                    (must use join to terminate process, in this case)       *                    (must use join to terminate process, in this case)
      * @param mergeStderr merge STDERR with STDOUT       * @param mergeStderr merge STDERR with STDOUT
     * @param console     nsIPipeConsole object to capture STDERR     * @param console     nsIPipeListener object to capture STDERR
     * @param joinConsole join STDERR console on encountering EOF on STDOUT 
     *                    (i.e., wait for EOF on STDERR as well) 
      */       */
     void initCommand(in string command,      void initCommand(in string command,
               [array, size_is(envCount)] in string env,                [array, size_is(envCount)] in string env,
Line 153  interface nsIPipeTransport : nsITranspor Line 148  interface nsIPipeTransport : nsITranspor
               in string killString,                in string killString,
               in boolean noProxy,                in boolean noProxy,
               in boolean mergeStderr,                in boolean mergeStderr,
              in nsIPipeConsole console,              in nsIPipeListener console);
              in boolean joinConsole); 
   
     /**      /**
      * Returns console object used to capture STDERR by default       * Returns console object used to capture STDERR by default
      */       */
    readonly attribute nsIPipeConsole console;    readonly attribute nsIPipeListener console;
 
     /**
      * Returns listener object to feed data to STDIN
      * (call to OnStopRequest closes STDIN)
      */
     readonly attribute nsIStreamListener listener;
   
     /**      /**
      * Specifies interface to handle MIME headers read from STDOUT       * Specifies interface to handle MIME headers read from STDOUT
Line 177  interface nsIPipeTransport : nsITranspor Line 177  interface nsIPipeTransport : nsITranspor
     boolean isAttached();      boolean isAttached();
   
     /**      /**
     * Joins STDOUT handling thread (blocking until it terminates),     * Joins STDOUT handling thread (blocking until STDOUT is closed),
     * and then terminates process if active 
      * (Necessary and only works if noProxy is true)       * (Necessary and only works if noProxy is true)
        * The process still needs to be terminated to free resources.
      */       */
     void join();      void join();
   
Line 197  interface nsIPipeTransport : nsITranspor Line 197  interface nsIPipeTransport : nsITranspor
     /**      /**
      * Writes string to process STDIN (synchronously)       * Writes string to process STDIN (synchronously)
      */       */
    void write(in string inputData, in unsigned long inputLength);    void writeSync(in string inputData, in unsigned long inputLength);
   
     /**      /**
      * Writes stream data to process STDIN (asynchronously),       * Writes stream data to process STDIN (asynchronously),
      * and close inputStream and STDIN after writing, if requested       * and close inputStream and STDIN after writing, if requested
      */       */
    void writeFromStream(in nsIInputStream aFromStream,    void writeAsync(in nsIInputStream aFromStream,
                         in unsigned long aCount,                    in unsigned long aCount,
                         in boolean closeAfterWrite);                    in boolean closeAfterWrite);
   
     /**      /**
      * Transmits command string to process, blocks for output and returns the       * Transmits command string to process, blocks for output and returns the
Line 287  interface nsIPipeTransportPoller : nsISu Line 287  interface nsIPipeTransportPoller : nsISu
 };  };
   
   
 [ptr] native IPCFileDescStar(IPCFileDesc);  
   
 [noscript, uuid(8431e190-7ab1-11d4-8f02-006008948af5)]  [noscript, uuid(8431e190-7ab1-11d4-8f02-006008948af5)]
 interface nsIPipeTransportWriter : nsISupports  interface nsIPipeTransportWriter : nsISupports
 {  {

Removed from v.1.8  
changed lines
  Added in v.1.9


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>