diff dwt/browser/PromptService2Factory.d @ 348:9a4d7706df52

Test Update to fix linux XPCOM interface issues
author John Reimer <terminal.node@gmail.com>
date Fri, 31 Oct 2008 21:46:44 -0700
parents 942da4b6558a
children
line wrap: on
line diff
--- a/dwt/browser/PromptService2Factory.d	Wed Oct 29 20:12:27 2008 -0700
+++ b/dwt/browser/PromptService2Factory.d	Fri Oct 31 21:46:44 2008 -0700
@@ -31,11 +31,13 @@
 //    createCOMInterfaces ();
 }
 
+extern(System)
 nsrefcnt AddRef () {
     refCount++;
     return refCount;
 }
 
+extern(System)
 nsresult QueryInterface (nsID* riid, void** ppvObject) {
     if (riid is null || ppvObject is null) return XPCOM.NS_ERROR_NO_INTERFACE;
     //nsID guid = new nsID ();
@@ -55,7 +57,8 @@
     *ppvObject = null;
     return XPCOM.NS_ERROR_NO_INTERFACE;
 }
-            
+
+extern(System)
 nsrefcnt Release () {
     refCount--;
     //if (refCount is null) disposeCOMInterfaces ();
@@ -64,6 +67,7 @@
     
 /* nsIFactory */
 
+extern(System)
 nsresult CreateInstance (nsISupports aOuter, nsIID* iid, void** result) {
     if (result is null) 
         return XPCOM.NS_ERROR_INVALID_ARG;
@@ -76,6 +80,7 @@
     return rv;
 }
 
+extern(System)
 nsresult LockFactory (PRBool lock) {
     return XPCOM.NS_OK;
 }