Partically revert the last commit after realizing that
authorMatthias Clasen <mclasen@redhat.com>
Wed, 16 Apr 2008 17:13:19 +0000 (17:13 +0000)
committerMatthias Clasen <matthiasc@src.gnome.org>
Wed, 16 Apr 2008 17:13:19 +0000 (17:13 +0000)
2008-04-16  Matthias Clasen  <mclasen@redhat.com>

        Partically revert the last commit after realizing that
        xdg_mime_media_type_equal doesn't have to init at all.

        * xdgmime/xdgmime.h:
        * xdgmime/xdgmime.c: Get rid of _xdg_mime_media_type_equal

        * xdgmime/xdgmimecache.c: Use xdg_mime_media_type_equal

svn path=/trunk/; revision=6857

gio/ChangeLog
gio/xdgmime/xdgmime.c
gio/xdgmime/xdgmime.h
gio/xdgmime/xdgmimecache.c

index 6833086e3e97bf07fc490fc054f862ee2b8227fa..b87b42c1a73b2a0ae6922346732f7ce838626b9a 100644 (file)
@@ -1,3 +1,13 @@
+2008-04-16  Matthias Clasen  <mclasen@redhat.com>
+
+       Partically revert the last commit after realizing that
+       xdg_mime_media_type_equal doesn't have to init at all.
+
+       * xdgmime/xdgmime.h:
+       * xdgmime/xdgmime.c: Get rid of _xdg_mime_media_type_equal
+
+       * xdgmime/xdgmimecache.c: Use xdg_mime_media_type_equal
+
 2008-04-16  Matthias Clasen  <mclasen@redhat.com>
 
        Avoid possible memory corruption in xdgmime, fd.o bug 12512,
index 53e11945e6299b9f9433fe55a2226eb47e6c9897..4552fd735fe0d70f98a81ff72f9dc8ea83761f53 100644 (file)
@@ -684,8 +684,8 @@ xdg_mime_mime_type_equal (const char *mime_a,
 }
 
 int
-_xdg_mime_media_type_equal (const char *mime_a,
-                           const char *mime_b)
+xdg_mime_media_type_equal (const char *mime_a,
+                          const char *mime_b)
 {
   char *sep;
 
@@ -697,15 +697,6 @@ _xdg_mime_media_type_equal (const char *mime_a,
   return 0;
 }
 
-int
-xdg_mime_media_type_equal (const char *mime_a,
-                          const char *mime_b)
-{
-  xdg_mime_init ();
-
-  return _xdg_mime_media_type_equal (mime_a, mime_b);
-}
-
 #if 1
 static int
 xdg_mime_is_super_type (const char *mime)
index b8fd2d50f3dcfc847d1eda3362f69703972332a5..fde7cfe1638f1b768291ec443f334449bf29a722 100644 (file)
@@ -107,8 +107,6 @@ void         xdg_mime_remove_callback              (int              callback_id
    /* Private versions of functions that don't call xdg_mime_init () */
 int          _xdg_mime_mime_type_equal             (const char *mime_a,
                                                    const char *mime_b);
-int          _xdg_mime_media_type_equal            (const char *mime_a,
-                                                   const char *mime_b);
 int          _xdg_mime_mime_type_subclass          (const char *mime,
                                                    const char *base);
 const char  *_xdg_mime_unalias_mime_type           (const char *mime);
index 48dd578f25c5591b044c249068a9ae9ed7fb9e81..8e762a175afb7a835503006ca19b1b6e4f4ec13f 100644 (file)
@@ -797,7 +797,7 @@ _xdg_mime_cache_mime_type_subclass (const char *mime,
 #if 1
   /* Handle supertypes */
   if (is_super_type (ubase) &&
-      _xdg_mime_media_type_equal (umime, ubase))
+      xdg_mime_media_type_equal (umime, ubase))
     return 1;
 #endif