X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=sigrok-proto.h;h=ee099eccd9ef34457860f4adc99a415182f2d057;hb=300007323ec5963e211b75d2e0d957721dea35fa;hp=fce35c094b249675a849a7ef5f5bb7ce664cd724;hpb=1352eeddd4d164b58f2233ae109432b73faab539;p=libsigrok.git diff --git a/sigrok-proto.h b/sigrok-proto.h index fce35c09..ee099ecc 100644 --- a/sigrok-proto.h +++ b/sigrok-proto.h @@ -40,8 +40,7 @@ void sr_datastore_put(struct sr_datastore *ds, void *data, unsigned int length, /*--- device.c --------------------------------------------------------------*/ void sr_device_scan(void); -int sr_device_plugin_init(struct sr_device_plugin *plugin); -void sr_device_close_all(void); +int sr_init_hwplugins(struct sr_device_plugin *plugin); GSList *sr_device_list(void); struct sr_device *sr_device_new(struct sr_device_plugin *plugin, int plugin_index, int num_probes); @@ -62,12 +61,13 @@ gboolean sr_device_has_hwcap(struct sr_device *device, int hwcap); /*--- filter.c --------------------------------------------------------------*/ int sr_filter_probes(int in_unitsize, int out_unitsize, int *probelist, - const char *data_in, uint64_t length_in, char **data_out, - uint64_t *length_out); + const unsigned char *data_in, uint64_t length_in, + char **data_out, uint64_t *length_out); /*--- hwplugin.c ------------------------------------------------------------*/ GSList *sr_list_hwplugins(void); +void sr_cleanup_hwplugins(void); /* Generic device instances */ struct sr_device_instance *sr_device_instance_new(int index,