mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
a412753b0a
commit
1d61955be9
7 changed files with 2401 additions and 2305 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue