2003-11-23 23:35:27 +08:00
|
|
|
/* LIBGIMP - The GIMP Library
|
|
|
|
* Copyright (C) 1995-1997 Peter Mattis and Spencer Kimball
|
1997-11-25 06:05:25 +08:00
|
|
|
*
|
|
|
|
* Datafiles module copyight (C) 1996 Federico Mena Quintero
|
|
|
|
* federico@nuclecu.unam.mx
|
|
|
|
*
|
2003-11-23 23:35:27 +08:00
|
|
|
* This library is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
|
|
* License as published by the Free Software Foundation; either
|
|
|
|
* version 2 of the License, or (at your option) any later version.
|
1997-11-25 06:05:25 +08:00
|
|
|
*
|
2003-11-23 23:35:27 +08:00
|
|
|
* This library is distributed in the hope that it will be useful,
|
1997-11-25 06:05:25 +08:00
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
2003-11-23 23:35:27 +08:00
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
* Lesser General Public License for more details.
|
1997-11-25 06:05:25 +08:00
|
|
|
*
|
2003-11-23 23:35:27 +08:00
|
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
|
|
* License along with this library; if not, write to the
|
|
|
|
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
|
|
|
* Boston, MA 02111-1307, USA.
|
1997-11-25 06:05:25 +08:00
|
|
|
*/
|
|
|
|
|
2001-05-10 06:34:59 +08:00
|
|
|
#ifndef __GIMP_DATAFILES_H__
|
|
|
|
#define __GIMP_DATAFILES_H__
|
1997-11-25 06:05:25 +08:00
|
|
|
|
2001-02-07 09:16:18 +08:00
|
|
|
#include <time.h>
|
2000-12-17 05:37:03 +08:00
|
|
|
|
2004-11-04 18:51:55 +08:00
|
|
|
G_BEGIN_DECLS
|
|
|
|
|
2001-02-12 05:08:04 +08:00
|
|
|
|
2002-10-23 22:55:07 +08:00
|
|
|
struct _GimpDatafileData
|
2000-02-22 23:14:54 +08:00
|
|
|
{
|
2002-10-23 22:55:07 +08:00
|
|
|
const gchar *filename;
|
2004-01-29 05:53:50 +08:00
|
|
|
const gchar *dirname;
|
2003-07-03 01:11:00 +08:00
|
|
|
const gchar *basename;
|
2002-10-23 22:55:07 +08:00
|
|
|
|
|
|
|
time_t atime;
|
|
|
|
time_t mtime;
|
|
|
|
time_t ctime;
|
|
|
|
};
|
2000-02-22 23:14:54 +08:00
|
|
|
|
1997-11-25 06:05:25 +08:00
|
|
|
|
2001-05-10 06:34:59 +08:00
|
|
|
gboolean gimp_datafiles_check_extension (const gchar *filename,
|
2006-04-12 18:53:28 +08:00
|
|
|
const gchar *extension);
|
2001-02-12 00:14:25 +08:00
|
|
|
|
2001-05-10 06:34:59 +08:00
|
|
|
void gimp_datafiles_read_directories (const gchar *path_str,
|
2006-04-12 18:53:28 +08:00
|
|
|
GFileTest flags,
|
|
|
|
GimpDatafileLoaderFunc loader_func,
|
|
|
|
gpointer user_data);
|
1997-11-25 06:05:25 +08:00
|
|
|
|
2000-12-17 05:37:03 +08:00
|
|
|
|
2004-11-04 18:51:55 +08:00
|
|
|
G_END_DECLS
|
|
|
|
|
2001-05-10 06:34:59 +08:00
|
|
|
#endif /* __GIMP_DATAFILES_H__ */
|