Commit c6c5c356 authored by waterson%netscape.com's avatar waterson%netscape.com
Browse files

Added nsIRDFContainer and nsIRDFContainerUtils to replace the old C versions in rdfutil.

parent 328cfbab
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
rdf.h
nsIRDFCompositeDataSource.h
nsIRDFContainer.h
nsIRDFContainerUtils.h
nsIRDFContentSink.h
nsIRDFDataSource.h
nsIRDFNode.h
+2 −0
Original line number Diff line number Diff line
@@ -27,6 +27,8 @@ MODULE = rdf
EXPORTS =				\
        rdf.h                   	\
	nsIRDFCompositeDataSource.h	\
	nsIRDFContainer.h		\
	nsIRDFContainerUtils.h		\
	nsIRDFContentSink.h		\
	nsIRDFDataSource.h      	\
        nsIRDFNode.h            	\
+2 −0
Original line number Diff line number Diff line
@@ -24,6 +24,8 @@ DEPTH=..\..\..
EXPORTS=\
        rdf.h                           \
	nsIRDFCompositeDataSource.h     \
        nsIRDFContainer.h               \
        nsIRDFContainerUtils.h          \
        nsIRDFContentSink.h             \
	nsIRDFDataSource.h              \
        nsIRDFNode.h                    \
+47 −0
Original line number Diff line number Diff line
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
 *
 * The contents of this file are subject to the Netscape Public License
 * Version 1.0 (the "License"); you may not use this file except in
 * compliance with the License.  You may obtain a copy of the License at
 * http://www.mozilla.org/NPL/
 *
 * Software distributed under the License is distributed on an "AS IS"
 * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied.  See
 * the License for the specific language governing rights and limitations
 * under the License.
 *
 * The Original Code is Mozilla Communicator client code.
 *
 * The Initial Developer of the Original Code is Netscape Communications
 * Corporation.  Portions created by Netscape are Copyright (C) 1998
 * Netscape Communications Corporation.  All Rights Reserved.
 */

#ifndef nsIRDFContainer_h__
#define nsIRDFContainer_h__

#include "nsRDFInterfaces.h"

PR_EXTERN(nsresult)
NS_NewRDFContainer(nsIRDFContainer** aResult);

PR_EXTERN(nsresult)
NS_NewRDFContainer(nsIRDFDataSource* aDataSource,
                   nsIRDFResource* aResource,
                   nsIRDFContainer** aResult);

/**
 * Create a cursor on a container that enumerates its contents in
 * order
 */
PR_EXTERN(nsresult)
NS_NewContainerEnumerator(nsIRDFDataSource* aDataSource,
                          nsIRDFResource* aContainer,
                          nsISimpleEnumerator** aResult);


#endif // nsIRDFContainer_h__



+29 −0
Original line number Diff line number Diff line
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
 *
 * The contents of this file are subject to the Netscape Public License
 * Version 1.0 (the "License"); you may not use this file except in
 * compliance with the License.  You may obtain a copy of the License at
 * http://www.mozilla.org/NPL/
 *
 * Software distributed under the License is distributed on an "AS IS"
 * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied.  See
 * the License for the specific language governing rights and limitations
 * under the License.
 *
 * The Original Code is Mozilla Communicator client code.
 *
 * The Initial Developer of the Original Code is Netscape Communications
 * Corporation.  Portions created by Netscape are Copyright (C) 1998
 * Netscape Communications Corporation.  All Rights Reserved.
 */

#ifndef nsIRDFContainerUtils_h__
#define nsIRDFContainerUtils_h__

#include "nsRDFInterfaces.h"

extern nsresult
NS_NewRDFContainerUtils(nsIRDFContainerUtils** aResult);

#endif // nsIRDFContainerUtils_h__
Loading