mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
devices: add devices in Command::importTable()
Add a device_table parameters to Command::importTable() and add_imported_dives(). The content of this table will be added to the global device list (respectively removed on undo). This is currently a no-op, as the parser doesn't yet fill out the device table, but adds devices directly to the global device table. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
fadea413cd
commit
39a4090c0a
17 changed files with 113 additions and 40 deletions
|
@ -39,6 +39,10 @@ const char *device_get_serial(const struct device *dev);
|
|||
const char *device_get_firmware(const struct device *dev);
|
||||
const char *device_get_nickname(const struct device *dev);
|
||||
|
||||
// for C code that needs to alloc/free a device table. (Let's try to get rid of those)
|
||||
extern struct device_table *alloc_device_table();
|
||||
extern void free_device_table(struct device_table *devices);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue