From b3268361ae6933d07ca42280a101332df5d870b3 Mon Sep 17 00:00:00 2001 From: "benjamin%smedbergs.us" Date: Tue, 8 Aug 2006 17:09:46 +0000 Subject: [PATCH] Added constructor functions for nsEnumeratorUtils. Original committer: warren%netscape.com Original revision: 1.3 Original date: 1999/06/25 01:38:33 --- xpcom/glue/nsEnumeratorUtils.h | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/xpcom/glue/nsEnumeratorUtils.h b/xpcom/glue/nsEnumeratorUtils.h index 2b5c053aa9ad..f6cc461041e3 100644 --- a/xpcom/glue/nsEnumeratorUtils.h +++ b/xpcom/glue/nsEnumeratorUtils.h @@ -16,8 +16,8 @@ * Reserved. */ -#ifndef nsRDFCursorUtils_h__ -#define nsRDFCursorUtils_h__ +#ifndef nsEnumeratorUtils_h__ +#define nsEnumeratorUtils_h__ #include "nsIEnumerator.h" #include "nsISupportsArray.h" @@ -41,6 +41,10 @@ protected: PRInt32 mIndex; }; +extern "C" NS_COM nsresult +NS_NewArrayEnumerator(nsISimpleEnumerator* *result, + nsISupportsArray* array); + //////////////////////////////////////////////////////////////////////////////// class NS_COM nsSingletonEnumerator : public nsISimpleEnumerator @@ -60,6 +64,10 @@ protected: PRBool mConsumed; }; +extern "C" NS_COM nsresult +NS_NewSingletonEnumerator(nsISimpleEnumerator* *result, + nsISupports* singleton); + //////////////////////////////////////////////////////////////////////////////// class NS_COM nsAdapterEnumerator : public nsISimpleEnumerator @@ -80,6 +88,10 @@ protected: PRBool mStarted; }; +extern "C" NS_COM nsresult +NS_NewAdapterEnumerator(nsISimpleEnumerator* *result, + nsIEnumerator* enumerator); + //////////////////////////////////////////////////////////////////////// -#endif /* nsRDFCursorUtils_h__ */ +#endif /* nsEnumeratorUtils_h__ */