libglnx porting: Migrate from GSConsole

To GLnxConsoleRef.  There were some subtleties here, for example we
used to reference `GSConsole` inside the progress changed function,
which at first seems like an ABI hazard, because e.g. rpm-ostree or
xdg-app could still be passing a `GSConsole` instance there.  Luckily,
it turns out to be compatible to just start calling libglnx here.

Another issue was that due to libglnx's use of the cleanup function,
we needed to ensure we always called `ostree_async_progress_finish()`
*before* the cleanup function was invoked.

Closes: #280
Approved by: giuseppe
This commit is contained in:
Colin Walters authored and Colin Walters (automation) committed 2016-05-02 11:41:00 +00:00
1 parent 831e9dcdea
commit a6c731f6e7
6 files changed
+81 -96

No files matched your search

+1 -1
Submodule libglnx updated: 769522753c...47ddbfa563.