X-Git-Url: http://sigrok.org/gitweb/?a=blobdiff_plain;f=include%2Flibsigrok%2Fproto.h;fp=include%2Flibsigrok%2Fproto.h;h=2c3b255972d7f2a5655f8c5055c4db438b82b834;hb=a2f3645bcf73a421192591fc7d2d030f9997fda7;hp=4e8d36ec4533c78af79e9d84539bbc02dbb2ee49;hpb=4856d33ba4d0cdc28d7d28c1e577494e48d7b38b;p=libsigrok.git diff --git a/include/libsigrok/proto.h b/include/libsigrok/proto.h index 4e8d36ec..2c3b2559 100644 --- a/include/libsigrok/proto.h +++ b/include/libsigrok/proto.h @@ -268,6 +268,8 @@ SR_API char *sr_text_trim_spaces(char *s); SR_API char *sr_text_next_line(char *s, size_t l, char **next, size_t *taken); SR_API char *sr_text_next_word(char *s, char **next); +SR_API int sr_next_power_of_two(size_t value, size_t *bits, size_t *power); + /*--- version.c -------------------------------------------------------------*/ SR_API int sr_package_version_major_get(void);