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

Owner-style creator contract for standard I/O-oriented streams. More...

Include dependency graph for stream_io_creator.h:

Go to the source code of this file.

Data Structures

struct  stream_io_creator_t
 Owner-facing creator object for standard I/O-oriented streams. More...
 

Typedefs

typedef enum stream_io_kind_t stream_io_kind_t
 Kind of standard I/O stream requested from a stream_io_creator_t.
 
typedef struct stream_io_creator_t stream_io_creator_t
 Owner-facing creator object for standard I/O-oriented streams.
 

Enumerations

enum  stream_io_kind_t { STREAM_IO_INPUT = 0 , STREAM_IO_OUTPUT , STREAM_IO_ERR }
 Kind of standard I/O stream requested from a stream_io_creator_t. More...
 

Detailed Description

This header exposes a small owner-facing creator object used to build stream_t handles for standard input/output/error workflows.

Definition in file stream_io_creator.h.

Typedef Documentation

◆ stream_io_creator_t

A stream_io_creator_t packages:

  • a creation callback,
  • opaque user data bound to that callback.

Such an object is typically prepared by the Composition Root and then injected into owner-side runtime code that needs to create standard input/output/error stream_t instances without depending directly on factory wiring details.

◆ stream_io_kind_t

Enumeration Type Documentation

◆ stream_io_kind_t

Enumerator
STREAM_IO_INPUT 

Standard input stream.

STREAM_IO_OUTPUT 

Standard output stream.

STREAM_IO_ERR 

Standard error stream.

Definition at line 27 of file stream_io_creator.h.