version update, fixes for 32bit cmplr warns
[goodguy/history.git] / cinelerra-5.1 / cinelerra / file.h
index b8108492de2a30a7f73189ff3260feb5ed410b69..442bdc58cbc512d11367de1cad7a475b82df2b49 100644 (file)
@@ -37,6 +37,8 @@
 #include "formattools.h"
 #include "framecache.inc"
 #include "guicast.h"
+#include "indexfile.inc"
+#include "mainprogress.inc"
 #include "mutex.inc"
 #include "packagingengine.inc"
 #include "pluginserver.inc"
@@ -97,7 +99,7 @@ public:
                int wr);
 
 // Get index from the file if one exists.  Returns 0 on success.
-       int get_index(char *index_path);
+       int get_index(IndexFile *index_file, MainProgressBar *progress_bar);
 
 // start a thread for writing to avoid blocking during record
        int start_audio_thread(int buffer_size, int ring_buffers);
@@ -311,6 +313,22 @@ public:
        int wr, rd;
        static PackagingEngine *new_packaging_engine(Asset *asset);
 
+       static void init_cin_path();
+       static void get_exe_path(char *result, char *bnp=0);
+       static void getenv_path(char *result, const char *path);
+       static char cinexe_path[BCTEXTLEN], cinpkg_path[BCTEXTLEN];
+       static char cindat_path[BCTEXTLEN], cinlib_path[BCTEXTLEN];
+       static char cincfg_path[BCTEXTLEN], cinplg_path[BCTEXTLEN];
+       static char cinlad_path[BCTEXTLEN], cinlcl_path[BCTEXTLEN];
+       static const char *get_cin() { return getenv("CIN_PKG"); }
+       static const char *get_cin_path() { return getenv("CIN_PATH"); }
+       static const char *get_cindat_path() { return getenv("CIN_DAT"); }
+       static const char *get_cinlib_path() { return getenv("CIN_LIB"); }
+       static const char *get_config_path() { return getenv("CIN_CONFIG"); }
+       static const char *get_plugin_path() { return getenv("CIN_PLUGIN"); }
+       static const char *get_ladspa_path() { return getenv("CIN_LADSPA"); }
+       static const char *get_locale_path() { return getenv("CIN_LOCALE"); }
+
 private:
        void reset_parameters();