home *** CD-ROM | disk | FTP | other *** search
/ PC Pro 2002 April / pcpro0402.iso / essentials / graphics / Gimp / gimp-src-20001226.exe / src / gimp / app / datafiles.h < prev    next >
Encoding:
C/C++ Source or Header  |  2000-12-17  |  1.7 KB  |  57 lines

  1. /* The GIMP -- an image manipulation program
  2.  * Copyright (C) 1995 Spencer Kimball and Peter Mattis
  3.  *
  4.  * Datafiles module copyight (C) 1996 Federico Mena Quintero
  5.  * federico@nuclecu.unam.mx
  6.  *
  7.  * This program is free software; you can redistribute it and/or modify
  8.  * it under the terms of the GNU General Public License as published by
  9.  * the Free Software Foundation; either version 2 of the License, or
  10.  * (at your option) any later version.
  11.  *
  12.  * This program is distributed in the hope that it will be useful,
  13.  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  14.  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  15.  * GNU General Public License for more details.
  16.  *
  17.  * You should have received a copy of the GNU General Public License
  18.  * along with this program; if not, write to the Free Software
  19.  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  20.  */
  21.  
  22. #ifndef __DATAFILES_H__
  23. #define __DATAFILES_H__
  24.  
  25.  
  26. #include <time.h>
  27.  
  28.  
  29. /***** Types *****/
  30.  
  31. typedef enum
  32. {
  33.   INCLUDE_TEMP_DIR = 1 << 0,
  34.   MODE_EXECUTABLE  = 1 << 1
  35. } GimpDataFileFlags;
  36.  
  37. typedef void (* GimpDataFileLoaderFunc) (gchar *filename);
  38.  
  39.  
  40. /***** Functions *****/
  41.  
  42. void datafiles_read_directories (gchar                  *path_str,
  43.                  GimpDataFileLoaderFunc  loader_func,
  44.                  GimpDataFileFlags       flags);
  45.  
  46. /* Return the current datafiles access, modification
  47.  *  or change time. The current datafile is the one for
  48.  *  which the "DataFileLoaderFunc" function has been called
  49.  *  on.
  50.  */
  51. time_t datafile_atime (void);
  52. time_t datafile_mtime (void);
  53. time_t datafile_ctime (void);
  54.  
  55.  
  56. #endif  /*  __DATAFILES_H__ */
  57.