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
|
|
|
|
*
|
2009-01-18 06:28:01 +08:00
|
|
|
* This library is free software: you can redistribute it and/or
|
2003-11-23 23:35:27 +08:00
|
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
|
|
* License as published by the Free Software Foundation; either
|
2009-01-18 06:28:01 +08:00
|
|
|
* version 3 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
|
2009-01-18 06:28:01 +08:00
|
|
|
* License along with this library. If not, see
|
|
|
|
* <http://www.gnu.org/licenses/>.
|
1997-11-25 06:05:25 +08:00
|
|
|
*/
|
|
|
|
|
2011-04-28 20:30:41 +08:00
|
|
|
#if !defined (__GIMP_BASE_H_INSIDE__) && !defined (GIMP_BASE_COMPILATION)
|
|
|
|
#error "Only <libgimpbase/gimpbase.h> can be included directly."
|
|
|
|
#endif
|
|
|
|
|
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
|
|
|
|
2010-06-30 01:13:40 +08:00
|
|
|
/**
|
|
|
|
* GimpDatafileData:
|
|
|
|
* @filename: the data file's full path.
|
2018-04-19 02:57:03 +08:00
|
|
|
* @dirname: the folder the data file is in.
|
2010-06-30 01:13:40 +08:00
|
|
|
* @basename: the data file's basename.
|
|
|
|
* @atime: the last time the file was accessed for reading.
|
|
|
|
* @mtime: the last time the file was modified.
|
|
|
|
* @ctime: the time the file was created.
|
|
|
|
*
|
|
|
|
* This structure is passed to the #GimpDatafileLoaderFunc given to
|
|
|
|
* gimp_datafiles_read_directories() for each file encountered in the
|
|
|
|
* data path.
|
|
|
|
**/
|
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
|
|
|
|
2014-08-04 09:41:45 +08:00
|
|
|
GIMP_DEPRECATED
|
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
|
|
|
|
2014-08-04 09:41:45 +08:00
|
|
|
GIMP_DEPRECATED_FOR(GFileEnumerator)
|
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__ */
|