Mercurial > projects > dwt-linux
diff dwt/browser/AppFileLocProvider.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 | 2e591eb01162 |
children |
line wrap: on
line diff
--- a/dwt/browser/AppFileLocProvider.d Wed Oct 29 20:12:27 2008 -0700 +++ b/dwt/browser/AppFileLocProvider.d Fri Oct 31 21:46:44 2008 -0700 @@ -58,11 +58,13 @@ mozillaPath = path ~ SEPARATOR_OS; } +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; @@ -86,6 +88,7 @@ return XPCOM.NS_ERROR_NO_INTERFACE; } +extern(System) nsrefcnt Release () { refCount--; if (refCount is 0) return 0; @@ -108,7 +111,7 @@ } /* nsIDirectoryServiceProvider2 */ - +extern(System) nsresult GetFiles (char* prop, nsISimpleEnumerator* _retval) { String propertyName = fromStringz(prop); String[] propertyValues = null; @@ -177,7 +180,7 @@ } /* nsIDirectoryServiceProvider implementation */ - +extern(System) nsresult GetFile(char* prop, PRBool* persistent, nsIFile* _retval) { String propertyName = tango.stdc.stringz.fromStringz( prop ); String propertyValue = null;