Ignore:
Timestamp:
Feb 2, 2011, 3:00:41 PM (10 years ago)
Author:
Jean-Yves Lamoureux
Message:
  • Changed gElement to gNode, elementType to nodeType
File:
1 edited

Legend:

Unmodified
Added
Removed
  • gaycko/trunk/src/dom/dom.h

    r4739 r4744  
    2424    ELEM_TR,
    2525    ELEM_TD
    26 }elementType;
     26}nodeType;
    2727
    2828struct gAttribute_ {
     
    3232typedef struct gAttribute_ gAttribute;
    3333
    34 typedef struct gElement_ gElement;
    35 struct gElement_ {
    36     elementType  type;
     34typedef struct gNode_ gNode;
     35struct gNode_ {
     36    nodeType  type;
    3737        char        *name;
    3838    unsigned int level;
     
    4343   
    4444    unsigned int children_count;
    45     gElement   **children;
     45    gNode   **children;
    4646   
    47     gElement     *parent;
     47    gNode     *parent;
    4848};
    4949
    5050
    5151struct gDOM_ {
    52         gElement *root;
     52        gNode *root;
    5353};
    5454
     
    5757
    5858gDOM *gaycko_convert_dom(htmlDocPtr doc);
    59 gElement* explore(gElement **elem, htmlNodePtr element, unsigned int level , gElement *parent);
    60 gElement *add_element(htmlNodePtr node);
    61 void pretty_print(gElement *elem);
     59gNode* explore(gNode **elem, htmlNodePtr element, unsigned int level , gNode *parent);
     60gNode *add_node(htmlNodePtr node);
     61void destroy_node(gNode *elem);
     62void pretty_print(gNode *elem);
     63
    6264#endif
Note: See TracChangeset for help on using the changeset viewer.