hantek-dso: Update to constified libsigrok API.

This commit is contained in:
Uwe Hermann 2012-05-31 22:43:12 +02:00
parent 88ff66c2c9
commit af36b80969
1 changed files with 3 additions and 4 deletions

View File

@ -357,7 +357,7 @@ static int hw_cleanup(void)
return SR_OK; return SR_OK;
} }
static void *hw_get_device_info(int dev_index, int dev_info_id) static const void *hw_get_device_info(int dev_index, int dev_info_id)
{ {
struct sr_dev_inst *sdi; struct sr_dev_inst *sdi;
struct context *ctx; struct context *ctx;
@ -416,13 +416,12 @@ static int hw_get_status(int device_index)
return sdi->status; return sdi->status;
} }
static int *hwcap_get_all(void) static const int *hwcap_get_all(void)
{ {
return capabilities; return capabilities;
} }
static int hw_dev_config_set(int dev_index, int hwcap, void *value) static int hw_dev_config_set(int dev_index, int hwcap, const void *value)
{ {
struct sr_dev_inst *sdi; struct sr_dev_inst *sdi;
struct context *ctx; struct context *ctx;