/***************************************************************************
                            kde_DOMNodeList.cpp -  description
                             -------------------
    begin                : Sun Oct 21 19:45:22 2001
    copyright            : (C) 2000-2001 Lost Highway Ltd. All rights reserved.
    email                : Lost_Highway@tipitina.demon.co.uk
    generated by         : duke@tipitina on Sun Oct 21 19:45:22 2001, using kdoc $.
 ***************************************************************************/

/***************************************************************************
 *                                                                         *
 *   This library is free software; you can redistribute it and/or modify  *
 *   it under the terms of the GNU Library General Public License as       *
 *   published by the Free Software Foundation; either version 2 of the    *
 *   License, or (at your option) any later version.                       *
 *                                                                         *
 ***************************************************************************/

extern "C" {
#include "kde_DOMNodeList.h"
}

#include <dom/dom_node.h>

kde_DOMNodeList * kde_new_NodeList(){
	return (kde_DOMNodeList *) new DOM::NodeList();
}
kde_DOMNodeList * kde_new_NodeList1(kde_DOMNodeList* other){
	return (kde_DOMNodeList *) new DOM::NodeList((DOM::NodeList&)* (DOM::NodeList*)other);
}
void kde_del_NodeList( kde_DOMNodeList* p ){
	delete (DOM::NodeList*) p;
}
unsigned long kde_DOMNodeList_length( kde_DOMNodeList* instPointer){
	return (unsigned long) ((DOM::NodeList*)instPointer)->length();
}
kde_DOMNode* kde_DOMNodeList_item( kde_DOMNodeList* instPointer,unsigned long index){
	return (kde_DOMNode*)new DOM::Node(((DOM::NodeList*)instPointer)->item((unsigned long)index));
}
int kde_DOMNodeList_isNull( kde_DOMNodeList* instPointer){
	return (int) ((DOM::NodeList*)instPointer)->isNull();
}
