home *** CD-ROM | disk | FTP | other *** search
/ Chip 2005 February / CMCD0205.ISO / Linux / gimp-2.2.0.tar.gz / gimp-2.2.0.tar / gimp-2.2.0 / libgimpthumb / gimpthumb-utils.h < prev    next >
C/C++ Source or Header  |  2004-10-23  |  3KB  |  68 lines

  1. /* LIBGIMP - The GIMP Library
  2.  * Copyright (C) 1995-1997 Peter Mattis and Spencer Kimball
  3.  *
  4.  * Thumbnail handling according to the Thumbnail Managing Standard.
  5.  * http://triq.net/~pearl/thumbnail-spec/
  6.  *
  7.  * Copyright (C) 2001-2003  Sven Neumann <sven@gimp.org>
  8.  *                          Michael Natterer <mitch@gimp.org>
  9.  *
  10.  * This library is free software; you can redistribute it and/or
  11.  * modify it under the terms of the GNU Lesser General Public
  12.  * License as published by the Free Software Foundation; either
  13.  * version 2 of the License, or (at your option) any later version.
  14.  *
  15.  * This library is distributed in the hope that it will be useful,
  16.  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  17.  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  18.  * Lesser General Public License for more details.
  19.  *
  20.  * You should have received a copy of the GNU Lesser General Public
  21.  * License along with this library; if not, write to the
  22.  * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
  23.  * Boston, MA 02111-1307, USA.
  24.  */
  25.  
  26. #ifndef __GIMP_THUMB_UTILS_H__
  27. #define __GIMP_THUMB_UTILS_H__
  28.  
  29. G_BEGIN_DECLS
  30.  
  31.  
  32. gboolean            gimp_thumb_init                   (const gchar    *creator,
  33.                                                        const gchar    *thumb_basedir);
  34.  
  35. gchar             * gimp_thumb_find_thumb             (const gchar    *uri,
  36.                                                        GimpThumbSize  *size);
  37.  
  38. GimpThumbFileType   gimp_thumb_file_test              (const gchar    *filename,
  39.                                                        gint64         *mtime,
  40.                                                        gint64         *size,
  41.                                                        gint           *err_no);
  42.  
  43. gchar             * gimp_thumb_name_from_uri          (const gchar    *uri,
  44.                                                        GimpThumbSize   size);
  45. const gchar       * gimp_thumb_get_thumb_dir          (GimpThumbSize   size);
  46. gboolean            gimp_thumb_ensure_thumb_dir       (GimpThumbSize   size,
  47.                                                        GError        **error);
  48. void                gimp_thumbs_delete_for_uri        (const gchar    *uri);
  49.  
  50. gchar             * gimp_thumb_name_from_uri_local    (const gchar    *uri,
  51.                                                        GimpThumbSize   size);
  52. gchar             * gimp_thumb_get_thumb_dir_local    (const gchar    *dirname,
  53.                                                        GimpThumbSize   size);
  54. gboolean            gimp_thumb_ensure_thumb_dir_local (const gchar    *dirname,
  55.                                                        GimpThumbSize   size,
  56.                                                        GError        **error);
  57. void                gimp_thumbs_delete_for_uri_local  (const gchar    *uri);
  58.  
  59.  
  60. /*  for internal use only   */
  61. void                _gimp_thumbs_delete_others        (const gchar    *uri,
  62.                                                        GimpThumbSize   size);
  63.  
  64.  
  65. G_END_DECLS
  66.  
  67. #endif /* __GIMP_THUMB_UTILS_H__ */
  68.