71 #define LE_STREAM_LOCATION_ID_INTERNAL 0 77 #if LE_STREAMING_ENABLED == 1 92 typedef enum leStreamState
94 LE_STREAM_CLOSED = 1 << 0,
95 LE_STREAM_READY = 1 << 1,
96 LE_STREAM_WAITING = 1 << 2,
97 LE_STREAM_DATAREADY = 1 << 3,
98 LE_STREAM_ERROR = 1 << 4,
103 typedef void (*leStream_DataReadyCallback)(
struct leStream* strm);
148 typedef struct leStream
152 enum leStreamState state;
160 leStream_DataReadyCallback dataReadyCB;
165 uint32_t physicalSize;
166 uint32_t baseAddress;
167 uint32_t logicalSize;
171 enum leStreamFlag flags;
209 void leStream_Init(leStream* stream,
235 leResult leStream_Open(leStream* stream);
256 leBool leStream_IsOpen(leStream* stream);
287 leResult leStream_Read(leStream* stream,
291 leStream_DataReadyCallback cb);
312 leBool leStream_IsBlocking(leStream* stream);
335 leBool leStream_IsDataReady(leStream* stream);
356 leResult leStream_DataReady(leStream* stream);
379 leResult leStream_Close(leStream* stream);
402 typedef struct leStreamManager
404 leResult (*exec)(
struct leStreamManager* mgr);
405 leBool (*isDone)(
struct leStreamManager* mgr);
406 void (*abort)(
struct leStreamManager* mgr);
407 void (*cleanup)(
struct leStreamManager* mgr);
409 void (*onDone)(
struct leStreamManager* mgr);
427 leResult leApplication_MediaOpenRequest(leStream* stream);
452 leResult leApplication_MediaReadRequest(leStream* stream,
467 void leApplication_MediaCloseRequest(leStream* stream);
Common macros and definitions used by Legato.
void * address
Definition: legato_stream.h:63
struct leStreamDescriptor leStreamDescriptor
This struct represents a stream descriptor.
uint32_t location
Definition: legato_stream.h:62
leResult
This enum represents function call results.
Definition: legato_common.h:123
This struct represents a stream descriptor.
Definition: legato_stream.h:60
uint32_t size
Definition: legato_stream.h:64
leBool
This enum represents booleans.
Definition: legato_common.h:146