diff options
author | Colin Walters <walters@verbum.org> | 2013-07-16 18:13:39 -0400 |
---|---|---|
committer | Colin Walters <walters@verbum.org> | 2013-07-16 18:13:39 -0400 |
commit | aac52cb9f767d58fd04f9198971eb1f2b8e81bbc (patch) | |
tree | f7c624dc6195e26c35ce22a025927489306b6c6f /src/ostree/ot-builtin-checksum.c | |
parent | 272274f0afdd7c470956a09565918efb6af13bce (diff) | |
download | ostree-aac52cb9f767d58fd04f9198971eb1f2b8e81bbc.tar.gz |
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.
Diffstat (limited to 'src/ostree/ot-builtin-checksum.c')
-rw-r--r-- | src/ostree/ot-builtin-checksum.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ostree/ot-builtin-checksum.c b/src/ostree/ot-builtin-checksum.c index 89dc4abe..d18121b1 100644 --- a/src/ostree/ot-builtin-checksum.c +++ b/src/ostree/ot-builtin-checksum.c @@ -53,7 +53,7 @@ on_checksum_received (GObject *obj, } gboolean -ostree_builtin_checksum (int argc, char **argv, GFile *repo_path_path, GError **error) +ostree_builtin_checksum (int argc, char **argv, GFile *repo_path_path, GCancellable *cancellable, GError **error) { GOptionContext *context; gboolean ret = FALSE; @@ -77,7 +77,7 @@ ostree_builtin_checksum (int argc, char **argv, GFile *repo_path_path, GError ** data.loop = g_main_loop_new (NULL, FALSE); data.error = error; - ostree_checksum_file_async (f, OSTREE_OBJECT_TYPE_FILE, G_PRIORITY_DEFAULT, NULL, on_checksum_received, &data); + ostree_checksum_file_async (f, OSTREE_OBJECT_TYPE_FILE, G_PRIORITY_DEFAULT, cancellable, on_checksum_received, &data); g_main_loop_run (data.loop); |