1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50
|
/*******************************************************************************/
/* */
/* gEDA Suite Project Manager */
/* */
/* Copyright (C) 2002 Piotr Miarecki, sp9rve@eter.ariadna.pl */
/* */
/* 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 version 2. */
/* */
/* 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. */
/* */
/*******************************************************************************/
#ifndef __FILETOOL_H_INCLUDED
#define __FILETOOL_H_INCLUDED
#define FILETOOL_NAMESEP ',' /* separator of the filenames on the list */
#define TEXTLEN 256
#define GM_TMPDIR "tmp"
#define GM_TMPNAME "gmanager"
#define pWindowMain pMainWindow
/* public functions */
int FileIsExisting(const char *szFileName);
int FileCopy(const char *szSource, const char *szDest);
int FileExec(const char *szCommand);
char *FileGetName(const char *szFilename);
char *FileGetExt(const char *szFilename);
char *FileGetDir(const char *szFilename);
char *FileGetRel(const char *szFilename);
char *FileGetPath(const char *szFilename);
/* TODO: void FileGetFull(char *szDir, char *szName, char *szExt, char *szFullName);*/
#endif
|