LexLeo 0.0.0-dev+f8e5087-dirty
Technical documentation
Loading...
Searching...
No Matches
stream_types.h File Reference

Borrower-visible public types for the stream port. More...

Include dependency graph for stream_types.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  stream_ops_t
 Borrower-facing operation table for the stream port. More...
 

Typedefs

typedef struct stream_t stream_t
 Opaque public stream handle type.
 
typedef struct stream_ops_t stream_ops_t
 Borrower-facing operation table for the stream port.
 

Enumerations

enum  stream_status_t {
  STREAM_STATUS_OK = 0 , STREAM_STATUS_EOF , STREAM_STATUS_INVALID , STREAM_STATUS_IO_ERROR ,
  STREAM_STATUS_NO_BACKEND , STREAM_STATUS_OOM , STREAM_STATUS_NOT_FOUND , STREAM_STATUS_ALREADY_EXISTS ,
  STREAM_STATUS_FULL
}
 Public status codes used by the stream port. More...
 

Detailed Description

This header exposes the public opaque handle, status codes, and borrower operation table used by the stream port.

Definition in file stream_types.h.

Typedef Documentation

◆ stream_ops_t

typedef struct stream_ops_t stream_ops_t

A stream_ops_t groups the default borrower-visible runtime operations exposed by the public stream port.

◆ stream_t

typedef struct stream_t stream_t

A stream_t represents a runtime stream instance manipulated through the public borrower and lifecycle APIs.

Definition at line 31 of file stream_types.h.

Enumeration Type Documentation

◆ stream_status_t

These values report the outcome of stream operations across borrower, adapter, lifecycle, and factory-related APIs.

Enumerator
STREAM_STATUS_OK 

Operation completed successfully.

STREAM_STATUS_EOF 

End-of-stream was reached.

STREAM_STATUS_INVALID 

An argument or precondition was invalid.

STREAM_STATUS_IO_ERROR 

An I/O operation failed.

STREAM_STATUS_NO_BACKEND 

No backend is bound to the stream or no backend could be resolved.

STREAM_STATUS_OOM 

Memory allocation failed.

STREAM_STATUS_NOT_FOUND 

A requested item could not be found.

STREAM_STATUS_ALREADY_EXISTS 

A registration attempt failed because the item already exists.

STREAM_STATUS_FULL 

A bounded container or registry is full.

Definition at line 40 of file stream_types.h.