subsurface/core
Berthold Stoeger 3e5dd8f982 uemis: unglobalize response buffer
uemis_get_answer() would put the raw response into a global variable.
This could be anywhere in the call stack and thus you never knew
when the existing buffer was removed under your feet.

Instead, return the buffer explicitly from uemis_get_answer().

I'm nit perfectly happy about the new interface: an error is
indicated by an empty buffer, which is awkward to test for.
If an empty buffer turns out to be a valid response, this
should be replaced by an std::optional<> or std::expected<>.

Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
2024-06-08 19:17:34 +02:00
..
settings
subsurface-qt
android.cpp
btdiscovery.cpp Replace qDebug() by report_info() in bluetooth code 2024-04-23 07:47:11 +07:00
btdiscovery.h
checkcloudconnection.cpp Replace qDebug() by report_info in checkcloudconnection.cpp 2024-04-23 07:47:11 +07:00
checkcloudconnection.h
cloudstorage.cpp Replace qDebug() by report_info() in core/cloudstorage.cpp 2024-04-23 07:47:11 +07:00
cloudstorage.h
CMakeLists.txt core: convert uemis.c to C++ 2024-06-08 19:17:34 +02:00
cochran.cpp core: replace SHA1() function by SHA1_uint32() 2024-06-08 19:17:33 +02:00
cochran.h
color.cpp
color.h
compressibility.r
configuredivecomputer.cpp core: make logfile_name and dumpfile_name std::string 2024-03-24 17:53:19 +01:00
configuredivecomputer.h computer configuration: use value semantics for DeviceDetails 2024-03-24 17:53:19 +01:00
configuredivecomputerthreads.cpp computer configuration: use value semantics for DeviceDetails 2024-03-24 17:53:19 +01:00
configuredivecomputerthreads.h computer configuration: use value semantics for DeviceDetails 2024-03-24 17:53:19 +01:00
connectionlistmodel.cpp
connectionlistmodel.h
datatrak.cpp core: use C++-primitives for g_tag_list 2024-04-23 07:47:11 +07:00
datatrak.h
deco.cpp cleanup: replace MIN and MAX macrors by standard versions 2024-04-23 07:47:11 +07:00
deco.h planner: encapsulate deco state cache in a struct 2024-04-23 07:47:11 +07:00
device.cpp Replace remaining qDebug()s by report_info() 2024-04-23 07:47:11 +07:00
device.h
devicedetails.cpp computer configuration: use value semantics for DeviceDetails 2024-03-24 17:53:19 +01:00
devicedetails.h computer configuration: use value semantics for DeviceDetails 2024-03-24 17:53:19 +01:00
dive.cpp Cleanup: Improve the Use of 'Planned dive' and 'Manually added dive'. 2024-05-25 20:13:45 +02:00
dive.h Planner: Fix Editing of Plans in Multi-Divecomputer Dives. 2024-05-11 12:51:45 +12:00
divecomputer.c Cleanup: Improve the Use of 'Planned dive' and 'Manually added dive'. 2024-05-25 20:13:45 +02:00
divecomputer.h Cleanup: Improve the Use of 'Planned dive' and 'Manually added dive'. 2024-05-25 20:13:45 +02:00
divefilter.cpp
divefilter.h
divelist.c import: fix memory leak when importing dives 2024-05-27 20:11:37 +12:00
divelist.h core: fix leak when clearing dive log 2024-05-13 08:58:03 +12:00
divelog.cpp core: fix leak when clearing dive log 2024-05-13 08:58:03 +12:00
divelog.h core: fix leak when clearing dive log 2024-05-13 08:58:03 +12:00
divelogexportlogic.cpp
divelogexportlogic.h
divemode.h
divesite-helper.cpp
divesite.cpp core: C++-ify SHA1 interface 2024-06-08 19:17:34 +02:00
divesite.h
divesitehelpers.cpp Replace remaining qDebug()s by report_info() 2024-04-23 07:47:11 +07:00
divesitehelpers.h
downloadfromdcthread.cpp uemis: replace C-strings by std::string and std::string_view 2024-06-08 19:17:34 +02:00
downloadfromdcthread.h uemis: replace C-strings by std::string and std::string_view 2024-06-08 19:17:34 +02:00
equipment.c Desktop: Fix Gas Editing for Manually Added Dives. 2024-06-01 23:22:40 +12:00
equipment.h Desktop: Fix Gas Editing for Manually Added Dives. 2024-06-01 23:22:40 +12:00
errorhelper.cpp core: port errorhelper.c to C++ 2024-04-23 07:47:11 +07:00
errorhelper.h core: replace SSRF_INFO macro by report_info() 2024-03-12 10:31:07 -04:00
event.c
event.h
eventtype.cpp
eventtype.h
exif.cpp
exif.h
extradata.h
file.cpp cleanup: replace fprintf to stderr by report_info() 2024-04-23 07:47:11 +07:00
file.h
filterconstraint.cpp Desktop: Fix 'planned' and 'logged' Filters. 2024-04-30 12:25:31 +12:00
filterconstraint.h
filterpreset.cpp
filterpreset.h
format.cpp core: remove put_format_loc() 2024-05-31 18:55:47 +02:00
format.h cleanup: remove localized snprintf() functions 2024-05-29 09:33:23 +12:00
fulltext.cpp core: use C++-primitives for g_tag_list 2024-04-23 07:47:11 +07:00
fulltext.h
gas-model.c
gas.c cleanup: replace fprintf to stderr by report_info() 2024-04-23 07:47:11 +07:00
gas.h
gaspressures.c Refactoring: Improve Naming of FRACTION and SIGNED_FRAC defines. 2024-05-02 20:36:26 +02:00
gaspressures.h
gettext.h
gettextfromc.cpp
gettextfromc.h
git-access.cpp core: C++-ify SHA1 interface 2024-06-08 19:17:34 +02:00
git-access.h core: convert git_info to std::string 2024-04-23 07:47:11 +07:00
globals.cpp
globals.h
imagedownloader.cpp Replace remaining qDebug()s by report_info() 2024-04-23 07:47:11 +07:00
imagedownloader.h
import-cobalt.cpp core: simplify custom strtod() interface 2024-06-08 19:17:33 +02:00
import-csv.cpp cleanup: replace fprintf to stderr by report_info() 2024-04-23 07:47:11 +07:00
import-csv.h
import-divinglog.cpp core: simplify custom strtod() interface 2024-06-08 19:17:33 +02:00
import-seac.cpp cleanup: replace fprintf to stderr by report_info() 2024-04-23 07:47:11 +07:00
import-shearwater.cpp core: simplify custom strtod() interface 2024-06-08 19:17:33 +02:00
import-suunto.cpp core: simplify custom strtod() interface 2024-06-08 19:17:33 +02:00
interpolate.h
ios.cpp
libdivecomputer.cpp uemis: replace C-strings by std::string and std::string_view 2024-06-08 19:17:34 +02:00
libdivecomputer.h uemis: replace C-strings by std::string and std::string_view 2024-06-08 19:17:34 +02:00
liquivision.cpp core: use std::string instead of strndup() 2024-04-23 07:47:11 +07:00
load-git.cpp core: add compile time format check to format_string_std 2024-04-23 07:47:11 +07:00
macos.cpp
membuffer.cpp core: remove put_format_loc() 2024-05-31 18:55:47 +02:00
membuffer.h core: remove put_format_loc() 2024-05-31 18:55:47 +02:00
metadata.cpp cleanup: fix typo in comment 2024-06-08 19:17:33 +02:00
metadata.h
metrics.cpp
metrics.h
namecmp.h
ostctools.c
owning_ptrs.h
parse-gpx.cpp cleanup: replace fprintf to stderr by report_info() 2024-04-23 07:47:11 +07:00
parse-gpx.h
parse-xml.cpp core: simplify custom strtod() interface 2024-06-08 19:17:33 +02:00
parse.cpp
parse.h
picture.c Mobile: Fix Build Warnings. 2024-05-30 11:54:51 +02:00
picture.h
pictureobj.cpp
pictureobj.h
planner.cpp Planner: Fix Editing of Plans in Multi-Divecomputer Dives. 2024-05-11 12:51:45 +12:00
planner.h Planner: Fix Editing of Plans in Multi-Divecomputer Dives. 2024-05-11 12:51:45 +12:00
plannernotes.cpp Refactoring: Improve Naming of FRACTION and SIGNED_FRAC defines. 2024-05-02 20:36:26 +02:00
pref.c
pref.h
profile.cpp Refactoring: Improve Naming of FRACTION and SIGNED_FRAC defines. 2024-05-02 20:36:26 +02:00
profile.h profile: use C++ string functions to format plot data 2024-04-23 07:47:11 +07:00
qt-ble.cpp Replace qDebug() by report_info() in bluetooth code 2024-04-23 07:47:11 +07:00
qt-ble.h
qt-gui.h
qt-init.cpp Replace qDebug() by report_info() in qt-init.cpp 2024-04-23 07:47:11 +07:00
qthelper.cpp core: simplify custom strtod() interface 2024-06-08 19:17:33 +02:00
qthelper.h core: use C++-primitives for g_tag_list 2024-04-23 07:47:11 +07:00
qtserialbluetooth.cpp Replace qDebug() by report_info() in bluetooth code 2024-04-23 07:47:11 +07:00
range.h
sample.cpp
sample.h
save-git.cpp Refactoring: Improve Naming of FRACTION and SIGNED_FRAC defines. 2024-05-02 20:36:26 +02:00
save-html.cpp Refactoring: Improve Naming of FRACTION and SIGNED_FRAC defines. 2024-05-02 20:36:26 +02:00
save-html.h
save-profiledata.c Refactoring: Improve Naming of FRACTION and SIGNED_FRAC defines. 2024-05-02 20:36:26 +02:00
save-profiledata.h
save-xml.cpp Refactoring: Improve Naming of FRACTION and SIGNED_FRAC defines. 2024-05-02 20:36:26 +02:00
selection.cpp cleanup: replace fprintf to stderr by report_info() 2024-04-23 07:47:11 +07:00
selection.h
serial_ftdi.c Cleanup: Remove 'context' Reference from Logging Defines. 2024-05-16 16:39:48 +02:00
serial_usb_android.cpp Cleanup: Remove 'context' Reference from Logging Defines. 2024-05-16 16:39:48 +02:00
serial_usb_android.h
sha1.cpp core: C++-ify SHA1 interface 2024-06-08 19:17:34 +02:00
sha1.h core: C++-ify SHA1 interface 2024-06-08 19:17:34 +02:00
ssrf.h
statistics.c
statistics.h
string-format.cpp Refactoring: Improve Naming of FRACTION and SIGNED_FRAC defines. 2024-05-02 20:36:26 +02:00
string-format.h
strtod.cpp core: convert strtod.c to C++ 2024-06-08 19:17:33 +02:00
structured_list.h
subsurface-float.h
subsurface-string.cpp Use std::vector<string> instead of QStringList in main() 2024-04-23 07:47:11 +07:00
subsurface-string.h uemis: replace C-strings by std::string and std::string_view 2024-06-08 19:17:34 +02:00
subsurface-time.h
subsurfacestartup.cpp core: make getCloudURL() return an std::string 2024-04-23 07:47:11 +07:00
subsurfacestartup.h
subsurfacesysinfo.cpp
subsurfacesysinfo.h
table.h core: convert divesite.c to C++ 2024-06-08 19:17:33 +02:00
tag.cpp core: use C++-primitives for g_tag_list 2024-04-23 07:47:11 +07:00
tag.h core: use C++-primitives for g_tag_list 2024-04-23 07:47:11 +07:00
taxonomy.c
taxonomy.h
time.cpp
timer.c
timer.h
trip.c cleanup: remove unused function create_and_hookup_trip_from_dive() 2024-06-08 15:59:53 +02:00
trip.h cleanup: remove unused function create_and_hookup_trip_from_dive() 2024-06-08 15:59:53 +02:00
uemis-downloader.cpp uemis: unglobalize response buffer 2024-06-08 19:17:34 +02:00
uemis.cpp uemis: replace C-strings by std::string and std::string_view 2024-06-08 19:17:34 +02:00
uemis.h uemis: replace C-strings by std::string and std::string_view 2024-06-08 19:17:34 +02:00
units.c
units.h Refactoring: Improve Naming of FRACTION and SIGNED_FRAC defines. 2024-05-02 20:36:26 +02:00
unix.cpp
uploadDiveLogsDE.cpp Replace remaining qDebug()s by report_info() 2024-04-23 07:47:11 +07:00
uploadDiveLogsDE.h
uploadDiveShare.cpp
uploadDiveShare.h
version.cpp core: convert version.c to C++ 2024-06-08 19:17:33 +02:00
version.h
videoframeextractor.cpp
videoframeextractor.h
webservice.h
windows.cpp cleanup: replace fprintf to stderr by report_info() 2024-04-23 07:47:11 +07:00
windowtitleupdate.cpp
windowtitleupdate.h
worldmap-options.h
worldmap-save.cpp core: add compile time format check to format_string_std 2024-04-23 07:47:11 +07:00
worldmap-save.h
xmlparams.cpp
xmlparams.h
xmp_parser.cpp
xmp_parser.h