From: Uwe Hermann Date: Thu, 31 May 2012 20:43:12 +0000 (+0200) Subject: hantek-dso: Update to constified libsigrok API. X-Git-Tag: dsupstream~927 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=af36b8096942a704afa7e858fcd8fc8e15b92e09;p=libsigrok.git hantek-dso: Update to constified libsigrok API. --- diff --git a/hardware/hantek-dso/api.c b/hardware/hantek-dso/api.c index 518739eb..211d782e 100644 --- a/hardware/hantek-dso/api.c +++ b/hardware/hantek-dso/api.c @@ -357,7 +357,7 @@ static int hw_cleanup(void) 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 context *ctx; @@ -416,13 +416,12 @@ static int hw_get_status(int device_index) return sdi->status; } -static int *hwcap_get_all(void) +static const int *hwcap_get_all(void) { - 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 context *ctx;