2186 Commits

Author SHA1 Message Date
michaelwright235 6b252cf1fc cocoa-foundation: Get rid of anonymous parameter
It's an error since Rust 2018.
2023-06-07 02:01:50 +03:00
michaelwright235 2c9551d94a cocoa: examples: Remove unused imports 2023-06-07 02:01:50 +03:00
michaelwright235 0417df7ba3 Replace deprecated libc::int32_t type with i32
`int32_t` is just an alias of `i32` type.
2023-06-06 16:30:40 +03:00
bors-servo f80c63a60a Auto merge of #579 - michaelwright235:stream, r=jdm
sys: Introduce CFStream

Implements `stream` module containing CFStream related functions and constants. Also uncomments some functions of `propertylist` that uses CFStream.
2023-06-06 14:23:47 +02:00
bors-servo df2a5c6b06 Auto merge of #580 - michaelwright235:uncomment_fns, r=jdm
sys: Uncomment functions

Uncomments functions that uses already implemented structures (CFNotificationName, CFMutableStringRef).
2023-06-06 14:20:58 +02:00
michaelwright235 fab893278d sys: attributed_string: Uncomment CFAttributedStringGetMutableString
because CFMutableStringRef has been implemented.
2023-06-06 13:35:40 +03:00
michaelwright235 8d5e5320ce sys: Uncomment CFNotificationName constants
because this is implemented now.
2023-06-06 13:33:59 +03:00
michaelwright235 7053c69118 sys: propertylist: Uncomment functions
containing CFWriteStreamRef and CFReadStreamRef
2023-06-06 13:27:25 +03:00
michaelwright235 cca1c3302a sys: Introduce CFStream
Implement CFReadStream and CFWriteStream with all its functions in a
new `stream` module.
2023-06-06 13:27:25 +03:00
bors-servo 084959318f Auto merge of #578 - michaelwright235:nc, r=jdm
sys: Implement CFNotificationCenter

Implements `CFNotificationCenter` in `notification_center` module with all its constants and functions ordered in Apple docs order.
2023-06-02 19:10:03 +02:00
bors-servo 181c3c0690 Auto merge of #577 - michaelwright235:runloop, r=jdm
sys: runloop: Add missing stuff

Adds missing functions of CFRunLoop and sorts them in Apple docs order. Also I've implemented platform dependent variants of 2 fields of CFRunLoopSourceContext1 structure.
2023-06-02 19:07:04 +02:00
michaelwright235 3cb2db758e sys: Implement CFNotificationCenter 2023-06-02 10:52:26 +03:00
michaelwright235 c9e5a1763a sys: url: Add missing functions of CFRunLoopRun & sorting
All of them are sorted in Apple docs order now.
Note: CFRunLoopTimerGetTolerance and CFRunLoopTimerSetTolerance
were already implemented at some point, however they're available
for macOS 10.9+.
2023-06-02 10:04:43 +03:00
michaelwright235 d2eed27ec6 sys: runloop: Implement platform dependent variants of 2 fields
of CFRunLoopSourceContext1 structure.
2023-06-02 10:01:10 +03:00
michaelwright235 2d350e57f3 sys: runloop: Derive Debug for structs 2023-06-02 10:00:51 +03:00
bors-servo caded82b3c Auto merge of #576 - michaelwright235:url, r=jdm
sys: url: Add a lot of stuff

This pull request adds: Bookmark Data Creation Options constants, CFURLComponentType type and related constants, CFURLBookmarkResolutionOptions related constants, missing external constants and functions (all sorted in Apple docs order).
2023-06-02 03:03:36 +02:00
michaelwright235 f59dd8118a sys: url: Fix up some consts 2023-06-01 19:57:18 +03:00
michaelwright235 a164b88d4f sys: url: Add missing CFUrl functions and sort them
in Apple docs order.
2023-06-01 19:13:06 +03:00
michaelwright235 5d8f7db5dd sys: url: Add missing external constants and sort them in groups
according to Apple docs.
2023-06-01 19:11:47 +03:00
michaelwright235 ffd0aee25c sys: url: Add CFURLBookmarkResolutionOptions related constants 2023-06-01 19:09:45 +03:00
michaelwright235 e7bcad3826 sys: url: Add CFURLComponentType type and related constants 2023-06-01 19:08:29 +03:00
michaelwright235 21b73040e9 sys: url: Add missing Bookmark Data Creation Options
And also mark macOS-only constants
2023-06-01 19:06:09 +03:00
bors-servo c2350940e0 Auto merge of #575 - michaelwright235:string, r=jdm
sys: string: Add missing stuff

