diff dwt/browser/DownloadFactory.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 5abc6f7f7a95
children
line wrap: on
line diff
--- a/dwt/browser/DownloadFactory.d	Wed Oct 29 20:12:27 2008 -0700
+++ b/dwt/browser/DownloadFactory.d	Fri Oct 31 21:46:44 2008 -0700
@@ -27,11 +27,13 @@
 
 this () {}
 
+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;
     
@@ -49,7 +51,8 @@
     *ppvObject = null;
     return XPCOM.NS_ERROR_NO_INTERFACE;
 }
-            
+
+extern(System)
 nsrefcnt Release () {
     refCount--;
     //if (refCount is 0) disposeCOMInterfaces ();
@@ -58,6 +61,7 @@
     
 /* nsIFactory */
 
+extern(System)
 nsresult CreateInstance (nsISupports aOuter, nsID* iid, void** result) {
     if (result is null) 
         return XPCOM.NS_ERROR_INVALID_ARG;
@@ -70,6 +74,7 @@
     return rv;
 }
 
+extern(System)
 nsresult LockFactory (int lock) {
     return XPCOM.NS_OK;
 }