X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=datastore.c;h=27fe03e4283212414651dfc9843f2ab5ff21cadf;hb=1a081ca67d63a0bd933a3d715792d85afd437296;hp=fccb4d5b0fd73bf2026f4d43f58019e8d4b2f0a9;hpb=15278f3e9cf4c4a4a6c331e042f9935709343c82;p=libsigrok.git diff --git a/datastore.c b/datastore.c index fccb4d5b..27fe03e4 100644 --- a/datastore.c +++ b/datastore.c @@ -21,8 +21,8 @@ #include #include #include -#include -#include +#include "sigrok.h" +#include "sigrok-internal.h" static gpointer new_chunk(struct sr_datastore **ds); @@ -48,7 +48,7 @@ static gpointer new_chunk(struct sr_datastore **ds); * or SR_ERR_ARG upon invalid arguments. If something other than SR_OK * is returned, the value of 'ds' is undefined. */ -int sr_datastore_new(int unitsize, struct sr_datastore **ds) +SR_API int sr_datastore_new(int unitsize, struct sr_datastore **ds) { if (!ds) { sr_err("ds: %s: ds was NULL", __func__); @@ -83,7 +83,7 @@ int sr_datastore_new(int unitsize, struct sr_datastore **ds) * * @return SR_OK upon success, SR_ERR_ARG upon invalid arguments. */ -int sr_datastore_destroy(struct sr_datastore *ds) +SR_API int sr_datastore_destroy(struct sr_datastore *ds) { GSList *chunk; @@ -129,8 +129,8 @@ int sr_datastore_destroy(struct sr_datastore *ds) * or SR_ERR_ARG upon invalid arguments. If something other than SR_OK * is returned, the value/state of 'ds' is undefined. */ -int sr_datastore_put(struct sr_datastore *ds, void *data, unsigned int length, - int in_unitsize, int *probelist) +SR_API int sr_datastore_put(struct sr_datastore *ds, void *data, + unsigned int length, int in_unitsize, int *probelist) { unsigned int stored; int capacity, size, num_chunks, chunk_bytes_free, chunk_offset;