/*
 *  This file is part of the WebKit open source project.
 *  This file has been generated by generate-bindings.pl. DO NOT MODIFY!
 *
 *  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.
 *
 *  This library is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 *  Library General Public License for more details.
 *
 *  You should have received a copy of the GNU Library General Public License
 *  along with this library; see the file COPYING.LIB.  If not, write to
 *  the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
 *  Boston, MA 02110-1301, USA.
 */

#include "config.h"
#include "WebKitDOMEntityReference.h"

#include "CSSImportRule.h"
#include "DOMObjectCache.h"
#include "Document.h"
#include "ExceptionCode.h"
#include "JSMainThreadExecState.h"
#include "WebKitDOMEntityReferencePrivate.h"
#include "WebKitDOMNodePrivate.h"
#include "WebKitDOMPrivate.h"
#include "gobject/ConvertToUTF8String.h"
#include <wtf/GetPtr.h>
#include <wtf/RefPtr.h>

namespace WebKit {

WebKitDOMEntityReference* kit(WebCore::EntityReference* obj)
{
    return WEBKIT_DOM_ENTITY_REFERENCE(kit(static_cast<WebCore::Node*>(obj)));
}

WebCore::EntityReference* core(WebKitDOMEntityReference* request)
{
    return request ? static_cast<WebCore::EntityReference*>(WEBKIT_DOM_OBJECT(request)->coreObject) : 0;
}

WebKitDOMEntityReference* wrapEntityReference(WebCore::EntityReference* coreObject)
{
    ASSERT(coreObject);
    return WEBKIT_DOM_ENTITY_REFERENCE(g_object_new(WEBKIT_TYPE_DOM_ENTITY_REFERENCE, "core-object", coreObject, NULL));
}

} // namespace WebKit

G_DEFINE_TYPE(WebKitDOMEntityReference, webkit_dom_entity_reference, WEBKIT_TYPE_DOM_NODE)

static void webkit_dom_entity_reference_class_init(WebKitDOMEntityReferenceClass* requestClass)
{
}

static void webkit_dom_entity_reference_init(WebKitDOMEntityReference* request)
{
}

