X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=include%2Flibsigrok%2Fproto.h;h=1a3fba8c048fd9f2a6ae6989a3bad3babcf04d51;hb=4d399734b4ec7affb58c5881ea1b8d88eaa57d53;hp=bd7250571cb9c75143c59fa215b3d9fa7b5136b8;hpb=ee1b6054d6d6a00698ddae421eae63019c452b6d;p=libsigrok.git diff --git a/include/libsigrok/proto.h b/include/libsigrok/proto.h index bd725057..1a3fba8c 100644 --- a/include/libsigrok/proto.h +++ b/include/libsigrok/proto.h @@ -36,6 +36,8 @@ SR_API void sr_rational_set(struct sr_rational *r, int64_t p, uint64_t q); SR_API int sr_rational_eq(const struct sr_rational *a, const struct sr_rational *b); SR_API int sr_rational_mult(struct sr_rational *res, const struct sr_rational *a, const struct sr_rational *b); +SR_API int sr_rational_div(struct sr_rational *res, const struct sr_rational *num, + const struct sr_rational *div); /*--- backend.c -------------------------------------------------------------*/