mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-06-04 13:18:55 -04:00
Added categories for Frequency Manager
Very bad memory leak fix in MenuView
This commit is contained in:
parent
c0876ebe9f
commit
84be3a363c
11 changed files with 248 additions and 114 deletions
|
@ -42,11 +42,17 @@ struct freqman_entry {
|
|||
rf::Frequency value;
|
||||
std::string frequency_str;
|
||||
std::string description;
|
||||
int32_t category_id;
|
||||
};
|
||||
|
||||
bool load_freqman_file(std::vector<freqman_entry> &frequencies);
|
||||
bool save_freqman_file(std::vector<freqman_entry> &frequencies);
|
||||
struct freqman_db {
|
||||
std::vector<freqman_entry> entries;
|
||||
std::vector<std::string> categories;
|
||||
};
|
||||
|
||||
bool load_freqman_file(freqman_db &db);
|
||||
bool save_freqman_file(freqman_db &db);
|
||||
bool create_freqman_file(File &freqs_file);
|
||||
std::string freqman_item_string(freqman_entry &frequencies);
|
||||
std::string freqman_item_string(freqman_entry &item);
|
||||
|
||||
#endif/*__FREQMAN_H__*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue