ViSession vi;
};
-static int scpi_visa_dev_inst_new(void *priv, const char *resource,
- char **params, const char *serialcomm)
+static int scpi_visa_dev_inst_new(void *priv, struct drv_context *drvc,
+ const char *resource, char **params, const char *serialcomm)
{
struct scpi_visa *vscpi = priv;
+ (void)drvc;
(void)resource;
(void)serialcomm;
}
static int scpi_visa_source_add(void *priv, int events, int timeout,
- sr_receive_data_callback_t cb, void *cb_data)
+ sr_receive_data_callback cb, void *cb_data)
{
(void) priv;
{
struct scpi_visa *vscpi = priv;
gchar *terminated_command;
- ViUInt32 written;
+ ViUInt32 written = 0;
int len;
terminated_command = g_strconcat(command, "\n", NULL);