main: Move GCancellable to toplevel

This is just cleaner, and makes the builtins slightly more of a
library, which in turn makes it easier to turn them into real API.
This commit is contained in:
Colin Walters committed 2013-07-16 18:13:39 -04:00
1 parent 272274f0af
commit aac52cb9f7
23 files changed
+47 -59

No files matched your search

+1 -2
View File
@@ -53,12 +53,11 @@ cat_one_file (GFile *f,
}
gboolean
ostree_builtin_cat (int argc, char **argv, GFile *repo_path, GError **error)
ostree_builtin_cat (int argc, char **argv, GFile *repo_path, GCancellable *cancellable, GError **error)
{
GOptionContext *context;
gboolean ret = FALSE;
int i;
GCancellable *cancellable = NULL;
const char *rev;
gs_unref_object OstreeRepo *repo = NULL;
gs_unref_object GOutputStream *stdout_stream = NULL;