Commit Graph

2008 Commits

Author SHA1 Message Date
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
bors-servo ae2b59949a Auto merge of #565 - michaelwright235:data, r=jdm
CFData (sys): Add missing functions & sorting

Adds missing functions of CFData and sorts them in Apple docs order. Also missing CFDataSearchFlags type and related consts are added.
2023-05-29 18:16:00 +02:00
michaelwright235 f26a11873a sys: data: Introduce CFMutableData & its functions 2023-05-29 19:02:51 +03:00
michaelwright235 a3f944fbd8 sys: error: Add commented const
Adds commented out kCFErrorLocalizedFailureKey
const to not forget to implement it in the future.
2023-05-29 15:18:50 +03:00
michaelwright235 5f1ee87146 sys: error: Add missing functions & consts, sorting
Adds missing functions and consts of CFError
and sorts them in Apple docs order.
2023-05-29 15:08:52 +03:00
michaelwright235 0c8bef46d5 sys: data: Add missing functions & sorting
Adds missing functions of CFData and sorts them in Apple docs order.
Also missing CFDataSearchFlags type and related consts are added.
2023-05-29 13:46:59 +03:00
michaelwright235 33d5fb7791 sys: characterset: 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 13:35:55 +03:00
michaelwright235 8be8ef8b0c sys: bundle: 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 13:16:10 +03:00
bors-servo c441d916e1 Auto merge of #560 - fcfangcc:release-0.23.4, r=jdm
Release for core-graphics

Release core-graphics  version to 0.22.4

Include #554 , I urgently need to use it. Thanks 😃
2023-05-29 04:29:36 +02:00
fcfangcc 4c11545a87 release core-graphics 0.22.4 2023-05-29 09:39:15 +08:00
bors-servo 46e8deafc2 Auto merge of #559 - michaelwright235:dict, r=jdm
CFDictionary (sys): add new funcs, sorting

