Changeset 1143 for pjproject


Ignore:
Timestamp:
Apr 4, 2007 10:06:21 AM (18 years ago)
Author:
bennylp
Message:

Ticket #207: Added XMLNS for attribute for PIDF document (thanks Tory Patnoe)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/branches/pjproject-0.5-stable/pjsip/src/pjsip-simple/pidf.c

    r974 r1143  
    7373static pj_str_t EMPTY_STRING = { NULL, 0 }; 
    7474 
     75static pj_str_t XMLNS = { "xmlns", 5 }; 
     76static pj_str_t PIDF_XMLNS = { "urn:ietf:params:xml:ns:pidf", 27 }; 
     77 
    7578static void xml_init_node(pj_pool_t *pool, pj_xml_node *node, 
    7679                          pj_str_t *name, const pj_str_t *value) 
     
    100103    xml_init_node(pool, pres, &PRESENCE, NULL); 
    101104    attr = xml_create_attr(pool, &ENTITY, entity); 
     105    pj_xml_add_attr(pres, attr); 
     106    attr = xml_create_attr(pool, &XMLNS, &PIDF_XMLNS); 
    102107    pj_xml_add_attr(pres, attr); 
    103108} 
Note: See TracChangeset for help on using the changeset viewer.