libdom
Loading...
Searching...
No Matches
Classes | Typedefs | Functions
html_collection.h File Reference
#include <dom/html/html_collection.h>

Go to the source code of this file.

Classes

struct  dom_html_collection
 

Typedefs

typedef bool(* dom_callback_is_in_collection) (struct dom_node_internal *node, void *ctx)
 

Functions

dom_exception _dom_html_collection_create (struct dom_html_document *doc, struct dom_node_internal *root, dom_callback_is_in_collection ic, void *ctx, struct dom_html_collection **col)
 
dom_exception _dom_html_collection_initialise (struct dom_html_document *doc, struct dom_html_collection *col, struct dom_node_internal *root, dom_callback_is_in_collection ic, void *ctx)
 
void _dom_html_collection_finalise (struct dom_html_collection *col)
 
void _dom_html_collection_destroy (struct dom_html_collection *col)
 

Typedef Documentation

◆ dom_callback_is_in_collection

typedef bool(* dom_callback_is_in_collection) (struct dom_node_internal *node, void *ctx)

Function Documentation

◆ _dom_html_collection_create()

dom_exception _dom_html_collection_create ( struct dom_html_document * doc,
struct dom_node_internal * root,
dom_callback_is_in_collection ic,
void * ctx,
struct dom_html_collection ** col )

Create a dom_html_collection

Parameters
docThe document
rootThe root element of the collection
icThe callback function used to determin whether certain node belongs to the collection
colThe result collection object
Returns
DOM_NO_ERR on success, appropriate dom_exception on failure.

◆ _dom_html_collection_destroy()

void _dom_html_collection_destroy ( struct dom_html_collection * col)

Destroy a dom_html_collection object

Parameters
colThe dom_html_collection object

◆ _dom_html_collection_finalise()

void _dom_html_collection_finalise ( struct dom_html_collection * col)

Finalise a dom_html_collection object

Parameters
colThe dom_html_collection object

◆ _dom_html_collection_initialise()

dom_exception _dom_html_collection_initialise ( struct dom_html_document * doc,
struct dom_html_collection * col,
struct dom_node_internal * root,
dom_callback_is_in_collection ic,
void * ctx )

Intialiase a dom_html_collection

Parameters
docThe document
colThe collection object to be initialised
rootThe root element of the collection
icThe callback function used to determin whether certain node beint32_ts to the collection
Returns
DOM_NO_ERR on success.