#include <config.h>
#include "protocol.h"
-SR_PRIV struct sr_dev_driver {lib}_driver_info;
-
static GSList *scan(struct sr_dev_driver *di, GSList *options)
{{
struct drv_context *drvc;
return devices;
}}
-static int dev_clear(const struct sr_dev_driver *di)
-{{
- return std_dev_clear(di, NULL);
-}}
-
static int dev_open(struct sr_dev_inst *sdi)
{{
(void)sdi;
{{
int ret;
+ (void)sdi;
(void)data;
(void)cg;
/* TODO: configure hardware, reset acquisition state, set up
* callbacks and send header packet. */
+ (void)sdi;
+
return SR_OK;
}}
{{
/* TODO: stop acquisition. */
+ (void)sdi;
+
return SR_OK;
}}
.cleanup = std_cleanup,
.scan = scan,
.dev_list = std_dev_list,
- .dev_clear = dev_clear,
+ .dev_clear = std_dev_clear,
.config_get = config_get,
.config_set = config_set,
.config_list = config_list,
#define LOG_PREFIX "{short}"
-/** Private, per-device-instance driver context. */
struct dev_context {{
- /* Model-specific information */
-
- /* Acquisition settings */
-
- /* Operational state */
-
- /* Temporary state across callbacks */
-
}};
SR_PRIV int {lib}_receive_data(int fd, int revents, void *cb_data);