summaryrefslogtreecommitdiffstats
path: root/uemis-downloader.c
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2013-04-06 20:49:06 -0700
committerGravatar Henrik Brautaset Aronsen <subsurface@henrik.synth.no>2013-04-07 17:37:09 +0200
commit983a77780c48f1f4ece425eade32663dd0e68f83 (patch)
tree20a3487091f7dbd22123b6bd87e0ab4bed3e72ff /uemis-downloader.c
parent68119c5b5415c2797e11356dc8db63bd84c577cf (diff)
downloadsubsurface-983a77780c48f1f4ece425eade32663dd0e68f83.tar.gz
Separate Gtk related code from core logic: divelist
This is simplistic & brute force: any function that touches Gtk related data structures is moved to divelist-gtk.c, everything else stays in divelist.c. Header files have been adjusted so that this still compiles and appears to work. More thought is needed to truly abstract this out, but this seems to be a good point to commit this change. Signed-off-by: Henrik Brautaset Aronsen <subsurface@henrik.synth.no> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'uemis-downloader.c')
-rw-r--r--uemis-downloader.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/uemis-downloader.c b/uemis-downloader.c
index 9b54b0f3c..c5113d95a 100644
--- a/uemis-downloader.c
+++ b/uemis-downloader.c
@@ -731,7 +731,7 @@ static void process_raw_buffer(uint32_t deviceid, char *inbuf, char **max_divenr
return;
}
-static char *get_divenr(char *deviceidstr)
+static char *uemis_get_divenr(char *deviceidstr)
{
uint32_t deviceid, maxdiveid = 0;
int i;
@@ -789,7 +789,7 @@ static char *do_uemis_download(struct argument_block *args)
/* if we have an empty divelist or force it, then we start downloading from the
* first dive on the Uemis; otherwise check which was the last dive downloaded */
if (!args->force_download && dive_table.nr > 0)
- newmax = get_divenr(deviceid);
+ newmax = uemis_get_divenr(deviceid);
else
newmax = strdup("0");
start = atoi(newmax);