System dependant functions (skeletons) to retrieve user and system base dirs.
[blender.git] / intern / ghost / GHOST_C-api.h
index 8e254ce9c3225bcd2fb2fbcd7be4bcc62c6c7140..75a055075bcf4d9af90dee7a8f5ef3d991084019 100644 (file)
@@ -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