<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div class="">Hey, Dennis. You <i class="">should</i> be able to use backticks to escape Swift keywords, including this one. However, that doesn't actually work yet, due to&nbsp;<a href="https://bugs.swift.org/browse/SR-1660" class="">SR-1660</a>. There's been some progress towards fixing this, but it's not ready to go into a release yet.</div><div class=""><br class=""></div><div class="">If you <i class="">can</i>&nbsp;modify the header, the easiest answer is to add a swift_name attribute (`__attribute__((swift_name("initOp")))`). If you can't, the next best thing is probably to write a static inline wrapper function in C, unfortunately.</div><div class=""><br class=""></div><div class="">Sorry for the inconvenience,</div><div class="">Jordan</div><br class=""><div><blockquote type="cite" class=""><div class="">On Jan 8, 2017, at 01:11, Dennis Schafroth via swift-users &lt;<a href="mailto:swift-users@swift.org" class="">swift-users@swift.org</a>&gt; wrote:</div><br class="Apple-interchange-newline"><div class=""><meta http-equiv="Content-Type" content="text/html charset=us-ascii" class=""><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div class=""><br class=""></div>Is there any solutions to importing structs from C API where there is a member init.<div class=""><br class=""></div><div class="">The fuse_operations is a struct with callbacks functions and one is called init&nbsp;</div><div class=""><br class=""></div><div class=""><span class="pl-k" style="box-sizing: border-box; color: rgb(167, 29, 93); font-family: Consolas, 'Liberation Mono', Menlo, Courier, monospace; white-space: pre;">struct</span><span style="color: rgb(51, 51, 51); font-family: Consolas, 'Liberation Mono', Menlo, Courier, monospace; white-space: pre; background-color: rgb(255, 255, 255);" class=""> fuse_operations {</span></div><div class=""><br class=""></div><div class=""><span class="pl-k" style="box-sizing: border-box; color: rgb(167, 29, 93); font-family: Consolas, 'Liberation Mono', Menlo, Courier, monospace; white-space: pre;"><span class="Apple-tab-span" style="white-space:pre">        </span>void</span><span style="color: rgb(51, 51, 51); font-family: Consolas, 'Liberation Mono', Menlo, Courier, monospace; white-space: pre; background-color: rgb(255, 255, 255);" class=""> *(*init) (</span><span class="pl-k" style="box-sizing: border-box; color: rgb(167, 29, 93); font-family: Consolas, 'Liberation Mono', Menlo, Courier, monospace; white-space: pre;">struct</span><span style="color: rgb(51, 51, 51); font-family: Consolas, 'Liberation Mono', Menlo, Courier, monospace; white-space: pre; background-color: rgb(255, 255, 255);" class=""> fuse_conn_info *conn);</span></div><div class=""><font color="#333333" face="Consolas, Liberation Mono, Menlo, Courier, monospace" class=""><span style="white-space: pre; background-color: rgb(255, 255, 255);" class="">}</span></font></div><div class=""><font color="#333333" face="Consolas, Liberation Mono, Menlo, Courier, monospace" class=""><span style="white-space: pre; background-color: rgb(255, 255, 255);" class=""><br class=""></span></font></div><div class="">This seems to collide with the Swift init method on imported C struct</div><div class=""><br class=""></div><div class="">cheers,</div><div class="">:-Dennis</div></div>_______________________________________________<br class="">swift-users mailing list<br class=""><a href="mailto:swift-users@swift.org" class="">swift-users@swift.org</a><br class="">https://lists.swift.org/mailman/listinfo/swift-users<br class=""></div></blockquote></div><br class=""></body></html>