[Webkit-unassigned] [Bug 253810] [WPE] Webkit API object/struct names hidden from Swift import after change to 2022 API

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sun Apr 30 00:11:05 PDT 2023


https://bugs.webkit.org/show_bug.cgi?id=253810

Ryan Walklin <ryan at testtoast.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |INVALID

--- Comment #5 from Ryan Walklin <ryan at testtoast.com> ---
Hi all, thanks for the comments, as you had suspected this is actually due to the way Swift imports any C opaque struct as an OpaquePointer type, whereas I was previously able to use an UnsafeMutablePointer<Type>. 

Annoying that this is how incomplete structs are imported, but using typealias in Swift allows most of the type info to be retained, and after updating my use of the library the 2022 API works well called directly from Swift 5.8. Closing as NOTABUG,

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20230430/533e28d4/attachment.htm>


More information about the webkit-unassigned mailing list