gwenhywfar  4.9.0beta
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 
262 int GWEN_PathManager_RemovePath(const char *callingLib,
263  const char *destLib,
264  const char *pathName,
265  const char *pathValue);
266 
276 int GWEN_PathManager_RemovePaths(const char *callingLib);
277 
278 
293 int GWEN_PathManager_PathChanged(const char *destLib,
294  const char *pathName);
295 
311 GWEN_STRINGLIST *GWEN_PathManager_GetPaths(const char *destLib,
312  const char *pathName);
313 
314 
333 int GWEN_PathManager_FindFile(const char *destLib,
334  const char *pathName,
335  const char *fileName,
336  GWEN_BUFFER *fbuf);
337 
356 int GWEN_PathManager_GetMatchingFilesRecursively(const char *destLib,
357  const char *pathName,
358  const char *subFolderName,
359  GWEN_STRINGLIST *sl,
360  const char *mask);
361 
364 #ifdef __cplusplus
365 }
366 #endif
367 
368 
369 #endif /* GWENHYWFAR_PATHMANAGER_H */
GWENHYWFAR_API GWEN_STRINGLIST * GWEN_PathManager_GetPaths(const char *destLib, const char *pathName)
GWEN_PATHMANAGER_RELMODE
Definition: pathmanager.h:38
GWENHYWFAR_API int GWEN_PathManager_RemovePaths(const char *callingLib)
GWENHYWFAR_API int GWEN_PathManager_UndefinePath(const char *destLib, const char *pathName)
GWENHYWFAR_API int GWEN_PathManager_RemovePath(const char *callingLib, const char *destLib, const char *pathName, const char *pathValue)
GWENHYWFAR_API int GWEN_PathManager_AddPath(const char *callingLib, const char *destLib, const char *pathName, const char *pathValue)
struct GWEN_STRINGLISTSTRUCT GWEN_STRINGLIST
Definition: stringlist.h:53
GWENHYWFAR_API int GWEN_PathManager_GetMatchingFilesRecursively(const char *destLib, const char *pathName, const char *subFolderName, GWEN_STRINGLIST *sl, const char *mask)
struct GWEN_BUFFER GWEN_BUFFER
A dynamically resizeable text buffer.
Definition: buffer.h:41
GWENHYWFAR_API int GWEN_PathManager_FindFile(const char *destLib, const char *pathName, const char *fileName, GWEN_BUFFER *fbuf)
#define GWENHYWFAR_API
Definition: gwenhywfarapi.h:67
GWENHYWFAR_API int GWEN_PathManager_InsertPath(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_DefinePath(const char *destLib, const char *pathName)
GWENHYWFAR_API int GWEN_PathManager_PathChanged(const char *destLib, const char *pathName)