#include <unistd.h>
#include <sys/time.h>
#include <zip.h>
-#include <sigrok.h>
-#include <sigrok-internal.h>
+#include "sigrok.h"
+#include "sigrok-internal.h"
/* size of payloads sent across the session bus */
#define CHUNKSIZE 4096
0,
};
-
static struct session_vdevice *get_vdevice_by_index(int device_index)
{
struct sr_device_instance *sdi;
sr_session_source_remove(-1);
g_free(sessionfile);
-
}
static int hw_opendev(int device_index)
/* Avoid compiler warnings. */
(void)device_index;
- if (devices)
+ if (sr_device_list() != NULL)
return SR_OK;
else
return SR_ERR;
static int *hw_get_capabilities(void)
{
-
return capabilities;
}
return SR_OK;
}
+/* Not static, it's used elsewhere (via 'extern'). */
struct sr_device_plugin session_driver = {
"session",
"Session-emulating driver",