Comparison

util/xmppstream.lua @ 3708:2dcb86c7cee7

util.xmppstream: Expose ns_separator and ns_pattern
author Matthew Wild <mwild1@gmail.com>
date Tue, 07 Dec 2010 19:19:05 +0000
parent 3696:a96f275c42b5
child 3927:1b57e83266f0
comparison
equal deleted inserted replaced
3707:79f62694d36e 3708:2dcb86c7cee7
28 28
29 local xmlns_streams = "http://etherx.jabber.org/streams"; 29 local xmlns_streams = "http://etherx.jabber.org/streams";
30 30
31 local ns_separator = "\1"; 31 local ns_separator = "\1";
32 local ns_pattern = "^([^"..ns_separator.."]*)"..ns_separator.."?(.*)$"; 32 local ns_pattern = "^([^"..ns_separator.."]*)"..ns_separator.."?(.*)$";
33
34 _M.ns_separator = ns_separator;
35 _M.ns_pattern = ns_pattern;
33 36
34 function new_sax_handlers(session, stream_callbacks) 37 function new_sax_handlers(session, stream_callbacks)
35 local xml_handlers = {}; 38 local xml_handlers = {};
36 39
37 local log = session.log or default_log; 40 local log = session.log or default_log;