Better unix filesystem integration as documented here
[blender.git] / source / blender / blenlib / BLI_util.h
index f9a84e071e7ecced06330bdafe4c719f037999fc..1ce7a8cdb772c0818bad7fce6f4aefb3093a6008 100644 (file)
@@ -42,7 +42,14 @@ struct ListBase;
 struct direntry;
 
 char *BLI_gethome(void);
-char *BLI_gethome_folder(char *folder_name);
+char *BLI_gethome_folder(char *folder_name, int flag);
+
+/* BLI_gethome_folder flag */
+#define BLI_GETHOME_LOCAL              1<<1 /* relative location for portable binaries */
+#define BLI_GETHOME_SYSTEM             1<<2 /* system location, or set from the BLENDERPATH env variable (UNIX only) */
+#define BLI_GETHOME_USER               1<<3 /* home folder ~/.blender */
+#define BLI_GETHOME_ALL                        (BLI_GETHOME_SYSTEM|BLI_GETHOME_LOCAL|BLI_GETHOME_USER)
+
 void BLI_setenv(const char *env, const char *val);
 
 void BLI_make_file_string(const char *relabase, char *string,  const char *dir, const char *file);