diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2015-01-08 13:19:48 -0500 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2015-01-11 18:48:21 -0500 |
commit | 5c26e392ec135b2d95caf011a3ab45b5d9c97cf1 (patch) | |
tree | dab3642774f26da0a35c08f4ce244337244434d4 /src/libostree/ostree-fetcher.h | |
parent | a9532bc34f31c191d6647e413c2b1d9bab035710 (diff) | |
download | ostree-5c26e392ec135b2d95caf011a3ab45b5d9c97cf1.tar.gz |
fetcher: Add a priority value to async requests
Diffstat (limited to 'src/libostree/ostree-fetcher.h')
-rw-r--r-- | src/libostree/ostree-fetcher.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/libostree/ostree-fetcher.h b/src/libostree/ostree-fetcher.h index 1a6c95b7..c81e51aa 100644 --- a/src/libostree/ostree-fetcher.h +++ b/src/libostree/ostree-fetcher.h @@ -36,6 +36,9 @@ G_BEGIN_DECLS #define OSTREE_IS_FETCHER_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), OSTREE_TYPE_FETCHER)) #define OSTREE_FETCHER_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), OSTREE_TYPE_FETCHER, OstreeFetcherClass)) +/* Lower values have higher priority */ +#define OSTREE_FETCHER_DEFAULT_PRIORITY 0 + typedef struct OstreeFetcherClass OstreeFetcherClass; typedef struct OstreeFetcher OstreeFetcher; @@ -68,6 +71,7 @@ guint64 _ostree_fetcher_bytes_transferred (OstreeFetcher *self); void _ostree_fetcher_request_uri_with_partial_async (OstreeFetcher *self, SoupURI *uri, guint64 max_size, + int priority, GCancellable *cancellable, GAsyncReadyCallback callback, gpointer user_data); |