mirror of
https://gitea.tendokyu.moe/Hay1tsme/segatools.git
synced 2026-05-16 08:00:40 -05:00
22 lines
363 B
C
22 lines
363 B
C
#pragma once
|
|
|
|
|
|
#include <windows.h>
|
|
#include <stdint.h>
|
|
|
|
#include "hook/iobuf.h"
|
|
|
|
/* SmartSet Protocol Lead-in byte */
|
|
enum {
|
|
ELO_FRAME_LEAD = 0x55
|
|
};
|
|
|
|
struct elo_packet_hdr {
|
|
uint8_t lead;
|
|
uint8_t cmd;
|
|
};
|
|
|
|
HRESULT elo_frame_decode(struct iobuf *dest, struct iobuf *src);
|
|
|
|
HRESULT elo_frame_encode(struct iobuf *dest, const void *src, size_t nbytes);
|