X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=proto.h;h=2b36264e8240066372bf29dc65b713f988e5174b;hb=d8b6b28b803ceabef12ac9ccc3f760d0ade70512;hp=5b516eca113c69904b89ab57894e876363af6583;hpb=9e4f8cf93b465fb34b35b083935f45ba5427045e;p=libsigrok.git diff --git a/proto.h b/proto.h index 5b516eca..2b36264e 100644 --- a/proto.h +++ b/proto.h @@ -17,8 +17,8 @@ * along with this program. If not, see . */ -#ifndef LIBSIGROK_SIGROK_PROTO_H -#define LIBSIGROK_SIGROK_PROTO_H +#ifndef LIBSIGROK_PROTO_H +#define LIBSIGROK_PROTO_H /** * @file @@ -77,6 +77,7 @@ SR_API int sr_config_get(const struct sr_dev_driver *driver, SR_API int sr_config_set(const struct sr_dev_inst *sdi, const struct sr_probe_group *probe_group, int key, GVariant *data); +SR_API int sr_config_commit(const struct sr_dev_inst *sdi); SR_API int sr_config_list(const struct sr_dev_driver *driver, const struct sr_dev_inst *sdi, const struct sr_probe_group *probe_group, @@ -108,6 +109,8 @@ SR_API int sr_session_run(void); SR_API int sr_session_stop(void); SR_API int sr_session_save(const char *filename, const struct sr_dev_inst *sdi, unsigned char *buf, int unitsize, int units); +SR_API int sr_session_save_init(const char *filename, uint64_t samplerate, + char **probes); SR_API int sr_session_append(const char *filename, unsigned char *buf, int unitsize, int units); SR_API int sr_session_source_add(int fd, int events, int timeout, @@ -141,10 +144,6 @@ SR_API uint64_t sr_parse_timestring(const char *timestring); SR_API gboolean sr_parse_boolstring(const char *boolstring); SR_API int sr_parse_period(const char *periodstr, uint64_t *p, uint64_t *q); SR_API int sr_parse_voltage(const char *voltstr, uint64_t *p, uint64_t *q); -SR_API int sr_atol(const char *str, long *ret); -SR_API int sr_atoi(const char *str, int *ret); -SR_API int sr_atod(const char *str, double *ret); -SR_API int sr_atof(const char *str, float *ret); /*--- version.c -------------------------------------------------------------*/