/*--- log.c -----------------------------------------------------------------*/
-typedef int (*sr_log_handler_t)(void *cb_data, int loglevel, const char *format,
- va_list args);
+typedef int (*sr_log_callback_t)(void *cb_data, int loglevel,
+ const char *format, va_list args);
SR_API int sr_log_loglevel_set(int loglevel);
SR_API int sr_log_loglevel_get(void);
-SR_API int sr_log_handler_set(sr_log_handler_t handler, void *cb_data);
-SR_API int sr_log_handler_set_default(void);
+SR_API int sr_log_callback_set(sr_log_callback_t cb, void *cb_data);
+SR_API int sr_log_callback_set_default(void);
SR_API int sr_log_logdomain_set(const char *logdomain);
SR_API char *sr_log_logdomain_get(void);
SR_API int sr_datastore_destroy(struct sr_datastore *ds);
SR_API int sr_datastore_put(struct sr_datastore *ds, void *data,
unsigned int length, int in_unitsize,
- int *probelist);
+ const int *probelist);
/*--- device.c --------------------------------------------------------------*/
/*--- filter.c --------------------------------------------------------------*/
SR_API int sr_filter_probes(int in_unitsize, int out_unitsize,
- const int *probelist, const unsigned char *data_in,
- uint64_t length_in, char **data_out,
+ const int *probelist, const uint8_t *data_in,
+ uint64_t length_in, uint8_t **data_out,
uint64_t *length_out);
/*--- hwdriver.c ------------------------------------------------------------*/