Ryan Leckey
1d369075c3
Add CF(Mutable)AttributedString and a couple helpers
2018-07-06 12:25:18 -07:00
Bruce Mitchener
7e7d65bb4d
Reduce usage of libc crate.
...
Switch from using `libc` types to `::std::os::raw`. This is a breaking
change due to the differences in how `c_void` is defined.
`core-foundation-sys` no longer needs the `libc` dependency.
2018-02-01 20:39:10 +07:00
Bruce Mitchener
bf3a9c89bd
Add missing license headers to src files.
2018-02-01 09:32:29 +07:00
Josh Matthews
53609f26ac
Respect const/mut of system headers.
2018-01-26 13:46:06 -05:00
Linus Färnstrand
3aa63aa5b7
Add TCFTypeRef trait
2018-01-23 22:35:52 +01:00
Linus Färnstrand
249300d8ab
Change CFErrorRef to *const ptr instead of *mut
2018-01-23 22:35:52 +01:00
bors-servo
2d35ed2d49
Auto merge of #84 - trlim:filedescriptor, r=jdm
...
Add bindings for `CFFileDescriptor`
This pull request adds implementation of `CFFileDescriptor` and `CFRunLoopSource` related API.
<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg " height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/core-foundation-rs/84 )
<!-- Reviewable:end -->
2018-01-20 17:17:36 -06:00
Tae-il Lim
530f732ce8
Implement CFFileDescriptor
2018-01-15 14:35:16 +09:00
Dan Glastonbury
6a77e377ba
Add CFMutableDictionary type.
...
Added CFMutableDictionary that presents the mutable dictionary
functions of CF. Tries to present a similar interface as CFDictionary.
Fixes issue #93 .
2017-11-29 12:50:05 +10:00
ratake
7b6fbdb1a1
Added support for CFTimeZone objects
2017-11-12 17:43:31 -08:00
ratake
79cd89bd5d
Added support for CFDate objects
2017-11-12 17:43:31 -08:00
ratake
e3fc4fe3e4
Implement Debug for all types
2017-11-12 17:41:29 -08:00
bors-servo
fda0928c53
Auto merge of #124 - ratake:uuid-crate, r=jdm
...
Made CFUUID interoperable with the uuid crate
Behind the `with-uuid` feature
<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg " height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/core-foundation-rs/124 )
<!-- Reviewable:end -->
2017-11-08 07:58:55 -06:00
ratake
b81cfce569
Made CFUUID interoperable with the uuid crate
2017-11-07 20:49:25 -08:00
ratake
2e2e6af6d8
Implement Ord for CFNumber
2017-11-07 20:44:13 -08:00
ratake
d20b8abc9c
Implement Eq for all types
2017-11-07 20:44:12 -08:00
bors-servo
2ceebd44fe
Auto merge of #121 - jrmuizel:uuid, r=jdm
...
Add support for CFUUID
<!-- Reviewable:start -->
This change is [<img src="https://reviewable.io/review_button.svg " height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/core-foundation-rs/121 )
<!-- Reviewable:end -->
2017-10-20 10:46:12 -05:00
bors-servo
dd3b248259
Auto merge of #119 - jrmuizel:cfurl-fs, r=jdm
...
Add CFURLGetFileSystemRepresentation
<!-- Reviewable:start -->
This change is [<img src="https://reviewable.io/review_button.svg " height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/core-foundation-rs/119 )
<!-- Reviewable:end -->
2017-10-20 07:49:22 -05:00
Jeff Muizelaar
6ca30dd9a8
Add support for CFUUID
2017-10-19 22:29:25 -04:00
Jeff Muizelaar
a6dc32cf50
Support converting non-utf8 paths to CFURLs
2017-10-19 18:17:26 -04:00
Jeff Muizelaar
04fd67e25b
Add CFURLGetFileSystemRepresentation
2017-10-19 17:36:54 -04:00
ratake
0dd90e84ae
Complete the CFAllocator reference
2017-10-12 21:48:29 -07:00
ratake
a622566dc4
Correct the definition for CFStringCreateWithBytes
2017-10-12 21:48:29 -07:00
ratake
7b0544fef6
Add support for f32 to CFNumber
2017-10-12 21:48:29 -07:00
ratake
dcc0a07776
Complete the types for CFArrayCallBacks and CFDictionaryCallBacks
2017-10-12 21:48:29 -07:00
Kornel
fe6edb78b9
Fix return types
2017-08-08 15:06:15 +01:00
Kornel
ba3e78cd3e
Add 10.8-only constant
2017-08-08 14:31:38 +01:00
Kornel
d0e0b1a34d
Add CFURL functions
2017-08-08 13:12:25 +01:00
Kornel
7fc7348821
Non-deprecated constants for 10.7+
2017-08-08 13:12:01 +01:00
Kornel
a9cee95b3c
CFURLSetResourcePropertyForKey
2017-08-08 12:58:39 +01:00
Ryan Thomas
b67ccaff4c
Remove zero-sized struct warning. #106 .
2017-07-27 20:08:41 +01:00
Nikhil Marathe
d58b72d211
Add CFBundle::private_frameworks_url() exposing CFBundleCopyPrivateFrameworksURL().
2017-06-16 09:19:05 -07:00
Maciej Goszczycki
27cbbbaeea
Export CFBundleCreate, add CFBundle::new(), exectuable_url()
2017-05-22 22:56:06 +01:00
Maciej Goszczycki
4fd7e39dec
Export CFURLCopyAbsoluteURL, add get_file_system_path(), absolute()
...
Also export CFURLCreateWithFileSystemPathRelativeToBase for testing
2017-05-22 22:53:54 +01:00
J.C. Jones
182aef27d6
Add CFSetApplyFunction and CFSetGetCount
2017-03-31 14:08:48 -07:00
Jeff Muizelaar
303ab74e1c
Expose CFURL accessor functions
2017-01-24 21:48:00 -05:00
bors-servo
44e872a427
Auto merge of #89 - cjhowe:feature-dictionary-keys-values, r=jdm
...
Add CFDictionary function to get keys and values
Tests included. No formatting issues this time!
<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg " height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/core-foundation-rs/89 )
<!-- Reviewable:end -->
2017-01-08 19:28:11 -08:00
bors-servo
24466bb48d
Auto merge of #91 - cjhowe:feature-cfarray-get-values, r=jdm
...
Add CFArray get_values and get_all_values
Includes tests.
<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg " height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/core-foundation-rs/91 )
<!-- Reviewable:end -->
2017-01-08 08:04:27 -08:00
Christian Howe
75740926cf
Add CFArray get_values and get_all_values
2017-01-02 21:23:55 -05:00
Christian Howe
1c47d8fa7f
Add CFDictionary function to get keys and values
2017-01-01 20:45:18 -05:00
Christian Howe
2560337ed8
Add CFPropertyList serialization
2017-01-01 19:38:22 -05:00
roblabla
7d834f89e0
Implement CFMessagePort
2016-12-21 16:51:22 +01:00
Tae-il Lim
10c768ab52
Add more bindings to sys::string
2016-11-07 20:10:26 +09:00
Tae-il Lim
716ad81ef0
Add more bindings to sys::dictionary
2016-11-07 20:09:08 +09:00
Patrick Walton
3e5f2a5efe
Add bindings for CFDictionarySetValue().
2016-05-16 10:12:36 -07:00
Patrick Walton
82f7421c13
Add bindings for CFBundleGetMainBundle() and
...
`CFBundleGetInfoDictionary()`.
2016-05-16 10:12:36 -07:00
Luo
42c5220f8a
let CFIndex&CFRelease be public
2016-05-12 06:35:56 +08:00
Steven Fackler
1b3d4982f6
Fix private type in public API warnings
2016-04-17 22:39:46 -07:00
Steven Fackler
470f20d404
Add sys bindings for CFError
2016-04-17 22:39:46 -07:00
Steven Fackler
77344dbcfc
Remove a straggling link attribute
...
This is handled by Cargo now
2015-12-14 23:54:09 -08:00