X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=proto.h;h=4c9286c103389d3628ce566a439c8eaaa96e7956;hb=8c012adbc15fcb00aee23f472b08b108d46b818b;hp=6536c5a4b075b490177acdaa2a4be76f5f7eaa7c;hpb=811deee4af9f600ae0c457a74d3877c4f68f2f37;p=libsigrok.git diff --git a/proto.h b/proto.h index 6536c5a4..4c9286c1 100644 --- a/proto.h +++ b/proto.h @@ -20,10 +20,16 @@ #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);