"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "wrappers/swift/wrapper_impl.mustache" between
liblinphone-4.5.18.tar.gz and liblinphone-4.5.19.tar.gz

About: Linphone is a cross-platform high-level VoIP library implementing all SIP calling and instant messaging (IM) features within a single API.

wrapper_impl.mustache  (liblinphone-4.5.18):wrapper_impl.mustache  (liblinphone-4.5.19)
skipping to change at line 566 skipping to change at line 566
{{#is_generic}} {{#is_generic}}
let exception_result = {{setter_c_name}}(cPtr, newValue) let exception_result = {{setter_c_name}}(cPtr, newValue)
{{/is_generic}} {{/is_generic}}
{{#is_string_list}} {{#is_string_list}}
var cList: UnsafeMutablePointer<bctbx_list_t>? = nil var cList: UnsafeMutablePointer<bctbx_list_t>? = nil
for data in newValue { for data in newValue {
let sData:NSString = data as NSString let sData:NSString = data as NSString
cList = bctbx_list_append(cList, unsafeBitCast(sData.utf8 String, to: UnsafeMutablePointer<CChar>.self)) cList = bctbx_list_append(cList, unsafeBitCast(sData.utf8 String, to: UnsafeMutablePointer<CChar>.self))
} }
let exception_result = {{setter_c_name}}(cPtr, cList) let exception_result = {{setter_c_name}}(cPtr, cList)
bctbx_list_free(cList)
{{/is_string_list}} {{/is_string_list}}
{{#is_class_list}} {{#is_class_list}}
var cList: UnsafeMutablePointer<bctbx_list_t>? = nil var cList: UnsafeMutablePointer<bctbx_list_t>? = nil
for data in newValue { for data in newValue {
cList = bctbx_list_append(cList, UnsafeMutableRawPointer( data.cPtr)) cList = bctbx_list_append(cList, UnsafeMutableRawPointer( data.cPtr))
} }
let exception_result = {{setter_c_name}}(cPtr, cList) let exception_result = {{setter_c_name}}(cPtr, cList)
bctbx_list_free(cList)
{{/is_class_list}} {{/is_class_list}}
guard exception_result == 0 else { guard exception_result == 0 else {
throw LinphoneError.exception(result: "username setter re turned value \(exception_result)") throw LinphoneError.exception(result: "username setter re turned value \(exception_result)")
} }
} }
{{/exception}} {{/exception}}
{{/has_setter}} {{/has_setter}}
{{#listener}} {{#listener}}
public func {{name}}({{#args}}delegate: {{className}}Delegate{{/args}}){{ #property_return}} -> {{className}}Delegate?{{/property_return}} public func {{name}}({{#args}}delegate: {{className}}Delegate{{/args}}){{ #property_return}} -> {{className}}Delegate?{{/property_return}}
{ {
 End of changes. 2 change blocks. 
0 lines changed or deleted 2 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)