meta: add serial module for (de)serialising objects

This commit is contained in:
2025-06-27 21:53:40 +01:00
parent 2ced9a8309
commit c987f34693
9 changed files with 3862 additions and 1 deletions

20
serial/serial.h Normal file
View File

@@ -0,0 +1,20 @@
#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)(
struct b_serial_ctx *, struct b_object *, struct b_stream *,
enum b_serial_flags);
enum b_status (*fmt_deserialise)(
struct b_serial_ctx *, struct b_stream *, struct b_object **,
enum b_serial_flags);
};
#endif