aboutsummaryrefslogtreecommitdiffstats
path: root/protocols/jabber/xmltree.h
diff options
context:
space:
mode:
authorWilmer van der Gaast <wilmer@gaast.net>2007-07-01 14:08:47 +0100
committerWilmer van der Gaast <wilmer@gaast.net>2007-07-01 14:08:47 +0100
commit40ef702d3e500eb38d7410114ace54e8a70b151e (patch)
treefdbd49c24d69d822afe9a41d282524bde2627359 /protocols/jabber/xmltree.h
parent7bf4326f7a9b2a2aec8b292ecbc876d4349d2624 (diff)
Less copy-pasting in the service discovery reply and added MUC support to
that list. And adding some const stuff in the xmltree functions.
Diffstat (limited to 'protocols/jabber/xmltree.h')
-rw-r--r--protocols/jabber/xmltree.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/protocols/jabber/xmltree.h b/protocols/jabber/xmltree.h
index 70850c1d..b8b61641 100644
--- a/protocols/jabber/xmltree.h
+++ b/protocols/jabber/xmltree.h
@@ -86,12 +86,12 @@ void xt_print( struct xt_node *node );
struct xt_node *xt_dup( struct xt_node *node );
void xt_free_node( struct xt_node *node );
void xt_free( struct xt_parser *xt );
-struct xt_node *xt_find_node( struct xt_node *node, char *name );
-char *xt_find_attr( struct xt_node *node, char *key );
+struct xt_node *xt_find_node( struct xt_node *node, const char *name );
+char *xt_find_attr( struct xt_node *node, const char *key );
struct xt_node *xt_new_node( char *name, char *text, struct xt_node *children );
void xt_add_child( struct xt_node *parent, struct xt_node *child );
-void xt_add_attr( struct xt_node *node, char *key, char *value );
-int xt_remove_attr( struct xt_node *node, char *key );
+void xt_add_attr( struct xt_node *node, const char *key, const char *value );
+int xt_remove_attr( struct xt_node *node, const char *key );
#endif