Adds `CFStringCompareFlags` constants, `CFStringEncoding` constants. Implements `CFStringNormalizationForm` type and its constants. Adds missing functions of `CFString` (they're sorted in Apple docs order) and implements `CFMutableStringRef` with its corresponding functions.
2023-06-01 15:31:26 +02:00
michaelwright235 b6d33fa158 sys: string: Add missing functions and CFMutableStringRef
Adds missing functions of CFString (they're sorted in Apple docs
order) and implements CFMutableStringRef with its corresponding
functions.
2023-06-01 15:57:25 +03:00
michaelwright235 b742606a5c sys: string: Remove repeating type
Removes `UniChar` type because it's already defined in base.rs.
2023-06-01 15:50:12 +03:00
michaelwright235 aafd19f14c sys: string: Implement CFStringNormalizationForm type and consts 2023-06-01 15:40:54 +03:00
michaelwright235 099ede3003 sys: string: Implement CFStringEncoding constants
Implements constants of encodings found in CFString.h and
CFStringEncodingExt.h. Removes unused CFStringEncodings type,
fixes CFStringEncoding type.
2023-06-01 15:27:09 +03:00
michaelwright235 c03c9202cb sys: string: Add CFStringCompareFlags constants 2023-06-01 15:24:01 +03:00
bors-servo 3cd96c9ffd Auto merge of #573 - michaelwright235:fd, r=jdm
sys: filedescriptor: Add missing funcs & sorting

Adds missing functions of CFFileDescriptor and sorts them in Apple docs order.
2023-06-01 01:56:45 +02:00
bors-servo 34f601924d Auto merge of #574 - michaelwright235:propertylist, r=jdm
sys: propertylist: Add missing functions and consts, sort them

Adds missing functions and constants of CFPropertyList and sorts them in Apple docs order. Some of them are commented out because some types are not implemented yet.
2023-06-01 01:54:00 +02:00
michaelwright235 6a36607f7f sys: propertylist: Add missing functions and sort them
Adds missing functions of CFPropertyList and sorts them in Apple
docs order. Some of them are commented out because some types
are not implemented yet.
2023-05-31 22:23:55 +03:00
michaelwright235 b845f2fc1a sys: propertylist: Introduce consts of Reading and Writing Error
Codes
2023-05-31 22:20:56 +03:00
michaelwright235 df6498fe53 sys: filedescriptor: Add missing funcs & sorting
Adds missing functions of CFFileDescriptor and sorts them in Apple docs
order.
2023-05-31 22:02:17 +03:00
bors-servo 7b4890b37f Auto merge of #572 - michaelwright235:uuid, r=jdm
sys: uuid: Add missing funcs, add more attrs to a struct

Adds missing functions of CFUUID, derives `Debug` and `PartialEq` attributes to CFUUIDBytes struct. All functions are sorted in Apple docs order.
2023-05-31 14:46:13 +02:00
bors-servo 08db6d951a Auto merge of #571 - michaelwright235:timezone, r=jdm
sys: timezone: Add missing funcs, consts & sorting

Adds missing functions of CFTimeZone, implements CFTimeZoneNameStyle type and consts related to it. Sorts all stuff in Apple docs order.
2023-05-31 14:43:15 +02:00
bors-servo 37cc73701c Auto merge of #570 - michaelwright235:set, r=jdm
sys: set: Add missing stuff, implement CFMutableSet

Implements CFMutableSet and a missing const. Sorts all functions in Apple docs order. Replaces pointer placeholders of callbacks with actual function declarations.
2023-05-31 14:40:26 +02:00
michaelwright235 e108372833 sys: uuid: Add missing funcs, add more attrs to a struct
Adds missing functions of CFUUID, derives `Debug` and `PartialEq`
attributes to CFUUIDBytes struct. All functions are sorted in Apple docs
order.
2023-05-31 13:27:35 +03:00
michaelwright235 b2b2eb7222 sys: timezone: Add missing funcs, consts & sorting
Adds missing functions of CFTimeZone, implements CFTimeZoneNameStyle
type and consts related to it. Sorts all stuff in Apple docs order.
2023-05-31 13:19:12 +03:00
michaelwright235 002ad885a1 sys: set: Implement CFMutableSet, a missing const 2023-05-30 23:47:42 +03:00
michaelwright235 69316790e8 sys: set: Implement actual callbacks
Replaces pointer placeholders with actual function declarations.
2023-05-30 23:44:17 +03:00
bors-servo 94d9037928 Auto merge of #569 - michaelwright235:messageport, r=jdm
sys: messageport: Sort functions, add error codes

Sorts all functions of CFMessagePort in Apple docs order, adds constants of CFMessagePortSendRequest Error Codes.
2023-05-30 13:47:57 +02:00
bors-servo 4a2b7ece8d Auto merge of #568 - michaelwright235:number, r=jdm
sys: number: Add missing funcs and consts, sorting

Adds missing functions and constants of CFNumber. Sorts them in Apple docs order.
2023-05-30 13:45:13 +02:00
bors-servo a8f7834032 Auto merge of #567 - michaelwright235:mach, r=jdm
sys: mach_port: Add missing stuff

Adds missing structures, functions, etc of CFMachPort. All of them are sorted in Apple docs order.
Also I've added missing license at the top of file and removed redundant `pub use` of `base` structures.
2023-05-30 13:41:24 +02:00
michaelwright235 cc092be763 sys: number: Add missing funcs and consts, sorting
Adds missing functions and consts of CFNumber.
Sorts them in Apple docs order.
2023-05-29 23:08:15 +03:00
michaelwright235 db3f5de309 sys: messageport: Sort functions, add error codes 2023-05-29 22:56:49 +03:00
michaelwright235 13ea548fac sys: mach_port: Add missing structures, funcs, etc 2023-05-29 22:37:41 +03:00
michaelwright235 6d00383baf mach_port: Removed redundant pub use 2023-05-29 22:31:11 +03:00
bors-servo ac95280017 Auto merge of #566 - michaelwright235:error, r=jdm
CFError (sys): Add missing functions & consts

Adds missing functions and consts of CFError and sorts them in Apple docs order.
2023-05-29 18:29:12 +02:00
bors-servo 79321e23c2 Auto merge of #564 - michaelwright235:characterset, r=jdm
CFCharacterSet (sys): Add missing functions & sorting

Adds missing functions and sorts them in Apple docs order. CFMutableCharacterSetRef is a mutable pointer now as it should be, according to CFCharacterSet.h.
2023-05-29 18:26:19 +02:00
bors-servo 2bb215b600 Auto merge of #563 - michaelwright235:bundle, r=jdm
CFBundle (sys): Add funcs & consts, sorting

Adds missing functions, types and constants from CFBundle.h. Several inline functions are also rewritten as unsafe Rust functions. All of them are sorted in Apple docs order.
2023-05-29 18:22:03 +02:00