[maemo-commits] [maemo-commits] r16064 - projects/haf/branches/hildon-thumbnail/daemonize/thumbs
From: subversion at stage.maemo.org subversion at stage.maemo.orgDate: Mon Sep 8 20:31:22 EEST 2008
- Previous message: [maemo-commits] r16063 - projects/haf/branches/hildon-thumbnail/daemonize/doc
- Next message: [maemo-commits] r16065 - projects/haf/branches/hildon-thumbnail/daemonize
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Author: pvanhoof
Date: 2008-09-08 20:31:19 +0300 (Mon, 08 Sep 2008)
New Revision: 16064
Modified:
projects/haf/branches/hildon-thumbnail/daemonize/thumbs/hildon-thumber-common.h
projects/haf/branches/hildon-thumbnail/daemonize/thumbs/hildon-thumbnail-factory.c
projects/haf/branches/hildon-thumbnail/daemonize/thumbs/hildon-thumbnail-factory.h
Log:
API cleaning
Modified: projects/haf/branches/hildon-thumbnail/daemonize/thumbs/hildon-thumber-common.h
===================================================================
--- projects/haf/branches/hildon-thumbnail/daemonize/thumbs/hildon-thumber-common.h 2008-09-08 17:25:49 UTC (rev 16063)
+++ projects/haf/branches/hildon-thumbnail/daemonize/thumbs/hildon-thumber-common.h 2008-09-08 17:31:19 UTC (rev 16064)
@@ -42,6 +42,8 @@
*
* Function called by the main function to create a thumbnail for the given file.
* Returns: %NULL if thumbnail can't be created, pixbuf with thumbnail otherwise.
+ *
+ * Deprecated
*/
typedef GdkPixbuf * (*HildonThumberCreateThumb)(const gchar *local_file,
const gchar *mime_type,
@@ -58,6 +60,8 @@
* Utility function used in thumbnailers. Usually called from thumbnailer main.
* Passed a function that does the thumbnailing work. Error handling etc. is provided
* automatically by this function
+ *
+ * Deprecated
*/
int hildon_thumber_main(
int *argc_p, char ***argv_p, HildonThumberCreateThumb create_thumb
@@ -68,6 +72,6 @@
*
* Returns: An empty pixbuf for saving metadata only, eg. for MP3 files
*/
-GdkPixbuf* hildon_thumber_create_empty_pixbuf();
+GdkPixbuf* hildon_thumber_create_empty_pixbuf (void);
#endif
Modified: projects/haf/branches/hildon-thumbnail/daemonize/thumbs/hildon-thumbnail-factory.c
===================================================================
--- projects/haf/branches/hildon-thumbnail/daemonize/thumbs/hildon-thumbnail-factory.c 2008-09-08 17:25:49 UTC (rev 16063)
+++ projects/haf/branches/hildon-thumbnail/daemonize/thumbs/hildon-thumbnail-factory.c 2008-09-08 17:31:19 UTC (rev 16064)
@@ -514,10 +514,21 @@
had_init = TRUE;
}
-int hildon_thumber_main (int *argc_p, char ***argv_p, HildonThumberCreateThumb create_thumb)
+int
+hildon_thumber_main (int *argc_p, char ***argv_p, HildonThumberCreateThumb create_thumb)
{
g_warning ("hildon_thumber_main is deprecated\n");
return -1;
}
+GdkPixbuf*
+hildon_thumber_create_empty_pixbuf (void)
+{
+ gdk_pixbuf_new(GDK_COLORSPACE_RGB, FALSE, 8, 1, 1);
+}
+GQuark
+hildon_thumbnail_error_quark (void)
+{
+ return FACTORY_ERROR;
+}
Modified: projects/haf/branches/hildon-thumbnail/daemonize/thumbs/hildon-thumbnail-factory.h
===================================================================
--- projects/haf/branches/hildon-thumbnail/daemonize/thumbs/hildon-thumbnail-factory.h 2008-09-08 17:25:49 UTC (rev 16063)
+++ projects/haf/branches/hildon-thumbnail/daemonize/thumbs/hildon-thumbnail-factory.h 2008-09-08 17:31:19 UTC (rev 16064)
@@ -141,6 +141,8 @@
*
* Move the thumbnail for @handle to the front of the queue, so it will
* be processed next
+ *
+ * Deprecated
*/
void hildon_thumbnail_factory_move_front(HildonThumbnailFactoryHandle handle);
@@ -151,6 +153,8 @@
* Move all thumbnails starting from and including @handle to
* the front of the queue
* Thumbnail order is the sequence in which they were added
+ *
+ * Deprecated
*/
void hildon_thumbnail_factory_move_front_all_from(HildonThumbnailFactoryHandle handle);
@@ -190,7 +194,7 @@
#define HILDON_THUMBNAIL_APPLICATION "hildon-thumbnail"
-GQuark hildon_thumbnail_error_quark();
+GQuark hildon_thumbnail_error_quark(void);
/**
* HILDON_THUMBNAIL_ERROR_DOMAIN:
@@ -205,15 +209,25 @@
* GError codes returned by library
*/
typedef enum {
+ /* Deprecated */
HILDON_THUMBNAIL_ERROR_ILLEGAL_SIZE = 1,
+ /* Deprecated */
HILDON_THUMBNAIL_ERROR_NO_MIME_HANDLER,
+ /* Deprecated */
HILDON_THUMBNAIL_ERROR_NO_THUMB_DIR,
+ /* Deprecated */
HILDON_THUMBNAIL_ERROR_TEMP_FILE_FAILED,
+ /* Deprecated */
HILDON_THUMBNAIL_ERROR_SPAWN_FAILED,
+ /* Deprecated */
HILDON_THUMBNAIL_ERROR_CHILD_WATCH_FAILED,
+ /* Deprecated */
HILDON_THUMBNAIL_ERROR_PIXBUF_LOAD_FAILED,
+ /* Deprecated */
HILDON_THUMBNAIL_ERROR_NO_PIXBUF_OPTIONS,
+ /* Deprecated */
HILDON_THUMBNAIL_ERROR_THUMB_EXPIRED,
+ /* Deprecated */
HILDON_THUMBNAIL_ERROR_FAILURE_CACHED
} HildonThumbnailError;
- Previous message: [maemo-commits] r16063 - projects/haf/branches/hildon-thumbnail/daemonize/doc
- Next message: [maemo-commits] r16065 - projects/haf/branches/hildon-thumbnail/daemonize
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
