diff options
author | Hans de Goede <hdegoede@redhat.com> | 2012-02-22 16:07:31 +0100 |
---|---|---|
committer | Hans de Goede <hdegoede@redhat.com> | 2012-02-22 16:35:23 +0100 |
commit | e848f9b28a0192305db3bce3a8fd3fb8cd225bec (patch) | |
tree | c30302d4fe26a34df44459a210b6f97b386b1074 /usbredirhost/usbredirhost.h | |
parent | df24fe116ea913dd1fa4b4725ad5764117943eba (diff) |
usbredirfilter: constify various rules pointers
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Diffstat (limited to 'usbredirhost/usbredirhost.h')
-rw-r--r-- | usbredirhost/usbredirhost.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usbredirhost/usbredirhost.h b/usbredirhost/usbredirhost.h index 032dc9f..3895a6c 100644 --- a/usbredirhost/usbredirhost.h +++ b/usbredirhost/usbredirhost.h @@ -145,7 +145,7 @@ void usbredirhost_free_write_buffer(struct usbredirhost *host, uint8_t *data); /* Get the *usbredir-guest's* filter, if any. If there is no filter, rules is set to NULL and rules_count to 0. */ void usbredirhost_get_guest_filter(struct usbredirhost *host, - struct usbredirfilter_rule **rules_ret, int *rules_count_ret); + const struct usbredirfilter_rule **rules_ret, int *rules_count_ret); /* Get device and config descriptors from the USB device dev, and call usbredirfilter_check with the passed in filter rules and the needed info @@ -154,7 +154,7 @@ void usbredirhost_get_guest_filter(struct usbredirhost *host, Return value: -EIO or -ENOMEM when getting the descriptors fails, otherwise it returns the return value of the usbredirfilter_check call. */ -int usbredirhost_check_device_filter(struct usbredirfilter_rule *rules, +int usbredirhost_check_device_filter(const struct usbredirfilter_rule *rules, int rules_count, libusb_device *dev, int flags); #endif |