gwenhywfar  5.2.0
pathmanager.h
Go to the documentation of this file.
1 /***************************************************************************
2  $RCSfile$
3  -------------------
4  cvs : $Id$
5  begin : Mon Mar 01 2004
6  copyright : (C) 2004 by Martin Preuss
7  email : martin@libchipcard.de
8 
9  ***************************************************************************
10  * *
11  * This library is free software; you can redistribute it and/or *
12  * modify it under the terms of the GNU Lesser General Public *
13  * License as published by the Free Software Foundation; either *
14  * version 2.1 of the License, or (at your option) any later version. *
15  * *
16  * This library is distributed in the hope that it will be useful, *
17  * but WITHOUT ANY WARRANTY; without even the implied warranty of *
18  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU *
19  * Lesser General Public License for more details. *
20  * *
21  * You should have received a copy of the GNU Lesser General Public *
22  * License along with this library; if not, write to the Free Software *
23  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, *
24  * MA 02111-1307 USA *
25  * *
26  ***************************************************************************/
27 
28 
29 
30 #ifndef GWENHYWFAR_PATHMANAGER_H
31 #define GWENHYWFAR_PATHMANAGER_H
32 
33 #include <gwenhywfar/error.h>
34 #include <gwenhywfar/stringlist.h>
35 #include <gwenhywfar/buffer.h>
36 
37 
38 typedef enum {
59 
60 
61 #ifdef __cplusplus
62 extern "C" {
63 #endif
64 
65 
79 
94 int GWEN_PathManager_DefinePath(const char *destLib,
95  const char *pathName);
96 
110 int GWEN_PathManager_UndefinePath(const char *destLib,
111  const char *pathName);
112 
113 
134 int GWEN_PathManager_AddPath(const char *callingLib,
135  const char *destLib,
136  const char *pathName,
137  const char *pathValue);
138 
179 int GWEN_PathManager_AddRelPath(const char *callingLib,
180  const char *destLib,
181  const char *pathName,
182  const char *pathValue,
214 int GWEN_PathManager_AddPathFromWinReg(const char *callingLib,
215  const char *destLib,
216  const char *pathName,
217  const char *keypath,
218  const char *varname);
219 
239 int GWEN_PathManager_InsertPath(const char *callingLib,
240  const char *destLib,
241  const char *pathName,
242  const char *pathValue);
243 
284 int GWEN_PathManager_InsertRelPath(const char *callingLib,
285  const char *destLib,
286  const char *pathName,
287  const char *pathValue,
289 
290 
309 int GWEN_PathManager_RemovePath(const char *callingLib,
310  const char *destLib,
311  const char *pathName,
312  const char *pathValue);
313 
323 int GWEN_PathManager_RemovePaths(const char *callingLib);
324 
325 
340 int GWEN_PathManager_PathChanged(const char *destLib,
341  const char *pathName);
342 
358 GWEN_STRINGLIST *GWEN_PathManager_GetPaths(const char *destLib,
359  const char *pathName);
360 
361 
380 int GWEN_PathManager_FindFile(const char *destLib,
381  const char *pathName,
382  const char *fileName,
383  GWEN_BUFFER *fbuf);
384 
403 int GWEN_PathManager_GetMatchingFilesRecursively(const char *destLib,
404  const char *pathName,
405  const char *subFolderName,
406  GWEN_STRINGLIST *sl,
407  const char *mask);
408 
411 #ifdef __cplusplus
412 }
413 #endif
414 
415 
416 #endif /* GWENHYWFAR_PATHMANAGER_H */
GWEN_PathManager_AddPath
GWENHYWFAR_API int GWEN_PathManager_AddPath(const char *callingLib, const char *destLib, const char *pathName, const char *pathValue)
GWEN_STRINGLIST
struct GWEN_STRINGLISTSTRUCT GWEN_STRINGLIST
Definition: stringlist.h:53
GWEN_PathManager_RelModeCwd
Definition: pathmanager.h:63
GWEN_PathManager_RelModeHome
Definition: pathmanager.h:80
GWEN_PathManager_RelModeExe
Definition: pathmanager.h:78
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_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_AddRelPath
GWENHYWFAR_API int GWEN_PathManager_AddRelPath(const char *callingLib, const char *destLib, const char *pathName, const char *pathValue, GWEN_PATHMANAGER_RELMODE rm)
error.h
GWEN_PathManager_DefinePath
GWENHYWFAR_API int GWEN_PathManager_DefinePath(const char *destLib, const char *pathName)
GWEN_PathManager_PathChanged
GWENHYWFAR_API int GWEN_PathManager_PathChanged(const char *destLib, const char *pathName)
GWEN_PathManager_RemovePath
GWENHYWFAR_API int GWEN_PathManager_RemovePath(const char *callingLib, const char *destLib, const char *pathName, const char *pathValue)
GWEN_PathManager_InsertPath
GWENHYWFAR_API int GWEN_PathManager_InsertPath(const char *callingLib, const char *destLib, const char *pathName, const char *pathValue)
buffer.h
GWEN_PathManager_RemovePaths
GWENHYWFAR_API int GWEN_PathManager_RemovePaths(const char *callingLib)
GWEN_PathManager_GetPaths
GWENHYWFAR_API GWEN_STRINGLIST * GWEN_PathManager_GetPaths(const char *destLib, const char *pathName)
GWEN_PATHMANAGER_RELMODE
GWEN_PATHMANAGER_RELMODE
Definition: pathmanager.h:37
GWEN_PathManager_GetMatchingFilesRecursively
GWENHYWFAR_API int GWEN_PathManager_GetMatchingFilesRecursively(const char *destLib, const char *pathName, const char *subFolderName, GWEN_STRINGLIST *sl, const char *mask)
GWENHYWFAR_API
#define GWENHYWFAR_API
Definition: gwenhywfarapi.h:66
GWEN_PathManager_FindFile
GWENHYWFAR_API int GWEN_PathManager_FindFile(const char *destLib, const char *pathName, const char *fileName, GWEN_BUFFER *fbuf)
GWEN_PathManager_UndefinePath
GWENHYWFAR_API int GWEN_PathManager_UndefinePath(const char *destLib, const char *pathName)
stringlist.h
GWEN_BUFFER
struct GWEN_BUFFER GWEN_BUFFER
A dynamically resizeable text buffer.
Definition: buffer.h:37