2006-12-10 05:33:38 +08:00
|
|
|
/* GIMP - The GNU Image Manipulation Program
|
2001-03-30 21:31:41 +08:00
|
|
|
* Copyright (C) 1995 Spencer Kimball and Peter Mattis
|
|
|
|
*
|
2004-09-22 23:12:24 +08:00
|
|
|
* file-utils.h
|
|
|
|
*
|
2001-03-30 21:31:41 +08:00
|
|
|
* This program is free software; you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
* the Free Software Foundation; either version 2 of the License, or
|
|
|
|
* (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program; if not, write to the Free Software
|
|
|
|
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __FILE_UTILS_H__
|
|
|
|
#define __FILE_UTILS_H__
|
|
|
|
|
|
|
|
|
2006-04-10 20:59:17 +08:00
|
|
|
#include <gdk-pixbuf/gdk-pixbuf.h>
|
|
|
|
|
|
|
|
|
2007-05-14 07:15:34 +08:00
|
|
|
gboolean file_utils_filename_is_uri (const gchar *filename,
|
|
|
|
GError **error);
|
2007-05-12 02:50:35 +08:00
|
|
|
gchar * file_utils_filename_to_uri (Gimp *gimp,
|
|
|
|
const gchar *filename,
|
|
|
|
GError **error);
|
|
|
|
gchar * file_utils_any_to_uri (Gimp *gimp,
|
|
|
|
const gchar *filename_or_uri,
|
|
|
|
GError **error);
|
|
|
|
gchar * file_utils_filename_from_uri (const gchar *uri);
|
|
|
|
|
|
|
|
gchar * file_utils_uri_to_utf8_filename (const gchar *uri);
|
|
|
|
|
|
|
|
gchar * file_utils_uri_display_basename (const gchar *uri);
|
|
|
|
gchar * file_utils_uri_display_name (const gchar *uri);
|
|
|
|
|
|
|
|
GdkPixbuf * file_utils_load_thumbnail (const gchar *filename);
|
|
|
|
gboolean file_utils_save_thumbnail (GimpImage *image,
|
|
|
|
const gchar *filename);
|
2006-04-10 20:59:17 +08:00
|
|
|
|
2001-03-30 21:31:41 +08:00
|
|
|
|
|
|
|
#endif /* __FILE_UTILS_H__ */
|