summaryrefslogtreecommitdiff
path: root/tumbler/tumbler-provider-plugin.c
Commit message (Collapse)AuthorAgeFilesLines
* Do not translate warning messagesGaƫl Bonithon2021-12-181-3/+3
| | | | Completes d6aeb7d65acf6e41738c78b9d137fab3502d1c58.
* Use LGPL instead of GPL license headers in the library (bug #6781).Jannis Pohlmann2010-11-061-9/+9
|
* Switch to a plugin API that only allows one cache backend at a time.Jannis Pohlmann2009-10-261-2/+2
| | | | | | | | | | | | | Tumbler will now only check for the file $(libdir)/tumbler-1/plugins/cache/tumbler-cache-plugin.so which is supposed to link to the cache backend that is being used. If the XDG cache is built, tumbler-cache-plugin.so is set up to link to this plugin. The fact that we only have a singleton cache makes things much less ambiguous.
* Fix several mistakes and typos, and therewith make distcheck.Jannis Pohlmann2009-09-301-1/+1
|
* Cleanup, remove private structs and use G_DEFINE_TYPE where possible.Jannis Pohlmann2009-06-171-60/+22
| | | | This commit also contains a few fixes though.
* No thumbnails for thumbnails. Allow Unqueue in the middle of requests.Jannis Pohlmann2009-06-121-1/+1
| | | | | | | | | | | There's a new method tumbler_cache_is_thumbnail() now which has to be implemented by plugins. It is used by TumblerFileInfo in tumbler_file_info_load() to check whether the file is a thumbnail itself. In that case, tumbler_file_info_load() will fail with a TUMBLER_ERROR_IS_THUMBNAIL error. Add another check in TumblerThresholdScheduler to make unqueuing requests in the middle of the process work.
* Add plugin interface for cache and thumbnailer implementations.Jannis Pohlmann2009-06-081-0/+235
This is a major refactoring of the source code. Amongst others, the classes TumblerProviderFactory, TumblerThumbnailer, TumblerAbstractThumbnailer, TumblerThumbnailerProvider, TumblerCache, TumblerCacheProvider and TumblerFileInfo have been added. From now on tumbler supports different storage backends and thumbnailers as plugins. Storage backends have to implement TumblerCache, thumbnailers have to implement TumblerThumbnailer. Plugins have to implement three methods: tumbler_plugin_initialize(), tumbler_plugin_shutdown() and tumbler_plugin_get_types(). The latter is expected to return a list of provider types for cache or thumbnailer implementations. Two example plugins have been added, one for the XDG thumbnail cache and one for a GdkPixbuf based thumbnailer. The code of tumblerd was updated to reflect these changes in libtumbler.