]> sigrok.org Git - libsigrok.git/blobdiff - sigrok-proto.h
sr/srd: Small fixes, constifications, doc updates.
[libsigrok.git] / sigrok-proto.h
index b628f19239715cfb02211bb8347cfd87f5978e08..0913f898c901f2751a98789dc1a3813d0f2bc876 100644 (file)
@@ -27,13 +27,13 @@ SR_API int sr_exit(void);
 
 /*--- 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);
 
@@ -43,7 +43,7 @@ SR_API int sr_datastore_new(int unitsize, struct sr_datastore **ds);
 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 --------------------------------------------------------------*/