Commit Graph

271 Commits

Author SHA1 Message Date
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
Patrick Walton 82f7421c13 Add bindings for CFBundleGetMainBundle() and
`CFBundleGetInfoDictionary()`.
2016-05-16 10:12:36 -07:00
bors-servo 29324d16d8 Auto merge of #80 - OpenAnsible:master, r=pcwalton
Let CFIndex&CFRelease be public

<!-- 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/80)
<!-- Reviewable:end -->
2016-05-11 20:30:50 -07:00
Luo 42c5220f8a let CFIndex&CFRelease be public 2016-05-12 06:35:56 +08:00
bors-servo 3e2d6e14e8 Auto merge of #79 - servo:update-dep, r=emilio
main-crate 0.2.1 requires v0.2.1 of sys-crate.

After https://github.com/servo/core-foundation-rs/pull/77.

<!-- 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/79)
<!-- Reviewable:end -->
2016-04-21 04:04:40 +05:30
Corey Farwell 8319c089df main-crate 0.2.1 requires v0.2.1 of sys-crate.
After https://github.com/servo/core-foundation-rs/pull/77.
2016-04-20 18:16:58 -04:00
bors-servo c3c9978b34 Auto merge of #78 - servo:bump, r=mbrubeck
Bump version: 0.2.0 -> 0.2.1.

https://github.com/servo/core-foundation-rs/pull/77

https://github.com/servo/core-foundation-rs/pull/75

https://github.com/servo/core-foundation-rs/pull/73

https://github.com/servo/core-foundation-rs/pull/74

<!-- 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/78)
<!-- Reviewable:end -->
2016-04-21 03:34:38 +05:30
Corey Farwell 17214c0c16 Bump version: 0.2.0 -> 0.2.1.
https://github.com/servo/core-foundation-rs/pull/77
2016-04-20 17:59:21 -04:00
bors-servo 2e40852005 Auto merge of #77 - sfackler:error, r=pcwalton
Add CFError support

<!-- 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/77)
<!-- Reviewable:end -->
2016-04-21 03:11:09 +05:30
Steven Fackler 74be6d333b Add CFError 2016-04-17 22:39:46 -07: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
bors-servo 27d77e2ae5 Auto merge of #75 - TimNN:warning-cleanup, r=metajack
Silence warning with minor cleanup

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/core-foundation-rs/75)
<!-- Reviewable:end -->
2015-12-18 03:18:34 +05:30
bors-servo edfb681fbc Auto merge of #74 - TimNN:macro-full-path, r=metajack
Use full path to mem::transmute in macro

Also removes now unused `std::mem` uses.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/core-foundation-rs/74)
<!-- Reviewable:end -->
2015-12-18 03:04:13 +05:30
Tim Neumann c58cf56863 Silence warning with minor cleanup 2015-12-17 22:06:18 +01:00
Tim Neumann d2e91953ee Use full path to mem::transmute in macro 2015-12-17 21:57:29 +01:00
bors-servo 94b6ed5e6f Auto merge of #73 - sfackler:master, r=Manishearth
Remove a straggling link attribute

This is handled by Cargo now

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/core-foundation-rs/73)
<!-- Reviewable:end -->
2015-12-15 17:45:42 +05:30
Steven Fackler 77344dbcfc Remove a straggling link attribute
This is handled by Cargo now
2015-12-14 23:54:09 -08:00
bors-servo a4a6388582 Auto merge of #71 - mbrubeck:libc0.2, r=metajack
Upgrade to libc 0.2

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/core-foundation-rs/71)
<!-- Reviewable:end -->
2015-11-05 21:45:26 +05:30
bors-servo 366deeea23 Auto merge of #72 - metajack:homu-travis, r=metajack
Notify homu on travis builds

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/core-foundation-rs/72)
<!-- Reviewable:end -->
2015-11-05 12:49:47 +05:30
Jack Moffitt 6879085e7d Notify homu on travis builds 2015-11-03 18:21:36 -07:00
Matt Brubeck 0be9256d7b Upgrade to libc 0.2 2015-11-03 15:36:07 -08:00
Lars Bergstrom c837f89c60 Merge pull request #70 from larsbergstrom/version_dep
Switch core-foundation-sys over to a Cargo dep version to publish
2015-10-18 11:31:25 -05:00
Lars Bergstrom d04de008ef Switch core-foundation-sys over to a Cargo dep version so that we can publish 2015-10-17 19:03:48 -05:00
Lars Bergstrom 6ee9bed186 Merge pull request #68 from sfackler/master
Split a -sys crate out
2015-10-15 16:20:54 -05:00