desktop: use std::string to format subtitles

Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
Berthold Stoeger 2024-06-09 06:32:08 +02:00 committed by bstoeger
parent d05e289507
commit 6252d22adf
3 changed files with 33 additions and 30 deletions

View file

@ -2,7 +2,9 @@
#ifndef SAVE_PROFILE_DATA_H
#define SAVE_PROFILE_DATA_H
#include <string>
int save_profiledata(const char *filename, bool selected_only);
void save_subtitles_buffer(struct membuffer *b, struct dive *dive, int offset, int length);
std::string save_subtitles_buffer(struct dive *dive, int offset, int length);
#endif // SAVE_PROFILE_DATA_H