1. 12 Apr, 2019 1 commit
  2. 09 Apr, 2019 3 commits
    • Jordan Petridis's avatar
      (446): Accept IsA<InputStream> instead of plain InputStream wherever possible · f365340e
      Jordan Petridis authored
      This should allow for a more flexible api and avoid the need of
      casting before using it.
      
      Close #446
      f365340e
    • Paolo Borelli's avatar
      Handle: move LoadFlags to c_api · 127de3eb
      Paolo Borelli authored
      The extra struct is needed only in c_api where we need to convert
      to/from C flags.
      127de3eb
    • Federico Mena Quintero's avatar
      Move the mutable LoadState into CHandle · 90f5d062
      Federico Mena Quintero authored
      This looks like a lot of churn, but here's basically what happened:
      
      We used to have
      
        struct Handle {
            ... fields with interior mutability ...
            load_state: Cell<LoadState> // a simple enum
        }
      
      Now we have this:
      
        struct CHandle {
            ... fields with interior mutability ...
            load_state: RefCell<LoadState> // a complex enum
        }
      
        enum LoadState {
            Start,
            Loading { buffer: Vec<u8> },
            ClosedOk { handle: Handle },
            ClosedError,
        }
      
        struct Handle {
          ... only immutable fields ...
        }
      
      Here, CHandle now encapsulates all the interior mutability for the
      purposes of the C API, and Handle is created immutable.
      
      CHandle does all the checking of load_state to ensure the C API is
      called in the correct sequence, and so that (e.g.) a handle is not
      queried for dimensions until it is loaded.
      
      In theory we could now have an rsvg_internals crate with a "clean"
      immutable API, and a small helper crate just for the purposes of the C
      API.
      90f5d062
  3. 06 Apr, 2019 2 commits
  4. 05 Apr, 2019 10 commits
  5. 28 Mar, 2019 1 commit
  6. 27 Mar, 2019 2 commits
  7. 14 Mar, 2019 1 commit
  8. 08 Mar, 2019 1 commit
  9. 03 Mar, 2019 2 commits
  10. 22 Feb, 2019 1 commit
  11. 15 Feb, 2019 1 commit
  12. 26 Jan, 2019 1 commit
    • Federico Mena Quintero's avatar
      Revert the subclass branch temporarily · 21efded1
      Federico Mena Quintero authored
      BuildStream's vendoring doesn't deal with arbitrarily referenced
      repositories; because of "cargo vendor" it depends on crates that come
      from crates.io.  Since the subclass branch depends on glib-rs master,
      we'll revert this whole branch temporarily until glib-rs makes a
      release.
      
      (I can't force-push to master a clean revert, hence this revert-changes commit)
      
      Reverts merge a8f9996e
      21efded1
  13. 23 Jan, 2019 5 commits
  14. 22 Jan, 2019 3 commits