Adds missing functions and one const. All of them are sorted in Apple docs order (https://developer.apple.com/documentation/corefoundation/cfdictionary?language=objc).
2023-05-28 20:54:54 +02:00
bors-servo c849505985 Auto merge of #557 - michaelwright235:attr_str, r=jdm
sys: attributed_string: Adds missing funcs & sorting

Adds missing functions of `CFAttributedString`, sorts them in Apple docs order (https://developer.apple.com/documentation/corefoundation/cfattributedstring?language=objc).
CFMutableAttributedStringRef is converted to a mutable pointer (as it should be) according to CFAttributedString.h.
2023-05-28 20:52:15 +02:00
bors-servo 37c8dbcc66 Auto merge of #558 - michaelwright235:base, r=jdm
sys: base: Add new types & funcs

Adds necessary types for upcoming changes. All of them are defined in MacTypes.h and CFBase.h. Several functions were added. Implements new derive attributes.
2023-05-28 20:49:35 +02:00
michaelwright235 47365abca6 sys: dictionary: Add new funcs, sorting
Adds missing functions and one const. All of them are sorted in Apple
docs order.
2023-05-27 16:09:36 +03:00
michaelwright235 1cb863ea97 sys: base: Add new types & funcs
Adds necessary types for upcoming changes. All of them are defined
in MacTypes.h. Several functions were added. Implements new
derive attributes.
2023-05-26 18:50:54 +03:00
michaelwright235 b3397ecc75 sys: attributed_string: Adds missing funcs & sorting
Adds missing functions of CFAttributedString, sorts them in Apple docs
order (https://developer.apple.com/documentation/corefoundation/cfattributedstring?language=objc).
CFMutableAttributedStringRef is converted to a mutable
pointer (as it should be).
2023-05-26 18:26:50 +03:00
bors-servo 08f46cb426 Auto merge of #556 - michaelwright235:array, r=jdm
CFArray (sys): Add missing functions & sorting

Adds missings functions for CFArray and sorts them in Apple docs order (https://developer.apple.com/documentation/corefoundation/cfarray?language=objc and https://developer.apple.com/documentation/corefoundation/cfmutablearray?language=objc).
2023-05-26 15:24:42 +02:00
michaelwright235 04511e27e4 sys: array: Add missing funcs & sorting
Adds missings functions for CFArray and
sorts them in Apple docs order
(https://developer.apple.com/documentation/corefoundation/cfarray?language=objc
and https://developer.apple.com/documentation/corefoundation/cfmutablearray?language=objc)
2023-05-26 14:25:34 +03:00
bors-servo 696166cfac Auto merge of #555 - michaelwright235:locale, r=jdm
sys: Add CFLocale

Adds `locale` module (corresponds to CFLocale) to core-foundation-sys. Also there are some additional types added to base.rs that are essential for this module. All functions and consts are categorized according to Apple documentation (https://developer.apple.com/documentation/corefoundation/cflocale?language=objc).
There are several commented out consts because they're available only for later macOS versions (10.10+).
2023-05-26 01:06:55 +02:00
michaelwright235 2f5753321a sys: Introduce CFLocale
Adds `locale` module (corresponds to CFLocale)
to core-foundation-sys.
2023-05-25 00:18:29 +03:00
michaelwright235 15066d628c sys: base: Add new types
Adds new types (SInt16, LangCode, RegionCode). All of them are
defined in MacTypes.h
2023-05-24 23:31:41 +03:00
bors-servo d254cec065 Auto merge of #554 - fcfangcc:feat-screenCaptureAccess, r=jdm
Add binding for ScreenCaptureAccess

Add binding for [CGRequestScreenCaptureAccess](https://developer.apple.com/documentation/coregraphics/3656524-cgrequestscreencaptureaccess) and [CGPreflightScreenCaptureAccess](https://developer.apple.com/documentation/coregraphics/3656523-cgpreflightscreencaptureaccess)

 to check if the app has screen recording permission on macOS
2023-05-24 15:53:08 +02:00
bors-servo b9e7405396 Auto merge of #552 - michaelwright235:user_notification, r=jdm
sys: Add CFUserNotification

Adds `CFUserNotification` module into `core-foundation-sys` crate with all its constants and functions (https://developer.apple.com/documentation/corefoundation/cfusernotification?language=objc).
It also contains 3 plain inlined functions rewritten from CFUserNotification.h.
This API is available only on macOS, so an additional cfg flag was added in lib.rs.
2023-05-24 15:47:39 +02:00
bors-servo 8b982fdd57 Auto merge of #548 - burtonageo:update_foreign_types, r=jdm
Update `foreign-types` crate to v0.5

Splits out the `foreign-types` part of https://github.com/servo/core-foundation-rs/pull/545
2023-05-24 15:42:31 +02:00
fcfangcc d8b6ff1723 Add ScreenCaptureAccess struct 2023-05-24 21:23:55 +08:00
fcfangcc 2784e317bd Add binding for ScreenCaptureAccess 2023-05-24 15:50:12 +08:00
bors-servo 3e4316695a Auto merge of #553 - michaelwright235:update_github_actions, r=jdm
Bump macOS GitHub actions to macOS 11

macOS 10.15 runner image is removed since 8/30/22
(https://github.blog/changelog/2022-07-20-github-actions-the-macos-10-15-actions-runner-image-is-being-deprecated-and-will-be-removed-by-8-30-22/).
Using it makes GitHub Actions stuck forever.
2023-05-24 08:38:14 +02:00
michaelwright235 7931c7651f Bump macOS GitHub actions to macOS 11
macOS 10.15 runner image is removed since 8/30/22
(https://github.blog/changelog/2022-07-20-github-actions-the-macos-10-15-actions-runner-image-is-being-deprecated-and-will-be-removed-by-8-30-22/).
Using it makes GitHub Actions stuck forever.
2023-05-23 22:52:31 +03:00
michaelwright235 7d324704cd sys: Introduce CFUserNotification
This API is available only on Mac OS, so an additional cfg flag
was added in lib.rs.
2023-05-23 20:44:41 +03:00