Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuillermo S. Romero <gsr.b3d@infernal-iceberg.com>2010-02-16 01:50:53 +0300
committerGuillermo S. Romero <gsr.b3d@infernal-iceberg.com>2010-02-16 01:50:53 +0300
commit80bb824929775658bb937665318ae6981642dd6f (patch)
tree91e8c1f02ecef5eea844de22c4b4f7c0531c55d4 /intern/ghost/GHOST_C-api.h
parent88a2f63c1efe0966f42943e74893e06361184795 (diff)
System dependant functions (skeletons) to retrieve user and system base dirs.
Thus #defines in BLI_bfile.c can be dropped, as suggested by Damien Plisson. Feel free to fill in the non Unix ones. For extra info see: http://wiki.blender.org/index.php/BlenderDev/Blender2.5/ResourceFilePaths http://wiki.blender.org/index.php/BlenderDev/Blender2.5/EnvironmentVariables
Diffstat (limited to 'intern/ghost/GHOST_C-api.h')
-rw-r--r--intern/ghost/GHOST_C-api.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/intern/ghost/GHOST_C-api.h b/intern/ghost/GHOST_C-api.h
index 8e254ce9c32..75a055075bc 100644
--- a/intern/ghost/GHOST_C-api.h
+++ b/intern/ghost/GHOST_C-api.h
@@ -819,6 +819,21 @@ extern GHOST_TUns8* GHOST_getClipboard(int selection);
*/
extern void GHOST_putClipboard(GHOST_TInt8 *buffer, int selection);
+/**
+ * Determine the base dir in which shared resources are located. It will first try to use
+ * "unpack and run" path, then look for properly installed path, not including versioning.
+ * @return Unsigned char string pointing to system dir (eg /usr/share/blender/).
+ */
+extern GHOST_TUns8* GHOST_getSystemDir();
+
+/**
+ * Determine the base dir in which user configuration is stored, not including versioning.
+ * If needed, it will create the base directory.
+ * @return Unsigned char string pointing to user dir (eg ~/.blender/).
+ */
+extern GHOST_TUns8* GHOST_getUserDir();
+
+
#ifdef __cplusplus
}
#endif