upm_stream.h: fixup some arguments and a missing typedef

Signed-off-by: Jon Trulson <jtrulson@ics.com>
This commit is contained in:
Jon Trulson 2016-08-24 12:04:22 -06:00 committed by Noel Eck
parent c1f9d15f67
commit 8e9e0976bb

View File

@ -29,11 +29,11 @@
extern "C" {
#endif
struct _upm_stream_ft {
typedef struct _upm_stream_ft {
/* read up to len bytes into buffer, return number of bytes read */
int (*upm_stream_read) (void* dev, void *buffer, int len);
int (*upm_stream_read) (void* dev, char *buffer, int len);
/* write up to len bytes from buffer, return number of bytes written */
int (*upm_stream_write) (void* dev, void *buffer, int len);
int (*upm_stream_write) (void* dev, char *buffer, int len);
/* return true if data is available to be read, false otherwise */
bool (*upm_stream_data_available) (void* dev, unsigned int timeout);
} upm_stream_ft;