mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
core: make get_device_for_dc() accessible from C
The function getDCExact() was used to search for a device structure matching a divecomputer. Since C code can now access struct device, we can export that function to C. Rename it to get_device_for_dc() for consistency with naming of the core functions. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
c4bfecce1b
commit
74b8d13672
2 changed files with 7 additions and 4 deletions
|
@ -26,6 +26,8 @@ extern void call_for_each_dc(void *f, void (*callback)(void *, const char *, uin
|
|||
extern void clear_device_nodes();
|
||||
const char *get_dc_nickname(const struct divecomputer *dc);
|
||||
|
||||
extern const struct device *get_device_for_dc(const struct device_table *table, const struct divecomputer *dc);
|
||||
|
||||
// struct device accessors for C-code. The returned strings are not stable!
|
||||
const char *device_get_model(const struct device *dev);
|
||||
const uint32_t device_get_id(const struct device *dev);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue