Commit Graph

295 Commits

Author SHA1 Message Date
Kornel dfd168f5a0 CFURL from Path 2017-08-08 15:53:55 +01:00
Kornel fe6edb78b9 Fix return types 2017-08-08 15:06:15 +01:00
bors-servo 2990a43ea9 Auto merge of #110 - pornel:108, r=jdm
Optional 10.8 support

Closes #109

<!-- 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/110)
<!-- Reviewable:end -->
2017-08-08 08:43:24 -05:00
Kornel ba3e78cd3e Add 10.8-only constant 2017-08-08 14:31:38 +01:00
Kornel d32bc9ea23 10.7/10.8 compatibility features 2017-08-08 14:31:38 +01:00
bors-servo 7b76f3dff9 Auto merge of #108 - pornel:master, r=jdm
Added some CFURL functions and constants

I've checked all are available on 10.7.

<!-- 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/108)
<!-- Reviewable:end -->
2017-08-08 07:36:43 -05: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
bors-servo 589527458e Auto merge of #107 - rthomas:106-warnings, r=jdm
Remove zero-sized struct warning. #106.

This change will fix the remaining warnings in servo/core-text-rs#62 when it is released and the core-text crate is updated.

<!-- 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/107)
<!-- Reviewable:end -->
2017-07-27 15:53:18 -05:00
Ryan Thomas a37ecf56bb Wrap the test in unsafe to prevent E0133.
E0133 has gone from warning to error on nightly now, this fix allows the
tests to pass on nightly.
2017-07-27 21:52:27 +01:00
Ryan Thomas 4c8373363f Bump version number to 0.4.2. 2017-07-27 20:23:55 +01:00
Ryan Thomas b67ccaff4c Remove zero-sized struct warning. #106. 2017-07-27 20:08:41 +01:00
bors-servo 4c380a67b4 Auto merge of #103 - nikhilm:frameworks-path, r=jdm
Add CFBundle::private_frameworks_url() exposing CFBundleCopyPrivateFr…

…ameworksURL().

If this is merged, would it be possible to cut a release after?

<!-- 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/103)
<!-- Reviewable:end -->
2017-06-16 11:17:18 -07:00
Nikhil Marathe 650d7a0245 Bump version to 0.4.1 2017-06-16 11:01:07 -07:00
Nikhil Marathe d58b72d211 Add CFBundle::private_frameworks_url() exposing CFBundleCopyPrivateFrameworksURL(). 2017-06-16 09:19:05 -07:00
bors-servo 5a90926ad4 Auto merge of #102 - servo:jdm-patch-1, r=KiChjang
Prepare to publish newest changes

<!-- 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/102)
<!-- Reviewable:end -->
2017-06-01 17:44:17 -07:00
Josh Matthews c94e5fe6f6 Update core-foundation version. 2017-06-01 09:37:16 -04:00
Josh Matthews e7ccafa9f1 Update version for core-foundation-sys. 2017-06-01 09:34:46 -04:00
bors-servo 18fadda7b7 Auto merge of #101 - mgoszcz2:master, r=jdm
Additions to CFURL and CFBundle

I propose a few additions to CFBundle and CFURL APIs. Not sure how general they are, but they would be nice to have out of the box.

The `CFURL::absolute_file_url` test is a bit big, but it demonstrates the need for `CFURL::absolute()`.

I think `CFBundle::main_bundle()` should return an `Option` since `CFBundleGetMainBundle` can return NULL but that is a breaking change and I decided not to include it.

<!-- 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/101)
<!-- Reviewable:end -->
2017-05-22 20:37:52 -05:00
Maciej Goszczycki f279342c63 Remove duplicate string in test 2017-05-23 01:21:28 +01:00
Maciej Goszczycki 2a69844e0d Change exectuable to executable 2017-05-23 01:19:42 +01: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
bors-servo 4af890beff Auto merge of #99 - jcjones:master, r=pcwalton
Add CFSetApplyFunction and CFSetGetCount

I'm needing these CFSet functions for some USB HID interactions with IOKit, so here's the external references.

They are defined in CoreFoundation:

- [CFSetApplyFunction](https://developer.apple.com/reference/corefoundation/1520450-cfsetapplyfunction?language=objc) and
- [CFSetGetCount](https://developer.apple.com/reference/corefoundation/1520419-cfsetgetcount?language=objc)

<!-- 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/99)
<!-- Reviewable:end -->
2017-04-02 13:57:10 -05:00
J.C. Jones 182aef27d6 Add CFSetApplyFunction and CFSetGetCount 2017-03-31 14:08:48 -07:00
bors-servo c1660ff114 Auto merge of #98 - nox:rm-links, r=jdm
Do not use 'links' in Cargo.toml (fixes #97)

<!-- 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/98)
<!-- Reviewable:end -->
2017-02-02 03:50:00 -08:00
Anthony Ramine 1c6bdc80b3 Do not use 'links' in Cargo.toml (fixes #97) 2017-02-01 16:31:05 +01:00
bors-servo fab0294e81 Auto merge of #95 - jrmuizel:cfurl, r=jdm
Bump the version to 0.3.0

<!-- 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/95)
<!-- Reviewable:end -->
2017-01-26 00:34:34 -08:00
Jeff Muizelaar cd1f99039f Bump the version to 0.3.0 2017-01-25 13:34:11 -05:00
bors-servo 18f8f04716 Auto merge of #94 - jrmuizel:cfurl, r=jdm
Expose CFURL accessor functions

<!-- 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/94)
<!-- Reviewable:end -->
2017-01-25 07:12:14 -08:00
Jeff Muizelaar 303ab74e1c Expose CFURL accessor functions 2017-01-24 21:48:00 -05:00
bors-servo cd0941f53e Auto merge of #92 - cjhowe:master, r=jdm
Bump minor version for feature release

Several features were just merged from pull requests, so I think we should do a minor release. Thanks!

<!-- 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/92)
<!-- Reviewable:end -->
2017-01-09 10:53:09 -08:00
Christian Howe e1af8fb235 Bump version for feature release 2017-01-09 10:20:58 -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
bors-servo ce166bb19f Auto merge of #90 - cjhowe:feature-cfproperty-serialization, r=jdm
Add CFPropertyList serialization

Tests included. Reopened from #88

<!-- 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/90)
<!-- Reviewable:end -->
2017-01-05 00:48:33 -08:00
Christian Howe 37e11bd27e Remove unnecessary casts in propertylist 2017-01-04 19:46:13 -05:00
Christian Howe 506b1fd402 Use *const c_void in propertylist functions for consistency 2017-01-04 15:29:49 -05: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
bors-servo eb50e52d46 Auto merge of #87 - roblabla:feature-cfmessageport, r=jdm
Implement CFMessagePort

Implements almost all CFMessagePort* functions.

<!-- 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/87)
<!-- Reviewable:end -->
2016-12-21 13:56:11 -08:00
roblabla 7d834f89e0 Implement CFMessagePort 2016-12-21 16:51:22 +01:00
bors-servo c1052bdf99 Auto merge of #86 - trlim:mutdict, r=jdm
Add more bindings to sys

This PR adds,
- `CFMutableDictionaryRef`
- `CFDictionaryApplyFunction`
- `CFStringCreateWithCString`
- `CFStringGetCString`

<!-- 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/86)
<!-- Reviewable:end -->
2016-11-07 07:49:46 -06: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 2806eb863a 0.2.2 2016-05-16 11:22:37 -07:00
bors-servo ae55a5ee4e Auto merge of #81 - pcwalton:bundle-dictionary-additions, r=larsbergstrom
Add bindings for `CFBundleGetMainBundle()`, `CFBundleGetInfoDictionary()`, and `CFDictionarySetValue()`.

r? @larsbergstrom

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/core-foundation-rs/81)
<!-- Reviewable:end -->
2016-05-16 10:15:20 -07:00
Patrick Walton 3e5f2a5efe Add bindings for CFDictionarySetValue(). 2016-05-16 10:12:36 -07:00