2007-11-16 18:25:45 +00:00
|
|
|
/* ASE - Allegro Sprite Editor
|
2010-02-01 21:25:40 +00:00
|
|
|
* Copyright (C) 2001-2010 David Capello
|
2007-09-18 23:57:02 +00: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
|
|
|
|
*/
|
|
|
|
|
2009-08-17 21:38:00 +00:00
|
|
|
#ifndef CORE_DIRS_H_INCLUDED
|
|
|
|
#define CORE_DIRS_H_INCLUDED
|
2007-09-23 20:13:58 +00:00
|
|
|
|
|
|
|
typedef struct DIRS DIRS;
|
2007-09-18 23:57:02 +00:00
|
|
|
|
|
|
|
struct DIRS
|
|
|
|
{
|
|
|
|
char *path;
|
|
|
|
struct DIRS *next;
|
|
|
|
};
|
|
|
|
|
2008-10-01 01:27:51 +00:00
|
|
|
DIRS *dirs_new();
|
2007-09-18 23:57:02 +00:00
|
|
|
void dirs_free(DIRS *dirs);
|
|
|
|
void dirs_add_path(DIRS *dirs, const char *path);
|
|
|
|
void dirs_cat_dirs(DIRS *dirs, DIRS *more);
|
|
|
|
|
|
|
|
DIRS *filename_in_bindir(const char *filename);
|
|
|
|
DIRS *filename_in_datadir(const char *filename);
|
2010-07-07 02:31:31 +00:00
|
|
|
DIRS *filename_in_docsdir(const char *filename);
|
2007-09-18 23:57:02 +00:00
|
|
|
DIRS *filename_in_homedir(const char *filename);
|
|
|
|
DIRS *filename_in_homedir(const char *filename);
|
2008-10-01 01:27:51 +00:00
|
|
|
DIRS *cfg_filename_dirs();
|
2007-09-18 23:57:02 +00:00
|
|
|
|
2009-08-17 21:38:00 +00:00
|
|
|
#endif
|
2007-09-18 23:57:02 +00:00
|
|
|
|