]> sigrok.org Git - libsigrok.git/blobdiff - src/hardware/sysclk-lwla/lwla.h
drivers: Load firmware via new resource API
[libsigrok.git] / src / hardware / sysclk-lwla / lwla.h
index 94db07e4eb0f07b569e2a855af1e1e5c96ec7768..5484d2ebc49686adcd35ceb2e4756af6358b8cbb 100644 (file)
 #ifndef LIBSIGROK_HARDWARE_SYSCLK_LWLA_LWLA_H
 #define LIBSIGROK_HARDWARE_SYSCLK_LWLA_LWLA_H
 
-#include "libsigrok.h"
 #include <stdint.h>
 #include <libusb.h>
 #include <glib.h>
+#include <libsigrok/libsigrok.h>
 
 struct sr_usb_dev_inst;
 
@@ -101,8 +101,9 @@ struct regval_pair {
        unsigned int val;
 };
 
-SR_PRIV int lwla_send_bitstream(const struct sr_usb_dev_inst *usb,
-                               const char *basename);
+SR_PRIV int lwla_send_bitstream(struct sr_context *ctx,
+                               const struct sr_usb_dev_inst *usb,
+                               const char *name);
 
 SR_PRIV int lwla_send_command(const struct sr_usb_dev_inst *usb,
                              const uint16_t *command, int cmd_len);
@@ -119,4 +120,4 @@ SR_PRIV int lwla_write_reg(const struct sr_usb_dev_inst *usb,
 SR_PRIV int lwla_write_regs(const struct sr_usb_dev_inst *usb,
                            const struct regval_pair *regvals, int count);
 
-#endif /* !LIBSIGROK_HARDWARE_SYSCLK_LWLA_LWLA_H */
+#endif