serial: update b_stream usage
This commit is contained in:
@@ -2,19 +2,19 @@
|
||||
#define _SERIAL_SERIAL_H_
|
||||
|
||||
#include <blue/core/object.h>
|
||||
#include <blue/core/stream.h>
|
||||
#include <blue/serial.h>
|
||||
#include <stdint.h>
|
||||
|
||||
struct b_serial_ctx {
|
||||
struct b_stream_pipeline *ctx_pipeline;
|
||||
b_stream_buffer *ctx_streambuf;
|
||||
};
|
||||
|
||||
struct b_serial_format_ops {
|
||||
enum b_status (*fmt_serialise)(
|
||||
struct b_serial_ctx *, b_object *, struct b_stream *,
|
||||
enum b_serial_flags);
|
||||
struct b_serial_ctx *, b_object *, b_stream *, enum b_serial_flags);
|
||||
enum b_status (*fmt_deserialise)(
|
||||
struct b_serial_ctx *, struct b_stream *, b_object **,
|
||||
struct b_serial_ctx *, b_stream *, b_object **,
|
||||
enum b_serial_flags);
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user