From: sgunderson@bigfoot.com <> Date: Fri, 23 Sep 2011 21:40:12 +0000 (+0200) Subject: In php5-swig, take in std::string as filename parameter now that we have the right... X-Git-Url: https://git.sesse.net/?p=xml-template;a=commitdiff_plain;h=56a1b65e5a572a70eeec34575218a9e692ee7b9d In php5-swig, take in std::string as filename parameter now that we have the right typemap in place. --- diff --git a/php5-swig/xml-template.swig b/php5-swig/xml-template.swig index 02314f0..9c59ff8 100644 --- a/php5-swig/xml-template.swig +++ b/php5-swig/xml-template.swig @@ -88,7 +88,7 @@ Directive* convert_php_objects_to_directive(zval *obj) return NULL; } -XmlDocPtrWrapper XML_Template_process_file(const char *input_filename, Directive *root_directive, bool clean) +XmlDocPtrWrapper XML_Template_process_file(const std::string &input_filename, Directive *root_directive, bool clean) { xmlDocPtr ret = process_file(input_filename, root_directive, clean); delete root_directive; @@ -125,6 +125,6 @@ std::string XML_Template_convert_doc_to_string(XmlDocPtrWrapper doc) $1 = convert_php_objects_to_directive(*$input); } -XmlDocPtrWrapper XML_Template_process_file(const char *input_filename, Directive *root_directive, bool clean); +XmlDocPtrWrapper XML_Template_process_file(const std::string &input_filename, Directive *root_directive, bool clean); std::string XML_Template_convert_doc_to_string(XmlDocPtrWrapper doc);