Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rewrite all the bindings in a better way #85

Closed
wants to merge 2 commits into from

Commits on Sep 30, 2016

  1. Rewrite all the bindings in a better way

    All the FFI functions have fancy types now and use references instead
    of raw pointers for arguments.
    
    Now, a CFRef<T> value represents a refcounted value to be released on Drop,
    CFShared<T> represents a shared value that can be retained to produce a new
    CFRef<T> (this will be a useful distinction for mutable types, where a
    bare T shouldn't be retainable to keep unique ownership).
    
    To simplify things and avoid either having wrappers of wrappers of all
    methods behind traits, I put the safe and thin methods directly on the
    opaque FFI types.
    
    Let's begin the infinite bikeshedding!
    nox committed Sep 30, 2016

Commits on Oct 12, 2016

  1. Add CFMut<T>

    This type provides DerefMut access to the underlying Core Foundation type.
    Will be used for CFMutableString and friends.
    nox committed Oct 12, 2016
You can’t perform that action at this time.