Move dvc_hdr_t into dvc.c

This commit is contained in:
Cendio 2017-11-09 17:03:59 +01:00
parent f2533e0431
commit d2cbbd46ce
2 changed files with 12 additions and 14 deletions

16
dvc.c
View File

@ -33,9 +33,14 @@
#define DYNVC_SOFT_SYNC_REQUEST 0x08
#define DYNVC_SOFT_SYNC_RESPONSE 0x09
static VCHANNEL *dvc_channel;
static uint32 dvc_in_channelid(STREAM s, dvc_hdr_t hdr);
typedef union dvc_hdr_t {
uint8 data;
struct {
uint8 cbid:2;
uint8 sp:2;
uint8 cmd:4;
} hdr;
} dvc_hdr_t;
typedef struct dvc_channel_t
{
@ -44,7 +49,10 @@ typedef struct dvc_channel_t
dvc_channel_process_fn handler;
} dvc_channel_t;
dvc_channel_t channels[MAX_DVC_CHANNELS];
static VCHANNEL *dvc_channel;
static dvc_channel_t channels[MAX_DVC_CHANNELS];
static uint32 dvc_in_channelid(STREAM s, dvc_hdr_t hdr);
static RD_BOOL
dvc_channels_exists(const char *name)

10
types.h
View File

@ -306,16 +306,6 @@ typedef struct fileinfo
}
FILEINFO;
typedef union dvc_hdr_t {
uint8 data;
struct {
uint8 cbid:2;
uint8 sp:2;
uint8 cmd:4;
} hdr;
} dvc_hdr_t;
typedef RD_BOOL(*str_handle_lines_t) (const char *line, void *data);
#endif /* _TYPES_H */