netsurf/javascript/jsapi/text.bnd

46 lines
1.0 KiB
Plaintext
Raw Normal View History

2012-11-07 22:52:30 +04:00
/* Binding to generate Text interface
*
* Copyright 2012 Vincent Sanders <vince@netsurf-browser.org>
*
* This file is part of NetSurf, http://www.netsurf-browser.org/
*
* Released under the terms of the MIT License,
* http://www.opensource.org/licenses/mit-license
*/
#include "dom.bnd"
webidlfile "html.idl";
hdrcomment "Copyright 2012 Vincent Sanders <vince@netsurf-browser.org>";
hdrcomment "This file is part of NetSurf, http://www.netsurf-browser.org/";
hdrcomment "Released under the terms of the MIT License,";
hdrcomment " http://www.opensource.org/licenses/mit-license";
preamble %{
#include <dom/dom.h>
#include "utils/config.h"
#include "utils/log.h"
#include "javascript/jsapi.h"
#include "javascript/jsapi/binding.h"
%}
binding text {
type js_libdom; /* the binding type */
interface Text; /* Web IDL interface to generate */
private "dom_text *" node;
private "struct html_content *" htmlc;
2012-11-07 22:52:30 +04:00
}
api finalise %{
if (private != NULL) {
dom_node_unref(private->node);
}
%}