X-Git-Url: http://sigrok.org/gitweb/?a=blobdiff_plain;f=include%2Flibsigrok%2Fproto.h;h=6ae3be8f856d2567fe58755d7717f7141c8a3410;hb=32ba0d80054df01767ec323c621ab1c6bc5f310c;hp=ea9d477946fd7ae74a963f77e1dc89dd3c906a0e;hpb=c61e208d26325c38c9c928b00890a70f55633ddf;p=libsigrok.git diff --git a/include/libsigrok/proto.h b/include/libsigrok/proto.h index ea9d4779..6ae3be8f 100644 --- a/include/libsigrok/proto.h +++ b/include/libsigrok/proto.h @@ -20,8 +20,6 @@ #ifndef LIBSIGROK_PROTO_H #define LIBSIGROK_PROTO_H -#include - /** * @file * @@ -208,7 +206,7 @@ typedef int (*sr_resource_open_callback)(struct sr_resource *res, const char *name, void *cb_data); typedef int (*sr_resource_close_callback)(struct sr_resource *res, void *cb_data); -typedef ssize_t (*sr_resource_read_callback)(const struct sr_resource *res, +typedef gssize (*sr_resource_read_callback)(const struct sr_resource *res, void *buf, size_t count, void *cb_data); SR_API int sr_resource_set_hooks(struct sr_context *ctx,