ws server +proto
This commit is contained in:
27
inc/streamed.h
Normal file
27
inc/streamed.h
Normal file
@@ -0,0 +1,27 @@
|
||||
#ifndef __STREAMED_H__
|
||||
#define __STREAMED_H__
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <stdint.h>
|
||||
#include "client.h"
|
||||
|
||||
#define STREAM_MODE_READ 0
|
||||
#define STREAM_MODE_WRITE 1
|
||||
|
||||
|
||||
typedef struct {
|
||||
ClientContext* clientContext;
|
||||
uint32_t regId;
|
||||
uint64_t startAddr;
|
||||
uint64_t segLen;
|
||||
uint8_t mode;
|
||||
} StreamReg;
|
||||
|
||||
typedef struct {
|
||||
StreamReg* regs;
|
||||
size_t regCount;
|
||||
size_t allocatedSize;
|
||||
} DeviceSegStreamReg;
|
||||
|
||||
|
||||
#endif //ifndef __STREAMED_H__
|
||||
Reference in New Issue
Block a user