]> sigrok.org Git - libsigrok.git/blobdiff - hardware/asix-sigma/asix-sigma.h
Centralise duplicated logging helper defines.
[libsigrok.git] / hardware / asix-sigma / asix-sigma.h
index 12410238a7000e5298254b6d23edaa2619cd4fd2..74178b1c7451490e351ce3c5197d8a2ed28aa4bf 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * This file is part of the sigrok project.
+ * This file is part of the libsigrok project.
  *
  * Copyright (C) 2010 Håvard Espeland <gus@ping.uio.no>,
  * Copyright (C) 2010 Martin Stensgård <mastensg@ping.uio.no>
@@ -22,6 +22,8 @@
 #ifndef LIBSIGROK_HARDWARE_ASIX_SIGMA_ASIX_SIGMA_H
 #define LIBSIGROK_HARDWARE_ASIX_SIGMA_ASIX_SIGMA_H
 
+#define LOG_PREFIX "asix-sigma"
+
 enum sigma_write_register {
        WRITE_CLOCK_SELECT      = 0,
        WRITE_TRIGGER_SELECT0   = 1,
@@ -173,11 +175,6 @@ struct sigma_state {
        int chunks_downloaded;
 };
 
-/* Private driver context. */
-struct drv_context {
-       GSList *instances;
-};
-
 /* Private, per-device-instance driver context. */
 struct dev_context {
        struct ftdi_context ftdic;
@@ -192,7 +189,7 @@ struct dev_context {
        struct sigma_trigger trigger;
        int use_triggers;
        struct sigma_state state;
-       void *session_dev_id;
+       void *cb_data;
 };
 
 #endif