* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-#ifndef SIGROK_SIGROK_PROTO_H
-#define SIGROK_SIGROK_PROTO_H
+#ifndef LIBSIGROK_SIGROK_PROTO_H
+#define LIBSIGROK_SIGROK_PROTO_H
/*--- backend.c -------------------------------------------------------------*/
/*--- log.c -----------------------------------------------------------------*/
-SR_API int sr_set_loglevel(int loglevel);
-SR_API int sr_get_loglevel(void);
+typedef int (*sr_log_handler_t)(void *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 *data);
+SR_API int sr_log_handler_set_default(void);
+SR_API int sr_log_logdomain_set(const char *logdomain);
+SR_API char *sr_log_logdomain_get(void);
/*--- datastore.c -----------------------------------------------------------*/
SR_API GSList *sr_device_list(void);
SR_API struct sr_device *sr_device_new(const struct sr_device_plugin *plugin,
int plugin_index);
-SR_API int sr_device_clear(struct sr_device *device);
-SR_API int sr_device_probe_clear(struct sr_device *device, int probenum);
SR_API int sr_device_probe_add(struct sr_device *device, const char *name);
SR_API struct sr_probe *sr_device_probe_find(const struct sr_device *device,
int probenum);