Changeset 21167d2 for protocols/jabber/jabber_util.c
- Timestamp:
- 2006-09-20T19:42:27Z (18 years ago)
- Branches:
- master
- Children:
- 70f6aab8
- Parents:
- f06894d
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
protocols/jabber/jabber_util.c
rf06894d r21167d2 2 2 * * 3 3 * BitlBee - An IRC to IM gateway * 4 * Jabber module - M ain file*4 * Jabber module - Misc. stuff * 5 5 * * 6 6 * Copyright 2006 Wilmer van der Gaast <wilmer@gaast.net> * … … 23 23 24 24 #include "jabber.h" 25 26 static int next_id = 1; 25 27 26 28 char *set_eval_resprio( set_t *set, char *value ) … … 47 49 return set_eval_bool( set, value ); 48 50 } 51 52 struct xt_node *jabber_make_packet( char *name, char *type, char *to, struct xt_node *children ) 53 { 54 char *id = g_strdup_printf( "BeeX%04x", next_id++ ); 55 struct xt_node *node; 56 57 node = xt_new_node( name, NULL, children ); 58 59 xt_add_attr( node, "id", id ); 60 if( type ) 61 xt_add_attr( node, "type", type ); 62 if( to ) 63 xt_add_attr( node, "to", to ); 64 65 g_free( id ); 66 67 return node; 68 }
Note: See TracChangeset
for help on using the changeset viewer.