gwenhywfar  5.11.1beta
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 
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 
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 */
struct GWEN_BUFFER GWEN_BUFFER
A dynamically resizeable text buffer.
Definition: buffer.h:38
#define GWENHYWFAR_API
Definition: gwenhywfarapi.h:67
GWENHYWFAR_API int GWEN_PathManager_PathChanged(const char *destLib, const char *pathName)
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_InsertRelPath(const char *callingLib, const char *destLib, const char *pathName, const char *pathValue, GWEN_PATHMANAGER_RELMODE rm)
GWEN_PATHMANAGER_RELMODE
Definition: pathmanager.h:38
@ GWEN_PathManager_RelModeCwd
Definition: pathmanager.h:40
@ GWEN_PathManager_RelModeHome
Definition: pathmanager.h:57
@ GWEN_PathManager_RelModeExe
Definition: pathmanager.h:55
GWENHYWFAR_API int GWEN_PathManager_GetMatchingFilesRecursively(const char *destLib, const char *pathName, const char *subFolderName, GWEN_STRINGLIST *sl, const char *mask)
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_RemovePath(const char *callingLib, const char *destLib, const char *pathName, const char *pathValue)
GWENHYWFAR_API int GWEN_PathManager_FindFile(const char *destLib, const char *pathName, const char *fileName, GWEN_BUFFER *fbuf)
GWENHYWFAR_API int GWEN_PathManager_InsertPath(const char *callingLib, const char *destLib, const char *pathName, const char *pathValue)
GWENHYWFAR_API int GWEN_PathManager_UndefinePath(const char *destLib, const char *pathName)
GWENHYWFAR_API int GWEN_PathManager_RemovePaths(const char *callingLib)
GWENHYWFAR_API GWEN_STRINGLIST * GWEN_PathManager_GetPaths(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_DefinePath(const char *destLib, const char *pathName)
struct GWEN_STRINGLISTSTRUCT GWEN_STRINGLIST
Definition: stringlist.h:56