diff options
author | Jannis Pohlmann <jannis@xfce.org> | 2009-05-20 14:33:46 +0200 |
---|---|---|
committer | Jannis Pohlmann <jannis@xfce.org> | 2009-05-20 14:33:46 +0200 |
commit | 872604a7f03e626883915bda32c4d879a5753e98 (patch) | |
tree | 5ad8789896032923483a26284da9e000c06b8985 /tumbler/tumbler-thumbnailer.h | |
parent | 56a8413db94ca274405750d60e1076d4cc27ccce (diff) | |
download | tumbler-872604a7f03e626883915bda32c4d879a5753e98.tar.gz |
Implement tumbler_service_queue() based on TumblerSchedulerRequest.
When an org.freedesktop.thumbnailer.Generic.Queue request is sent to
TumblerService, it does three things:
1. It requests a TumblerThumbnailer array from its TumblerRegistry.
This array has the same length as the URIs and mime hints arrays
passed to org.freedesktop.thumbnailer.Generic.Queue. The Nth
thumbnailer in the array is responsible for generating the
thumbnailer for the Nth URI.
2. It allocates a TumblerSchedulerRequest.
3. It asks the TumblerScheduler to push the request.
Amongst others, the following functions were added in this commit:
- tumbler_registry_get_thumbnailer_array()
- tumbler_registry_lookup() (private function)
- tumbler_scheduler_request_new()
- tumbler_schedulre_request_free()
- tumbler_thumbnailer_array_copy()
- tumbler_thumbnailer_array_free()
Diffstat (limited to 'tumbler/tumbler-thumbnailer.h')
-rw-r--r-- | tumbler/tumbler-thumbnailer.h | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/tumbler/tumbler-thumbnailer.h b/tumbler/tumbler-thumbnailer.h index 1033391..76158fa 100644 --- a/tumbler/tumbler-thumbnailer.h +++ b/tumbler/tumbler-thumbnailer.h @@ -52,15 +52,18 @@ struct _TumblerThumbnailerIface const gchar *mime_hint); }; -GType tumbler_thumbnailer_get_type (void) G_GNUC_CONST; +GType tumbler_thumbnailer_get_type (void) G_GNUC_CONST; -void tumbler_thumbnailer_create (TumblerThumbnailer *thumbnailer, - const gchar *uri, - const gchar *mime_hint); +void tumbler_thumbnailer_create (TumblerThumbnailer *thumbnailer, + const gchar *uri, + const gchar *mime_hint); -GStrv tumbler_thumbnailer_get_hash_keys (TumblerThumbnailer *thumbnailer); -GStrv tumbler_thumbnailer_get_mime_types (TumblerThumbnailer *thumbnailer); -GStrv tumbler_thumbnailer_get_uri_schemes (TumblerThumbnailer *thumbnailer); +GStrv tumbler_thumbnailer_get_hash_keys (TumblerThumbnailer *thumbnailer); +GStrv tumbler_thumbnailer_get_mime_types (TumblerThumbnailer *thumbnailer); +GStrv tumbler_thumbnailer_get_uri_schemes (TumblerThumbnailer *thumbnailer); + +TumblerThumbnailer **tumbler_thumbnailer_array_copy (TumblerThumbnailer **thumbnailers); +void tumbler_thumbnailer_array_free (TumblerThumbnailer **thumbnailers); G_END_DECLS |