X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=hardware%2Fzeroplus-logic-cube%2Fzeroplus.c;h=aa7a65dc8c64322d280fe49b3373f0803bcc4c69;hb=e7eb703fff0167897f7e094e2edbf7d5798857ea;hp=5ca36e54e9e48276e053c5c71eb673e5e335ed6b;hpb=8105505d064ca8cc32799c119c5526fb337a5660;p=libsigrok.git diff --git a/hardware/zeroplus-logic-cube/zeroplus.c b/hardware/zeroplus-logic-cube/zeroplus.c index 5ca36e54..aa7a65dc 100644 --- a/hardware/zeroplus-logic-cube/zeroplus.c +++ b/hardware/zeroplus-logic-cube/zeroplus.c @@ -110,7 +110,7 @@ static const char *probe_names[] = { NULL, }; -/* List of struct sr_dev_inst, maintained by opendev()/closedev(). */ +/* List of struct sr_dev_inst, maintained by dev_open()/dev_close(). */ static GSList *dev_insts = NULL; static libusb_context *usb_context = NULL; @@ -409,7 +409,7 @@ static int hw_init(const char *devinfo) return devcnt; } -static int hw_opendev(int dev_index) +static int hw_dev_open(int dev_index) { struct sr_dev_inst *sdi; struct zp *zp; @@ -470,7 +470,7 @@ static int hw_opendev(int dev_index) return SR_OK; } -static int hw_closedev(int dev_index) +static int hw_dev_close(int dev_index) { struct sr_dev_inst *sdi; @@ -552,7 +552,7 @@ static void *hw_dev_info_get(int dev_index, int dev_info_id) return info; } -static int hw_get_status(int dev_index) +static int hw_dev_status_get(int dev_index) { struct sr_dev_inst *sdi; @@ -734,10 +734,10 @@ SR_PRIV struct sr_dev_plugin zeroplus_logic_cube_plugin_info = { .api_version = 1, .init = hw_init, .cleanup = hw_cleanup, - .opendev = hw_opendev, - .closedev = hw_closedev, + .dev_open = hw_dev_open, + .dev_close = hw_dev_close, .dev_info_get = hw_dev_info_get, - .get_status = hw_get_status, + .dev_status_get = hw_dev_status_get, .hwcap_get_all = hw_hwcap_get_all, .config_set = hw_config_set, .acquisition_start = hw_acquisition_start,