X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=src%2Fhardware%2Fderee-de5000%2Fapi.c;h=b03c3a65f5e1b27fa90b5b4408287821c15b38dd;hb=1f706c21a2977c768692f72d09b35633628d2b0d;hp=88aa88281a4cf78a5c4764e978e93e1caf12973c;hpb=4f840ce965b1c30c5ab75afecc56193cbaf5c1b3;p=libsigrok.git diff --git a/src/hardware/deree-de5000/api.c b/src/hardware/deree-de5000/api.c index 88aa8828..b03c3a65 100644 --- a/src/hardware/deree-de5000/api.c +++ b/src/hardware/deree-de5000/api.c @@ -17,18 +17,19 @@ * along with this program. If not, see . */ +#include #include #include #include #include -#include "libsigrok.h" +#include #include "libsigrok-internal.h" static void std_dev_attach(struct sr_dev_driver *di, struct sr_dev_inst *sdi) { struct drv_context *drvc; - drvc = di->priv; + drvc = di->context; sdi->driver = di; drvc->instances = g_slist_append(drvc->instances, sdi); @@ -36,7 +37,7 @@ static void std_dev_attach(struct sr_dev_driver *di, struct sr_dev_inst *sdi) static GSList *dev_list(const struct sr_dev_driver *di) { - return ((struct drv_context *)di->priv)->instances; + return ((struct drv_context *)di->context)->instances; } #define LOG_PREFIX "deree-de5000" @@ -81,5 +82,5 @@ SR_PRIV struct sr_dev_driver deree_de5000_driver_info = { .dev_close = std_serial_dev_close, .dev_acquisition_start = es51919_serial_acquisition_start, .dev_acquisition_stop = es51919_serial_acquisition_stop, - .priv = NULL, + .context = NULL, };