Back to index

lightning-sunbird  0.9+nobinonly
xpctest_inout.idl
Go to the documentation of this file.
00001 /* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*-
00002  *
00003  * ***** BEGIN LICENSE BLOCK *****
00004  * Version: MPL 1.1/GPL 2.0/LGPL 2.1
00005  *
00006  * The contents of this file are subject to the Mozilla Public License Version
00007  * 1.1 (the "License"); you may not use this file except in compliance with
00008  * the License. You may obtain a copy of the License at
00009  * http://www.mozilla.org/MPL/
00010  *
00011  * Software distributed under the License is distributed on an "AS IS" basis,
00012  * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
00013  * for the specific language governing rights and limitations under the
00014  * License.
00015  *
00016  * The Original Code is Mozilla Communicator client code, released
00017  * March 31, 1998.
00018  *
00019  * The Initial Developer of the Original Code is
00020  * Netscape Communications Corporation.
00021  * Portions created by the Initial Developer are Copyright (C) 1998
00022  * the Initial Developer. All Rights Reserved.
00023  *
00024  * Contributor(s):
00025  *   John Bandhauer <jband@netscape.com>
00026  *
00027  * Alternatively, the contents of this file may be used under the terms of
00028  * either of the GNU General Public License Version 2 or later (the "GPL"),
00029  * or the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
00030  * in which case the provisions of the GPL or the LGPL are applicable instead
00031  * of those above. If you wish to allow use of your version of this file only
00032  * under the terms of either the GPL or the LGPL, and not to allow others to
00033  * use your version of this file under the terms of the MPL, indicate your
00034  * decision by deleting the provisions above and replace them with the notice
00035  * and other provisions required by the GPL or the LGPL. If you do not delete
00036  * the provisions above, a recipient may use your version of this file under
00037  * the terms of any one of the MPL, the GPL or the LGPL.
00038  *
00039  * ***** END LICENSE BLOCK ***** */
00040 
00045 #include "nsISupports.idl"
00046 
00047 [scriptable, uuid(626dc196-5599-11d3-82ef-0060b0eb596f)]
00048 interface nsIXPCTestInOut : nsISupports {
00049        void EchoLong( in long li, out long lo);
00050        void EchoShort( in short si, out short so );
00051        void EchoChar( in char ci, out char co );
00052        void EchoBoolean( in boolean bi, out boolean bo );
00053        void EchoOctet( in octet oi, out octet oo );
00054        void EchoLongLong( in long long lli, out long long llo );
00055        void EchoUnsignedShort( in unsigned short usi, out unsigned short uso );
00056        void EchoUnsignedLong(  in unsigned long uli, out unsigned long ulo);
00057        void EchoFloat( in float fi, out float fo);
00058        void EchoDouble( in double di, out double dout );
00059        void EchoWchar ( in wchar wci, out wchar wco );
00060        void EchoString( in wstring wsi, out wstring wso );
00061        void EchoPRBool( in PRBool bi, out PRBool bo );
00062        void EchoPRInt32( in PRInt32 li, out PRInt32 lo );
00063        void EchoPRInt16( in PRInt16 li, out PRInt16 lo );
00064        void EchoPRInt64( in PRInt64 ii, out PRInt64 io );
00065        void EchoPRUint8( in PRUint8 ii, out PRUint8 io );
00066        void EchoPRUint16( in PRUint16 ii, out PRUint16 io );
00067        void EchoPRUint32( in PRUint32 ii, out PRUint32 io );
00068        void EchoPRUint32_2( in PRUint32 ii, out PRUint32 io );
00069        void EchoPRUint64( in PRUint64 ii, out PRUint64 io );
00070        
00071        // native types must be marked noscript or they break the idl
00072        // compiler
00073 
00074        [noscript] void EchoVoidPtr( in voidPtr vsi, out voidPtr vso );
00075        [noscript] void EchoCharPtr( in charPtr csi, out charPtr cso );
00076        //[noscript] void EchoVoidRef( in voidRef vfi, out voidRef vfo );
00077        //[noscript] void EchoNsIDRef( in nsIDRef ri, out nsIDRef ro );
00078        //[noscript] void EchoNsCIDRef( in nsCIDRef ri, out nsCIDRef ro );
00079 
00080        [noscript] void EchoNsIDPtr( in nsIDPtr pi, out nsIDPtr po );
00081        [noscript] void EchoNsIIDPtr( in nsIIDPtr pi, out nsIIDPtr po );
00082        [noscript] void EchoNsCIDPtr( in nsCIDPtr pi, out nsCIDPtr po );
00083        [noscript] void EchoNsQIResult( in nsQIResult ri, out nsQIResult ro );
00084 
00085        void EchoVoid();
00086 };