X-Git-Url: https://git.cinelerra-gg.org/git/?a=blobdiff_plain;f=cinelerra-5.1%2Fguicast%2Ffilesystem.h;h=14fe9ef597835f36f61c8ca5965b5d8f73732b29;hb=43821d27c5b51c4250a251f20c98878f54deb288;hp=40a0b7f688b6f7127c2806e20d3e91147708d107;hpb=ddabb22a495f457ece1d845fe2c32ddf2fc27b58;p=goodguy%2Fhistory.git diff --git a/cinelerra-5.1/guicast/filesystem.h b/cinelerra-5.1/guicast/filesystem.h index 40a0b7f6..14fe9ef5 100644 --- a/cinelerra-5.1/guicast/filesystem.h +++ b/cinelerra-5.1/guicast/filesystem.h @@ -30,14 +30,9 @@ class FileItem { public: FileItem(); - FileItem(char *path, - char *name, - int is_dir, - int64_t size, - int month, - int day, - int year, - int64_t calendar_time); + FileItem(char *path, char *name, int is_dir, + int64_t size, int month, int day, int year, + int64_t calendar_time, int item_no=-1); ~FileItem(); int set_path(char *path); @@ -55,6 +50,7 @@ public: int day; int year; int64_t calendar_time; + int item_no; }; class FileSystem @@ -67,7 +63,9 @@ public: // Load the new directory and change current_dir to it. // This does not complete the dir path. // If any of the files failed to stat, it returns nonzero. + int scan_directory(const char*); int update(const char *new_dir = 0); + int update_sort(); // Complete the path in the string and change to the directory in the string. // Does not change new_dir