view dwt/internal/mozilla/nsIObjectOutputStream.d @ 341:942da4b6558a

Ongoing fixup for compile
author John Reimer <terminal.node@gmail.com>
date Sun, 26 Oct 2008 21:19:51 -0700
parents dd63eb078d7a
children 9a4d7706df52
line wrap: on
line source

module dwt.internal.mozilla.nsIObjectOutputStream;

import dwt.internal.mozilla.Common;
import dwt.internal.mozilla.nsID;
import dwt.internal.mozilla.nsISupports;

import dwt.internal.mozilla.nsIBinaryOutputStream;

const char[] NS_IOBJECTOUTPUTSTREAM_IID_STR = "92c898ac-5fde-4b99-87b3-5d486422094b";

const nsIID NS_IOBJECTOUTPUTSTREAM_IID= 
  {0x92c898ac, 0x5fde, 0x4b99, 
    [ 0x87, 0xb3, 0x5d, 0x48, 0x64, 0x22, 0x09, 0x4b ]};

//extern(System)

interface nsIObjectOutputStream : nsIBinaryOutputStream {

  static const char[] IID_STR = NS_IOBJECTOUTPUTSTREAM_IID_STR;
  static const nsIID IID = NS_IOBJECTOUTPUTSTREAM_IID;

  nsresult WriteObject(nsISupports aObject, PRBool aIsStrongRef);
  nsresult WriteSingleRefObject(nsISupports aObject);
  nsresult WriteCompoundObject(nsISupports aObject, nsIID * aIID, PRBool aIsStrongRef);
  nsresult WriteID(nsID * aID);
  char * GetBuffer(PRUint32 aLength, PRUint32 aAlignMask);
  void PutBuffer(char * aBuffer, PRUint32 aLength);

}