X-Git-Url: http://git.cinelerra-gg.org/git/?a=blobdiff_plain;f=cinelerra-5.0%2Fguicast%2Fbchash.h;h=36c4a4a3f7aaf8a6b9e1e27e4875f4f9e33dc1eb;hb=52fcc46226f9df46f9ce9d0566dc568455a7db0b;hp=a6ebde0f5dff2d877dbb728a687bc59681883bb7;hpb=2d99bb8ce591f05a31464b517d85dc2bc35b2abe;p=goodguy%2Fhistory.git diff --git a/cinelerra-5.0/guicast/bchash.h b/cinelerra-5.0/guicast/bchash.h index a6ebde0f..36c4a4a3 100644 --- a/cinelerra-5.0/guicast/bchash.h +++ b/cinelerra-5.0/guicast/bchash.h @@ -29,7 +29,6 @@ #include "bcwindowbase.inc" #include "bctextbox.inc" -#include "stringfile.inc" #include "units.h" @@ -40,12 +39,12 @@ public: BC_Hash(const char *filename); virtual ~BC_Hash(); + int load_file(FILE *fp); int load(); // load from disk file + int save_file(FILE *fp); int save(); // save to disk file int load_string(const char *string); // load from string int save_string(char* &string); // save to new string - void save_stringfile(StringFile *file); - void load_stringfile(StringFile *file); int update(const char *name, double value); // update a value if it exists int update(const char *name, float value); // update a value if it exists int update(const char *name, int32_t value); // update a value if it exists @@ -82,6 +81,7 @@ public: int size(); char* get_key(int number); char* get_value(int number); + void clear(); private: // Reallocate table so at least total entries exist