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 
00036 typedef enum {
00038   GWEN_PathManager_RelModeCwd=0,
00053   GWEN_PathManager_RelModeExe,
00055   GWEN_PathManager_RelModeHome
00056 } GWEN_PATHMANAGER_RELMODE;
00057 
00058 
00059 #ifdef __cplusplus
00060 extern "C" {
00061 #endif
00062 
00063 
00077 
00091 GWENHYWFAR_API
00092 int GWEN_PathManager_DefinePath(const char *destLib,
00093                                 const char *pathName);
00094 
00107 GWENHYWFAR_API
00108 int GWEN_PathManager_UndefinePath(const char *destLib,
00109                                   const char *pathName);
00110 
00111 
00131 GWENHYWFAR_API
00132 int GWEN_PathManager_AddPath(const char *callingLib,
00133                              const char *destLib,
00134                              const char *pathName,
00135                              const char *pathValue);
00136 
00176 GWENHYWFAR_API
00177 int GWEN_PathManager_AddRelPath(const char *callingLib,
00178                                 const char *destLib,
00179                                 const char *pathName,
00180                                 const char *pathValue,
00181                                 GWEN_PATHMANAGER_RELMODE rm);
00211 GWENHYWFAR_API
00212 int GWEN_PathManager_AddPathFromWinReg(const char *callingLib,
00213                                        const char *destLib,
00214                                        const char *pathName,
00215                                        const char *keypath,
00216                                        const char *varname);
00217 
00236 GWENHYWFAR_API
00237 int GWEN_PathManager_InsertPath(const char *callingLib,
00238                                 const char *destLib,
00239                                 const char *pathName,
00240                                 const char *pathValue);
00241 
00259 GWENHYWFAR_API
00260 int GWEN_PathManager_RemovePath(const char *callingLib,
00261                                 const char *destLib,
00262                                 const char *pathName,
00263                                 const char *pathValue);
00264 
00273 GWENHYWFAR_API
00274 int GWEN_PathManager_RemovePaths(const char *callingLib);
00275 
00276 
00290 GWENHYWFAR_API
00291 int GWEN_PathManager_PathChanged(const char *destLib,
00292                                  const char *pathName);
00293 
00308 GWENHYWFAR_API
00309 GWEN_STRINGLIST *GWEN_PathManager_GetPaths(const char *destLib,
00310                                            const char *pathName);
00311 
00314 #ifdef __cplusplus
00315 }
00316 #endif
00317 
00318 
00319 #endif /* GWENHYWFAR_PATHMANAGER_H */

Generated on Thu Aug 20 13:54:39 2009 for gwenhywfar by  doxygen 1.5.9