]> git.tdb.fi Git - ext/subsurface.git/blobdiff - libdivecomputer.h
Fix profile and average depth for freedives
[ext/subsurface.git] / libdivecomputer.h
index c6e99fa732f9c79b38b1432c34fcc4abd77f2d5e..6430c844841921bb0d85ae0142045546d498cfea 100644 (file)
@@ -2,17 +2,8 @@
 #define LIBDIVECOMPUTER_H
 
 /* libdivecomputer */
-#include <device.h>
-#include <suunto.h>
-#include <reefnet.h>
-#include <uwatec.h>
-#include <oceanic.h>
-#include <mares.h>
-#include <hw.h>
-#include <cressi.h>
-#include <zeagle.h>
-#include <atomics.h>
-#include <utils.h>
+#include <libdivecomputer/device.h>
+#include <libdivecomputer/parser.h>
 
 /* handling uemis Zurich SDA files */
 #include "uemis.h"
 /* don't forget to include the UI toolkit specific display-XXX.h first
    to get the definition of progressbar_t */
 typedef struct device_data_t {
-       device_type_t type;
-       const char *name, *devname;
+       dc_descriptor_t *descriptor;
+       const char *vendor, *product, *devname;
+       dc_device_t *device;
+       dc_context_t *context;
        progressbar_t progress;
-       device_devinfo_t devinfo;
-       device_clock_t clock;
        int preexisting;
 } device_data_t;
 
-struct device_list {
-       const char *name;
-       device_type_t type;
-};
-
-extern struct device_list device_list[];
 extern GError *do_import(device_data_t *data);
 
 #endif