]> sigrok.org Git - libsigrok.git/blobdiff - proto.h
Add support for fs and ps to sr_parse_period.
[libsigrok.git] / proto.h
diff --git a/proto.h b/proto.h
index 6536c5a4b075b490177acdaa2a4be76f5f7eaa7c..4c9286c103389d3628ce566a439c8eaaa96e7956 100644 (file)
--- a/proto.h
+++ b/proto.h
 #ifndef LIBSIGROK_SIGROK_PROTO_H
 #define LIBSIGROK_SIGROK_PROTO_H
 
+/**
+ * @file
+ *
+ * Header file containing API function prototypes.
+ */
+
 /*--- backend.c -------------------------------------------------------------*/
 
-SR_API int sr_init(void);
-SR_API int sr_exit(void);
+SR_API int sr_init(struct sr_context **ctx);
+SR_API int sr_exit(struct sr_context *ctx);
 
 /*--- log.c -----------------------------------------------------------------*/
 
@@ -122,6 +128,7 @@ SR_API struct sr_output_format **sr_output_list(void);
 
 /*--- strutil.c -------------------------------------------------------------*/
 
+SR_API char *sr_si_string_u64(uint64_t x, const char *unit);
 SR_API char *sr_samplerate_string(uint64_t samplerate);
 SR_API char *sr_period_string(uint64_t frequency);
 SR_API char *sr_voltage_string(struct sr_rational *voltage);