#include <gwenhywfar/error.h>
#include <gwenhywfar/stringlist.h>
Go to the source code of this file.
Path Management | |
Gwenhywfar keeps track of registered directory paths for itself and for other libraries. The paths are registered and stored in one global object (of GWEN_DB_NODE type), so write-access to this GWEN_PathManager functions is unfortunately not thread-safe.
This technique is used internally to determine some important paths. | |
GWENHYWFAR_API int | GWEN_PathManager_AddPath (const char *callingLib, const char *destLib, const char *pathName, const char *pathValue) |
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 GWEN_STRINGLIST * | GWEN_PathManager_GetPaths (const char *destLib, const char *pathName) |
GWENHYWFAR_API int | GWEN_PathManager_InsertPath (const char *callingLib, const char *destLib, const char *pathName, const char *pathValue) |
GWENHYWFAR_API int | GWEN_PathManager_PathChanged (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_RemovePaths (const char *callingLib) |
GWENHYWFAR_API int | GWEN_PathManager_UndefinePath (const char *destLib, const char *pathName) |
|
Add a directory path entry to a registered path entry in the global GWEN_PathManager.
|
|
Add a directory path entry to a registered path entry in the global GWEN_PathManager by looking up the directory path in the Windows registry. On non-windows platforms, the function does nothing and returns zero, so you can safely call this in your multi-platform code.
|
|
Register a path to be managed by the global GWEN_PathManager module. This must be done before calling one of the other functions of this group. The actual path is not yet set.
|
|
Returns a string list of all path entries that exist under the registered
|
|
Insert a directory path entry to a registered path entry in the global GWEN_PathManager. While GWEN_PathManager_AddPath adds a path to the end of the list for this particular
|
|
This function checks whether the path list for
|
|
Removes a directory path entry from a registered path entry in the global GWEN_PathManager.
|
|
Removes all directory path entries that were registered by the
|
|
Unregister a path that was registered by GWEN_PathManager_DefinePath().
|