2025-06-27 21:53:40 +01:00
|
|
|
#ifndef _SERIAL_SERIAL_H_
|
|
|
|
|
#define _SERIAL_SERIAL_H_
|
|
|
|
|
|
|
|
|
|
#include <blue/serial.h>
|
|
|
|
|
#include <stdint.h>
|
|
|
|
|
|
|
|
|
|
struct b_serial_ctx {
|
|
|
|
|
struct b_stream_pipeline *ctx_pipeline;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
struct b_serial_format_ops {
|
|
|
|
|
enum b_status (*fmt_serialise)(
|
2025-08-09 19:57:42 +01:00
|
|
|
struct b_serial_ctx *, struct b_dsref *, struct b_stream *,
|
2025-06-27 21:53:40 +01:00
|
|
|
enum b_serial_flags);
|
|
|
|
|
enum b_status (*fmt_deserialise)(
|
2025-08-09 19:57:42 +01:00
|
|
|
struct b_serial_ctx *, struct b_stream *, struct b_dsref **,
|
2025-06-27 21:53:40 +01:00
|
|
|
enum b_serial_flags);
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
#endif
|