gwenhywfar  4.3.1
pathmanager.h
Go to the documentation of this file.
00001 /***************************************************************************
00002  $RCSfile$
00003                              -------------------
00004     cvs         : $Id$
00005     begin       : Mon Mar 01 2004
00006     copyright   : (C) 2004 by Martin Preuss
00007     email       : martin@libchipcard.de
00008 
00009  ***************************************************************************
00010  *                                                                         *
00011  *   This library is free software; you can redistribute it and/or         *
00012  *   modify it under the terms of the GNU Lesser General Public            *
00013  *   License as published by the Free Software Foundation; either          *
00014  *   version 2.1 of the License, or (at your option) any later version.    *
00015  *                                                                         *
00016  *   This library is distributed in the hope that it will be useful,       *
00017  *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
00018  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU     *
00019  *   Lesser General Public License for more details.                       *
00020  *                                                                         *
00021  *   You should have received a copy of the GNU Lesser General Public      *
00022  *   License along with this library; if not, write to the Free Software   *
00023  *   Foundation, Inc., 59 Temple Place, Suite 330, Boston,                 *
00024  *   MA  02111-1307  USA                                                   *
00025  *                                                                         *
00026  ***************************************************************************/
00027 
00028 
00029 
00030 #ifndef GWENHYWFAR_PATHMANAGER_H
00031 #define GWENHYWFAR_PATHMANAGER_H
00032 
00033 #include <gwenhywfar/error.h>
00034 #include <gwenhywfar/stringlist.h>
00035 #include <gwenhywfar/buffer.h>
00036 
00037 
00038 typedef enum {
00040   GWEN_PathManager_RelModeCwd=0,
00055   GWEN_PathManager_RelModeExe,
00057   GWEN_PathManager_RelModeHome
00058 } GWEN_PATHMANAGER_RELMODE;
00059 
00060 
00061 #ifdef __cplusplus
00062 extern "C" {
00063 #endif
00064 
00065 
00079 
00093 GWENHYWFAR_API
00094 int GWEN_PathManager_DefinePath(const char *destLib,
00095                                 const char *pathName);
00096 
00109 GWENHYWFAR_API
00110 int GWEN_PathManager_UndefinePath(const char *destLib,
00111                                   const char *pathName);
00112 
00113 
00133 GWENHYWFAR_API
00134 int GWEN_PathManager_AddPath(const char *callingLib,
00135                              const char *destLib,
00136                              const char *pathName,
00137                              const char *pathValue);
00138 
00178 GWENHYWFAR_API
00179 int GWEN_PathManager_AddRelPath(const char *callingLib,
00180                                 const char *destLib,
00181                                 const char *pathName,
00182                                 const char *pathValue,
00183                                 GWEN_PATHMANAGER_RELMODE rm);
00213 GWENHYWFAR_API
00214 int GWEN_PathManager_AddPathFromWinReg(const char *callingLib,
00215                                        const char *destLib,
00216                                        const char *pathName,
00217                                        const char *keypath,
00218                                        const char *varname);
00219 
00238 GWENHYWFAR_API
00239 int GWEN_PathManager_InsertPath(const char *callingLib,
00240                                 const char *destLib,
00241                                 const char *pathName,
00242                                 const char *pathValue);
00243 
00261 GWENHYWFAR_API
00262 int GWEN_PathManager_RemovePath(const char *callingLib,
00263                                 const char *destLib,
00264                                 const char *pathName,
00265                                 const char *pathValue);
00266 
00275 GWENHYWFAR_API
00276 int GWEN_PathManager_RemovePaths(const char *callingLib);
00277 
00278 
00292 GWENHYWFAR_API
00293 int GWEN_PathManager_PathChanged(const char *destLib,
00294                                  const char *pathName);
00295 
00310 GWENHYWFAR_API
00311 GWEN_STRINGLIST *GWEN_PathManager_GetPaths(const char *destLib,
00312                                            const char *pathName);
00313 
00314 
00332 GWENHYWFAR_API
00333 int GWEN_PathManager_FindFile(const char *destLib,
00334                               const char *pathName,
00335                               const char *fileName,
00336                               GWEN_BUFFER *fbuf);
00337 
00355 GWENHYWFAR_API
00356 int GWEN_PathManager_GetMatchingFilesRecursively(const char *destLib,
00357                                                  const char *pathName,
00358                                                  const char *subFolderName,
00359                                                  GWEN_STRINGLIST *sl,
00360                                                  const char *mask);
00361 
00364 #ifdef __cplusplus
00365 }
00366 #endif
00367 
00368 
00369 #endif /* GWENHYWFAR_PATHMANAGER_H */