[libmediaart/process-file-fixes: 1/3] extract: Be consistent about parameter ordering



commit effbdb8720f8c52fd5b20b720272e3b99e7dbc6a
Author: Sam Thursfield <sam thursfield codethink co uk>
Date:   Wed Oct 16 19:20:18 2013 +0100

    extract: Be consistent about parameter ordering
    
    The media_art_process() and media_art_process_file() functions should
    take arguments in the same order as each other.

 libmediaart/extract.c |    4 ++--
 libmediaart/extract.h |    2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/libmediaart/extract.c b/libmediaart/extract.c
index eb216a0..adf1a99 100644
--- a/libmediaart/extract.c
+++ b/libmediaart/extract.c
@@ -1107,8 +1107,8 @@ get_mtime_by_uri (const gchar *uri)
  * media_art_process_file:
  * @buffer: (array length=len)(allow-none): a buffer containing @file data, or %NULL
  * @len: length of @buffer, or 0
- * @type: The type of media
  * @mime: MIME type of @buffer, or %NULL
+ * @type: The type of media
  * @artist: The media file artist name, or %NULL
  * @title: The media file title, or %NULL
  * @file: File to be processed
@@ -1129,8 +1129,8 @@ get_mtime_by_uri (const gchar *uri)
 gboolean
 media_art_process_file (const guchar *buffer,
                        gsize         len,
-                       MediaArtType  type,
                        const gchar  *mime,
+                       MediaArtType  type,
                        const gchar  *artist,
                        const gchar  *title,
                        GFile        *file)
diff --git a/libmediaart/extract.h b/libmediaart/extract.h
index 8b521cf..3744923 100644
--- a/libmediaart/extract.h
+++ b/libmediaart/extract.h
@@ -59,8 +59,8 @@ gboolean media_art_process  (const unsigned char  *buffer,
 
 gboolean media_art_process_file (const guchar *buffer,
                                 gsize         len,
-                                MediaArtType  type,
                                 const gchar  *mime,
+                                MediaArtType  type,
                                 const gchar  *artist,
                                 const gchar  *title,
                                 GFile        *file);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]