Changeset 4bbcba3
- Timestamp:
- 2008-02-16T22:40:38Z (17 years ago)
- Branches:
- master
- Children:
- e6648bf
- Parents:
- add23a2
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
lib/xmltree.c
radd23a2 r4bbcba3 111 111 }; 112 112 113 struct xt_parser *xt_new( gpointer data )113 struct xt_parser *xt_new( const struct xt_handler_entry *handlers, gpointer data ) 114 114 { 115 115 struct xt_parser *xt = g_new0( struct xt_parser, 1 ); 116 116 117 117 xt->data = data; 118 xt->handlers = handlers; 118 119 xt_reset( xt ); 119 120 -
lib/xmltree.h
radd23a2 r4bbcba3 71 71 struct xt_node *cur; 72 72 73 struct xt_handler_entry *handlers;73 const struct xt_handler_entry *handlers; 74 74 gpointer data; 75 75 … … 77 77 }; 78 78 79 struct xt_parser *xt_new( gpointer data );79 struct xt_parser *xt_new( const struct xt_handler_entry *handlers, gpointer data ); 80 80 void xt_reset( struct xt_parser *xt ); 81 81 int xt_feed( struct xt_parser *xt, char *text, int text_len ); -
protocols/jabber/io.c
radd23a2 r4bbcba3 521 521 from the server too. */ 522 522 xt_free( jd->xt ); /* In case we're RE-starting. */ 523 jd->xt = xt_new( ic ); 524 jd->xt->handlers = (struct xt_handler_entry*) jabber_handlers; 523 jd->xt = xt_new( jabber_handlers, ic ); 525 524 526 525 if( jd->r_inpa <= 0 )
Note: See TracChangeset
for help on using the changeset viewer.