datafiles.h 1.61 KB
Newer Older
Elliot Lee's avatar
Elliot Lee committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
/* The GIMP -- an image manipulation program
 * Copyright (C) 1995 Spencer Kimball and Peter Mattis
 *
 * Datafiles module copyight (C) 1996 Federico Mena Quintero
 * federico@nuclecu.unam.mx
 *
 * 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
19
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
Elliot Lee's avatar
Elliot Lee committed
20 21
 */

22 23
#ifndef __DATAFILES_H__
#define __DATAFILES_H__
Elliot Lee's avatar
Elliot Lee committed
24

25
#include <time.h>
26
#include <glib.h>
Elliot Lee's avatar
Elliot Lee committed
27 28 29

/***** Types *****/

30 31 32 33 34 35
typedef enum
{
  INCLUDE_TEMP_DIR = 1 << 0,
  MODE_EXECUTABLE  = 1 << 1
} GimpDataFileFlags;

36
typedef void (* GimpDataFileLoaderFunc) (gchar *filename);
Elliot Lee's avatar
Elliot Lee committed
37 38 39 40


/***** Functions *****/

41 42
void datafiles_read_directories (gchar                  *path_str,
				 GimpDataFileLoaderFunc  loader_func,
43
				 GimpDataFileFlags       flags);
Elliot Lee's avatar
Elliot Lee committed
44 45 46

/* Return the current datafiles access, modification
 *  or change time. The current datafile is the one for
47
 *  which the "DataFileLoaderFunc" function has been called
Elliot Lee's avatar
Elliot Lee committed
48 49 50 51 52 53
 *  on.
 */
time_t datafile_atime (void);
time_t datafile_mtime (void);
time_t datafile_ctime (void);

54
#endif  /*  __DATAFILES_H__ */