pathmanager.h
Go to the documentation of this file.
/***************************************************************************
$RCSfile$
-------------------
cvs : $Id$
begin : Mon Mar 01 2004
copyright : (C) 2004 by Martin Preuss
email : martin@libchipcard.de
***************************************************************************
* *
* This library is free software; you can redistribute it and/or *
* modify it under the terms of the GNU Lesser General Public *
* License as published by the Free Software Foundation; either *
* version 2.1 of the License, or (at your option) any later version. *
* *
* This library 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 *
* Lesser General Public License for more details. *
* *
* You should have received a copy of the GNU Lesser General Public *
* License along with this library; if not, write to the Free Software *
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, *
* MA 02111-1307 USA *
* *
***************************************************************************/
#ifndef GWENHYWFAR_PATHMANAGER_H
#define GWENHYWFAR_PATHMANAGER_H
#include <gwenhywfar/error.h>
#include <gwenhywfar/stringlist.h>
#include <gwenhywfar/buffer.h>
typedef enum {
GWEN_PathManager_RelModeCwd=0,
GWEN_PathManager_RelModeExe,
GWEN_PathManager_RelModeHome
} GWEN_PATHMANAGER_RELMODE;
#ifdef __cplusplus
extern "C" {
#endif
GWENHYWFAR_API
int GWEN_PathManager_DefinePath(const char *destLib,
const char *pathName);
GWENHYWFAR_API
int GWEN_PathManager_UndefinePath(const char *destLib,
const char *pathName);
GWENHYWFAR_API
int GWEN_PathManager_AddPath(const char *callingLib,
const char *destLib,
const char *pathName,
const char *pathValue);
GWENHYWFAR_API
int GWEN_PathManager_AddRelPath(const char *callingLib,
const char *destLib,
const char *pathName,
const char *pathValue,
GWEN_PATHMANAGER_RELMODE rm);
GWENHYWFAR_API
int GWEN_PathManager_AddPathFromWinReg(const char *callingLib,
const char *destLib,
const char *pathName,
const char *keypath,
const char *varname);
GWENHYWFAR_API
int GWEN_PathManager_InsertPath(const char *callingLib,
const char *destLib,
const char *pathName,
const char *pathValue);
GWENHYWFAR_API
int GWEN_PathManager_InsertRelPath(const char *callingLib,
const char *destLib,
const char *pathName,
const char *pathValue,
GWEN_PATHMANAGER_RELMODE rm);
GWENHYWFAR_API
int GWEN_PathManager_RemovePath(const char *callingLib,
const char *destLib,
const char *pathName,
const char *pathValue);
GWENHYWFAR_API
int GWEN_PathManager_RemovePaths(const char *callingLib);
GWENHYWFAR_API
int GWEN_PathManager_PathChanged(const char *destLib,
const char *pathName);
GWENHYWFAR_API
GWEN_STRINGLIST *GWEN_PathManager_GetPaths(const char *destLib,
const char *pathName);
GWENHYWFAR_API
int GWEN_PathManager_FindFile(const char *destLib,
const char *pathName,
const char *fileName,
GWEN_BUFFER *fbuf);
GWENHYWFAR_API
int GWEN_PathManager_GetMatchingFilesRecursively(const char *destLib,
const char *pathName,
const char *subFolderName,
GWEN_STRINGLIST *sl,
const char *mask);
#ifdef __cplusplus
}
#endif
#endif /* GWENHYWFAR_PATHMANAGER_H */
buffer.h
error.h
GWEN_BUFFER
struct GWEN_BUFFER GWEN_BUFFER
A dynamically resizeable text buffer.
Definition buffer.h:38
GWENHYWFAR_API
#define GWENHYWFAR_API
Definition gwenhywfarapi.h:67
GWEN_PathManager_PathChanged
GWENHYWFAR_API int GWEN_PathManager_PathChanged(const char *destLib, const char *pathName)
GWEN_PathManager_AddRelPath
GWENHYWFAR_API int GWEN_PathManager_AddRelPath(const char *callingLib, const char *destLib, const char *pathName, const char *pathValue, GWEN_PATHMANAGER_RELMODE rm)
GWEN_PathManager_InsertRelPath
GWENHYWFAR_API int GWEN_PathManager_InsertRelPath(const char *callingLib, const char *destLib, const char *pathName, const char *pathValue, GWEN_PATHMANAGER_RELMODE rm)
GWEN_PATHMANAGER_RELMODE
GWEN_PATHMANAGER_RELMODE
Definition pathmanager.h:38
GWEN_PathManager_RelModeCwd
@ GWEN_PathManager_RelModeCwd
Definition pathmanager.h:40
GWEN_PathManager_RelModeHome
@ GWEN_PathManager_RelModeHome
Definition pathmanager.h:57
GWEN_PathManager_RelModeExe
@ GWEN_PathManager_RelModeExe
Definition pathmanager.h:55
GWEN_PathManager_GetMatchingFilesRecursively
GWENHYWFAR_API int GWEN_PathManager_GetMatchingFilesRecursively(const char *destLib, const char *pathName, const char *subFolderName, GWEN_STRINGLIST *sl, const char *mask)
GWEN_PathManager_AddPathFromWinReg
GWENHYWFAR_API int GWEN_PathManager_AddPathFromWinReg(const char *callingLib, const char *destLib, const char *pathName, const char *keypath, const char *varname)
GWEN_PathManager_RemovePath
GWENHYWFAR_API int GWEN_PathManager_RemovePath(const char *callingLib, const char *destLib, const char *pathName, const char *pathValue)
GWEN_PathManager_FindFile
GWENHYWFAR_API int GWEN_PathManager_FindFile(const char *destLib, const char *pathName, const char *fileName, GWEN_BUFFER *fbuf)
GWEN_PathManager_InsertPath
GWENHYWFAR_API int GWEN_PathManager_InsertPath(const char *callingLib, const char *destLib, const char *pathName, const char *pathValue)
GWEN_PathManager_UndefinePath
GWENHYWFAR_API int GWEN_PathManager_UndefinePath(const char *destLib, const char *pathName)
GWEN_PathManager_RemovePaths
GWENHYWFAR_API int GWEN_PathManager_RemovePaths(const char *callingLib)
GWEN_PathManager_AddPath
GWENHYWFAR_API int GWEN_PathManager_AddPath(const char *callingLib, const char *destLib, const char *pathName, const char *pathValue)
GWEN_PathManager_GetPaths
GWENHYWFAR_API GWEN_STRINGLIST * GWEN_PathManager_GetPaths(const char *destLib, const char *pathName)
GWEN_PathManager_DefinePath
GWENHYWFAR_API int GWEN_PathManager_DefinePath(const char *destLib, const char *pathName)
stringlist.h
GWEN_STRINGLIST
struct GWEN_STRINGLISTSTRUCT GWEN_STRINGLIST
Definition stringlist.h:56